API RF RAZ_MIS

  Version ACE : 5.0-00

Package : Standard

Sous-programme Basic : Raz_Mission

Nom de la gnc : gnc_rf_raz_cnx_mission

Fonctionnalité :Général
Schémas d’entrée et de sortie : voir en fin de document.

Cette API permet de geler une mission abandonnée par un opérateur.

API imbriquées : aucune.

Contraintes et limites de fonctionnement (hors périmètre)

RAS.

Paramétrage (PPE)

RAS.

Prototype de la fonction Basic

Raz_Mission (numero_module, idmission, idmotif)

Messages en entrée

RAZ_MIS~idmission~idmotif~

Messages en sortie

Retour~

Valeurs restituées par l’API

VALEUR REMARQUE
1 La mission abandonnée par l’opérateur a bien été gelée.
0 L’API n’a pu geler la mission abandonnée par l’opérateur.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
1 Gel de la mission choisie.
Détail :

If the incident motif ID (idmotif input parameter) is not filled (idmotif = ‘0’), it is initialized with ‘1’.

Read the depot (TIE table) for the operator.

Read the RF mission data (LMIS table) with the input parameter (idmission).

If the RF mission is not on an activity of shipping bay evacuation (lmis.ltypact != ‘10’) OR the RF mission is not on a stock object (lmis.idobj is empty).

Call the function gnc_rf_gel_mission with the incident motif ID (idmotif input parameter), as so to block the RF mission. (lmis.statut = ‘2’).

If the concerned object ID is filled (idordre input parameter > ‘0’).

If the input object type is ‘Picking list’. (mode input parameter = ‘P’).

Read the picking list data (LOP) with the input ‘idordre’ parameter.

If the picking list is found.

Modify the status of the picking list to ‘waiting’ (lop.statut = ‘1’).

If the input object type is ‘ Replenishment order ’. (mode input parameter = ‘R’).

Read the replenishment order data (LOR ) with the input ‘idordre’ parameter.

If the replenishment order is found.

Modify the status of the replenishment order to ‘waiting’ (lor.statut = ‘1’).

If the input object type is ‘Transfer order’. (mode input parameter = ‘T’).

Read the transfer order data (LOTR ) with the input ‘idordre’ parameter.

If the transfer order is found.

Modify the status of the transfer order to ‘waiting’ (lotr.statut = ‘1’).

Exemple(s) d’utilisation

W_ret = Raz_Mission (numero_module, idmission, "1")

Paramètres en entrée

NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
idmission LONG     O Mission ID
idmotif LONG     O Incident motif ID
idordre LONG      

Concerned object ID for the RF mission:

  • Picking List ID (for mode = ‘P’)
  • Replenishment order ID (for mode = ‘R’)
  • Transfer order ID (for mode = ‘T’)
mode CHAR   1  

Concerned object type for the RF mission:

  • ‘P’ = Picking List
  • ‘R’ = Replenishment order
  • ‘T’ = Transfer order

Paramètres en sortie

Aucun.