‎2007 Feb 07 11:55 AM
Hi all
I need to display an error message if the input values which i took from the selection screen does not exists in the database.At present i am displaying this message on the next screen of the selection screen in the status bar.But I don't want to display this message in the next screen but I want this message to be displayed on the selection screen in the status bar.will u Please tell me how can i do this.I am getting data from database and comparing these values with the input values and displaying error message in the start-of-selection event.
Thank you.
Regards
Giri
‎2007 Feb 07 11:58 AM
Hi
in At selection-screen.
check the validity of the same
display a error message there only.
Regards
Shiva
‎2007 Feb 07 11:58 AM
Hi
in At selection-screen.
check the validity of the same
display a error message there only.
Regards
Shiva
‎2007 Feb 07 11:59 AM
AT selection-screen.
select * from mara where matnr = p_matnr.
if sy-subrc <> 0.
message e000 with text 'No Material Found'.endif.
regards,
Santosh
‎2007 Feb 07 12:01 PM
Hi
Use any of the Report Events say -
<b>AT SELECTION-SCREEN
AT SELECTION-SCREEN on <parameter1>
AT SELECTION-SCREEN on <select-option-low>
AT SELECTION-SCREEN on <select-option-high>
AT SELECTION-SCREEN on BLOCK <blk1>.</b>
And you can issue error message in this event, by creating a perform routine, under that.
Hope this will help.
Regards
- Atul
‎2007 Feb 07 12:05 PM
Hi,
Put like this. This may solve your problem.
For example,
select statement....
if sy-subrc<>0.
message s000(00) with 'Record Not Found'.
stop.
endif.
Now the process will not go to the next screen and let the user to correct the value.
Regards,
U. Uma
‎2007 Feb 07 12:07 PM
Hi Giri,
U can use AT SELECTION-SCREEN ON Para or Select-option event and u can validate the screen values and display the error message.
Regards
Kannaiah