In the orders on hand list, too many orders on hand are output for customers and materials.
Additional key wordsV.13, V.17
SolutionThe following program selects the sales orders and the corresponding items (with material number, cumulative confirmed quantity and desired delivery quantity) for which the cumulative confirmed quantity is larger than the desired delivery quantity.
For these documents, the confirmed quantities are to be adjusted to the respective delivery quantities in the schedule lines. The calculation of the orders on hand is based on, among other things, the confirmed quantity.
REPORT ZZVBAP.
TABLES: VBAP.
SELECT * FROM VBAP.
IF VBAP-KBMENG > VBAP-KWMENG.
WRITE:/ VBAP-VBELN, VBAP-POSNR, VBAP-MATNR, VBAP-KBMENG, VBAP-KWMENG.
ENDIF.
ENDSELECT.
No comments:
Post a Comment