Skip to Content
Author's profile photo Former Member

Additional Fields on the Material Master

This article has its original at my blog http://oprsteny.com

If you need to extend your Material Master view tabs then this article will show how you can do it in few simple steps.

Let’s have an example where we’d like to add some Plant-specific fields to the Material Master and we’d also like these fields to be visible and editable in MM transactions MM01 / MM02 / MM03.

In the example we will add new field Process Code (ZZ_PROCCODE) to the MM View named General Plant Data / Storage 1

Extending the master table

  1. Go to TCode SE11 and display table for plant-specific fields (MARC)
  2. Extend an existing or create new custom Append for MARC table- it will be a normal structure (will be editable in SE11) which will be appended at the end of the table

    New MARC Append structure

  3. Add your fields to the Append-structure – In our example we will add field for storing a process code called ZZ_PROCCODE of type ZZ_DTEL_PROCCODE built on domain ZZ_DOM_PROCCODE.

    New data element for MARC Append structure

    Data element Domain definition

  4. Activate the append structure -> this will trigger the MARC table
    (and all depending tables/structures) adjustments – this can be quite
    time consuming so take care when doing such change in production
    environment

    Updated MARC table with new Append structure

Create/Extend own sub-screen

  1. Create new function group (you can skip this step if you already
    have a FUGR created for this purpose) where you define new sub-screens
    which will contain your custom fields.

    !!! STOP !!!

    Do not create the FUGR manually but go through customizing for the MM views in
    SPRO IMG -> Logistics General -> Material Master ->
    Configuring the Material Master -> Create Programs for Customized
    Subscreens

    SAP IMG for Material Master Customizing

    Let’s call our new FUGR ZSALES_MASTER.

  2. In SE80 display FUGR MGD1 and select the screen (MM View
    sub-screen) you want to enhance with your own fields – in our case it
    will be screen 2701 (Storage data: general data)
  3. Copy the selected screen from MGD1 to your FUGR (keep its current number)

    Copy standard screen to your FUGR

  4. Using Screen Painter edit the new screen in your FUGR (in our case
    screen 2701) and rename the group to some custom text describing the
    group of fields you’re going to put inside. Then delete all fields from
    the screen and put there only your custom fields.

    …the original layout will be changed from this

    Original screen layout

    … to the following

    New screen layout

  5. Save and activate your new screen
  6. In SE80 open the screen (in our case 2701) and go to tab Flow logic
  7. In the code displayed remove (or comment out) all lines manipulating
    with fields that no longer exist in the screen and replace them with
    commands that will manipulate with your own custom fields. Be careful –
    don’t remove (comment out) module calls MODULE GET_DATEN_SUB and MODULE SET_DATEN_SUB – these are responsible for reading data from database and putting them back once you change them in the MM views.

    Changed Flow logic of your new screen

  8. Activate all changes in the custom FUGR (added screen, its layout and flow logic)

Add the new subscreen to the standard MM Views

  1. Go to customizing for the MM views in SPRO IMG -> Logistics
    General -> Material Master -> Configuring the Material Master
    -> Define Structure of Data Screens for Each Screen Sequence
    (Tcode OMT3)

  2. Now you can either create your own screen sequence (by copying some
    of the existing ones) or just modify one of the already prepared ones –
    we will go to update already existing one (21 – Standard Industry: Tab
    pages)

    SAP IMG - MM Screens Sequence Customizing

  3. select the line and double-click on Data Screens

    SAP IMP Screens Sequence Customizing - Data Screens

  4. Now select the line with Screen Desription General Plant Data / Storage 1 and double-click on Subscreens

    SAP IMG Screens Sequence Customizing - Sub Screens

  5. Here you can preview the whole screen with its all sub-screens by pushing the button View Data Screen
  6. You can see your custom sub-screen is not visible … yet :-)
  7. Go back and select the first line where  PROGRAM = SAPLMGD1 and SCREEN=0001 (screen 0001 is a dummy/empty screen), click on the Add new Entries button and replace the program name with SAPLZSALES_MASTER (main program of your FUGR) and put your own screen number (2701)
  8. Press SAVE button (you will be asked for a transport number) and voila …YOU ARE DONE 8-)

To test your new screen go to MM01 or MM02

New material creation

Check in the General Plant Data / Storage 1 tab, that your new field (ZZ_PROCCODE) in your new sub-screen (2161) is visible. Change its value, enter all other required fields and save changes.

