Process STKVAL: STKVAL
DEFPRI: Obtaining a price different from the one of the valuation method
This entry point is called just before the search for the price corresponding to the valuation method linked to a product and to a movement type.
Context and operating mode
The valuation methods are on line.
Transaction
There can be one transaction in progress.
Log file
There can be an open log file (GTRACE test).
Different call cases
Variables
Variable or mask |
Definition |
LITM Char |
Product |
LFCY |
Stock site |
LTYP |
Movement type (local menu no. 704) |
LCOD |
Movement code (miscellaneous table no. 14) |
LLOT |
Lot no. |
LSLO |
Sub-lot no. |
LDAT |
Reference date |
LQTYTOT |
Document line quantity |
LQTYMVT |
Movement quantity ( £ LQTYTOT ) |
LORDPRI |
Order price (receipt case) |
PPRINAT |
Price type (local menu no. 705) |
PPRI |
Prices |
LRET |
Error code (0=OK, 1=Error in the calculation, 2=Product-site not found, 3=Valuation method not found, 4=Null price not authorized) |
WVLT |
Valuation method (local menu no. 263) |
WVLT2 |
Backup method (local menu no. 263) |
WNUL |
Null price authorized (local menu no. 1) |
[M:SDP] |
Mask containing the detail of the price to be returned. If the price detail is not activated, GACTDECCST=0. Remember that the sum of the detail elements must equal the total price. [M:SDP]PRI (total price) must be loaded with the value assigned to LPRI. |
LRET (only in the case of an error), PPRINAT, PPRI and [M:SDP]PRI must be entered.
To avoid the search via the standard processing, set the GPE variable.
Open tables
ITMMASTER; ITMFACILIT; ITMCATEG; TABCOSTMET; TABCOSTMVT; TABCUR
DEFPRIMKI: Defining the actual price for a production reporting
Use this entry point to define the order price of a production reporting before the creation of stock movements.
Context and operating method
Transaction
There is one transaction in progress.
Log file
There is an open log file.
Explanations
The value of the actual price is defined from the provisional cost for a product or from the valuation method for a by-product.
Available variables and masks
Variable or mask |
Definition |
Mask STOWORK [STW] |
Launch screen (site, parameters…) |
Decimal LPRI |
Price of the product or sub-product |
Mask STOVALW [VALW] |
Price detail (line n°I) |
Open tables
In the table below, the 'Significant content' flag indicates that the content is relevant to the context.
Table |
Significant content |
Table title |
MFGITM |
YES |
Work order product line |
MFGCOST |
YES (if product) |
Provisional price |
MFGITMTRK |
YES |
Production tracking |