Material Master Extension For New Plant PDF
Material Master Extension For New Plant PDF
Material Master Extension For New Plant PDF
Plant
Applies to:
SAP ECC 6.0. For more information, visit the ABAP homepage.
Summary
There is a need of extending the material of an existing plant in a company code to new plant. The paper
discuss about the various method of extending material from one plant to another.
Author:
Naveen Gupta
Author Bio
Naveen Gupta is working with Infosys technologies limited and has an experience of around
6 years in SAP ABAP. He has worked in various areas of SAP including ABAP, EP and
Upgrades.
Table of Contents
Business Requirement ........................................................................................................................................ 3
Extending Material Master Manually Using MM01 ......................................................................................... 3
Using ABAP Code by Writing a BDC for MM01 .............................................................................................. 5
Using ABAP Code by Using SAP Provided Standard FM's ............................................................................ 6
Using LSMW Direct Input Program RMDATIND ............................................................................................. 7
Related Content ................................................................................................................................................ 12
Disclaimer and Liability Notice .......................................................................................................................... 13
Business Requirement
More often there is a business requirement of extending Material Master for one or more plant. There are
various methods which can be used to achieve this.
c.
Put the Plant and storage location in the next screen for copying from plant and copied to plant:
When clicked OK the Material would be extended for the copied to plant too.
Note: This method is easy but it requires MM01 transaction access in production environment and also its a tedious and
lengthy job once the number of material increases.
c.
Call the FM with the data and the material would be extended for the new plant.
Note: This method is a bit tedious if you have custom fields (Z fields) in material master. As these are standard
structures, they don't have custom fields by default. The possible of achieving the Material master extension using
the above method is to extend each structure associated with the tables. For e.g. MARC_EUB needs to be
extended if Custom fields of the table MARC also need to be updated.
b. In step 2 and step 3 of LSMW. Create the source Structure and maintain the source fields which
needs to be copied for new plant.
c.
d. In step 5 of LSMW. Maintain Field Mapping and Conversion Rules. Fill the structure BMM00 and
BMMH1.
BMM00 needs to be filled with View specific indicators too.
Views can be selected based on the value of PSTAT coming from table MARC.
"ur_VIEW_SEL
Fill BMMH1 structure with the corresponding fields which needs to be updated.
e. In the next steps of LSMW. Specify the file, assign the files, Display the read data, Convert the Data
and Then Display the converted data.
f. In last step of LSMW. Start Direct Input Program RMDATIND
Execute the program and the material would be extended for new plant.
Note: This method also has the overhead for Custom fields (Z fields), if they are present in the material master. In this
case BMMH1 structure can be extended and all the Z fields can be included in the same. Difference between the
FM method and this method is that only one structure needs to be extended in this case rather than all the
structures pertaining to tables.
Related Content
www.sdn.sap.com
www.help.sap.com
www.service.sap.com
For more information, visit the ABAP homepage.