New material details

Check in SE16 that data has been saved correctly in the MARC table

New material details in MARC table

Modification of new fields data in PAI

In case you need to process or modify data of your new fields (or

also data of standard fields) during PAI in MM01/MM02/MM03) you have to

implement Customer-Exit EXIT_SAPLMGMU_001.

This user exit is called every time PAI is triggered.

If you need to do some error-checking during the SAVE action only, then you can surround your code with something like

  1. IF sy-ucomm = ‘BU’. “this code executed only during SAVE
  2. * your code
  3. ENDIF.

Assigned Tags

      16 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Excellent

      Author's profile photo Mehmet Ozgur Unal
      Mehmet Ozgur Unal

      Hi Miroslav Oprsteny ;

      I want to add this documents to be referance documents. Please check documents , if you want , i can revise them.

      Control material master fields

      Material master screens and fields

      Regards.

      M.Ozgur Unal

      Author's profile photo Swadhin Ghatuary
      Swadhin Ghatuary

      Hi,

      Thanks a lot for you effort.Nice Document. 🙂

      Author's profile photo Former Member
      Former Member

      Hello,

      Very nice blog!

      Though I'm struggling a bit with the screen sequences.

      In your example, you've chosen to extend the "General Plant Data / Storage 1" view.

      This view only exists in the combination SSQ 01, SCNR 18, so it was added there.


      We have a requirement to append the MRP 4 view, but this screen appears in 9 different screen sequences.. (11, 21, 99, ...). How do I know which one I need to extend? Or should all be extended?  I see the screen sequence descriptions, but how do I know when which screen sequence is applied?


      Hope you can help me with this.


      Best regards,

      Erik

      Author's profile photo Shubham Srivastava
      Shubham Srivastava

      Good document. Simplified Approach...

      Author's profile photo Koushik Reddy K N
      Koushik Reddy K N

      Very easy approach. Thanks

      Author's profile photo Former Member
      Former Member

      Very helpful and easy to follow. Thank you.

       

      Author's profile photo Anoop S E
      Anoop S E

      Thank you..Good document. 🙂

       

      Author's profile photo SRI P
      SRI P

      Thanks. It helped me a lot. I am facing one issue. The field I have added at Forecasting view is not in edit mode either in MM01/MM02. It is graded out and I checked my setting in screen design also. Nothing wrong. Can help me with below screenshots.

      Author's profile photo Gorantla Gandhi
      Gorantla Gandhi

      Simple and Good document.

      In addition to this. Some information on handling the change logs on these custom fields.

      Would be more helpful.

      Author's profile photo Anindya Chaudhuri
      Anindya Chaudhuri

      If you are changing the table in S/4 HANA then you also need to extend proxy view of the table.

      Please check note 2501302 and 2242679 for help.

      Author's profile photo Kunal Mahajan
      Kunal Mahajan

      Hi Miroslav Oprsteny,

      Thank you for the above procedure, it is very helpful.
      I have done all steps as you have mentioned but when I am checking my new subscreen it is not visible in MM01/MM02/MM03.
      Also, I have cross checked this in TCode-OMT3 and it is visible there correctly under Data Screen as well as Subscreen.
      Could you please let me know why my new subscreen is not visible.

      Thanks and Regards,
      KAM

      Author's profile photo Kunal Mahajan
      Kunal Mahajan

      Hi Miroslav Oprsteny,

      Thank you, this is done correct now.
      I have checked the screen sequence used in SPRO configuration, it was different previously in which I did change, now I have done changes in correct screen sequence and this is now visible in MM01/MM02/MM03.

      Thanks and Regards,
      KAM

      Author's profile photo Nicola Martino
      Nicola Martino

      Also you have to apply SAP NOTE 2384182 - (S/4HANA 1511+1610: Material master maintenance: Dumps when using screen sequence DI ) if you have 1511 or 1610.

      Author's profile photo SRIRAM KOMPELL
      SRIRAM KOMPELL

      Hi ,

      Nice Document illustrating the Scren Enhancement. i've a similar requirement where in i need to add fields in MM41(Article Master). can i follow the same approach which you followed. will it work??

      Regards

      Sri Ram

      Author's profile photo Heinz Vogel
      Heinz Vogel

      Nice Blog. Thank you very much for your efforts 👍