| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la GNC : gnc_sce_gr_002 |
Fonctionnalité : Planification de récéption |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de créer des mouvements d’entrée attendue (EA).
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 le numéro d’EA est fourni, alors l’API ne génère les mouvements que pour cette EA. Dans le cas contraire, l’API génère les mouvements pour toutes les EA de la réception. | |
| Les mouvements sont générés si et seulement si l’identifiant du BL pour la réception est identique à celui de l’EA (lrel.idbl = leae.idbl). | |
| If the generation of the movement is successful, change the status of the reception header to ‘Reception authorized’ (LREE.statut=4). | |
| Détail : |
Read the reception header data (LREE table) with the input parameters (typdep, sigdep and numrec). If the reception header does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. If the expected entry (EE) number is provided (numea <>0): Read the expected entry (EE) header data (LEAE table) with the input parameters (typdep, sigdep and numea). If the EE header does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. Read the first reception line data (LREL table) with the input parameters (typdep, sigdep, numrec, numea). If the corresponding data does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. For each reception line data (LREL table) read with the input parameters (typdep, sigdep, numrec, numea). If the delivery note field (idbl) is the same for both reception line and expected entry, movement generation is possible (lrel.idbl=leae.idbl). Read the expected entry line data (LEAL table) with the input parameters (typdep, sigdep and numea) and with the line number of the expected entry (lrel.numligea). If the corresponding EE line does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. Call the API gnc_gener_mvt_ee to generate the movements. If the generation of the movements is successful, Set the delivery note modification flag (leal.blsaisi) to 1, and modify the EE lines. Otherwise the API returns an error message ‘PB_GEN’ and breaks the cycle. If the expected entry (EE) number is not provided (numea =0). Read the reception lines data (LREL table) with the input parameters (typdep, sigdep, numrec). If the corresponding data does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. For each reception line data (lrel table) read with the input parameters. Read the expected entry (EE) header data (LEAE table) with the input parameters (typdep, sigdep and numea). If the corresponding EE header data does not exist, the API returns an error message ‘ELT_PASTRO’ and an error code 0. If the delivery note field (idbl) is the same for both reception line and expected entry, movement generation is possible (lrel.idbl=leae.idbl). Read the expected entry lines data (LEAL table) with the input parameters (typdep, sigdep), with the line number of the expected entry (lrel.numligea) and with the EE number of the reception lines (lrel.numea). If the expected entry line data does not exist, the API returns an error message ‘ELT_PASTRO’ and returns an error code 0. Call the API gnc_gener_mvt_ee to generate the movements. If the generation of the movements is successfully, Set the delivery note modification flag (leal.blsaisi) to 1, and modify the EE lines. Otherwise the API returns an error message ‘PB_GEN’ and breaks the cycle. If the expected entry lines (LEAL table) modification not succeed: The API returns an error code 0. Otherwise: Set the reception plan number (lree.planrec) flag to 1. Modify the reception header data (LREE table). If the modification of the reception header does not succeed, the API returns an error message ‘ERR_MODIF’’ and returns an error code 0. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0/ELT_PASTRO | LREE | Reception header data does not exist. |
| 0/ELT_PASTRO | LEAE | Expected entry (EE) header data does not exist. |
| 0/ELT_PASTRO | LREL | Reception line data does not exist. |
| 0/ELT_PASTRO | LEAL | Expected entry line data does not exist. |
| 0/PB_GEN | Problem in movement generation. | |
| 0/ERR_MODIF | Lree.planrec | Modification of the reception header does not succeed. |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typdep | Type dépôt | Char(3) | O |
| sigdep | Sigle dépôt | Char(12) | O |
| numrec | N° réception | Long | O |
| numea | N° d’EA | Long | N |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | REMARQUE |
| Aucun. |