Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2779

Re: Restrict technical from standard but allowed through Z-CODE

$
0
0

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.

Capture.JPG

 

 

Regards

KJogeswaraRao


Viewing all articles
Browse latest Browse all 2779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>