Process TRTVENQTE: SAL-STK Quantity Conversion
CALCULRMN: Used to apply a tolerance to the remaining balance on an order
This entry point concerns the calculation for the tolerance on the remainder to ship on an order line.
It is used to intervene in order to apply other remainder to ship tolerances than those defined as standard in order to close or not a sales order line when shipments have taken place.
Context and operating method
Transaction
There is one transaction in progress. The GOK variable is used and tested. It is initialized to 1. It can be set to 0 if the transaction should be abandoned.
Different call cases
This entry point is called in the TRTVENQTE process in the sub-program SCAL_RMN. This sub-program is called from each process that is used in creation, modification or deletion of a shipment.
Significant variables
Here are the variable that are passed to the sub-program SCAL_RMN :
On receipt
. QTY1 : Ordered quantity
. QTY2 : Shipped quantity
. ART : Product reference
On issue
. RMN : Difference ( 1 if <= tolerance)
. STAT : Status ( 1 if error)
The product-sales record [F :ITS] is on line.
The entry point is used to determine and apply the required tolerance.
To force the closure of an order line, it is necessary to set the exit setup RMN to 1.
Any other value for this setup will not close the order line.