To enhance the screen of a notification:
1. Find the user-Exit: qqma0001, Qm/PM/SM: subscreen of the notification title.
2. This enhancement contains many enhancement sub-screens, which are usually not used so much. I will use two, and here.
3. append its own structure in the table corresponding to the view viqmel, and add custom fields. Here is the enhanced table qmel.
4. add your own fields to screen 0100 and screen 0101.
5. Write the corresponding code in the functions exit_sapmiwo0_008 and exit_sapmiwo0_009. Here I am relatively simple, just write the following code in exit_sapmiwo0_009:
E_VIQMEL-aufnr2 = VIQMEL-aufnr2.
E_VIQMEL-ZRGF = VIQMEL-ZRGF.
E_VIQMEL-WAERS1 = VIQMEL-WAERS1.
E_VIQMEL-ZCLF = VIQMEL-ZCLF.
E_VIQMEL-WAERS2 = VIQMEL-WAERS2.
The code is complete. The following is the configuration section.
6. spro-factory maintenance and customer service-maintenance and service processing-maintenance and service notification-Notification Type-set screen templates of the screen type
Enter the Notification Type and add a line item. The table is 10/tab19 (customer data 1). Write the tab title, check the checkbox in the table, and save the item in the 090 area.
7. spro-factory maintenance and customer service-maintenance and service processing-maintenance and service notification-Notification Type Overview
Find the corresponding notification type, click 'screen area in notification head' on the left, and the customer's screen range is 0100,0101. This is our custom screen, which is saved.
Done!