| API / APIs Radiofréquence | |
| Version ACE : 1.4 | |
|
Package : Standard Sous-programme Basic : gnc_sce_ft_valdetaila_egx |
Fonctionnalité :SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API validates the details of a container in ‘bind’. After the validation the API DECLAREXP is called, as so to declare the container as ‘can be shipped’ OR uncontrollable OR waiting for validation on the fixed post.
API imbriquées : Aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0/ "ELT_PASTRO" | lobjstk , lobjstk.typtie, w_lobjstk.sigtie, w_lobjstk.idobj | Stock object does not exist. |
| 0/ "ELT_PASTRO" | Lree, lree.typtie, lree.sigtie, lree.numrec | Reception header does not exist. |
| 0/"ELT_PASTRO" | Ltea, leae.typtie, leae.sigtie, leae.typeea | EE type does not exist. |
| 0/"ELT_PASTRO" | Lrbe, lrbe.typtie, lrbe.sigtie, lrbe.idbl | Delivery note header does not exist. |
| "MES_LIBRE" | "Bl Inexistant lobjstk.idrbe” | Delivery note identifier is not presented for the stock object. |
| 0 | Execution of the function gnc_valid_mvtstk OR gnc_declare_contenant_expediable is not successful. | |
| 0/"ERR_MODIF" | lobjstk , lobjstk.typtie, w_lobjstk.sigtie, w_lobjstk.idobj | The stock object is not successfully updated. |
Read the stock object data (LOBJSTK) with the input parameters (‘typdep’, ‘sigdep’ and ‘idobj’).
If the stock object does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
Read the reception header data (LREE) with the parameters (‘typdep’, ‘sigdep’ and ‘lobjstk.numrec’).
If the reception header does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
Read the EE type data (LTEA) with the parameters (‘typdep’, ‘sigdep’ and ‘LREE.typeea’).
If the EE type does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
If the delivery note identifier is presented for the stock object (LOBJSTK.idrbe).
Read the delivery note header data (LRBE) with the parameters (‘typdep’, ‘sigdep’ and ‘lobjstk.idrbe’).
If the delivery note header does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
Otherwise.
The API raises an error message “MES_LIBRE”.
If (the detail control is not active for the EE type (LTEA.control = ’0’) OR the API is called by a fixed post (postefixe = ‘O’)) AND there is a DESADV (LRBE.flgdesadv = 'O').
Validate the not controlled movements (sensmvt = E, typmvt= E and statut = 3) associated to the container OR to one of the containers included in that container.
For each movement call the function gnc_valid_mvtstk, as so to validate the movement.
If the execution of the function is not successful, the API returns an error code 0.
The stock object is passed in step ‘SSCC control OK’ (lobjstk.phase = ‘1’).
If the update of the stock object is not successful, the API returns an error code 0 and an error message “ERR_MODIF”.
Call the function gnc_declare_contenant_expediable, as so to declare the stock object as “can be shipped” (LOBJSTK.etat = 3) OR uncontrollable (LOBJSTK.phase = 3) OR waiting for validation on the fixed post (LOBJSTK.etat = 2).
(If the detail control is not active for the EE type (LTEA.control = ’0’) OR the API is called by a fixed post (postefixe = ‘O’)) AND there is a DESADV LRBE.flgdesadv != 'O'.
The stock object is passed in step ‘SSCC control OK’ (lobjstk.phase = ‘1’).
If the update of the stock object is not successful, the API returns an error code 0 and an error message “ERR_MODIF”.
Found the number of the stock object which are neither in the step ‘SSCC control OK’ (lobjstk.phase < ‘1’) nor declared as missing (lobjstk.etat = ‘2’).
(IF the API is called by a fixed post AND there is no stock objects which are not in step ‘SSCC control OK’) OR (IF the API is not called by a fixed post AND there is no stock objects which are not in step ‘SSCC control OK’ AND there is no stock objects declared as missing).
For each stock object form the EE group in step ‘SSCC scanned OK’ (LOBJSTK.phase = ‘1’ OR LOBJSTK.phase = ‘2’ OR LOBJSTK.phase = ‘3’).
For each addressed (lmvtstk.statut = ‘3’) EE movement (LMVTSTK.sensmvt = ‘E’, LMVTSTK.typmvt = ‘E’), which parent stock object ID (LMVTSTK.idobjpere) corresponds for a stock object ID form the previous cycle.
Call the function gnc_valid_mvtstk, as so to validate the movement.
If the execution of the function is not successful, the API returns an error code 0.
Call the function gnc_declare_contenant_expediable, as so to declare the stock object as “can be shipped” (LOBJSTK.etat = 3) OR uncontrollable (LOBJSTK.phase = 3) OR waiting for validation on the fixed post (LOBJSTK.etat = 2).
If the execution of the function is not successful, the API returns an error code 0.
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| Typdep | Depot type | Char(3) | O |
| sigdep | Depot ID | Char(12) | O |
| Idobj | Stock object ID | Char(18) | O |
| Incontrolable |
Flag which indicates whether the stock object is uncontrollable ‘O’ = Yes; ‘N’ = No; By default: No |
Char(1) | N |
| Postefixe |
Flag which indicates whether the API is called by a fixed post ‘O’ = Yes; ‘N’ = No; By default: No |
Char(1) | N |
Aucun.