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

select-option

Former Member
0 Likes
996

hi

select-option for character data in from and to fields

how to check so that the data in high can be less or greater than low value

9 REPLIES 9
Read only

Former Member
0 Likes
971

Hi,

at selection-screen.

loop at s_op

if s_op-low ...s_op-high.

endif.

endloop.

Regards,

Leo.

Read only

0 Likes
971

hi i need to process character data

so do not any error message even if low is greater than high

"means need to eliminate standard error for select-option"

Read only

0 Likes
971

how will you know if ABAP is greater than SAP ?

TABLES makt.
SELECT-OPTIONS: so_char FOR makt.

try giving Abap and sap and sap and abap

Read only

0 Likes
971

s u can check

makt-matnr is actually number field

try with makt-matkx for select-option

and enter "z" and "a" as low and high

it will show error

Read only

0 Likes
971

i think u need to proceed like the following found in help for select-option

so exploring how to use...check this and reply

parameters: dbtab type c length 30,

column type c length 30.

data name(80) type c.

selection-screen begin of screen 500 as window.

select-options selcrit for (name).

selection-screen end of screen 500.

concatenate dbtab '-' column into name.

call selection-screen 500 starting at 10 10.

Read only

0 Likes
971

Hi Ajay,

If you entering the char in the select options then the comparison between From and to will be taken care by the system. Like as you said if Z in From and A in TO then it gives the error.

But the problem you face when you have the combination of the char and number..the high and low compassion will be different.

Read only

0 Likes
971

this also wont work

any other solution

Read only

Former Member
0 Likes
971

The system by default checks if low is greater than high value ...

Read only

former_member156446
Active Contributor
0 Likes
971

if you are entering a numeric value SAP does it by default..