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: 

Help on Using BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos

Hi ,

i want to update the Material no , plant , safty stock , and date in MARC table .so is it possiable with BAPI_MATERIAL_SAVEDATA. when i am executing this BAPI i am getting the Return message "Key fields for user data PLANTDATA and checkbox structure PLANTDATAX are different " i want to update only plant data so what r the import and expost ,tables parameters i should select . if possiable send some sample code.

if this Bapi don't support for this requirement suggest some other BAPI.

Thanks

Prithvi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

While sending data of the plant in the parameter PLANTDATA you also need to specify which fields you are changing using the parameter PLANTDATAX by passing a X in the appropriate fields of PLANTDATAX.

I think you have missed doing that, that is why its throwing that error. Try passing that.

Regards,

Ravi

Note : Please mark all the helpful answers

2 REPLIES 2

Former Member
0 Kudos

Hi,

While sending data of the plant in the parameter PLANTDATA you also need to specify which fields you are changing using the parameter PLANTDATAX by passing a X in the appropriate fields of PLANTDATAX.

I think you have missed doing that, that is why its throwing that error. Try passing that.

Regards,

Ravi

Note : Please mark all the helpful answers

former_member188685
Active Contributor
0 Kudos

The parameters are PLANTDATA and PLANTDATAX .

check this sample code...

http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm

Regards

vijay