Quantcast
Viewing all articles
Browse latest Browse all 2895

Re: Disable creation of Orders from Notification, until notification is saved.

Hello Pavan kumar,

 

As Manuel very rightly pointed out the Clear possibility to still  be able to Create an Order through a Notification from Menu option, here I am providing you a fool-proof method to achieve the same,

 

Put this simple code in the include ZXWOCU07 of user-exit IWO10009.

IF sy-tcode = 'IW21'.

   MESSAGE: 'Order can not be created through Notification Create stage.' TYPE 'E' DISPLAY LIKE 'I'.

ENDIF.

This will throw the following error popup whenever user tries to Create an Order from IW21 screen. Please note that this error will trigger at the time of Order Save event. 

Image may be NSFW.
Clik here to view.
error.JPG

 

If you need to add more conditions like this should be for a particular Order type say ZM02 then the code will be:

IF sy-tcode = 'IW21' AND caufvd_imp-auart = 'ZM02'.

   MESSAGE: 'Order can not be created through Notification Create stage.' TYPE 'E' DISPLAY LIKE 'I'.

ENDIF.

 

Please note that it is the simplest job for an ABAPer. Posting this solution is necessary to facilitate members who go through this thread would be informed about a complete solution. For you even, there is no option other than this.

 

 

Regards

KJogeswaraRao


Viewing all articles
Browse latest Browse all 2895

Trending Articles



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