03-04-2009 9:24 AM
Hi experts,
This is regarding BAPI "BAPI_MATERIAL_SAVEDATA".
If you look at MM01 Transaction, When we create Material, Under Basic Data tab, There are fields under Dimension liek Gross Weight, Net Weight.
I m passing data using above BAPI and its not updating the GROSS WEIGHT Field.
Gross Weight(BRGEW) is passed to BAPI Table BAPI_MARM (UNITSOFMEASURE).
However irrespective of using that, its still not updating BRGEW though material is getting created.
can sumone help me as how can this be done ?
Thank You
03-04-2009 9:48 AM
Hello
1. BAPI_MARM-GROSS_WT = ..... " set value here
BAPI_MARMX-GROSS_WT = 'X'.
2. Use
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = 'X'.
after call bapi.
03-04-2009 9:48 AM
Hello
1. BAPI_MARM-GROSS_WT = ..... " set value here
BAPI_MARMX-GROSS_WT = 'X'.
2. Use
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = 'X'.
after call bapi.
03-04-2009 12:50 PM
03-04-2009 7:01 PM
Hi
This kind of problems we face only when we have not passed values to correct field of BAPI or the type of field you are using to pass data to bapi table field is different.
check the variable or field your are using to passing data to BAPI and BAPI table field are same.
field name in database table and bapi table can varry.
read and check each field description in bapi tabel.
03-09-2009 1:14 PM
Hi,
check weather the parameters passed are correct i.e type compatiable if yes ,
try fm
BAPI_MATERIAL_UPLOAD_SAVE
this may work...
thanks
03-09-2009 2:16 PM
Hi,
Check this bapi: 'BAPI_MATERIAL_MAINTAINDATA_RT'
There is a paramter UNITSOFMEASURE that can hold the gross weight..
Make sure you commit this BAPI..
Regards
Shiva