Skip to Content
Former Member
Mar 29, 2010 at 09:55 AM

BAPI_MATERIAL_SAVEDATA How to change gross weight and weight unit ??


Hi, I'm trying to do a program to edit gross weight and unit of weight.

I'm trying to do this using BAPI_MATERIAL_SAVEDATA and using the table "unitsofmeasure" to pass the values.

this is the right way to do it?

so far im not being able to chage the material...i dont know why.

here is my code so far:

wa_mara is selected previously from an existing material and I change its gross weigth and unit of weight during the program

a little more information here is the content of returnmessages table when i try to edit the material with matnr = 100000758.

S |M3 |810 |No changes made <

H |MK |102 |Trying to create: 100000758 ____ ____ ____ __________ ____ __ _ _

S |MG |160 |The material cannot be maintained since no maintainable data transferred

H |MK |103 |Trying to create: 100000758 ____ ____ ____ __________ ____ __ _ _

S |M3 |810 |No changes made <

If anyone could tell me what i'm missing i would apreciate, tks