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-Pricing Condition

Former Member
0 Likes
2,613

Hi,

In Pricing Condition, Cond_Value is in Decimal when I am passing it to Conditionx Table as 'X'.It is giving Short Dump.Kindly tell me, what value should I pass?

conditions-cond_value = i_output-cond_value.(Value at which Item is Sold)

conditionsx-cond_value = 'X'.

conditions-cond_unit = i_output-cond_unt.(Unit of Measure in which it is sold)

conditionsx-cond_unit = 'X'.

Regards,

Priyanka.

8 REPLIES 8
Read only

Former Member
0 Likes
1,288

do NOT pass any values in ORDER_CONDITIONS_INX

Read only

Former Member
0 Likes
1,288

I hope you have declared the condition strucure as BAPICOND. If so do the following,

Move the decimal condition value to BAPICOND-COND_VALUE and condition type to BAPICOND-COND_TYPE before calling the BAPI. And also ensure that the structure matches.

Read only

0 Likes
1,288

Hi,

I have checked everything. It is not giving short dump now but it is also not creating Sales Order. If I omit the Condition parameter, it is working fine but when I include it, it gives me Error Message

Condition is missing in pricing procedure A V ZZRVA2

Kindly tell me what is the solution for it.

Regards,

Priyanka.

Read only

0 Likes
1,288

Can you create sales order using these data in manually.

i think there could be some configuration problem.

Read only

0 Likes
1,288

Manually Sales Order is created.The only problem is in Conditons and ConditionsX parameter.

Actually, at every line-item, user wants to sell the material not on the basis of Price that comes directly from Material Master, but user changes it at each line-item.

While creating it manually, we double click on the line-item, and it takes to another screen where we click the Condition tab.At that place, we can change the value.

I am not sure, for this, whether I need to call another BAPI for change in Sales Order.

Regards,

Priyanka.

Read only

0 Likes
1,288

Do you pas below data ?

tbl_bapicondx-itm_number = '000010'.

tbl_bapicondx-cond_type = condition type.

tbl_bapicondx-update_flag = 'U'.

tbl_bapicondx-cond_value = 'X'.

append tbl_bapicondx.

Please confirm ?

Read only

0 Likes
1,288

Thankyou very much.

It is working !!

Read only

0 Likes
1,288

Hi Priyanka,

Please close thread and make it as answer

Thanks

Seshu