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

Create pricing condition using BAPI_CUSTOMERQUOTATION_CHANGE

Former Member
0 Likes
774

Hi ,

I have a requirement to update quotation pricing data is condition exists i.e if pricing is already exists , if pricing is not exists it has to create a new pricing condition with the given information .

I am able to update the information using BAPI_CUSTOMERQUOTATION_CHANGE if pricing condition exists ,if pricing condition not existing its not working as expected.

Please guide me..

code i have written

*Conditions

lt_conditions_in-itm_number = it_quot-posnr.

lt_conditions_in-cond_type = c_zill.

lt_conditions_in-cond_value = it_quot-kbetr.

lt_conditions_inx-cond_count = 1.

APPEND lt_conditions_in.

lt_conditions_inx-itm_number = it_quot-posnr.

lt_conditions_inx-cond_type = c_zill.

lt_conditions_inx-updateflag = c_u.

lt_conditions_inx-cond_value = c_x.

APPEND lt_conditions_inx.

Thanks in advance,

Srinivas.

3 REPLIES 3
Read only

former_member314455
Participant
0 Likes
729

Hello Srinivas,

Use BAPI_QUOTATION_CREATEFROMDATA in the create scenario. Before calling the BAPI check if the quotation exists. If yes, use BAPI_CUSTOMERQUOTATION_CHANGE.

Regards,

Ajith

Read only

Former Member
0 Likes
729

I have solved myself, it was basically functional consultant doing wrong testing.

Read only

0 Likes
638
Hello Engineer.

I have been carrying out the process of creating a price condition on the quote items using the BAPI_CUSTOMERQUOTATION_CHANGE bapi, just as was your case. Can you please tell me how you mapped the BAPI to solve it.

Thank you very much.