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

Former Member
0 Likes
711

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
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
652

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
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
652

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
653

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

Read only

0 Likes
652

hi jayanthi,

That doesnt have salesdata and storagelocation data.

- priya

Read only

0 Likes
652

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