API RF SCE_GE_002

  Version ACE : 1.4

Package : Standard

Sous-programme Basic : gnc_sce_ge_002

Fonctionnalité :SCE Mobile
Schémas d’entrée et de sortie : voir en fin de document.

Cette API permet de générer, dans une tournée d'expédition, les mouvements de transferts non validés et non présentés sur le quai d'expédition (uniquement les colis associés à la tournée d'expédition).

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Cas d'erreur

CODE PARAMÈTRE DESCRIPTION
0/ELT_PASTRO Ltrn, ltrn.typtie, ltrn.sigtie, ltrn.idtrn The expedition tour does not exist.
0   The execution of the function gnc_gener_mvt_transfert OR gnc_valid_mvtstk is not successful.

Détail de l'API

Read the expedition tour data (LTRN), which corresponds to the input parameters (‘typdep’, ‘sigdep’, ‘idtrn’).

If the corresponding data does not exist, the API returns an error message “ELT_PASTRO” and an error code 0.

Read the validated parcels from the expedition tour, which are not presented on the quay.

(Execute a reading cycle with the following join between ‘lcol’ and ‘lobjstk’.

LCOL (codsoc, typdep, sigdep, idtrn, statut>=4 and <= 6)

LOBJSTK (codsoc, ltrn.typtie, ltrn.sigtie, idobj=lcol.idobj , idobjpere='' lcodmag<> ltrn.quai) )

For each found data.

Read the corresponding stock object data (lobjstk) with the parameters (typdep, sigdep and lobjstk.idobj received from the reading of the validated parcels).

If the stock object is in shift in progress status (LOBJSTK.flgencdpl=‘1’).

Read the entry (LMVTSTK.sensmvt=’E’) addressed (LMVTSTK.statut=’3’) movements for transfer (LMVTSTK.typmvt = ‘T’) which corresponds to the stock object (LMVTSTK.idobj = LOBJSTK.idobj).

For each found movement, call the function gnc_valid_mvtstk, as so to delete the movement.

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

Call the function gnc_gener_mvt_transfert, as so to generate the transfer movement.

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

Paramètres en entrée

NOM DU PARAMÈTRE FORMAT OBL O/N REMARQUE
typdep Char(3) O Depot type
sigdep Char(12) O Depot ID
idtrn Number O Expedition tour ID

Paramètres en sortie

Aucun.