API RF CREE_SUP

Version ACE : 1.3  

Package : Standard

Nom de la gnc : gnc_rf_cree_support

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

The API creates an logistic stock support.

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Détail de l'API

Read the depot for the operator.

If the stock support identifier is not presented, the API generates a new one (gnc_numero_idobj).

Read the container information (LCNTREF) with the input container type (cnttyp = cnttyp_sup) and container code (cntcod = cntcod_sup).

If the container does not exist the API returns the error code 0 and the message ELT_PASTRO.

Update the container level stock with the container information (codlncn).

Update the stock object address of location (Lcodmag) and logistic store identifier (adremp) with the input logistic store identifier.

Read the logistic store (LMAG) and collect the logistic store type (typmag).

Read the type of container (LCNTTYP) and update the product code of the stock object (codpro).

Create the definition of the stock object.

Insert the data in the LOBJSTK table.

If the insertion is not successful, the API returns the error code 46.

Cas d'erreur

CODE PARAMÈTRES DESCRIPTION
0 « ELT_PASTRO », « lcntref », cnttyp_sup, cntcod_sup Reference container not found
46   The stock object already exists

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
idobjsup Object identifier of the logistic stock support Char(18) N
cnttyp_sup Container type Char(2) O
cntcod_sup Container code Char(2) O
lcodmag Logistic store identifier Char(3) O

Paramètres en sortie

NOM DU PARAMÈTRE FORMAT OBL O/N REMARQUE
Aucun.