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

How to create contract using BAPI_SALESORDER_CREATEFROMDAT2

asik_shameem
Active Contributor
0 Likes
441

Hi,

I am trying create contract (VA41) using the BAPI BAPI_SALESORDER_CREATEFROMDAT2. But it is throwing error as "Unpermitted combination of business object BUS2032 and sales doc. category G". I have filled the fields order type, sales org, distribution channel, division and I put partner function as 'AG' and partner as some kunnr. what are the mandatory fields has to be filled for the creation of contract. Please help me out of this. Helpful answers will be rewarded.

Thanks

Shameem.

1 REPLY 1
Read only

Former Member
0 Likes
364

Hi Shameem,

You can't use that BAPI it's for sales orders only. Use BAPI_CONTRACT_CREATEFROMDATA to create Sales contracts.

Regards,

John.