There is no transaction in progress.
There is no open log file.
This entry point is called from customer return management for each selected delivery line in the delivery selection panel. If the complete delivery is selected, the entry point will be called for each line.
It is located in the $SEL1 label of the SUBSRHC processing after reading the delivery line and determining the quantity to return.
After the determination of the quantity to return in STK, the system converts this quantity in SAL. If the converted quantity differs from the converted quantity rounded based on the decimal number of the SAL, the system forces the SAL with the STK. The entry point is used not to force the SAL with the STK and to keep the delivery line SAL.
The [F:SDH] class is on line and loaded with the header of the delivery to return.
The [F:SDD] class is on line and loaded with the line of the delivery to return.
The [M:SRH0], [M:SRH1], [M:SRH2] return header screen classes are loaded.
The [M:SRH1] return line screen class is being loaded. The NOL variable contains the index of the line being loaded.
[M:SRH1]SAU(NOL)is loaded with the SAL.
[M:SRH1]STU(NOL)is loaded with the STK.
[M:SRH1]SAUSTUCOE(NOL)is loaded with the SAL-STK convertion coefficient.
The LQTYSTUvariable contains the quantity to return in STK.
The WQTYvariable contains the quantity to return converted to SAL and rounded.
The WQTYSAUvariable contains the quantity to return converted to SAL and not rounded.
If WQTY <> WQTYSAUthe system forces the SAL with the STK.
To avoid forcing the SAL with the STK, it is necessary to act on the WQTYSAU local variable.
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 |
SDELIVERY | Yes | Delivery header |
SDELIVERYD | Yes | Delivery line |
SRETURN | No | Return header |
SRETURND | No | Return detail |
SORDER | No | Order headers |
SORDERQ | No | Order line quantities |
SORDERP | No | Order line prices |
BPARTNER | No | BP |
BPCUSTOMER | No | Customers |
BPDLVCUST | No | Ship-to customers |
ITMMASTER | No | Products |
ITMSALES | No | Products - Sales |
|
|
|