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: 

problem in SALESORDER_CREATEFROMDAT2 .

Former Member
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

Hi

Regards

Pavan

Former Member
0 Kudos

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,

Former Member
0 Kudos

thank u