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

MASS Material Extension

Former Member
0 Likes
538

Dear Experts,

  Mine is a construction company, so our every project is termed as a plant in SAP.

  The requirement is materials from all the plants must be same.

  No more extension will be done, only if new material is there, it should be created.

  So i have to extend all materials from one plant to other, skipping already existed material.

  I am working on this using BDC, bt didnt succeed. Since the all the views are not getting captured.

   Please Advice!!!

Regards,

NJ

Dear Experts,

  Mine is a construction company, so our every project is termed as a plant in SAP.

  The requirement is materials from all the plants must be same.

  No more extension will be done, only if new material is there, it should be created.

  So i have to extend all materials from one plant to other, skipping already existed material.

  I am working on this using BDC, bt didnt succeed. Since the all the views are not getting captured.

   Please Advice!!!

Regards,

NJ

1 REPLY 1
Read only

former_member191735
Active Contributor
0 Likes
460

Hi,

you can use BAPI's to do this extension process. It is a long story but in short.

You can use BAPI: BAPI_MATERIAL_GETALL to get the details from an existing plant (Note: try to import as much as possible. If you can, get all the details of the material from an existing plant).

Build/Modify any data required for a new plant and then you can use BAPI

BAPI_MATERIAL_SAVEDATA

to create the material in new plant.

There is a good function module documentation on BAPI_MATERIAL_SAVEDATA for what fields you need to populate.