There are 2 ways to make any Notification filed mandatory.
1. Configuration route:
Here Under Plant Maintenance->Maintenance and Service Processing>Maintenance & Service Notifications>Notification Creation>Notification types> Set Field selection for Notifications:
You select influencing button and your notification type then select the Radio button under Required column (against the
field you want to make mandatory)
2. User Exit Route: Through SMOD -->User Exit QQMA0014 -->Cutsomer Exit EXIT_SAPMIWO0_020 -->Include ZXQQMU20.
Then put your code in this include.
Code Sample
IF i_viqmel-qmart = 'A1'.
DATA: i_qmsm TYPE TABLE OF viqmsm.
i_qmsm[] = t_viqmsm[].
DELETE i_qmsm WHERE kzloesch = 'X'.
IF i_qmsm[] IS INITIAL.
MESSAGE ID 'IW' TYPE 'I' NUMBER 464 WITH 'Tasks'.
RAISE exit_from_save.
ENDIF.
ENDIF.:
(The above Code makes the 'Tasks' filling mandatory in the Notification type 'A1')
Hope this answers your query.
Regards
Jogeswara Rao
Edited by: K Jogeswara Rao on Oct 8, 2010 9:21 AM