Application Development 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: 

salesorder BAPI not updating the pricing of line item

Former Member
0 Kudos

Hi All,

    

I have a situation where the BAPI doesn't update the price of the existing line item in the sales order, when another line item is deleted. it works fine in standard VA02.

The details are as follows.

  • There are materials which have shipping and handling if the total net price of sales order is less than some value. Let us call one such material as Material A.
  • When material A is added via BAPI, the shipping and handling is coming up which is correct.
  • When Material B is added such that the sales order net total exceeds threshold , the shipping and handling is removed for the Material A, which is also correct.
  • When material B is removed, the material A is not getting updated back with Shipping and handling. The BAPI doesn’t update the price for the material A.

I have tried passing the Update flag for the first material as 'U' while deleting the second material. Even then, the price of the first material doesn't get updated.

Please suggest, if there is any way of achieving this.

Thanks,

Santhosh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Pass the LOGIC_SWITCH-COND_HANDL as 'X' . Still doesnt work.

Regards,
Santhosh.

1 REPLY 1

Former Member
0 Kudos

Pass the LOGIC_SWITCH-COND_HANDL as 'X' . Still doesnt work.

Regards,
Santhosh.