Introduction: In this blog post you will learn how to insert your own custom tab/sub-screen onto Material master transactions MM01 / MM02 / MM03.
Let's look the requirement and steps performed to achieve it.
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 includes 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:
- 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.
🙂
I have tried to compile some of the relevant blogs as below; you can refer to them as well:
https://blogs.sap.com/2014/04/13/control-material-master-fields/
https://blogs.sap.com/2014/03/02/material-master-screens-and-fields/
https://blogs.sap.com/2012/04/20/configuring-customized-material-master-adding-sub-screens-in-mm01-m...
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.