| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_rf_modele_control_produit |
Fonctionnalité : Règles de rangement |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet de lancer le contrôle des caractéristiques du produit.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| STADSK - |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS |
L’API permet de lancer le contrôle du produit selon la règle suivante :
|
|
|
Parmi les champs en entrée, l faut obligatoirement soit un code produit, soit un numéro d’EA ou soit un numéro de réception, afin de pouvoir traiter au moins unroduit. Lorsque l’une des caractéristiques bloquante est en erreur, alors l’API retourne le message d’erreur liée à cette caractéristique. |
|
| Détail : |
If the three input parameters - product code (codpro), EA number (numea) and reception number (numrec) are not presented. The API returns the error code 0. Look for product controls corresponding to the input parameters. (Read product controls data (vgartemctrp view). Construct the where clause. If the third-party input parameter is presented, add the corresponding condition to the where clause (z40l_1 = typtie). If the third-party ID input parameter is presented, add the corresponding condition to the where clause (z40l_2 = sigtie). If the product input parameter is presented, add the corresponding condition to the where clause (codpro = codpro). If the EA number input parameter is presented, add the corresponding condition to the where clause (z40l_3 = numea). If the reception number input parameter is presented, add the corresponding condition to the where clause (z40l_4 = numrec).) For each product control object found. If the current product code (codpro) is changed. Call the function gnc_model_ctr_pro for controlling the product. If the function returns an error code 0. The API returns an error code 0 and an error message “RFCTRPRO01”. Otherwise: If the function terminates with success, verify whether there are any block error message. Read the messages returned from the function gnc_model_ctr_pro. ( t_model_ctr_pro_str ) Look for the first block message (flgoblig = ‘O’). If a block message is found. Copy the block message to the output parameter (param_out). The API returns the error code 0. Else if the current third-party ID (z40l_2) and the third-party type (z40l_1) are changed. Call the function gnc_model_ctr_pro for controlling the product. If the function returns an error code 0. The API returns an error code 0 and an error message “RFCTRPRO01”. Otherwise: If the function terminates with success, verify whether there are any block error message. Read the messages returned from the function gnc_model_ctr_pro. ( t_model_ctr_pro_str ). Look for the first block message (flgoblig = ‘O’). If a block message is found. Copy the block message to the output parameter (param_out). The API returns the error code 0. Read the next product control object. The API returns the code 1. |
| CODE | PARAMÈTRES | DESCRIPTION |
|---|---|---|
| 0 | The input parameters - product code (codpro), EA number (numea) and reception number (numrec) are not presented. | |
| 0 / RFCTRPRO01 | Vgartemctrp.codpro | The execution of the function gnc_model_ctr_pro is not successful. |
| 0 | A block message is found. |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typtie | Type du tiers | Char(3) | Obligatoire |
| sigtie | Sigle du tiers | Char(12) | Obligatoire |
| codpro | Code du produit | Char(16) | Facultatif |
| numea | Numéro d’entrée attendue | Char(10) | Facultatif |
| numrec | Numéro de réception | Char(10) | Facultatif |
| NOM | DESCRIPTION | FORMAT |
|---|---|---|
| ParamOut | Premier message d’erreur bloquant | Char(75) |