API RF FERMEUE

  Version ACE : 1.3

Package : Standard

Nom de la gnc : gnc_rf_ferme_ue

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

The API closes an expedition unit and executes a complete transfer to the quay.

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
  Read the depot (TIE table) for the operator.
 

Read the parcel data (LCOL table) for the expedition unit with the “idue” input parameter (idobjcol = idue).

If the parcel is already closed (lcol.statut > ‘5’), the API returns the error code 25.

 

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.

Call the function gnc_colis_modif_statut, as so to close the parcel which corresponds to the expedition unit.

If the execution of the function is not successful, the API returns the error code 16.

Read the expedition tour data (LTRN), with (idtrn = lcol.idtrn for the parcel which corresponds to the expedition unit ).

Call the function gnc_gener_mvt_transfert, as so to execute a complete transfer of the expedition unit to the quay (ltrn.quai).

Otherwise, the API returns the error code 44.

Cas d'erreur

CODE DESCRIPTION
16 The execution of the gnc_colis_modif_statut function is not successful.
25 The parcel which corresponds to the expedition unit is already closed.
44 The expedition unit is empty.

Paramètres en entrée

NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
idue Char   18 O Expedition unit ID.

Paramètres en sortie

NOM DU PARAMÈTRE TYPE FORMAT TAILLE REMARQUE
Aucun.