‎2007 Jun 07 8:12 AM
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.
‎2007 Jun 07 8:14 AM
HI,
AT SELECTION SCREEN.
LOOP AT S_MONAT.
VAR1 = S_MONAT-LOW.
VAR2 = S_MONAT-HIGH.
ENDLOOP.Regards
Sudheer
‎2007 Jun 07 8:13 AM
‎2007 Jun 07 8:14 AM
HI,
AT SELECTION SCREEN.
LOOP AT S_MONAT.
VAR1 = S_MONAT-LOW.
VAR2 = S_MONAT-HIGH.
ENDLOOP.Regards
Sudheer
‎2007 Jun 07 8:14 AM
var1 = s_monat-low will give u FROM value
var2 = s_monat-high will give u TO value
‎2007 Jun 07 8:14 AM
use WHERE IN s_monat in select or high and low values
Message was edited by:
leonard chomi
‎2007 Jun 07 8:15 AM
‎2007 Jun 07 8:15 AM
Hi,
you can simply do like this.
var1 = s_monat-low.
var2 = s_monat-high.
regards,
ruchika
‎2007 Jun 07 8:15 AM
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
‎2007 Jun 07 8:15 AM
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.
‎2007 Jun 07 8:15 AM
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 dont 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 dont enter high value then all other operators can be Applicable.
reward points if it is helpful,
Regards,
Omkar..
‎2007 Jun 07 8:17 AM
Hi saritha
Do like this
var1 = s_monat-low.
var2 = s_monat-high.Reward if helpfull
Regards
Pavan
‎2007 Jun 07 11:34 AM
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