Application Development 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: 

How to populate BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hi Experts,

I have created a value contract, in which the line items are assortment module number, which will further have materials.

Then If I create a sales order with reference to the contract, it validates the material quantity rate with contract quantity and it throws error it material quantity rate exceeds the value of contract.

But when I create sales order with reference to contract using BAPI_SALESORDER_CREATEFROMDAT2, it is not giving the error and it creates the sales order. It is not updating the contract released value also.

So, I am missing some parameters in BAPI. Kindly help me in populating the BAPI parameters to do this validation.

Thanks and regards,

Venkat

3 REPLIES 3

former_member204338
Participant
0 Kudos

every line must be referenced to corresponding contract line.

Former Member
0 Kudos

Hi Venkat,

Just go through this link, I hope it will help you.

[Link|;

Regards,

Nidhi Kothiyal

Clemenss
Active Contributor
0 Kudos

Hi venkat,

sorry you have not yet discovered the forums search function, try

[Search for How to populate BAPI_SALESORDER_CREATEFROMDAT2|http://forums.sdn.sap.com/search.jspa?objID=f50&q=Howtopopulate+BAPI_SALESORDER_CREATEFROMDAT2]

Another common solution without bothering the community is

[How to populate BAPI_SALESORDER_CREATEFROMDAT2|http://www.google.cn/search?hl=en&source=hp&q=HowtopopulateBAPI_SALESORDER_CREATEFROMDAT2&btnG=GoogleSearch&aq=f&oq=Howtopopulate+BAPI_SALESORDER_CREATEFROMDAT2&cad=h]

Best regards,

Clemens