API RF SCE_GP_012

  Version ACE : 1.3

Package : Standard

Nom de la gnc : gnc_sce_gp_012

Fonctionnalité : Poste de contrôle
Schémas d’entrée et de sortie : voir en fin de document.

The API starts the preparation of group orders for delivery.

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
Détail :

Read the wave header data (LVACE), which corresponds to the input parameters (‘typdep’, ‘sigdep’ and ‘idvac’).

If the wave header does not exist, the API returns an error message "ELT_PASTRO" and an error code 0.

If the status of the wave header is pending or in picking (lvace.statut<3).

Call the function gnc_lanc_vacation, as so to start the wave picking.

If the function does not succeed, the API returns an error code 0.

Else.

If the deconsolidation area input parameter is not empty (zonecl !=’’):

Read the deconsolidation picking list data (LOP) for the wave with the input parameters (‘typdep’, ‘sigdep’ and ‘idvac’) and (typmvt=’Z’).

If there is no deconsolidation picking list for the wave, The API returns an error message “L_NONOPZ” and an error code 0.

For each deconsolidation picking list found, check whether there is at least one validated (statut=9) deconsolidation picking list of type ‘Z’ for which the deconsolidation (lop.zonecl) area corresponds to the input parameter ‘zonecl’.

If there is no such picking list, the API returns an error message "L_OPZONECL" and an error code 0.

Call the function gnc_lanc_vacation_2phase, as so to start the wave picking ‘step 2’.

If the function does not succeed, the API returns an error code 0.

Cas d’erreurs

CODE PARAMÈTRES DESCRIPTION
0/ELT_PASTRO lvace.typtie, lvace.sigtie, lvace.idvac The wave data does not exist.
0/ L_NONOPZ lvace.idvac Deconsolidation picking list not found.
0/L_OPZONECL zonecl There is no validated deconsolidation picking list
0   Execution of the function gnc_lanc_vacation OR gnc_lanc_vacation_2phase is not successful.

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
typdep Type dépôt Char(3) O
sigdep Sigle dépôt Char(12) O
idvac Numéro de vacation Long O
zonecl Zone d'éclatement Char(4) N

Paramètres en sortie

NOM DU PARAMÈTRE TYPE FORMAT TAILLE REMARQUE
Aucun.