2010 May 05 5:24 AM
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.
2010 May 05 12:38 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |