Stay at the input screen after prompting message at the status bar

I have some validation on the input values have been performed before executing the program. For invalid input value, I prompt an error message using "MESSAGE 'XXXX' TYPE 'E'.". The message is shown successfully at the bottom, but it goes to an empty screen. How can I show the message and at the same time staying at the user input screen?
Thanks for your help!

Hi,
This can be done as follows.
EG;
SELECT * from mara
     into table i_mara
     where matnr = s_matnr.
if sy-subrc NE 0.
<b> message i000 with text-000.
STOP.</b>
endif.
Use information message and STOP the process this will remain in ur selection screen itself.
Hope this solves ur problem, just a day before i also got the same problema and fixed it.
Kindly reward points and close the thread.

Similar Messages

Maybe you are looking for