10-30-2009 10:59 AM
Hi,
I have written a code in USER EXIT SAVE DOCUMENT PREPARE for the sales order.
When the sales order is saved I have written code to give information message. Once user presses entere on the information message sales order gets saved but I don't want sales order to be saved. It has to go back to the order rather than saving the order. How can I do this?
If I give error message then it does not save the order but I want to give information message.
Thanks and Regards,
Shravan G.
10-30-2009 11:20 AM
Hi!
Try this:
clear sy-ucomm.
leave to screen sy-dynnr.
Pay attention to point that message must not have 'E' type.
10-30-2009 11:11 AM
hi Shravan,
After triggering information message do like this
MESSAGE 1405(ZSD).
CALL SCREEN '4001'.
It will go to the Previous Screen only. I done same thing for warning message.
Thanx & Regards
Rami Reddy
10-30-2009 11:20 AM
Hi!
Try this:
clear sy-ucomm.
leave to screen sy-dynnr.
Pay attention to point that message must not have 'E' type.