| API / APIs Radiofréquence | |
| Version ACE : 5.0-00 | |
|
Package : Standard Sous-programme Basic : Ctr_Allotie |
Fonctionnalité :Réception |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de contrôler la réception d’une charge allotie.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| RAS. |
Prototype de la fonction Basic
| Ctr_Allotie (numero_module, typdep, sigdep, numrec, idobjpere, natstk, cnttyp, cntcod, codemb, numligrec) |
Messages en entrée
| CTR_ALLOTI~typdep~sigdep~numrec~idobjpere~ |
Messages en sortie
| retour~natstk~cnttyp~cntcod~codemb~numligrec |
Valeurs restituées par l’API
| VALEUR | REMARQUE |
| 1 | La charge existe et n’est pas encore réceptionnée. |
| 2 | La charge allotie a déjà été réceptionnée. |
| 3 | L’identifiant de la charge allotie est inconnu. |
| ETAPE | DESCRIPTION DU PROCESSUS |
| 1 | Identification de la ligne de réception concernée par la charge. |
| 2 | Identification du mouvement de stock d’entrée concerné par la charge. |
| 3 |
Contrôle du statut du mouvement d’entrée. S’il est égal à « 9 », la charge est déjà réceptionnée. |
| Détail : |
The API retour code is set to 3. For each reception line data (table LREL) read with the input parameters (typdep, sigdep, numrec). If the input parameter ( idobjpere ) is equal to current reception line parent stock object ID (lrel.idobjpere) For each reception stock movement (table LMVTSTK ) read with current reception third-party (lrel.typtie, lrel.sigtie) and current reception number (lrel.numrec) and current reception line number (lrel.numligrec). If the reception line number for the stock movement is different from the reception line number for the reception line (lmvtstk.numligrec != lrel.numligrec). Read the next stock movement. If the stock movement has an entry type (lmvtstk.typmvt = ‘E’ and lmvtstk.sensmvt = ‘E’). If the stock movement is validated (lmvtstk.status = 9). The API retour code is set to 2. Otherwise. The stock movement is considered as found. The output parameters are filled. If a reception stock movement is not found, the API returns the retour code. |
Erreurs possibles
| CAUSE | EFFET |
| La charge est déjà réceptionnée | Code retour 2, message « Palette allotie déjà réceptionnée ». |
| L’identifiant ne correspond pas à une charge | Code retour 3, message « Palette allotie attendue » |
Exemple(s) d’utilisation
| Retour_Ctr_Allotie = Ctr_Allotie (numero_module, "DEP", w_sigdep, idreception, idobj1, natstk, w_cnttyp, w_cntcod, w_codemb, w_numligrec) |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| Typdep | CHAR | 3 | O | Type du dépôt | |
| Sigdep | CHAR | 12 | O | Sigle du dépôt | |
| Numrec | CHAR | 10 | O | Identifiant de la réception | |
| idobjpere | CHAR | 18 | O | Identifiant de l'object de stock parent |