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

Bapi_material_savedata help with parameters

Former Member
0 Likes
452

Hi all, I m using the bapi MATERIAL_SAVEDATA with the views:

BASIC_VIEW, SALES_VIEW, MRP_VIEW, WORK_CHED_VIEW, ACCOUNT_VIEW, AND COST_VIEW.

I need to find wich parameters should I charge in the bapi's structures in order to create all these views.

Can anyone help me?

Regards,

Rox.

1 REPLY 1
Read only

Former Member
0 Likes
350

hi ,

you need to fill the structure HEADDATA which is of type BAPIMATHEAD.

In that you need to fill

MATERIAL,IND_SECTOR,MATL_TYPE,BASIC_VIEW ( put value as 'X' to create views ),SALES_VIEW,PURCHASE_VIEW,MRP_VIEW,WORK_SCHED_VIEW,ACCOUNT_VIEW etc,

You need to pass 'X' to the this field to create the views.

And the rest of the structures you have to fill according to the views.

If you are using this BAPI to change material data then you need to fill the structures and the structures with Suffix 'X' for e.g. if u want to change plant reelated data then you need to fill the structure PLANTDATA of bapi and as well as u need to fill the structure PLANTDATAX and pass 'X' to the corresponding fields to indicate that you want to update that value for e.g.

if u want to change data PLANTDATA-PUR_GROUP then u need to fill the PLANTDATAX-PUR_GROUP as 'X' to update that data.

I hope this will help you.