‎2006 Sep 07 4:09 PM
Hello
Working on SAP R/3 Enterprise (4.70, basis 6.20) I am using BAPI_CONTRACT_CREATEFROMDATA to create a contract with several positions. While I am able to set the target quantity I cannot set the order quantity for the positions.
I do not see which field (if at all) of the TABLES parameter
CONTRACT_ITEMS_INdoes allow to set the order quantity.
If anybody has a solution for my problem I will appreciate your input.
Regards
Uwe
‎2006 Sep 08 9:25 AM
Hello
I have realized that the BAPI is missing a TABLES parameter that is required for the order quantities.
Looking under the hood the BAPI does nothing else but calling function module <b>SD_SALESDOCUMENT_CREATE</b>. This function module contains the additional TABLES parameter
SALES_SCHEDULES_IN.
Interestingly, this function module is RFC-enabled. Thus, instead of calling the BAPI I will directly call function module SD_SALESDOCUMENT_CREATE.
Perhaps SAP will correct this BAPI and release it for customers in the near future (although on ECC 6.0 it still looks the same).
Regards
Uwe