Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CONTRACT_CREATEFROMDATA: Problem with order quantity

Former Member
0 Likes
909

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_IN

does allow to set the order quantity.

If anybody has a solution for my problem I will appreciate your input.

Regards

Uwe

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
461

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