API RF VALPALPROP

  Version ACE : 1.3

Package : Standard

Nom de la gnc : gnc_rf_valide_palette_prod

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

The API returns the standard palettization if the reception is normal or the palettization associated with the entry movement if the reception is simple.

API imbriquées : VALPRO -

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

RAS.

Paramétrage (PPE)

LRECRF -

Cas d'erreur

CODE DESCRIPTION
2 The stock movement does not exist.
3 The stock movement is not addressed or the movement is not of “EE” type.
50 There is no stock movement for the scanned stock object.
50 Product does not exist.
100 Article reception control is not authorized.
101 Stock level code problem.
101 N1 field for the parameter ‘LRECRF’ is different from zero.
102 Stock level code problem.
103 The reception line is not found.
103 The “EE” stock movement is not found.
104 The depot stock is not found.
105 The product is not found using DUN14 code.
106 The stock movement is not found.
107 There is more than one reception line found.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
Détail :

Read the depot (TIE table) for the operator.

Read the first movement (LMVTSTK table), which is an ‘input’ movement (sensmvt = ’E’, typmvt = ’E’) and corresponds to the input parameter ‘codpro’ (idobj = codpro).

If the corresponding movement does not exist, the API writes an empty string in output parameter’s list and returns an error code 2.

If the movement is not addressed (statut != ‘3’) or the movement type is not entry ( typmvt != ‘E’) or the movement direction is not entry( sensmvt != ‘E’ ), the API writes an empty string in output parameters list and returns an error code 3.

Call the API gnc_rf_produit_valide (VALPRO), as so to obtain the corresponding palettization.

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
codpro Product code (codpro or gencod or idobj) Char(18) O
type Type (‘H’ -for homogeneous, ‘C’ – for heterogeneous) Char (1) O
recsimple

Simple reception flag.

1=reception simple

Char (1) O
scan Scan (P-product, O- object) Char(1) O
numrec Received number Char(10) O
idmvt Movement identifier Char(10) O

Paramètres en sortie

NOM DESCRIPTION FORMAT
ParamOut1 Received number (numrec) Char(10)
ParamOut2 Container numbers (LMVTSTK.l_nbrcnt) Number
ParamOut3 Container type (PRL.codva2) Char(2)
ParamOut4 Container code (prl.cntcod) Char(2)
ParamOut5 Container numbers level 1 (prl.nbinf) Number
ParamOut6 Container type level 1 (prl.codva2_inf) Char(2)
ParamOut7 Container code level 1 (prl.cntcod_inf) Char(2)
ParamOut8 Product code (PRO.codpro) Char(9)
ParamOut9 Movement identifier (lmvtstk.idmvt) Char(9)
ParamOut10 Lot reference (OST.reflot) Char(30)
ParamOut11 Use-by-date (ost.datlc) Char(8)
ParamOut12 Type of stock (lmvtstk.natstk) Char(2)
ParamOut13 Level 3 and 4 from the palettization plan (prl.nbinf, prl.codva2_inf, prl.cntcod_inf for the both level) Char(100)
ParamOut14 Product name (pro.nompro) + Stock monitoring type (pro.suistk) + Planned quantity (leal.qteprv) + Container type (leal.cnttyp) + Container code (leal.cntcod) + Reception line number (lrel.numligrec) + Approval (ost.valzn8 or parameterized) + Stock level code (1/2/3/4/5). Char(62)
ParamOut15

Three consecutive flags, each 1 character long:

Entry ‘use-by-date’ flag (0,1), entry ‘agrement’ (not in glossary) flag (O,N), entry weight flag (O,N).

Char(3)
ParamOut16 Quantity of CU (lmvtstk.qteunt) Number
ParamOut17 Remains to be delivered on the reception line. Number
ParamOut18 Part 1 of the product long label (pro.design1) + Part 2 of the product long label (pro.design2) + Palettization plan flag ('O'). Char(81)