| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_rf_controle_type_code |
Fonctionnalité :Préparation |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API controls whether a particular container belongs to the palettization plan of a product.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| MULEAN - |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| Détail : | Read the depot (TIE table) for the operator. |
|
Read the container data (LCNTREF table) with the input parameters ‘cnttyp’ and ‘cntcod’. If the container does not exist, the API returns the error code 21. If the stock level code received as a parameter ( nivcptqte) is bigger then the stock level code for the container found (lcntref.codlnst), the API returns the error code 83. |
|
|
Read product data (PRO table) with the input parameter ‘codpro’. If the product does not exist. If the length of the input parameter ‘codpro’ is less than or equal to 14. /* Search for DUN14 code. */ For each logistic variant data (prl table) found with (dun14 = first 14 symbols from the input parameter ‘codpro’). If the parameter ‘MULEAN’ is active and the parameter field A1 is equal to ‘O’. If the logistic variant is defined as ‘Multi Gencode for thirdparty’ (codva1 = ‘MG’). Read the logistic variant data (PRL table) with (codpro = prl.codpro (the product code from the ‘Multi Gencode’ logistic variant), codva1 = ‘00’, codva2 = prl.codva2_l (link to the container type from the ‘Multi Gencode’ logistic variant), cntcode = prl.cntcod_l (link to the container code from the ‘Multi Gencode’ logistic variant). If the logistic variant is found. Replace the ‘Multi Gencode’ logistic variant with the logistic variant found. If the current operator ID (TIE.sigtie) is equal to the thirdparty ID from the logistic variant found (PRL.sigtie), the input parameter ‘codpro’ is replaced by the product code from the logistic variant (prl.codpro). If the length of the input parameter (codpro) is less than or equal to 13. /* Search for EAN code. */ Read the product data (PRO table) with (gencod = first 13 symbols from the input parameter ‘codpro’) . If the product is found. Replace the input parameter (codpro) with product code (codpro) from the found product data (pro table) . Read the logistic variant data (PRL table) with (codpro = input parameter ‘codpro’, codva1 = ‘00’, codva2 = input parameter ‘ cnttyp’, cntcode = input parameter ‘ cntcod’. If the logistic variant does not exist, the API returns the error code 52. |
Erreurs possibles
| CAUSE | CODE RETOUR |
| The container does not exist. | 21 |
| The logistic variant does not exist. | 52 |
| The stock level code is incorrect. | 83 |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| codpro | Char(16) | O | Product code | ||
| cnttyp | Char (2) | O | Container type | ||
| cntcod | Char (2) | O | Container code | ||
| nivcptqte | Char (1) | O | Stock level code |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| Aucun. |