Symptom
In the output table EX_VBAP of function module SD_ORDER_CREATE, the accumulated confirmed quantity in VME (VBAP-KBMENG) is empty although the quantities can be confirmed according to the availability check.
Cause and prerequisites
The output table EX_VBAP is filled before the availability check.
Solution
This correction is in the standard system as of Release 4.6C.
The following source code changes also improve performance because the pricing in SD_ORDER_CREATE becomes unnecessary.
In Release 3.1H, you must apply note 101167 first.
An advance correction is possible.
Procedure:
1. Define the table parameter EFXVBAP in function module SD_SALES_DOCUMENT_SAVE:
- Transaction........: SE37
- Function module ..: SD_SALES_DOCUMENT_SAVE
- Subobject .........: Interface/table parameter
- Function...........: F6 Change
- Table parameter : EFXVBAP Reference structure=VBAP Optional=X
Apply the following source code.
Save and activate (generate) the changed programs and function modules.