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 with BAPI_SALESORDER_CHANGE

Former Member
0 Likes
700

Hi,

I have one requirement,

I will create one sales order using one condition record then I will create Invoice. Once the invoice is created there is a chance to change the condition record. if that is the case then when am changing invoice(VF02) those new pricing details should be redetermined from condition record and has to change the sales order pricing details from BAdI. Am using BAPI_SALESORDER_CHANGE to change the SO pricing details inside BAdI(SD_CIN_LV60AU02).

Am passing sales order no, updation flags, and item number , but it is not changing the required changes in Order data tab. Please let meknow if am missing something in BAPI parameters.

I tried to pass condition type also, but no use. and have reffered old threads.

Please help me.

Dileep

3 REPLIES 3
Read only

Former Member
0 Likes
547

Hi,

In Bapi u mentioned the below parameters or not.Once check it.Because in standard Badi same parameters are maintained.

xvbrk

xvbrp

xkomv (For pricing )

xvbpa

Read only

0 Likes
547

Thanks for ur reply.

The problem is , I have all the above tables, in that xkomv table is useful for me but in BADI this table is having old data.I have to get new condition record details inside BADI. so that i can do some processing in order to populate 'order data' tab.

Issue is how to check new condition record details?

There is one field called 'Your reference' under Order data tab both in sales order and in invoice pricing details. I have to update this field based on the new condition records details.

Regards,

Dileep

Read only

0 Likes
547

Hi,

This BAPI is working fine aspermy requirement now.

Regards,

Dileep.