Application Development 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: 

Validation

Former Member
0 Kudos

hi

i am having one select option ,in which user can enter range as well as multiple selection.

while validating this select option should get validate by 200000-4500000.

will u guys pls tell me the solution.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

select-options s_range for.....

at selection-screen.

loop at s_range.

if s_range-low < 2000000 or s_range-high > 450000000.

message 'Error' type 'E'.

endif.

endloop.

This should work.

Thanks & Reagrds,

Ankur

Message was edited by: Ankur Jain

3 REPLIES 3

Former Member
0 Kudos

hi,

Checkout the links..,

hope it helps..,

regards,

Vinoth

Former Member
0 Kudos

select-options s_range for.....

at selection-screen.

loop at s_range.

if s_range-low < 2000000 or s_range-high > 450000000.

message 'Error' type 'E'.

endif.

endloop.

This should work.

Thanks & Reagrds,

Ankur

Message was edited by: Ankur Jain

former_member188685
Active Contributor
0 Kudos

Hi,

you need to populate the range table.

ranges: sel for vbak-vbeln.

sel-low = '200000'.
sel-option = 'BT'.
sel-sign = 'I'.
sel-high = '500000'.
append sel.

select vbeln
       from vbak
       into table it_vbak
       where vbeln in sel.

regards

vijay