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

header rounding condition For BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
466

Hi friends

I was created a new condition type for rounding difference posting,I want to post this difference as a header condition,

When i am creating sale order using Va01, it calculate right,

but i have to post this using Bapi

''BAPI_SALESORDER_CREATEFROMDAT2'' in Z program , in this case it calculate Difference as a item condition

Is there any indicator in BAPI_SALESORDER_CREATEFROMDAT2 , where i post this condition as a header condition?

Thanks

Suchender Dagar

2 REPLIES 2
Read only

GuyF
Active Participant
0 Likes
397

Hi

Try leaving ITM_NUMBER field in the BAPICOND structure empty when you add the condition.

This way it'll add it as a header condition.

Guy.

Read only

Former Member
0 Likes
397

Hi Guy

i have already leave itm_number field blank in BAPICOND.

Suchender Dagar