| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard gnc_up_valider Nom de la gnc : gnc_sce_gp_004 |
Fonctionnalité : Préparation |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de valider une UP.
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 |
|
Si l’UP est vide, la supprimer (supprimer l’enregistrement des tables LCOL et LOBJSTK). (l’UP est vide s’il n’existe aucun objet ayant pour objet père le n° d’UP). |
|
|
Sinon : Reprendre le traitement effectué au niveau de l’écran LCOL_3 (si lcol.statut = ‘4’). |
|
| Détail : |
Search whether there is a parent stock object for the PU. (Read the logistic stock object data (LOBJSTK table) with the input parameters (typdep, sigdep, idobjcol).) If there is a problem reading the PU. The API returns an error message ‘ELT_PASTRO’ and an error code 0. If a parent object is not found. Delete the corresponding logistic stock object and parcel. Read the stock object data with the input parameters (typdep, sigdep, idobjcol). If the corresponding stock object does not exist, the API returns an error message ‘ELT_PASTRO’ and an error code 0. Delete the stock object. If there is a problem in deletion, the API returns an error message ‘ERR_SUPPR’ and an error code 0. Read the parcel data (LCOL table) with the input parameters (typdep, sigdep, idobjcol). If the corresponding parcel does not exist, the API returns an error message ‘ELT_PASTRO’ and an error code 0. Delete the parcel. If there is a problem in deletion, the API returns an error message ‘ERR_SUPPR’ and an error code 0. If a parent object for the PU is found. Validate the PU. Read the parcel data (LCOL table) with the input parameters (typdep, sigdep, idobjcol). If the parcel does not exist, the API returns an error message ‘ELT_PASTRO’ and an error code 0. Call the function gnc_colis_modif_statut, as so to validate the parcel (lcol.statut=5). If the status of the parcel is not ‘waiting for shipment’ (lcol.statut!=7): If the parcel is not of type ‘multi DO’ (lcol.flg != ‘M’) Call the function gnc_maj_entete_ol, as so to manage the status of one delivery order header and to related expeditions and waves. If the function does not succeed, the API returns an error code 0. Else Call the function gnc_colis_maj_multi_ol, as so to manage the status of delivery orders. If the function does not succeed, the API returns an error code 0. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0/ELT_PASTRO | LOBJSTK | Problem in stock object reading. |
| 0/ELT_PASTRO | LOBJSTK | The stock object does not exist. |
| 0/ERR_SUPPR | LOBJSTK | Error in deletion of the stock object. |
| 0/ERR_SUPPR | LCOL | Error in deletion of the parcel. |
| 0/ ELT_PASTRO | LCOL | The parcel does not exist. |
| 0 | The execution of the function gnc_maj_entete_ol is not successful. | |
| 0 | The execution of the function gnc_colis_maj_multi_ol is not successful. |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typdep | Type dépôt | Char (3) | O |
| sigdep | Sigle dépôt | Char (12) | O |
| idobjcol | N° UP | Char (18) | O |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| Aucun. |