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_CHANGE

Former Member
0 Likes
814

Hi,

am using bapi_salesorder_change to update the sales order.

When i first create the item with a Material, Qty (by passing req qty in the schedule lines of the BAPI) and Sales Unit, its total weight, volume and netweight are getting calculated automatically based on the Unit of Measure.

Now when i change the sales unit(VRKME) of the material, it is not calculating the total weight/net weight based on the new Sales Unit. It is calculating only based on the old unit.

Please let me know what can be done on this... do i need to pass anyother thing to BAPI..

Onething, i can manually pass netweight, unit of weight to the BAPI... but am not sure of the accuracy.

Your help is appreciated on this.

Hi,

am using bapi_salesorder_change to update the sales order.

When i first create the item with a Material, Qty (by passing req qty in the schedule lines of the BAPI) and Sales Unit, its total weight, volume and netweight are getting calculated automatically based on the Unit of Measure.

Now when i change the sales unit(VRKME) of the material, it is not calculating the total weight/net weight based on the new Sales Unit. It is calculating only based on the old unit.

Please let me know what can be done on this... do i need to pass anyother thing to BAPI..

Onething, i can manually pass netweight, unit of weight to the BAPI... but am not sure of the accuracy.

Your help is appreciated on this.

1 REPLY 1
Read only

Former Member
0 Likes
597

use following query


SELECT SINGLE mseh3 FROM t006b
       INTO (itab_item-sales_unit)
       WHERE  msehi = itab_item-sales_unit
       AND spras = 'E'.


then  in bapi pass itab.