API RF PLAN_PAL

  Version ACE : 5.0-00

Package : Standard

Nom de la gnc : gnc_rf_plan_pal

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

Cette API permet de rechercher un plan de palettisation.

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 logistic variant data (PRL) with the input parameters ‘typdep’, ‘sigdep’, ‘codpro’, ‘cnttyp’ and ‘cntcod’ and codva1=’00’

If the logistic variant exists and stock level code is equal to 5 (prl.codlnst= '5').

The API fills up the output parameters and return 1.

If the logistic variant data does not exist or stock level code is not equal to 5 (prl.codlnst<> '5')

Read the container reference data (LCNTREF) with the input parameters ‘typdep’, ‘sigdep’, ‘cnttyp’ and ‘cntcod’.

If the container reference exists.

Read the logistic variants data with the input parameters ‘typdep’, ‘sigdep’, ‘codpro’ and codva1 = ‘00’.

For each found logistic variant.

If stock level code is equal to 5 (codlnst='5') and it is default container (prl.cntdft='O') fills up the output parameters and the API returns 1.

If the container reference does not exist.

The API fills an empty string in the output parameters list and returns an error code 0.

Cas d’erreurs

CODE PARAMÈTRES DESCRIPTION
0   The container reference does not exist.

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
typdep Depot type Char(3) O
sigdep Depot ID Char(12) O
codpro Product code Char(18) O
cnttyp container type Char(2) O
cntcod Container code Char(2) O

Paramètres en sortie

NOM DESCRIPTION FORMAT
ParamOut1 Container type level 4 (cnttyp4) Char(2)
ParamOut2 Container code level 4 (cntcod4) Char(2)
ParamOut3 Container type level 3 (cnttyp3) Char(2)
ParamOut4 Container code level 3 (cntcod3) Char(2)
ParamOut5 Container type level 2 (cnttyp2) Char(2)
ParamOut6 Container code level 2 (cntcod2) Char(2)
ParamOut7 Container type level 1 (cnttyp1) Char(2)
ParamOut8 Container code level 1 (cntcod1) Char(2)
ParamOut9 CU quantity level 5 (qteunt5) Number
ParamOut10 CU quantity level 4 (qteunt4) Number
ParamOut11 CU quantity level 3 (qteunt3) Number
ParamOut12 CU quantity level 2 (qteunt2) Number