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

Check if Selection screen has any input Value?

Former Member
0 Likes
3,232

Hi,

Is there any way to check if user has entered any value on selection screen. My requirement is that user should enter atleast one value in any select option or parameter.

We can definitely check this by putting all selection screen elements in 'IF' and 'OR' condition.

But i am looking at some other smart way, something kind of collective on selection screen.

Any suggestions?

Regs,

Ags.

5 REPLIES 5
Read only

Former Member
0 Likes
1,410

Hi,

I believe it cannot be done without checking the fields using the IF condition..

SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.

PARAMETERS: P_BUKRS TYPE BUKRS.

AT SELECTION-SCREEN.

IF SO_MATNR[] IS INITIAL OR P_BUKRS IS INITIAL.

MESSAGE E000.

ENDIF.

I believe the above is the only option..

Thanks,

Naren

Read only

Former Member
0 Likes
1,410

Hi,

Just make all those parameters/ selection fields as Obligatory.

e.g.

parameter p type c obligatory.

Read only

Former Member
0 Likes
1,410

Hi agasti,

1. I don't think there is any direct way.

2. We have to use all the fieldnames,

and check individually using OR condition or someother logic.

regards,

amit m.

Read only

Former Member
0 Likes
1,410

HI,

Make the required field with use of key word <b>obligatory</b>

Thanks

Sunil

Read only

Clemenss
Active Contributor
0 Likes
1,410

Agasti,

use FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' to get an internal table of the selection screen parameters and select-options. Just check if all LOW nd HIGH fields are initial - thats's it.

And it works for any report any time!

Regards,

Clemens