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

problem in SALESORDER_CREATEFROMDAT2 .

Former Member
0 Likes
679

Hi,

I am uploading sales order using BAPI SALESORDER_CREATEFROMDAT2 . How can i upload manual condition type (pricing) , condition rate for each item in this BAPI.

kathir.

3 REPLIES 3
Read only

bpawanchand
Active Contributor
0 Likes
523

Hi

Regards

Pavan

Read only

Former Member
0 Likes
523

Hi create BAPI interface variable like BAPICOND and pass

value according to below code and append in condition table.

WA_CONDITIONS_IN-ITM_NUMBER = <Item no>

WA_CONDITIONS_IN-COND_TYPE = <Cond Type>

WA_CONDITIONS_IN-COND_VALUE = <Cond value>

APPEND WA_CONDITIONS_IN TO INT_CONDITIONS_IN.

CLEAR WA_CONDITIONS_IN.

WA_CONDITIONS_INX-ITM_NUMBER = LOC_POSNR.

WA_CONDITIONS_INX-COND_TYPE = WC_X.

WA_CONDITIONS_INX-COND_VALUE = WC_X.

APPEND WA_CONDITIONS_INX TO INT_CONDITIONS_INX.

CLEAR WA_CONDITIONS_INX.

Try This,

Read only

Former Member
0 Likes
523

thank u