Process TRTACHQTE1: TRTACHQTE1
PURCALQTY: Modification of the setups involved in quantity conversion (PCAL_QTY)
This entry point is located in the TRTACHQTE1 process, quantity conversion, generates a action - "PURCALQTY".
The goal of this action is to provide the possibility to intervene in the values passed as setups in the quantity calculation sub-program.
For example to modify the supplier code as a result of a specific coding.
Context and operating method
Transaction
According to the context there may or may not be a transaction in process.
Due to the number of calls to this sub-program, it is impossible to describe in detail all the different contexts.
Log file
According to the context there may or may not be an open log file.
Due to the number of calls to this sub-program, it is impossible to describe in detail all the different contexts.
Different call cases
The call is made at each launch of the PCAL_QTY sub-program before the execution of it.
Available variables and masks
The following variables are loaded at the time of the call to the "PURCALQTY" action.
WQTY1
Original quantity to be converted
WUOM1
The unit of measure for the original quantity
WQTY2
Quantity to be calculated (this quantity is only loaded at the end of the sub-program)
WUOM2
The unit of measure for the quantity to be calculated
WITMREF
Product reference used to find the conversion coefficients specific to the product
WBPSNUM
Supplier code used by means of the product-site record to find the conversion coefficients specific to the supplier
WSENS
Conversion type
0 = Recovery of the conversion coefficient with the GCOEUOM global variable
1 = Classic conversion with search for the coefficient
2 = Conversion used for the price lists
3 = identical to the value in 1 but without rounding of the coefficient to 6 decimals
Only the WITMREF, WBPSNUM variables and possibly WSENS (with great care), could be modified.
Open tables
The detailed description of the open tables is impossible due to the numerous contexts.
Table |
Significant content |
Table Title |
ITMMASTER |
Product |
|
ITMBPS |
Product-Supplier |
|
TABCOEFF |
Coefficients |
Miscellaneous remarks
Avoid if possible any modification of the WSENS variable.