Sei sulla pagina 1di 3

Adding Custom field(s) to Quality NotificationQM01/QM02//QM03/QM10

As you can gather from the heading this is about adding custom field to Quality Notification
transactions in SAP, this change will affect transaction QM01, QM02 andQM03. And with few
modifications new field(s) which you will add will also be shown in report QM10.

We will start with modifying the base table to add new field to table, of course append table will be
used to add new field and this is where data will be stored. After this user-exit (screen-exit) need to be
implemented which will be used to accept input and display data in QM0x transactions. There is small
config required at this stage and to end with we will modify a sap standard structure again using
append structure so this new field will be displayed in report QM10.

1. Modify Base Table


Table QMEL stores QM notification data and new field should be added to this table. To add new
field, first thing we need to do is add an append structure. Open table QMEL in SE11 and navigate to
'Append Structure' option. On next screen click on 'Create Append’

Give a name starting with ZZ. If an append structure already exists with name starting with
ZZ then you can skip adding new append structure and instead you can add your field to
that append structure. Once structure is in place, add your fields to the structure. Use
appropriate data element and domain.

If any field is of type quantity or amount don’t forget to mention unit and currency. And define
enhancement category as you would do while defining any table. Finish this step with
activating the append structure. If QMEL table in Production system is huge then consider
moving transport when in weekends.

2. Config to Add Customer screen to Notification type Screen


If you are involved in initial configuration of notification type then you would probably know
that screen tabs and screen groups (sub screen) within screen tabs are configurable in
QM01 transaction. Anyways, even if you don’t know just remember we need to specify the
position of these new fields on the screen. In next few steps we will place these new fields
on sub screen (screen-exit). In notification type configuration we need to specify under which
tab this sub screen is going to appear in QM01.So in transaction SPRO, navigate to menu
path Quality Management, Quality Notification, Overview of Notification Type.

Select the notification type which you would like to modify and double click onscreen
Structure for Extended view'. Extended view shows you all the tabs available and configured
to be shown on QM data entry transaction. Double click on the tab where you would like to
display you sub screen. Note that on each tab maximum 5subscreens can be shown. Here,
before you choose the position of customer sub screen you need to make decision. SAP
allows you to use either one customer-specific area (090) for all notification type or one for
each notification type (091). In simple terms if the field you are going to add is valid across
all notification type and you would like this field to appear in every notification type then use
customer specific area 090. Otherwise, if field is specific to a notification type then you
would select 091 in customer screen. When you enter 091 as customer screen SAP would
let to enter screen number where the fields are defined.
In this particular case I am going to choose 091 as screen area as my field are specific to
this notification type. And I am going to define sub screen number as 100.At this point save
the config and exit. If you execute QM01 transaction for given notification type then system
should throw ABAP runtime error. As sub screen area 100 does not exist in system yet.
Good way to check if config is right.
3. Implement Enhancement (User and Screen exit)
Create a new project in transaction CMOD and add enhancement QQMA0001 to project.
Open function group XQQM in SE80 and create sub screen 100 in it, make sure to define
width of screen as 83 columns so that it blend in with SAP standard sub screens. Place your
input field on the sub screen. Write code to disable input when transactions QM03. You also
need to implement following function module and create respective
include.EXIT_SAPMIWO0_008 include ZXQQMU07
This function module will pass data from QM0x transaction to you
subscreen.EXIT_SAPMIWO0_009 include ZXQQMU08Use this function module to pass
data from custom input fields back to QM0xtransaction. So when user hit Save button your
data will be saved along with all sap-standards field.

4. Modifying Reporting Structure to include customer field in QM10 transaction


Now its time to add custom field to report QM10 - List quality notification. Modify structure
RQMQMEL1 to include your custom field(s). Again use append structure and activate once
done. After this your fields will automatically appear in report

Potrebbero piacerti anche