Skip to Content
0
Former Member
Jan 13, 2005 at 04:43 PM

BAPI_SALESORDER_CHANGE- No Pricing Condition Change

928 Views

Hello Forum,

I am trying to change a pricing condition value to zero in a sales order using the BAPI_SALESORDER_CHANGE Function module. Now as far as I am aware from the postings on this and other forums, the BAPI should deactivate the original condition record by setting the indicator field 'KINAK' to 'M' for manual change in the KONV table and then insert a new line for the condition record with the new price value.

However when I am doing the same by filling the tables CONDITION_IN and CONDITION_INX in the BAPI with the relevant values ( UPDATEFLAG = 'U' and filling in the item number and the values with the flags set to 'X' in the INX table), it inserts two lines for the same condition record in the sales order one with old value and one with new. HOWEVER it DOES NOT deactivate the original entry of the condition record.

Thus I have 2 entries

ZABC with Initial value

ZABC with changed value (Zero)

BOTH are active in the table which results in the net value of the sales order line item remaining the same.

Is there any way to work around this ?

Regards,

Preet