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 BAPI_SALESORDER_CREATEFROMDAT2 Header condition

Former Member
0 Likes
1,179

Hi friends,

I am using function module BAPI_SALESORDER_CREATEFROMDAT2 for sales order creation. We are having one condition ZDIF as header and item condition. When we are entering the data in ORDER_CONDITON table and executing the BAPI, then it is taking as item condition. I need to use this condition as header condition and should pick in header only. Please suggest the way how can I use it as a header condition only.

Kraheja.

1 REPLY 1
Read only

Former Member
0 Likes
497

Hi,

Conditions that you are entering in ORDER_CONDITIONS_IN is for items only and you need to enter the item conditions here .

And once your sales order is created with these conditions you will see that the header condition is also created with the total of the item conditions ...

For Example you have 2 items in your sales order.

Net Price of 1st item - 10,000 Rs

Net Price of 2nd Item - 40,000 Rs

THen Net Price in your header will be 50,000 .. that is 10,000 + 40,000.

so just enter the item conditions in ORDER_CONDITIONS_IN . .