Sorun Cevaplayalım

İşinizle ilgili öngörüler edinin, gerçek zamanlı bilgilere göre karar alın.

SAP Eğitim ve Sertifika Dönemleri

Uzmanlığınızı ve deneyiminizi SAP çözümleri kullanarak tasdik edin.

Çözüm Ekibi Başvurusu

Kullanıcılara hızlı ve pratik çözümler üreterek görev almak isteyenler.

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

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
678
Tepki puanı
7
Puanları
6
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:

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


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.

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


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

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


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

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


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.

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


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

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


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


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.

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


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




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

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


5. Copy screen 2110 into a Z program.

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


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

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


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.

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


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


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

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


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.

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


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


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

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


Select the Z sequence and double click:

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


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


If needed, we can change the screen sequences

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


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

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


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


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.

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


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.
Customizing Material Master – Adding new tab/sub-screen in MM01 / MM02 / MM03


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.

Okumaya devam et...
 

Ekli dosyalar

Üst