| API / APIs Radiofréquence | |
| Version ACE : 1.4 | |
|
Package : Standard Sous-programme Basic : gnc_sce_ft_valobjtr_egx |
Fonctionnalité :SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API passes the received container in step ‘1’ (SSCC control done) and calls the function gnc_valide_detail_aveugle, to start the ‘bind’ validation.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| LGESTR - |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0/ "ELT_PASTRO" | lobjstk , lobjstk.typtie, w_lobjstk.sigtie, w_lobjstk.idobj | The stock object is not found. |
| 0/"RFFLT01001" | “A2” parameter field of “LGESTR ” is empty. | |
| 0/"ELT_PASTRO" | lcfgrec, lcfgrec.typtie, lcfgrec.sigtie | The reading of the configuration table of the reception management is not successful. |
| 0/"ELT_PASTRO" | Leae, lobjstk.typtie, lobjstk.sigtie, lobjstk.numea | EE header data does not exist. |
| 0/"ELT_PASTRO" | Ltea, leae.typtie, leae.sigtie, leae.typeea | EE type does not exist. |
| 0/"ERR_MODIF" | lobjstk , lobjstk.typtie, w_lobjstk.sigtie, w_lobjstk.idobj | The stock object is not successfully updated. |
Read the “LGESTR” parameter.
Read the stock object data (LOBJSTK) with the input parameters (‘typtie’, ‘sigtie’ and ‘idobj’).
If the stock object does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
If the parent stock object ID parameter is presented (idobjpere not empty).
If the parameter field “A2” from the “LGESTR” parameter is presented.
Store the value of the parent stock object ID for the stock object received as parameter (LOBJSTK.idobjpere) in the parameterized field referred by the “A2” parameter field.
Read the parcel data (LCOL) which corresponds to the stock object ID, with the input parameters (‘typtie’, ‘sigtie’ and idobcol = ‘idobj’).
Update the expedition unit for the parcel with an empty string (LCOL.idue="").
Read the parcel data (LCOL) which corresponds to the parent object ID with the input parameters (‘typtie’, ‘sigtie’ and idue = ‘idobjpere’).
If no parcel data corresponding to the parent object ID is found (the expedition unit is empty).
Read the parcel data (LCOL) which corresponds to the parent object ID, with the input parameters (‘typtie’, ‘sigtie’ and idobjcol = ‘idobjpere’).
Delete parcel data if found.
Update the stock object received as parameter.
Delete the parent stock object data (lobjstk) which correspond to the input parameters (‘typtie’, ‘sigtie’ and ‘idobjpere’).
Read again the received stock object data (LOBJSTK).
Otherwise, the API returns an error code 0 and an error message “RFFLT01001”.
Update the weight (LOBJSTK.poids) and the real weight (LOBJSTK.poidsreel) for the stock object with the received parameter ‘poids’.
Read the configuration table of the reception management (LCFGREC) with the input parameters (‘typtie’, ‘sigtie’).
If the reading is not successful, the API returns an error code 0 and an error message “ELT_PASTRO”.
Read the EE header data (LEAE) with the parameters (‘typtie’, ‘sigtie’ and ‘lobstk.numea’).
If the EE header does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
Read the EE type (LTEA) with the parameters (‘typtie’, ‘sigtie’ and ‘leae.typeea’).
If the EE type does not exist, the API returns an error code 0 and an error message “ELT_PASTRO”.
If the dispute flag is active (litige = ‘O’) AND the validation of the fixed post is active (LCFGREC.valpf = ‘1’) and the detail control is not necessary (LTEA.control != ‘1’).
The stock object is declared as waiting for fixed post control. (LOBJSTK.etat = ‘2’)
If the update of the stock object is not successful, the API returns an error code 0 and an error message “ERR_MODIF”.
If the stock object is not declared as waiting for fixed post control (LOBJSTK.etat = ‘2’).
Call the function gnc_valide_detail_aveugle, as so to start the ‘bind’ validation.
Read the parcel data (LCOL) for the received stock object, with the input parameters (‘typtie’, ‘sigtie’ and idobjcol = ‘idobj’).
Update the real weight for the parcel (LCOL.poids = poids).
| CODE | DESCRIPTION | TYPE | OBLIGATOIRE |
| Typtie | Third-party type | Char(3) | O |
| sigtie | Third-party ID | Char(12) | O |
| Idobj | Stock object ID | Char(18) | O |
| Postefixe |
Flag which indicates whether the API is called by a fixed post ‘O’ = Yes; ‘N’ = No; By default: No |
Char(1) | N |
| litige |
Dispute flag ‘O’ = Yes; ‘N’ = No; |
Char(1) | N |
| Poids | Weight | Number | O |
| idobjpere | Parent stock object ID | Char(18) | N |
Aucun.