API RF INFOCASIER

Version ACE : 1.3  

Package : Standard

Nom de la gnc : gnc_rf_lecture_lchl

Fonctionnalité : Préparation RF
Schémas d’entrée et de sortie : voir en fin de document.

Cette API permet d’obtenir une information sur un casier en particulier, de passer au casier suivant ou précédent, ou de rechercher un casier vide (table LCHL).

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Valeurs restituées par l’API

VALEUR REMARQUE
1 Chariot OK
2 Chariot Inexistant
3 Chariot déjà affecté à un OP

Cas d'erreur

CODE PARAMÈTRES DESCRIPTION
4/RFPIK01006 lchl.idchariot There is no next rack for the chariot .
5/RFPIK01006 lchl.idchariot The chariot line does not exist.
5/RFPIK01007 lchl.idchariot There is no previous rack for the chariot .
5/RFPIK01007 lchl.idchariot The chariot line does not exist.
2/RFPIK01004 lchl.idchariot The rack is inexistent for the chariot .
2/RFPIK01009 lchl.idcasier, lchl.idchariot The rack is inactive for the chariot.
3/RFPIK01005   The chariot is full.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
  Si un numéro de casier est précisé en entrée, l’API restitue les informations de ce casier (mode saisie manuel de casier).
  Si un numéro de casier est précisé en entrée, suivi du caractère « + », l’API recherche le casier suivant dans l’ordre de tri de la table LCHL.
  Si un numéro de casier est précisé en entrée, suivi du caractère « - », l’API recherche le casier précédent dans l’ordre de tri de la table LCHL.
  Si aucun numéro de casier n’est précisé en entrée, l’API recherche un casier vide sur le chariot (pas de carton dessus).
Détail :

Store the input parameters in a chariot line (LCHL) data structure (lchl.typtie = typtie, lchl.sigtie = sigtie, lchl.idchariot = idchariot, lchl.idcasier = idcasier).

If the rack identifier (lchl.idcasier) is not empty.

If the last character in rack ID is equal to ‘+’.

Remove the last character (‘+’) and read the rack line data with (lchl.typtie, lchl.sigtie, lchl.idchariot and lchl.idcasier).

If the rack line exists:

Look for the next rack for the current chariot - read the rack line data (key 4) with (lchl.typtie, lchl.sigtie, lchl.idchariot and lchl.tricasier).

If the rack line does not exist, the API returns an error code 4 and an error message “RFPIK01006”.

If the rack line does not exist, the API returns an error code 5 and an error message “RFPIK01006”.

If the last character in rack ID is equal to ‘-’:

Remove the last character (‘-’) and read the rack line data with (lchl.typtie, lchl.sigtie, lchl.idchariot and lchl.idcasier).

If the rack line data exists:

Look for the previous rack for the current chariot - read the rack line data (key 5) with (lchl.typtie, lchl.sigtie, lchl.idchariot and lchl.tricasier).

If the rack line does not exist, the API returns an error code 5 and an error message “RFPIK01007”.

If the rack line does not exist, the API returns an error code 5 and an error message “RFPIK01007”.

Otherwise.

Read the rack line data with (lchl.typtie, lchl.sigtie, lchl.idchariot and lchl.idcasier)

If the rack line does not exist, the API returns an error code 2 and an error message “RFPIK01004”.

If the rack line exists and it is not active (lchl.actif != 'O'), the API returns an error code 2 and an error message “RFPIK01009”.

If the rack identifier is empty (lchl.idcasier ='').

Read an active (lchl.actif = 'O') rack line (lchl) with (lchl.typtie, lchl.sigtie, lchl.idchariot and an empty carton identifier (lchl.idcarton).

If the rack line does not exist, the API returns an error code 3 and an error message “RFPIK01005”.

Exemple(s) d’utilisation

A~INFOCASIER~DEP~CESBUN~T7797~~

Recherche d’un casier, pas de casier en particulier.

Retour : 1~1~~

OK, casier 1, pas de carton dans ce casier.

Paramètres en entrée

NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
typtie CHAR   3 O Type de dépôt
sigtie CHAR   12 O Sigle du dépôt
idchariot CHAR   40 O Identifiant du chariot
idcasier CHAR   40 N Identifiant du casier (vide, si recherche de casier sur le chariot infructueuse).

Paramètres en sortie

NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
ParamOut1 CHAR   40 O Identifiant du casier trouvé (LCHL.idcasier)
ParamOut2 CHAR   40 O Carton se trouvant dans le casier (lchl.idcarton)