| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Sous-programme Basic : gnc_rf _modif_palettisation |
Fonctionnalité :SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API reads one or two lower levels (depending on lieu input parameter) from the palettization plan of the first received as a parameter container (cnttyp, cntcod) for a particular product.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 49 | The stock level for the container is not correct. | |
| 52 | The logistic variant does not exist. | |
| 56 | The container does not belong to the palettization plan |
Détail de l'API
Read the depot (TIE table) for the operator.
Read the logistic variant (PRL) with (codpro = codpro input parameter, codva2 = cnttyp input parameter, cntcod = cntcod input parameter and codva1=’00’).
If the logistic variant does not exists the API returns the error code 52.
If there are two lower levels from the palettization plan to be obtained (lieu input parameter = 1).
If the stock level code for the logistic variant is different from a pallet (prl.codlnst != ‘5’).
The API returns the error code 49.
Copy the Container quantity of CU (prl.nbinf), the Container type (prl.codva2_inf) and the Container code (prl.cntcod_inf) for the lower level form the palettization plan in the output parameters ParamOut4, ParamOut5, ParamOut6.
Read the logistic variant (PRL) with (codpro = codpro input parameter, codva2 = prl.codva2_inf , cntcod = prl.cntcod_inf and codva1=’00’).
Copy the Container quantity of CU (prl.nbinf), the Container type (prl.codva2_inf) and the Container code (prl.cntcod_inf) for the lower level from the palettization plan in the output parameters ParamOut7, ParamOut8, ParamOut9.
Else if there is one lower level from the palettization plan to be obtained (lieu input parameter = 2).
Control whether the second container received as a parameter (cnttyp1, cntcod1) belongs to the palletization plan (prl obtained for the first container).
If the container does not belong to the palettization plan, the API returns the error code 56.
Read the logistic variant (prl) with (codpro = codpro input parameter, codva2 = cnttyp1 input parameter , cntcod = cntcod1 input parameter and codva1=’00’).
Copy the Container quantity of CU (prl.nbinf), the Container type (prl.codva2_inf) and the Container code (prl.cntcod_inf) for the lower level form the palettization plan in the output parameters ParamOut7, ParamOut8, ParamOut9.
Copy the input parameters l_nbrcnt, cnttyp, cntcod in the output parameters ParamOut1, ParamOut2, ParamOut3.
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| Codpro | Product code | Char(16) | O |
| l_nbrcnt | Container quantity of CU (Container 1) | Char(4) | O |
| Cnttyp | Container type (Container 1) | Char(2) | O |
| Cntcod | Container code (Container 1) | Char(2) | O |
| l_nbrcnt1 | Container quantity of CU (Container 2) | Char(4) | N |
| Cnttyp1 | Container type (Container 2) , compulsory if (lieu input parameter = 2) | Char(2) | N |
| Cntcod1 | Container code (Container 2) , compulsory if (lieu input parameter = 2) | Char(2) | N |
| l_nbrcnt2 | Container quantity of CU (Container 3 – unused) | Char(4) | N |
| Cnttyp2 | Container type (Container 3 – unused) | Char(2) | N |
| Cntcod2 | Container code (Container 3 – unused) | Char(2) | N |
| Lieu |
Reading levels flag 1 = two lower levels from the palettization plan to be obtained. 2 = one lower level from the palettization plan to be obtained. |
Char(1) | O |
| NOM | DESCRIPTION | FORMAT |
|---|---|---|
| ParamOut1 | Container quantity of CU (corresponds to l_nbrcnt input paratemer) | Number |
| ParamOut2 | Container type (corresponds to cnttyp input parameter) | Char(2) |
| ParamOut3 | Container code (corresponds to cntcod input parameter) | Char(2) |
| ParamOut4 | Container quantity of CU of the first lower level | Number |
| ParamOut5 | Container type of the first lower level | Char(2) |
| ParamOut6 | Container code of the first lower level | Char(2) |
| ParamOut7 | Container quantity of CU of the second lower level | Number |
| ParamOut8 | Container type of the second lower level | Char(2) |
| ParamOut9 | Container code of the second lower level | Char(2) |