Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Displaying message

Former Member
0 Likes
660

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
616

Hi

in At selection-screen.

check the validity of the same

display a error message there only.

Regards

Shiva

5 REPLIES 5
Read only

Former Member
0 Likes
617

Hi

in At selection-screen.

check the validity of the same

display a error message there only.

Regards

Shiva

Read only

Former Member
0 Likes
616
AT selection-screen.
select * from mara where matnr = p_matnr.
if sy-subrc <> 0.
message e000 with text 'No Material Found'.

endif.

regards,

Santosh

Read only

Former Member
0 Likes
616

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

Read only

Former Member
0 Likes
616

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

Read only

Former Member
0 Likes
616

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