Skip to Content
Technical Articles

Customizing Material Master – Adding new tab/sub-screen in MM01 / MM02 / MM03

Introduction: In this competitive world, where the requirement of the users are ever changing; raise the demand and need of customization to the standard solutions provided by the SAP. Such was the case with me in this requirement. I was asked to add a new TAB on the Additional data section of the MM01 / MM02 / MM03 transaction (i.e. while creating, changing or displaying the material in SAP).

After searching all the possible ways like finding a BADI, an exit etc, I got a way to achieve it. In this blog post you will learn how to add your own custom tab/sub-screen onto Material master transactions MM01 / MM02 / MM03. Let’s look the requirement and steps performed to achieve it in detail.

Requirement: To Add a new tab in Additional data section of MM01 transaction.  You can find the screenshot of the requirement as follow:

The solution is a blend of some SPRO configuration and some ABAP programming. Therefore to make this a transportable solution, you would require both customizing as well as workbench transport requests.

Steps:

  1. Go to: SPRO -> SAP reference IMG -> Logistics-General -> Material Master -> Configuring the Material Master. Here you will find the complete steps to achieve this requirement.

2.To add a new tab, go to SPRO -> SAP reference IMG -> Logistics-General -> Material Master –            Configuring the Material Master -> Create Program for Customized Subscreens

Enter a Z Function group and click on ‘Save’:

3. Now go to below path to define the structure:

To add a new tab, go to SPRO -> SAP reference IMG -> Logistics-General -> Material Master ->
Configuring the Material Master -> Define structure of data screens for each screen sequence.

Create the ‘ZZ’ sequence by copying ’21’ standard sequence and click on Save.

Now select the Z sequence, click on ‘Data Screens’ and here add the new data screen information. Here we will have the list of standard views and will add the new data screen at last.

 

4. Now we need to find the screen number (for example, if we want to create a copy of an existing screen), which we can get by navigating to System -> Status

5. Copy screen 2110 into a Z program.

Go to Z program and add a text on custom subscreen 2110.

Now at the configuration level (SPRO -> SAP reference IMG -> Logistics-General -> Material Master ->Configuring the Material Master -> Define structure of data screens for each screen sequence.), click on ‘Sub screens’ and give the Z program name of created function group along with screen number.

6. Now go to below path to assign the secondary screen SAP Customizing implementation guide -> logistics general -> material master -> Configuring the material master -> Assign secondary screens

Select the created screen and click on additional to mention that the screen should be displayed in Additional Data. Here if we don’t create ‘Additional Data’ then the TAB will be added as main view in material master.

7.Now go to below path to maintain the order of screen sequences:

SAP Customizing implementation guide -> logistics general -> material master -> Configuring the material master -> Maintain order of Main and Additional Screens

Select the Z sequence and double click:

If needed, we can change the screen sequences

8.Now go to below path to assign the screen sequences:

SAP Customizing implementation guide -> logistics general -> material master -> Configuring the
material master -> Assign screen sequences to User/Material Type /Transaction/Industry Sector.

Here assign the created Z sequence by replacing ‘21’ sequence

9. Now go to MM01/MM02/MM03 i.e create, change or display a material and Click on ‘Additional Data’.

We can see the new TAB created.

Conclusion: Yes!! In this way we can add our own custom tab in the material master record i,e, while creating, changing or displaying the material. Moreover, with this approach, whatever changes you perform are easily identifiable and can be maintained implicitly.

You can write your own custom modules and subroutines in the Z-Function group created. Isn’t it awesome. 🙂

For any issues, concern or in case you find any difficulties implementing it, please feel free to contact me.

I look forward for your feedback and suggestions.

2 Comments
You must be Logged on to comment or reply to a post.