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_SALESORDER_CREATEFROMDAT2 error

Former Member
0 Likes
761

Hi all,

When i execute the BAPI -

BAPI_SALESORDER_CREATEFROMDAT2 my sales orders created successfully.

When i see the sales order created then there seems to be some problem in Price field it automatically multiples the price field by 10.

for eg items-target_val = vitem-item_amt.

items-target_val =9.89.

In Items internal table it displays correctly also but when i check using transaction va03 it display that value muliply by 10.

eg :- in va03 net value displays as 98.90

Any suggestions welcome.

Regards,

1 ACCEPTED SOLUTION
Read only

gabriel_braun
Explorer
0 Likes
502

Hello Navdeep

For the function BAPI_SALESORDER_CREATEFROMDAT2 you have to pass the conditions in the

table, that you define with the parameter ORDER_CONDITIONS_IN type BAPICOND.

Make sure that you pass the tree fields

cond_value

currency

cond_type

if the condition type is a value.

If you don't fill the field currency for a value condition, the function does not work correct.

Good Luck

Gabriel

3 REPLIES 3
Read only

gabriel_braun
Explorer
0 Likes
503

Hello Navdeep

For the function BAPI_SALESORDER_CREATEFROMDAT2 you have to pass the conditions in the

table, that you define with the parameter ORDER_CONDITIONS_IN type BAPICOND.

Make sure that you pass the tree fields

cond_value

currency

cond_type

if the condition type is a value.

If you don't fill the field currency for a value condition, the function does not work correct.

Good Luck

Gabriel

Read only

0 Likes
502

Thank Gabriel,

Problem resolved.

Points awarded.

Regards,

Read only

Former Member