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_savedata

0 Kudos

Hi,

The requirement is There are six different Types of Material Types.

Material Type: NonStock, Service, Spare Parts, Trading, Finished Product and NonValuated. (views are been given according to material types.)

1. Need to Upload the Materials for one Plant and then copy the same to all other plants.

2.Which extends materials to plants, Sales Area and Storage location (There will be a case where we need to extend only storagelocation within same Plant).

We have developed a program using the bapi Bapi_Material_savedata by passing HEADDATA,CLIENTDATA,CLIENTDATAX,PLANTDATA, PLANTDATAX,STORAGELOCATIONDATA , STORAGELOCATIONDATAX, VALUATIONDATA,VALUATIONDATAX , SALESDATA and SALESDATAX.

Only Marc table has been updated and there is no update made in MARD and MVKE tables.

Views selected are BASIC_VIEW ,PURCHASE_VIEW and ACCOUNT_VIEW.

Pls guide me in this regard .

- Priya

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link for sample code and kindly reward points by clicking the star on the left of reply,if it helps.

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

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link for sample code and kindly reward points by clicking the star on the left of reply,if it helps.

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

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link for sample code and kindly reward points by clicking the star on the left of reply,if it helps.

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

0 Kudos

hi jayanthi,

That doesnt have salesdata and storagelocation data.

- priya

0 Kudos

Hi Priya,

Select the 'Sales_View' and 'Storage_View' i.e pass the values to HEADDATA by setting the flag for these views.

It is dependency need to be set at the header level so that it updates the record properly.

Hope this resolves your issue.

Thank you.

Regards,

Karuna.M