You are on page 1of 8

9/17/2014 User-Fields in QM and PM/CS Notifications : Scr...

| SCN 1/8
Getting Started Newsletters Store

Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Log On Join Us Hi, Guest Search the Community
Activity Communications Actions
1 Tweet 3
created by Jogeswara Rao Kavala on Apr 22, 2014 8:41 AM, last modified by Jogeswara Rao Kavala on Sep 12, 2014 6:58 PM
One of the very frequently asked questions in this space, is about the subject matter, i.e., How can I add Custom fields
to my Maintenance Notification? A documentation on this subject would be helpful to the forum for ready reference.

This documentation is intended to enable the readers to create the Custom fields in different tabs of Maintenance
Notification, update the Noyification Master data Table and also display these fields in IW28 / IW29 output.

Let's see how it is done.

Create Custom fields in the Notification Table
The table of our context is QMEL. We need to append our Z-fields to this through the include structure namely
The process of creating any custom field starts with creating a Data Element with desired Type and Length or with
desired Domain name and with the Field Labels we want to have for the Customer fields. For our Demo, we have
created Two Data Elements, namely :
1. Z_DELAY - Type DEC Len 3 Dec 1 and Field Label ‘Delay(H)’
2. Z_REASON - Domain TXT40 and Field Label ‘Reason for Delay’)

Now let us create our Customer fields.
Run Tcode SE11 --> give value QMEL in the Database Table field --> Click on Display. Scroll-down to find include table
CI_QMEL. Double click on this, Go to Change mode and Add Two new fields of our interest as shown in the picture and

As seen in the picture, we have created Two Customer-Fields namely ZZDELAY and ZZREASON. It is essential for all
Customer fields used in Enhancement purposes to be prefixed with ZZ.

Enhancement and Screen-Exit
1, Create an Enhancement Project say ZPMNOT using Tcode CMOD.
User-Fields in QM and PM/CS Notifications :
Screen-Exit QQMA0001
1 Like
Version 7
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 2/8

2. Assign Enhancement QQMA0001 to this project .

3. Click on Components in the picture above to reach this screen.

4. Activate by clicking on the Activate Icon (shown in picture above)
Now the screen is like this.

As we see here, there are several screen-exits (27) and Two Function-Exits namely EXIT_SAPMIWO0_008 and
EXIT_SAPMIWO0_009 in this enhancement.
Double Click on this screen number to create a Sub-Screen for holding our Custom Fields. You’ll get this pop-up. Press
Enter and Continue.
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 3/8

You’re in the screen below, where you’ll give a Description, Select the Subscreen Radio button, Save and Activate.

Click on Layout Arrow in the Application Toolbar of (See the picture above) to reach the Screen-Painter pop-up window,
where we will be creating :
1. A Box to hold our Z-fields
2. Text Fields to for Z-field labels
3. Input Fields for Z-fields

The input fields should be referred to the Dictionary fields we have just created. (QMEL-ZZDELAY and QMEL-
ZZREASON) as shown above.

Activate the screen-painter.

Codes to be given in Function-Exits
Go to the following screen
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 4/8

Double click on the Function-Exit EXIT_SAPMIWO0_008 and put the following code in the include ZXQQMU07 .


Similarly put the following code in the include ZXQQMU08 of the Function-Exit EXIT_SAPMIWO0_009.

SPRO setting to be done
Navigate to the Overview of Notification Type in SPRO.
Select your Notification Type (Here we are doing it in M2) and Enter the Screen Structure for Extended view
Give the following settings in the Malfunction Tab (the tab where we want to have our custom fields)
Almost Done
Let’s see the effect of work done so far.
Create a Maintenance Notification (IW21). You will see the following addition of subscreen area in the Malfunction
Start/End Tab.
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 5/8
Enhancement has been added here by the system, in which our Custom fields appear with their labels and the input

Now let’s add some values in these fields and Save the Notification.

Run IW22, open the Notification and verify whether the values are updated to table or not. If they are appearing as you
have entered and saved, this means the QMEL table has been updated with these values when Notification was saved.

