| API / APIs Radiofréquence | |
| Version ACE : 1.4 | |
|
Package : Standard GNC_SCE_LOGIS_018 Nom de la gnc : gnc_sce_gp_018 |
Fonctionnalité : Préparation |
Cette API permet de lancer en préparation une vacation de réapprovisionnement (elle est appelée par l’API GestionPreparationLancerVacationRea).
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| Détail : |
Look for the preparation unit archiving control data for units which are not yet archived. (Read the table (LUPCTL) with the input parameters (typdep, sigdep, idobjcol), treatement type flag equals to 1 (flgtrt=1), archive flag equals to '0' (flghis = '0') and status equals to ‘2’ (Not in database) (statut = ‘2’).) For each preparation unit archiving control objects. If the movement ID of the current preparation unit archiving control object is presented (idmvt > 0). Look for stock movement data (LMVTSTK) corresponding to the current movement ID. (Read the table (LMVTSTK) with input parameters (typdep, sigdep), direction equals to ‘S’ (sensmvt=’S’), movement type equals to ‘S’ (typmvt=‘S’) and movement ID equals to the current movement ID.) If the stock movement does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. If the stock movement is addressed (statut=’3’). Read the the preparation unit archiving control data (LUPCTL) with input parameters (typdep, sigdep), treatement type flag equals to 1 (flgtrt=1), the logistic stock parcel ID equals to the input logistic stock parcel ID (idobjcol), the movement ID equals to the stock movement ID for the current preparation unit archiving control object (lupctl.idmvt), the stock object ID not presented (idobj = ‘’) and order number equals to the order number of the current preparation unit archiving control object (lupctl.numord).) If the preparation unit archiving control is not found, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. Otherwise. If the stock object of the current preparation unit archiving control object is presented (idobj != “”). Read the stock object data (LOBJSTK) with input parameters (typdep, sigdep, idobj = idobjcol). If the stock object is not found, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. Read the next preparation unit archiving control object. |
Cas d’erreurs
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0 / ELT_PASTRO | LMVTSTK | The stock movement is not found. |
| 0 / ELT_PASTRO | LUPCTL | The preparation unit archiving control is not found. |
| 0 / ELT_PASTRO | LOBJSTK | The stock object is not found. |
Paramètres en entrée
| NOM | DESCRIPTION | FORMAT |
OBLIGATOIRE/ FACULTATIF |
|---|---|---|---|
| typdep | Third-party type. | char(3) | O |
| sigdep | Third-party ID. | char(12) | O |
| idobjcol | Logistic stock parcel ID. | char(18) | O |