| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Nom de la gnc : gnc_rf_scan_valide |
Fonctionnalité : SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
The API controls the validity of a scanned object.
API imbriquées : aucune.
| RAS. |
| MULEAN - |
Processus, contrôles et règles de gestion
| ETAPE | DESCRIPTION DU PROCESSUS | |
| Détail : |
Look for the depot. (Read the depot data (TIE table) with the input parameters (sigtie, typtie).) Look for a stock object corresponding to the input scan parameter. (Read the stock object data (LOBJSTK) with the input parameter (sigtie, typtie, idobj = scan).) If a stock object is found. Look for product corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro)). If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the type parameter. (Unused code) Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the first 20 characters from the product name (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. Copy ‘O’ in the output parameter ParamOut4. The API returns the code 1. If the length of the input scan object is less or equals to 6. Look for the stock objects corresponding to a functional stock object. The functional stock object is presented by the input scan parameter. (Read the stock object data (LOBJSTK) with the input parameters (sigtie, typtie, idobjfct=scan).) For each stock object found. Verify whether the current stock object’s slot address is the same as the input slot address. ( lobjstk.adremp = adremp). If no stock object found with the same slot address as the input slot address and the input parameter ‘mode’ is different from ‘P’, the API returns the error code 3. Otherwise. Look for a product corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro).) If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the output parameter ParamOut4. Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the first 20 characters from the product name read (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. The API returns code 1. If the length of the input scan object is less or equal to 16. Look for a product object corresponding to the ‘scan’ input parameter. (Read the product data (PRO) with the input scan parameter (codpro = scan).) If the product exists. Look for stock objects corresponding to the found product and the ‘adremp’ input parameter. (Read the stock object data corresponding to the input parameters (sigtie, typtie, adremp) and with prl.codpro (Error in code – prl.codpro is not initialized). If there is more than one stock object found and the input parameter mode is not equal to ‘P’. The API returns the error code 2. If only one stock object is found. Look for a product corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro).) If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the output parameter ParamOut4. Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the first 20 characters from the product name (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. The API returns code 1. If the length of the input scan object is less or equals to 14. Look for DUN14 code. (Read for logistic variant data (PRL) with the first 14 symbols from the input parameter scan) For each logistic variant objects found. If the parameter ‘MULEAN’ is active and the parameter field A1 is equal to ‘O’. If the logistic variant is defined as ‘Multi Gencode for third-party’ (codva1 = ‘MG’). Read the logistic variant data (PRL table) with input parameter (sigtie, typtie) and (codpro = prl.codpro (the product code from the ‘Multi Gencode’ logistic variant), codva1 = ‘00’, codva2 = prl.codva2_l (link to the container type from the ‘Multi Gencode’ logistic variant), cntcode = prl.cntcod_l (link to the container code from the ‘Multi Gencode’ logistic variant). If the logistic variant is found. Replace the ‘Multi Gencode’ logistic variant with the logistic variant found. Otherwise. Continue with the reading of the next logistic variant. If the third-party ID of the current logistic variant is equal to the input third-party ID (prl.sigtie = w_sigtie). Look for stock objects corresponding to the product of the current logistic variant and to the input slot address. (Read the first stock objects data (LOBJSTK) with input parameter (typtie, sigtie, adremp) and (codpro=prl.codpro). If more than one stock objects are found and the input parameter mode is not equal to ‘P’. The API returns the error code 3. If only one stock object is found. Look for a product corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro).) If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the output parameter ParamOut4. Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the first 20 characters from the product name (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. The API returns code 1. Continue with the reading of the next logistic variant. If the length of the input scan object is less or equal to 13. Look for EAN code. (Read the product data (PRO table) with (gencod = first 13 symbols from the input scan parameter).) For each product found. Look for stock objects corresponding to the current product. (Read the stock object data (LOBJSTK) with input parameters (sigtie, typtie, adremp) and codpro=current codpro. If more than one stock objects are found and the input parameter mode is not equal to ‘P’. The API returns the error code 3. If only one stock object is found. Look for a product corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro).) If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the output parameter ParamOut4. Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the first 20 characters from the product name (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. The API returns code 1. Continue with the reading of the product. Look for a stock object corresponding to the input scan parameter. (Read the stock object data (LOBJSTK) with the input parameter (sigtie, typtie, idobj = scan).) If the stock object is not found. The API returns the error code 3. Otherwise. Look for product object corresponding to the stock object’s product. (Read the product data (PRO) with (codpro = lobjstk.codpro)). If the product’s stock tracking is lot/slot stock tracking (pro.suistk == ‘L’ || pro.suistk == ‘X’). Copy ‘L’ in the type parameter. (Unused code) Copy the product code (pro.codpro) in the output parameter ParamOut1. Copy the product name (pro.nompro) in the output parameter ParamOut2. Copy the stock object ID (lobjstk.idobj) in the output parameter ParamOut3. Copy ‘O’ in the output parameter ParamOut4. The API returns code 1. The API returns the error code 50. |
|
| CODE | DESCRIPTION |
| 3 | No stock object found with a slot address corresponding to the input slot address. |
| 3 | More than one stock objects found and the input mode is not ‘Picking’. |
| 2 | More than one stock objects found and the input mode is not ‘Picking’. |
| 3 | The stock object is not found. |
| 50 | The product is not found. |
| NOM | DESCRIPTION | FORMAT | OBLIGATOIRE/FACULTATIF |
|---|---|---|---|
| typtie | Depot type. | char(3) | O |
| sigtie | Depot ID. | char(12) | O |
| scan | Scan object ID. | char(18) | O |
| adremp | Slot address. | char(10) | N |
| mode |
Mode (R/P). R=Reserve P=Picking |
char(1) | N |
| NOM | DESCRIPTION | FORMAT |
|---|---|---|
| ParamOut1 | Product code. | char(16) |
| ParamOut2 | Product name. | char(20) |
| ParamOut3 | Stock object ID. | char(18) |
| ParamOut4 | Slot tracking type (O/L). | char(1) |