Process SUBSIHC: SUBSIHC
TRT_LIGCDE: Loading of an invoice line from an order line
This entry point is used during the picking of an order line in invoice management or during the processing of an order line in the creation of an invoice from the button.
It is used to take control of before the start of the loading of the shipment line [M :SIH4] from the order line [F :SOQ] and [F :SOP].
Context and operating method
Transaction
There is no transaction in process.
Log file
There is no open log file.
Call context
It is called in invoice management for each picking of an order line.
It is also called during the execution of the "Invoice" button in order management.
It is located in the TRT_LIGCDE label of the SUBSIHC process after the read of the order line to be invoiced.
It is used to modify the setups influencing the determination of the quantity to be invoiced.
Available variables and masks
[L]WNEGSTO : Negative stock authorized (1=no / 2=yes) (The value is loaded with [F :ITM]NEGSTO)
GSHTDLV : Shipment of quantities with shortages (1=no/2=yes).
For instance :
To authorize the negative stock (even if this is prohibited in the product) and is therefore used to take into account shortages (if GSHTDLV=2) or to allow the generation of shortages during the automatic determination of stock to be issued, it is necessary to intervene in the WNEGSTO value.
[L]WNEGSTO = 2
Open tables
In the table below, the significant content flag indicates that the content is in phase with the context (the current customer is loaded...). Traditionally, this is the case for the file that contains the header and not the file that contains the lines...
Table |
Significant content |
Table Title |
SORDER |
Yes |
Order headers |
SORDERQ |
Yes |
Order line quantities |
SORDERP |
Yes if [F :SOH]SOHCAT<>4 |
Order line prices |
SORDERC |
Yes if [F :SOH]SOHCAT=4 |
Product line orders |
ITMMASTER |
Yes |
Products |
ITMSALES |
Yes |
Sales product |
NO_REAJUST: Re-adjustment of the quantity to be invoice from STK to complete sal
This entry point is used during the picking of an order line in invoice management or during the processing of an order line in the creation of an invoice from the button.
After determination of the quantity to be invoiced in STK, this quantity is re-adjusted in order that it corresponds to an entire number of sales units. This entry point is used to avoid carrying out this re-adjustment (sales unit does not correspond to the a packing unit in STK for example).
Context and operating method
Transaction
There is no transaction in process.
Log file
There is no open log file.
Call context
It is called in invoice management for each picking of an order line.
It is also called during the execution of the "Invoice" button in order management.
It is located in the REAJUSTE_QTY label of the SUBSIHC process.
Available variables and masks
In order to not carryout the re-adjustment of the quantity in complete sales unit, it is necessary to set the global variable GOK to 0.
For instance :
GOK = 0