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

Validation

Former Member
0 Likes
563

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
Read only

Former Member
0 Likes
541

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
Read only

Former Member
0 Likes
541

hi,

Checkout the links..,

hope it helps..,

regards,

Vinoth

Read only

Former Member
0 Likes
542

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

Read only

Former Member
0 Likes
541

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