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 Selection values

former_member194669
Active Contributor
0 Likes
492

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

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

4 REPLIES 4
Read only

Former Member
0 Likes
467

Hi,

Try using SY-DATAR..

IF SY-DATAR = ' '. " No changes in the screen..

ENDIF.

Thanks,

Naren

Read only

Former Member
0 Likes
467

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

Read only

former_member194669
Active Contributor
0 Likes
467

Hi,

Is there any way to get all selection-options values in a single cmd or fun.modlue?

Thanks

aRs

Read only

Former Member
0 Likes
468

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