| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_rf_verif_colis_palettis |
Fonctionnalité : Préparation |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API palletizes a parcel (preparation unit) into an expedition unit if all palletization constraints are fulfilled and if the parcel is not already in an expedition unit. If the parcel is already in a different expedition unit, the API returns that expedition unit.
API imbriquées : aucune.
| RAS. |
| RAS. |
| ETAPE | DESCRIPTION DU PROCESSUS |
| Détail : |
Read the depot (TIE table) for the operator. Read the parcel data (LCOL table) with the input parameter (idobjcol). If the parcel does not exist, the API returns the error code 26. If the parcel is not pure (lcol.flgue != ‘0’), the API returns the error code 27. Else if the parcel is temporary (lcol.flgtemp != ‘0’), the API returns the error code 28. Else if the parcel is not validated (lcol.statut != ‘5’), the API returns the error code 29. Else if the parcel is in an expedition unit (lcol.idue is not empty). Read the parcel data (lcol table) for the expedition unit with (idobjcol = lcol.idue). If the parcel data for the expedition unit is not validated (lcol.statut != ‘5’), the API returns the error code 30. Read the first preparation unit (lcol table) for the expedition unit with (idue = idue input parameter). If there is a preparation unit in the expedition unit. /* Check whether the parcel has the same constrains as the preparation unit found. */ Read the delivery order header data (LOLE) for the parcel (idol = lcol.idol for the parcel). If the delivery order header does not exist, the API returns the error code 31. Read the delivery order header data (lole) for the first preparation unit in the expedition unit (idol = lcol.idol for the first preparation unit in the expedition unit). If the delivery order header of the first preparation unit in the expedition unit does not exist, the API returns the error code 32. If the palettization (lole.palettis) and the loading (lole.chargement) are not the same for the first preparation unit delivery order header and for the parcel delivery order header, the API returns the error code 33. If the expedition tour identifier (lole.idtrn) is not the same for the first preparation unit delivery order header and for the parcel delivery order header, the API returns the error code 34. If the palettization must be mono DN (lole.palettis = ‘1’). If the delivery note (lole.idbl) is not the same for the first preparation unit delivery order header and for the parcel delivery order header, the API returns the error code 35. Else if the palettization must be mono addressee (lole.palettis = ‘2’). If the transport receipt is not the same for the first preparation unit delivery order header and for the parcel delivery order header (lole.typliv OR lole.typadr OR lole.sigadr OR lole.numadr), the API returns the error code 36. Else if the palettization must be mono postcode (lole.palettis = ‘3’). If the postcode is not the same for the first preparation unit delivery order header and for the parcel delivery order header (lole.codpos_10), the API returns the error code 37. Else if the palettization must be mono department (lole.palettis = ‘4’). If the department is not the same for the first preparation unit delivery order header and for the parcel delivery order header (first 2 characters of lole.codpos_10), the API returns the error code 38. Else. The API returns the error code 39. Read the logistic stock object data (LOBJSTK) for the parcel with lcol.idobj. If the logistic stock object for the parcel is found. Call the function gnc_stkobj_dispo, as so to check whether the parcel is available. If the parcel is not available, the API returns the error code 40. If the parcel is not in an expedition unit (lcol.idue is empty). Call the function gnc_colis_modif_statut, as so to execute the palettization. If the palettization is not successful, the API returns an error code 39. Otherwise. If the parcel is already in the expedition unit (lcol.idue = input parameter idue). The API returns the error code 41. Otherwise. The expedition unit (lcol.idue) is copied in the output parameter ParamOut1. The API returns the error code 42. |
| CODE | DESCRIPTION |
|---|---|
| 26 | The parcel does not exist. |
| 27 | The parcel is not pure. |
| 28 | The parcel is temporary. |
| 29 | The parcel is not validated. |
| 30 | The parcel for the expedition unit is not validated. |
| 31 | The delivery order header for the parcel does not exist. |
| 32 | The delivery order header for the first preparation unit of the expedition unit does not exist. |
| 33 | The palettization and loading constraints are not fulfilled. |
| 34 | The parcel is not assigned to the correct expedition tour. |
| 35 | The delivery note constraint is not fulfilled. |
| 36 | The transport receipt constraint is not fulfilled. |
| 37 | The postcode constraint is not fulfilled. |
| 38 | The department constraint is not fulfilled. |
| 39 | Palettization problem. |
| 40 | The parcel is not available. |
| 41 | The parcel is already in the expedition unit. |
| 42 | The parcel is already in a different expedition unit. |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| idue | CHAR | 18 | O | Expedition unit ID. | |
| idobjcol | CHAR | 18 | O | Logistic stock parcel ID. |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | REMARQUE |
| ParamOut1 | Char | 18 | Current expedition unit for the parcel, if different from the idue parameter. (lcol.idue) |