Hello pmsap9
- Have a look at this useful post in this direction: Do you want to hide NOPR / NOCO icons of PM/CS/QM Notifications?
- You apply the thing explained for NOPR and NOCO icons in the above post here also. Only difference is the Order icon will not be disappearing, but it will be dysfunctional.
- Let's suppose you want to prevent user from Creating Order during IW21 tcode for a Notification type say 'M2' then, just put this simple code in the include ZXQQMU35 of user-exit QQMA0024 and the job is done.
IF i_tq80-qmart = 'M2' AND sy-tcode = 'IW21' .
APPEND 'COAE' TO t_ex_fcode.
ENDIF.
With this code, while user creating M2 notification (IW21), when clicks on Order create icon, he gets an error in the status bar.
So this stops from creating an Order in the above conditions. You can make simple changes in the code to suit to your situation.
Good luck
KJogeswaraRao