2006 Oct 25 9:31 PM
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.
2006 Oct 25 9:44 PM
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
2006 Oct 27 12:36 PM
Hi,
Just make all those parameters/ selection fields as Obligatory.
e.g.
parameter p type c obligatory.
2006 Oct 27 1:02 PM
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.
2006 Oct 27 1:06 PM
HI,
Make the required field with use of key word <b>obligatory</b>
Thanks
Sunil
2006 Oct 28 3:38 PM
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