Pawan
This is a fit case to be addressed through user-exit QQMA0014. Put the following code in the include ZXQQMU20.
IF i_viqmel-qmart = 'M2'.
IF i_viqmel-phase = '4' AND ( sy-tcode = 'IW21' OR sy-tcode = 'IW22' OR sy-tcode = 'IW28') .
MESSAGE: 'Notification completion should be done using ''ZTCODE'' only' TYPE 'I'.
RAISE exit_from_save.
ENDIF.
ENDIF.
- This code has assumed that your Notification type is 'M2'. IF your requirement is for different type change it. If your requirement is for all types then remove the first and last lines of the code.
- Your tcode for your Zprogram is assumed to be ZTCODE, you replace with yours.
- Then when user tries to complete the Notification with tcodes IW21, IW22, IW28, he gets the following error message and the Notification completing is not Saved.
Regards
KJogeswaraRao