Application Development 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: 

Addition of new Tab in MM01

Former Member
0 Kudos

Hi

I have to add a new tab & a field in the MM01,through the BADI or User exit,but I don;t have any idea abt these.So please give me the solution or the doc so that i can have the idea of making a new tab in MM01 also if anyone can provide me the doc for BADI or User exit so that I can also get an understanding abt them.It will be a great help.

Thanks & Regards

Vipin Sharma

7 REPLIES 7

Former Member
0 Kudos

Hi

check the following exits and BADI's

related to MM01

Enhancement

MGA00001 Material Master (Industry): Checks and Enhancements

MGA00002 Material Master (Industry): Number Assignment

MGA00003 Material Master (Industry and Retail): Number Display

Business Add-in

MATGRP_SKU_UPD BAdI for Article Hierarchy Connection

CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT

BADI_MM_MATNR Modification-Free Archiving Enhancement of MM_MATNR

BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection

BADI_MATNR_CHECK_PVS Check Material for Use in iPPE

BADI_MATERIAL_REF Addition of customer-defined default data for material

BADI_MATERIAL_OD Integration of New Objects in Material or Article Master

BADI_MATERIAL_CHECK Enhanced Checks for Material Master Tables

BADI_GTIN_VARIANT User Exit for Customer-Specific GTIN Variant Check

BADI_EAN_SYSTEMATIC BAdI for Internal Control of EAN Logic

WRF_DISCONT_PARAMS_I BAdI: Parameters in Fashion Discontinuation

WRF_DISCONT_FACT_E BAdI: Follow-Up Actions in Discontinuation

WRF_DISCONT_CHECKS_I BAdI: Scope of Check in Material Reorganization

MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Hi,

please check the below Notes:

Note 38299: “Customized material master: concepts”

Note 44410: “Integrate Customer Specific fields in material master”

“To extend an existing material master table to include specific customer-specific fields, you can proceed as follows:

1. Extend the required table in the Dictionary using an append structure

2. Extend online maintenance in customer-specific material master maintenance.

a. Define a sub screen with your customer-specific fields in a customer-specific function group created as a copy of standard function group MD1

b. In configuration, assign this sub screen to a maintenance screen using the “Copy customized material master” function…..(program COPYMGD1 is available)

3. To update customer-specific fields via data transfer, proceed as follows:

a. Include the fields in central table T130F

b. Extend the data structures for data transfer to include the customer-specific fields

c. Include the customer-specific fields in those tables in which the incorrect data is stored during Direct Input.

Let me know if you need more information...

<b>Reward points</b>

Regards

Former Member
0 Kudos

There is no user exit or BADI to get new tab,you need to configure as below

How To Create a Customized Tab View for Material Master Creation?

Requirement 1:

Suppose if you want to add your own view with your own ‘Z’ Fields or the Standard Fields from different tables.

Get the ‘Z’ Fields created in the Respective Table.

Then execute SPRO.

Select the following path.

In SPRO -> IMG Activity -> Logistics General -> Material Master -> Configuring Material Master -> Create a program for sub screen.

Then Enter the Function Group name and save in to a development class say Z_TEST.

Then execute SE80 transaction.

Select Function Group MGD1.

If you are adding Fields in MARC then search for suitable screen, which contains MARC Fields. Like That Based on the table fields you are using select the sub screens numbers.

Then Copy each selected subscreens in to the above created function group Z_TEST.

Then Enter the Z_TEST in the function group and enter.

Then click on refresh button.

Now add your own fields in the copied screens.

Don’t remove the PBO and PAI Modules Existing in the sub screens.

In PAI Logic remove the existing fields and put the FIELD Statement for each field added to that sub screen. The field statements are needs to be placed between GET_DATEN_SUB and SET_DATEN_SUB.

If any validations have to be made for the data entered in the fields write those modules in between above modules.

In the same way if you want to make any validations in the PBO logic then write your own modules in between the GET_DATEN_SUB and SET_DATEN_SUB of PBO Logic.

Then create all the screens required and activate it.

Now under this point all are required to be done very carefully. All are IMG Settings.

1. SPRO

2. In SPRO -> IMG-> Logistics General -> Material Master -> Configuring Material Master -> Define Structure of Data Screens for Each Screen Sequence

3. Select the Industry Sector Used by the client.

4. Then Double Click on the Data Screens.

5. Then Select the Screen sequence such a way that what ever the sub screen you copied from MGD1 to your view from the standard view and make a copy of it and change the names and screen sequence and names in it. Don’t change the Maintenance Status, which is very important

6. For Example

If you copy the sub screen from the Plant/Storage View then Select that view and make a copy of it and do necessary changes.

7. Then Select the above-created Data Screen and double click on Subscreens.

8. Then enter the screen sequence number, your function group name (Z_TEST) and the screen numbers as per your requirement.

9. Then Save it and come back.

10. Then select IMG Activity -> Implementation Guide for R/3 Customizing (IMG) -> Logistics – General -> Material Master -> Configuring the Material Master -> Assign Screen Sequences to User/Material Type/Transaction/Industry Sector

11. Then check that the industry sector assigned there is that of you added the data screens.

Then Check by executing MM01, MM02, MM03 Transactions.

Requirement 2:

Some Times the Display of the fields created in your customized screens is to be based on the material type entered while creating the material. Then you have to do the following steps after finishing the first requirement steps.

1. IMG Activity -> Implementation Guide for R/3 Customizing (IMG) -> Logistics – General -> Material Master -> Field Selection -> Assign Fields to Field Selection Groups.

2. Then click on New Entries.

3. Here you group your customized screen fields accordingly as per the material type. And assign them the same selection group. For selection group number you can use (200 to 299).

4. Then for each field give the Maintenance status as you given for that Data Screen in the First Requirement.

5. Then save it and come back.

6. Then go to this step. IMG Activity -> Implementation Guide for R/3 Customizing (IMG) -> Logistics – General -> Material Master -> Field Selection -> Maintain Field Selection for Data Screens

7. Check for the corresponding material type and then give the above selection group and in that select the different options as Hide, Optional, and Display according your requirement.

8. Then Check by executing the transactions MM01, MM02, MM03.

Thanks

Seshu

carsten_srensen
Participant
0 Kudos

Hi folks

I have now read a lot of answes in the Sapfans forum, and in the sdn.sap.com. And read the OSS note 44410. But as far as I understand this is all about extending the MARA table (or other SAP tables)!?

I have our own Z-table with our own fields. ANd these fields I want to display/edit in the MM01 - MM03 transactions. in a new tab(view)

Do I have to do like mentioned in OSS 44410?? Or is it in a different way when it is a z-table, not a custmer include to an existing SAP table?

Best regards

Carsten

0 Kudos

Could you pleaes tell me how to do it? I am about to do the same thing like this

Former Member
0 Kudos

Hello,

Please refer to

Check the exit EXIT_SAPLMGMU_001..

Regards,

Sachin

Former Member