| Version ACE : 5.0-00 | |
|
Package : Standard Sous-programme Basic : Reappro_Picking |
Fonctionnalité :Préparation |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de lancer une demande de réapprovisionnement d’un emplacement picking, dans le cadre d’un mouvement de préparation. Elle permet également de modifier le statut prioritaire d'une mission déjà associée à une adresse d'emplacement.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
Prototype de la fonction Basic
| Reappro_Picking (numero_module, typdep, sigdep, lcodmag, adremp, idmvt) |
Messages en entrée
| REAPPRO~typdep~sigdep~lcodmag~adremp~idmvt~ |
Messages en sortie
| Retour~ |
Valeurs restituées par l’API
| VALEUR | REMARQUE |
| 1 | Il existe déjà un mouvement de réapprovisionnement sur l’emplacement picking. |
| 2 | La demande de réapprovisionnement a échouée. |
| 3 | Demande de réapprovisionnement réussie. |
| 4 | La mission de réapprovisionnement est gelée. |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
| 1 | Demande de réapprovisionnement. |
| Détail : |
Call the function gnc_reappro_picking_rf_logis, as so to execute the replenishment of the slot address. Store the return code of the function. If the replenishment is successful (the function gnc_reappro_picking_rf_logis returns a code 3). The modifications in the database are confirmed (commit the transaction). Otherwise. The modifications in the database are deleted (rollback the transaction). Open a new database transaction (gnc_deb_trans). For each RF mission (LMIS table) read with the input parameters ‘typdep’ and ‘sigdep’, destination logistic store code (codmagdst) = the input parameter ‘lcodmag’, destination slot address (adrempdst) = the input parameter ‘adremp’, in status ‘waiting’ (statut = ‘1’) or ‘blocked’ (statut = ‘2’) and with activity type ‘movement’ (ltypact = ‘3’) or (with activity type ‘polyvalent mission’ (ltypact = ‘14’) and order type ‘replenishment’ (modord = ‘R’)). If the RF mission found can be blocked for modification. Store the current RF mission data, as so to keep the last found RF mission in case of non existence of feasible RF mission. (If there is no feasible RF mission, the saved mission will be considered as the mission found.) Call the function gnc_rf_controle_faisabilite_mission, as so to control whether the current RF mission is feasible. If the current RF mission is not feasible. Read the next RF mission. Otherwise. Read the next RF mission. If there is a feasible RF mission, it is considered as found. If the replenishment RF mission found already exists (lmis.idmission != ‘0’). If the parameter ‘GESMIS’ is active. Modify the emergency status for the RF mission (lmis.urgence = parameter field N5 from the parameter ‘GESMIS’). If the replenishment of the slot address is successful (the return code of the function gnc_reappro_picking_rf_logis is 3). Add an incident code indicating that the replenishment is generated. If the parameter ‘LRF03’ is active. If the parameter field A1 is not empty. Call the function gnc_linc_creer (with the found A1 parameter value), as so to add an incident for the movement passed as a parameter ‘idmvt’. If the return code of the function gnc_reappro_picking_rf_logis is 4 Add an incident code indicating that the picking replenishment is being blocked. If the parameter ‘LRF03’ is actve. If the parameter field A2 is not empty. Call the function gnc_linc_creer (with the found A2 parameter value), as so to add an incident for the movement passed as a parameter ‘idmvt’. |
Erreurs possibles
| CAUSE | EFFET |
| La demande de réapprovisionnement a échoué. | Code retour 2, message « Réappro non généré ». |
| La mission de réapprovisionnement est gelée. | Code retour 4, message « réappro gelé » |
Cas d’erreur
| CODE | DESCRIPTION |
|---|---|
| 1 | There is already a replenishment movement in the picking. |
| 2 | The new replenishment has been failed. |
| 3 | The new replenishment has been created. |
Exemple(s) d’utilisation
| W_retour = Reappro_Picking (numero_module, p_typdep, p_sigdep, p_lcodmag, p_adremp, p_idmvt) |
| 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. | |
| lcodmag | CHAR | 3 | O | Code magasin. | |
| adremp | CHAR | 10 | O | Code emplacement picking. | |
| idmvt | CHAR | 10 | O | Identifiant du mouvement de préparation. |
Aucun.