Skip to Content
0
Former Member
Sep 08, 2009 at 05:59 PM

Error message in USER_EXIT_SAVE_DOCUMENT in VA01 / VA02

449 Views

Hi everybody,

Actually, I work on this user exit : USER_EXIT_SAVE_DOCUMENT which is running with transaction codes VA01/VA02.

For each item, I check if the filled date is equal to SY-DATUM, for example. If it's not equal, I want to display an error message (message type "E") to stop saving and to allow the user correcting dates.

It seems to me that an message with type "E" is not allowed in this user exit. So, how can I display my error message on screen to stop saving and to allow the user to correct errors ?

Thanks in advance.