SUBSDHC processing: Shipment management
TRT_LIGCDE: Loading of the delivery line from an order line
This entry point is used when picking an order line in delivery management or during the processing of an order line in delivery creation from the button.
It is used to take over before the loading of the the [M :SIH4] delivery line starts from the [F :SOQ] and [F :SOP] order line.
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is no open log file.
Call context
It is called in delivery management for each picking of an order line.
It is also called when clicking the 'Delivery' button from order management.
It is located in the TRT_LIGCDE label of the SUBSDHC processing after the order line to deliver is read.
It is used to modify the parameters influencing the determination of the quantity to deliver.
Available variables and masks
[L]WNEGSTO : Negative stock authorized (1=no / 2=yes) (The value is loaded with [F :ITM]NEGSTO)
GSHTDLV: Delivery of quantities with shortages (1=no/2=yes).
For example:
To authorize the negative stock (even if this is prohibited in the product) and to therefore take into account shortages (if GSHTDLV=2) or to allow the generation of shortages during the automatic determination of stock to issue, it is necessary to act on 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…). It is usually the case for the file that contains the header but not for the file that contain 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 STK quantity to the complete sales unit
This entry point is used when picking an order line in delivery management or during the processing of an order line in delivery creation from the button.
After determination of the quantity to deliver in STK, this quantity is re-adjusted in order to correspond to a whole number of sales units. This entry point is used to avoid carrying out this re-adjustment (sales unit does not correspond to a packing unit in STK for example).
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is no open log file.
Call context
It is called in delivery management for each picking of an order line.
It is also called when clicking the 'Delivery' button from order management.
It is located in the REAJUSTE_QTY label of the SUBSDHC processing.
Available variables and masks
The GOK global variable must be set to 0 in order not to carry out the re-adjustment of the quantity in whole sales unit.
For example:
GOK = 0
ALI_NEGSTO: To force the generation of the shortage
This entry point is used during the picking of an order line in delivery management.
It is used to force the generation of a shortage when the allocated quantity on the order cannot be delivered.
Context and operating mode
Transaction
There is no transaction in progress.
Log file
There is no open log file.
Call context
It is called when picking an order line.
It is located in the TRT_LIGCDE label of the SUBSDHC processing after reading the order line and the determining the quantity to deliver.
It is used (if negative stock is authorized) to force the generation of a shortage quantity corresponding to the difference between the quantity to deliver and the actual quantity that can be delivered.
Available variables and masks
[F :ITM]NEGSTO : Negative stock authorized (1=no/2=yes)
GSHTDLV : Delivery of quantity shortages (1=no/2=yes).
For example:
The quantity allocated in detail on the order line can only be partially or not at all delivered (count in progress, analysis request, prohibited status, expired lot or non identified stock waiting put-away).
The quantity allocated in global on the order line can only be partially or even not at all delivered (if there is no - or insufficient- stock that complies the delivery issue rules).
In this case, to force the generation of a shortage for this non deliverable quantity, it is necessary to act on the WRUP value.
[L]WRUP = 1
Warning: this modification may generate shortages (stock physically not present or that cannot be delivered), and then pending movements that cannot be adjusted.
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…). It is usually the case for the file that contains the header but not for the file that contain 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 |