Let's have these Custom fields in the Notification list output namely the ALV of Tcode IW28/29
So far we have succeeded in creating our Custom fields and updating the values to the Notification Master data. Next
natural requirement of a user would be to have these fields in IW28/29 ALV screen. For this purpose we, need to create
an Append Structure in the Structure RIHQMEL_LIST, as shown in the picture below. The Tcode is SE11 again for this
task. Here we have created an Append Structure named ZDLAY and in this structure we have added both the Custom
Now let's create few more Notifications, with custom fields filled with some values. Now run IW28 with selection
parameters to display these Notifications we created. Click on the icon shown , You'd find the Custom fields in the
Column-set list, Bring them to Displayed list on the Right hand side.

Now if you go to IW23 of any of these Notifications, unlike all other greyed-out fields, the Custom fields will be seen
Editable. Though there is no provision to Save the edits here, you’d definitely like to have these fields too in Greyed-out

For this we need to write a small code in the PBO (Process Before Output) module of the screen 0103 we have created.
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 6/8
Average User Rating
(8 ratings)
1 Tweet 3
Double click on the Screen number 0103 of the enhancement,

Un-comment line MODULE STATUS_103. and D’Click on the STATUS_0103 of the PBO module. Insert the following
code between the MODULE, END MODULE lines like this.


Lastly Rememebr to
Activate the Function Group XQQM from Tcode SE80. Right click on the Function Group and click on the Activate option

...... and thus we reach to the end of this knowledge sharing Documentation.

1. As this is largely a Technical job, it is recommended to be developed through an experienced ABAPer, especially
Part1 which involves Activating the Standard table QMEL.
2. The Environment of Author is ECC 6.0 with no EHPs, hence the document applicability.

Expecting this document too would be of use to many of the members,

Thank you
Jogeswara Rao Kavala
2037 Views Tags: eam
Share 1 Like
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 7/8
Like (1)
zafar karnalkar Apr 28, 2014 6:09 AM
Nice document, good explanation.

Like (0)
Jogeswara Rao Kavala Apr 28, 2014 7:58 AM (in response to zafar karnalkar)
Hi Zafar,
Thanks for the compliments

Jogeswara Rao K
Like (1)
Nilesh Gaikwad May 13, 2014 12:14 PM
Very helpfull !!
Like (0)
Jogeswara Rao Kavala May 13, 2014 12:24 PM (in response to Nilesh Gaikwad)
Thank you Nilesh!
Like (1)
Luis Enrique Pachas Aguero Jul 10, 2014 6:37 PM
Hi Jogeswara, I have a scenario of integration of a QM work center with HR, the notification time for the
activity. If you have any information that could help me understand this integration.

Sorry for my bad English.

Luis Pachas
Like (0)
Jogeswara Rao Kavala Jul 11, 2014 3:18 AM (in response to Luis Enrique Pachas Aguero)
Hi Luis,
suggest you to start a fresh thread on this topic to attract more and quality responses. This is
a confined space for discussion and also the subject deviates from the document theme.

Thank you
Jogeswara Rao K
Like (0)
Mohammed Iqbal Jul 15, 2014 2:44 PM
Hi Jogeswara,
Very nice document,just want to know if the same filed can flow to maintenance order and in
maintenance order reporting.
Like (0)
Jogeswara Rao Kavala Jul 15, 2014 3:27 PM (in response to Mohammed Iqbal)
It is 'No'.
You can arrange a connection between this field and another Zfield in the Enhancement tab
of the Order (explained here User Fields in Maintenance Order) by heavy coding in PAI
and PBO of this screen exit. Simply taking this to reports containing Order is easier by
developing a custom report.
Like (1)
Jose Luis Carbajo Sep 4, 2014 7:23 PM
Hi Jogeswara,
Thanks very much for sharing this document.
It's very helpful and well explained.
Like (0)
Jogeswara Rao Kavala Sep 5, 2014 2:12 AM (in response to Jose Luis Carbajo)
Thank you Jose for your review and encouraging comments

Anand Rao Sep 8, 2014 8:28 AM
9/17/2014 User-Fields in QM and PM/CS Notifications : Scr... | SCN 8/8
Follow SCN
Site Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Like (1)
Hi Jogeswara, Excellent document! Thank you for sharing the same! Well explained

Like (1)
Jogeswara Rao Kavala Sep 8, 2014 8:50 AM (in response to Anand Rao)
Thank you Anand,
Happy to receive your appreciation.