API RF VLDMVTOP_X

  Version ACE : 1.4

Package : Standard

Sous-programme Basic : gnc_rf_valide_mouvements_op_egx

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

This API validates a stock movement and change the urgency of the corresponding RF mission if found.

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Cas d'erreur

CODE DESCRIPTION
0 / RFPRE01017 The execution of the function gnc_rf_valid_mvt_op is not successful.
0 / RFPRE01009 The slot address is not found.

Détail de l'API

Call the function gnc_rf_valid_mvt_op to validate the stock movement.

If any error occurs during the validation, the API returns the error code 0 and the error message RFPRE01017.

Read the depot (TIE table) for the operator.

Read the slot address data (EMP) with the depot ID for the current operator (sigdep = TIE.sigdep) and the input slot address (adremp).

If the slot address object is not found, the API returns the error code 0 and the error message RFPRE01009 .

Read the logistic variant (PRL) with (typtie = typtie of the current operator, sigtie = EMP.sigdep, codpro = emp.codpro, codva1 = ’00’, codva2 = EMP.cnttyp, cntcod = emp.cntcod).

If the logistic variant object is found, call the function gnc_mvt_mapping to map the standard palettization.

Calculate the stock quantity.

(If the stock level code for the logistic variant is presented (codlnst != '')

Take the quantity for the corresponding level.

Otherwise take 0.

The stock quantity is equal to slot address real occupation (EMP.occreel) multiply by the quantity taken.

If the calculated stock quantity is less than the replenishment quantity of the slot address (EMP.qterea)

Call the function gnc_reappro_picking_rf_logis to manage the replenishment of the slot address.

If the function returns the error code 3 (the new replenishment succeeds).

Update the urgency of the corresponding RF feasible missions to 99 (the maximum value).

(Read the input RF mission data (LMIS) with current operator type (typtie), current operator’s depot ID(TIE.sigdep), activity type equal to ‘movement’ (ltypact = 3), destination logistic store code equals to the input logistic store code (codmagdst = codmag), destination slot address equals to the input slot address (adrempdst = adremp) and the status ‘waiting’ or ‘blocked’ (statut <= 2) ordered ascending by stock movement ID’s (order by idmvt ASC).

For each RF mission found.

If the mission is feasible (Call the function gnc_rf_controle_faisabilite_mission to execute the control).

Update the urgency to 99 (urgence = 99) of the current mission object.

Stop the reading of missions.

Otherwise

Read the next mission object.

Return the code 1.

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
idop Picking list ID. Number O
ligord Picking line ID. Number O
idmvt Stock movement ID. Number O
idobjsup Object identifier of the logistic stock support. Char (18) O
poids Weight. Double N
qteunt Quantity of CU. Number N
codmag Logistic store code. Char(3) O
adremp Slot address. Char(10) O
mode_prepa Preparation mode. Char(1) N
reflot Lot reference. Char(30) N
flreliquat Backorder flag. Char(1) N

Paramètres en sortie

NOM DESCRIPTION FORMAT
ParamOut1 Circulation lane ID (LMVTSTK.codallcir). Char(8)
ParamOut2 Logistic store code (LMVTSTK.lcodmag). Char(3)
ParamOut3 Slot address (LMVTSTK.adremp). Char(10)
ParamOut4 Product code(LMVTSTK.codpro). Char (16)
ParamOut5 Stock object ID (idobj_mvt). Char(18)
ParamOut6 Container numbers (LMVTSTK.l_nbrcnt). Number
ParamOut7 Container type (LMVTSTK.cnttyp). Char(2)
ParamOut8 Container code (LMVTSTK.cntcod). Char(2)
ParamOut9 Container numbers level 1 (l_nbrcnt1). Number
ParamOut10 Container type level 1 (cnttyp1). Char(2)
ParamOut11 Container code level 1 (cntcod1). Char(2)
ParamOut12 Container numbers level 2 (l_nbrcnt2). Number
ParamOut13 Container type level 2 (cnttyp2). Char(2)
ParamOut14 Container code level 2 (cntcod2). Char(2)
ParamOut15 Movement identifier (idmvt). Char(10)
ParamOut16 “EAN” or “Id Objet” Char(8)
ParamOut17 Picking list ID – LMVTSTK.ligord Number
ParamOut18 Logistic stock parcel ID - LMVTSTK.idobjcol Char(18)
ParamOut19

Parcel detail/Parcel ‘in the state’ flag.

0 = Parcel detail

1 = Parcel ‘in the state’

Char(1)
ParamOut20 Backorder stock movement ID (idmvt_reliquat). Char(9)