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 options doubt

Former Member
0 Likes
1,134

hi friends,

i made a selection screen.

with

select-options: s_monat for bseg-monat.

now i need to capture these both from and to values into

var1 and var2.

how do i do this.

thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,111

HI,

AT SELECTION SCREEN.

LOOP AT S_MONAT.
VAR1 =  S_MONAT-LOW.
VAR2 =  S_MONAT-HIGH.
ENDLOOP.

Regards

Sudheer

11 REPLIES 11
Read only

Former Member
0 Likes
1,111

hi,

Use low and high for select-options.

Read only

Former Member
0 Likes
1,112

HI,

AT SELECTION SCREEN.

LOOP AT S_MONAT.
VAR1 =  S_MONAT-LOW.
VAR2 =  S_MONAT-HIGH.
ENDLOOP.

Regards

Sudheer

Read only

Former Member
0 Likes
1,111

var1 = s_monat-low will give u FROM value

var2 = s_monat-high will give u TO value

Read only

Former Member
0 Likes
1,111

use WHERE IN s_monat in select or high and low values

Message was edited by:

leonard chomi

Read only

amit_khare
Active Contributor
0 Likes
1,111

var1 = s_monat-low.

var2 = s_monat-high.

Read only

Former Member
0 Likes
1,111

Hi,

you can simply do like this.

var1 = s_monat-low.

var2 = s_monat-high.

regards,

ruchika

Read only

Former Member
0 Likes
1,111

Hi

in the code write , the values will come into varaibles

var1 = s_monat-low.

var2 = s_monat-high.

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
1,111

Hi,

As select-option internally craetes aINternall table, follw this:

DATA: V1 type bseg-monat,

V2 type BSEG-monat.

Loop at s_monat.

V1 = s_monat-low.

V2 = s_monta-high.

Endloop.

Revert back if any issues,

Reward with points if helpful,

Regards,

Naveen.

Read only

Former Member
0 Likes
1,111

Hi,

Behavior of SELECT-OPTIONS

When the Select-Options statement is executed the system creates the internal table with the same variable name . This table is also called as selection table. The main purpose of selection table is to store selection criteria. The table has four standard fields, which are as follows:

• SIGN is a variable, which denotes the system whether the result should be included with those particular criteria. It can contain either I or E. I denotes Inclusion. The criteria are included.

E denotes Exclusion. The criteria are excluded from the result.

• LOW the data type of LOW is the same as the field type of the database table, for which you are using selection criteria. This acts as lower limit of the selection.

• HIGH the data type of HIGH is the same field type of the database table, for which you are using the selection criteria. This acts as higher limit. If you don’t enter HIGH value then the LOW value defines a single value selection.

• OPTION is two-character field, which contains operators like EQ, GT, LT, GE, and LE.

When the user enters both the values i.e., high and low then this field acts as BT (between). If you don’t enter high value then all other operators can be Applicable.

reward points if it is helpful,

Regards,

Omkar..

Read only

Former Member
0 Likes
1,111

Hi saritha

Do like this

var1 = s_monat-low.
var2 = s_monat-high.

Reward if helpfull

Regards

Pavan

Read only

Former Member
0 Likes
1,111

Hi,

Use low and high for select-options.

eg) select-options : s_monat like for bseg-,onat.

var1 = s_monat-low.

var2 = s_monat-high.

Reward Pts if helpful.

Regards

Jitendra