Process FUNSTVA: Stock Valuation Report
REASTJ: After reading the stock movement
This entry point is used to take control after the read of each stock movement when a stock valuation is requested for a specific date.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
After each read of a stock movement on total print on a specific date.
Available variables and masks
Variable or mask |
Definition |
Mask STOVAL [DIA] |
Process setups |
Decimal WQTYRCP |
Variable that will be loaded in the QTYSTURCP field for the STOVALWRK table |
Decimal WQTYISS |
Variable that will be loaded in the QTYSTUISS field for the STOVALWRK table |
Decimal WQTYCHG |
Quantity of internal stock movements (stock count excluded) |
Decimal WAMTRCP |
Variable that will be loaded in the AMTRCP field for the STOVALWRK table |
Decimal WAMTISS |
Variable that will be loaded in the AMTISS field for the STOVALWRK table |
Integer GPE |
Set GPE <> 0 if the previous variables must not be deleted by the standard. |
Decimal WQTE(0..3) |
Quantity in stock: o Index 0: Total quantity o Index 1: Quantity with status A o Index 2: Quantity with status Q o Index 3: Quantity with status R |
The variable WQTE is initialized to the quantity of the current day. As the movements (later than the requested date) are read, only indices 1 to 3 are updated. This is not the case if GPE<>0. It is therefore necessary to update this variable in the specific/custom development in order to remain consistent. In other words, at the end of the loop on movements, the following equality must be complied with:
WQTE(0) + WQTYISS – WQTYRCP – WQTYCHG = WQTE(1) + WQTE(2) + WQTE(3)
BEFWRISTV: Before writing the work entry
This entry point is used to take control before the write of each record in the table STOVALWRK.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
Before each write of a record in the work table STOVALWRK.
The buffer can be modified taking all necessary precautions.
Available variables and masks
Variable or mask |
Definition |
Mask STOVAL [DIA] |
Process setups |
File STOVALWRK [STV] |
Buffer table STOVALWRK entirely loaded |
REAART: Before the processing of a product
This entry point is used among other things to filter the products in order to exclude them from the process.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file.
Different call cases
Before the processing of a product.
Available variables and masks
Variable or mask |
Definition |
File ITMMASTER [ITM] |
buffer table ITMMASTER loaded |
File ITMFACILIT [ITF] |
buffer table ITMFACILIT loaded |
Integer GPE |
Set GPE <> 0 to exclude the product from the process. |
Integer WFBDVLT(10) |
List of the valuation methods prohibited for a status valued at a given date. WFBDVLT(0) = 3 ; WFBDVLT(1) = 5 ; WFBDVLT(2) = 8 |