0% found this document useful (0 votes)
151 views13 pages

Additional Fields On The Material Master - SAP Blogs

Uploaded by

Sriram C S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
151 views13 pages

Additional Fields On The Material Master - SAP Blogs

Uploaded by

Sriram C S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

11/20/2017 Additional Fields on the Material Master | SAP Blogs

Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner About
About  
Home / Community / Blogs + Actions

Additional Fields on the Material Master


March 6, 2015 | 11,515 Views |

Miroslav Oprsteny
more by this author

ABAP Development
enhancement | materials management

share
0 share
0 tweet share
0

Follow

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

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 1/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

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.

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 2/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

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 !!!
https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 3/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

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)

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 4/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

… to the following

5. Save and activate your new screen


6. In SE80 open the screen (in our case 2701) and go to tab Flow logic

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 5/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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.

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)

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 6/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

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

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 7/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

To test your new screen go to MM01 or MM02

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.

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 8/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

Check in SE16 that data has been saved correctly in the 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

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 9/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

2. * your code
3. ENDIF.

Alert Moderator

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

Iftikhar Anwar

March 6, 2015 at 6:37 am

Excellent

Mehmet Ozgur Unal

March 6, 2015 at 3:40 pm

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 10/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

swadhin ghatuary

March 7, 2015 at 8:51 am

Hi,

Thanks a lot for you effort.Nice Document.

EV

April 4, 2016 at 9:09 am

Hello,

Very nice blog!

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


https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 11/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

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

Shubham Srivastava

April 4, 2016 at 9:16 am

Good document. Simplified Approach…

Koushik Reddy K N

February 28, 2017 at 7:12 am

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 12/13
11/20/2017 Additional Fields on the Material Master | SAP Blogs

Very easy approach. Thanks

Paul Heaney

April 13, 2017 at 12:29 pm

Very helpful and easy to follow. Thank you.

Share & Follow Privacy Terms of Use Legal Disclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2015/03/06/additional-fields-on-the-material-master/ 13/13

You might also like