Application Development and Automation 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: 
Read only

Error In BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
712

Hello Experts

While developing BAPI to material extension from one plant to another.In this I m uploading plant extented from ,Storage location extented from ,material number,Storage location extented to ,plant extented to from excel and rest of the material related data from database directly.

While executing this BAPI program i m getting this error "key fields for use data PLANTDATA and checkbox structure PLANTDATAX are different.

Please suggest how to overcome with this error.

Thanks in Advance.

Priyanka

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
625

in plant data strcture (PLANTDATA) you are passing the below values in the same way you have to pass the values in the structure PLANTDATAX also...

PLANTDATA

PLANT : De01

DEL_FLAG : X

PUR_GROUP : 002

ISSUE_UNIT : EA

PLANTDATAX

PLANT : De01

DEL_FLAG : X

PUR_GROUP : X

ISSUE_UNIT : X

3 REPLIES 3
Read only

Former Member
0 Likes
625

Hello,

Please check the data that you are passing to both the structures, should be same.

Thanks,

Jayant

Read only

Former Member
0 Likes
625

Hi Priyanka,

PFB the link for a WIKI that can help u resolve your error...

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/creating%252ba%252bmaterial%252busing%252bth...

For reference check this link also

https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_material_savedata&cat=sdn_all

please let me know if it helps

With Best Regards,

Kanika

Read only

Former Member
0 Likes
626

in plant data strcture (PLANTDATA) you are passing the below values in the same way you have to pass the values in the structure PLANTDATAX also...

PLANTDATA

PLANT : De01

DEL_FLAG : X

PUR_GROUP : 002

ISSUE_UNIT : EA

PLANTDATAX

PLANT : De01

DEL_FLAG : X

PUR_GROUP : X

ISSUE_UNIT : X