| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_sce_gs_002 |
Fonctionnalité : Planification de récéption |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de générer un mouvement de transfert pour un objet de stock. En fonction du paramètre LADMVT, elle peut aussi gérer l’adressage des mouvements d’entrée non validés.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| LADMVT - |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| L’API vérifie tout d’abord que l’objet d’origine existe ou que le paramètre LADMVT est positionné. | |
| Si le mouvement d’entrée est renseigné, l’API appelle « gnc_cross_objet_recu ». | |
| Si le paramètre LADMVT est activé, l’API tient compte de la priorité picking pour le mode d’entrée, afin d’activer ou non la découpe du mouvement. | |
| Pour générer le transfert, l’API appelle « gnc_gener_mvt_transfert ». Le mouvement généré est au statut « 3 ». | |
| Détail : |
Read the stock objet table (LOBJSTK) with the input parameters (typdep, sigdep, idobj = idobjori). If the stock objet does not exist and the parameter “LADMVT ” is not active. The API returns the error code 0 and the error message "ELT_PASTRO". If the input stock movement is presented (idmvt_e > 0). Read the stock movement data (LMVTSTK) with the input parameters (typdep, sigdep, idmvt = idmvt_e) and movement sign equals to “E” (sensmvt = “E” – input stock movement) and movement type equals to “input” (typmvt = “E”). If the stock movement objet is not found, the API returns an error code 0 and an error message "ELT_PASTRO". If the EA number of the stock movement objet is presented (numea > 0) and the EA line number of the stock movement objet line is presented (numligea > 0). Read the EA line data (LEAL) corresponding to the stock movement objet (typtie, sigtie, numea, numligea). If the EA line objet is not found, the API returns an error code 0 and an error message "ELT_PASTRO". If the CU quantity in output processing is presented (qteuntecs > 0). If the stock objet does not exist, the API returns the error code 0 and the error message "L_CROSSMVT". Otherwise. Call the function gnc_cross_objet_recu to research whether the stock object is waiting on the cross dock . If the function returns the code 1, the API returns the code 1 too. Else if the function returns an error code different to 63, the API returns this error code. Otherwise, the API returns the error code 0. Otherwise, the API returns the error code 0. If the parameter "LADMVT " is active. Read the stock product data (DSK) with the input parameter (sigdep) and the movement stock object product (lobjstk.codpro). If the stock product object is found. Read the input mode data (LMODENT) corresponding to the stock product objet (modent, sigdep) and with the input parameter (typdep). If the input mode objet is found verify whether the picking priority is equal to 3 (pickprio = 3). If the input container type OR container code parameter is not presented, the API initialises them with the container type and code from the found logistic stock object. Call the function gnc_gener_mvt_transfert to generate a transfer stock movement. If the function does not succeed, the API returns an error code 0. Read the input transfer stock movement (LMVTSTK) generated with the input parameter (typdep, sigdep) and movement sign equals to “E” (sensmvt = “E”) and movement type equals to “transfer” (typmvt = “T”) and stock movement ID equals the generated movement ID (idmvt). If the input transfer stock movement object is not found, the API returns an error code 0 and an error message "ELT_PASTRO". Else if the input transfer stock movement is not addressed (statut != 3). The API returns the error code 0. The API returns a code 1. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0 / ELT_PASTRO | "LOBJSTK", idobjori | The stock objet is not found. |
| 0 / ELT_PASTRO | "LMVTSTK", idmvt_e | The stock movement objet is not found. |
| 0 / ELT_PASTRO | "LEAL", numea | The EA line objet is not found. |
| 0 / L_CROSSMVT | numligea | The CU quantity in output processing is great than 0 and the stock objet does not exist. |
| 0 | The function gnc_cross_objet_recu returns an error code different to 63. | |
| 0 | The CU quantity in output processing is not great than 0. | |
| 0 | The EA number of the stock movement objet is not presented or the EA line number of the stock movement objet line is not presented. | |
| 0 | The function gnc_gener_mvt_transfert does not succeed. | |
| 0 / ELT_PASTRO | "LMVTSTK", idmvt | The input transfer stock movement object is not found. |
| 0 | The input transfer stock movement is not addressed. |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typdep | Depot type. | Char(3) | O |
| sigdep | Depot ID. | Char(12) | O |
| idord | Order ID. | Number | N |
| ligord | Order line. | Number | N |
| idobjori | Origin stock object ID. | Char(18) | O |
| idobjdes | Destination stock object ID. | Char(18) | N |
| cnttyp | Container type. | Char(2) | N |
| cntcod | Container code. | Char(2) | N |
| codmag | Logistic store code. | Char(3) | N |
| adremp | Slot address. | Char(10) | N |
| codallcir | Circulation lane ID. | Char(8) | N |
| qteunt | CU quantity. | Number | O |
| mode |
Mode R: rangement T: transfert partiel V : validation |
Char(1) | O |
| idmvt_e | Input stock movement ID. | Number | N |
| NOM | DESCRIPTION | FORMAT |
|---|---|---|
| ParamOut1 | Order ID. | Number |
| ParamOut2 | Order line. | Number |
| ParamOut3 | Transfer stock movement ID. | Number |
| ParamOut4 | Logistic store code. | Char(3) |
| ParamOut5 | Slot address. | Char(10) |