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: 

BAPI - Material save Data

pintoo_d
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi

Check with the following link

[Material Save Data|;

Hope this link helps you

Regards,

Rajani

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

check weather the parameters passed are correct i.e type compatiable if yes ,

try fm

BAPI_MATERIAL_UPLOAD_SAVE

this may work...

thanks

Former Member
0 Kudos

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