API RF CTRL_MAG

Version ACE : 5.0-00  

Package : Standard

Sous-programme Basic : Controle_Magasin

Nom de la gnc : gnc_rf_controle_mag

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

The API controls the existence of a logistic store and the correspondence of that store type to the type passed as a parameter.

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Prototype de la fonction Basic

Controle_Magasin (lcodmag, typmag)

Messages en entrée

CTRL_MAG~lcodmag~typmag~

Messages en sortie

Aucun.

Valeurs restituées par l’API

VALEUR REMARQUE
1 Le magasin défini en entrée correspond au type de magasin donné.
17 Le magasin n’existe pas ou n’est pas du type donné.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
1 Identification du magasin et du type associé.
Détail :

If the input lcodmag parameter contains more than 3 characters, the API returns the error code 17.

Read the depot of the operator.

Read the logistic store data (LMAG) with input parameter lcodmag.

If the store does not exist or the type of the store is different from the received parameter typmag, the API returns the error code 17.

Erreurs possibles

CAUSE EFFET
Le magasin n’existe pas ou n’est pas du type donné Code retour 17, si le type donné correspond à un quai, message « Quai inconnu »

Exemple(s) d’utilisation

Retour_Controle_Magasin = Controle_Magasin (w_lcodmag, "7")

Paramètres en entrée

NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
lcodmag CHAR   3 O Code du magasin logistique
typmag CHAR   2 O Type de magasin logistique

Paramètres en sortie

Aucun.