‎2007 Feb 14 9:25 PM
Hi All,
I have report that have 90 selection option inputs.
I have requirement while executing this report, i need to check all these selection inputs , if all are blank then i need to give a error message ' No selection input entered"
I don't need to validate one by one, Is there any easy way to validate all in an easy way?
Thanks
aRs
‎2007 Feb 14 10:24 PM
Hi,
Try this..
Use the FM RS_REFRESH_FROM_SELECTOPTIONS to get the screen values..
THen check the internal table SELECTION_TABLE..
LOOP AT SELECTION_TABLE WHERE LOW <> space OR HIGH <> space.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
Values entered ''
ELSE.
No values enterd..
ENDIF.
Thanks,
Naren
‎2007 Feb 14 9:32 PM
Hi,
Try using SY-DATAR..
IF SY-DATAR = ' '. " No changes in the screen..
ENDIF.
Thanks,
Naren
‎2007 Feb 14 9:52 PM
I think you have to check them individually. SY-DATAR will tell you if the user changed something on the screen, not if there is any data there.
Rob
‎2007 Feb 14 10:21 PM
Hi,
Is there any way to get all selection-options values in a single cmd or fun.modlue?
Thanks
aRs
‎2007 Feb 14 10:24 PM
Hi,
Try this..
Use the FM RS_REFRESH_FROM_SELECTOPTIONS to get the screen values..
THen check the internal table SELECTION_TABLE..
LOOP AT SELECTION_TABLE WHERE LOW <> space OR HIGH <> space.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
Values entered ''
ELSE.
No values enterd..
ENDIF.
Thanks,
Naren