‎2008 Jun 04 3:12 AM
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.
‎2008 Jun 04 4:24 AM
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.