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 Conditions in BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
965

I'm using this BAPI to create Orders with VC. All works OK except that I wish to enter conditions at header level not just at item level.

Can anyone brief me on how I set up this up?

Thanks, Mark

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

Try this:


wa_bapicond-itm_number = '000000'.
wa_bapicond-cond_type = condition type.
wa_bapicond-update_flag = 'U'.
wa_bapicond-cond_value = 'X'.
".....etc

append wa_bapicond to i_bapicond.

wa_bapicondx-itm_number = '000000'.
wa_bapicondx-cond_type = condition type.
wa_bapicondx-update_flag = 'U'.
wa_bapicondx-cond_value = 'X'.
append wa_bapicondx to i_bapicondx.
".....etc

I'm using this BAPI to create Orders with VC. All works OK except that I wish to enter conditions at header level not just at item level.

Can anyone brief me on how I set up this up?

Thanks, Mark

1 REPLY 1
Read only

Former Member
0 Likes
456

Try this:


wa_bapicond-itm_number = '000000'.
wa_bapicond-cond_type = condition type.
wa_bapicond-update_flag = 'U'.
wa_bapicond-cond_value = 'X'.
".....etc

append wa_bapicond to i_bapicond.

wa_bapicondx-itm_number = '000000'.
wa_bapicondx-cond_type = condition type.
wa_bapicondx-update_flag = 'U'.
wa_bapicondx-cond_value = 'X'.
append wa_bapicondx to i_bapicondx.
".....etc