‎2008 Jul 04 7:57 AM
Hi Gurus ,
I made a report and i want to retrieve that values that the selection screen have . Can i do it ?
For example :
SELECT-OPTIONS: S_ANITA FOR ZAAHEADMET-YANITA.
How can i retrieve the values that i inserted ....
Points will be rewarded ...
‎2008 Jul 04 7:59 AM
Loop at s_anita.
itab-field1 = s_anita-low.
itab-field2 = s_anita-high.
Append itab.
Endloop.
Reward if Helpful.
Regards,
Sachin M M
‎2008 Jul 04 7:59 AM
S_ANITA-high and S_ANITA-low will contain the values...that u have enterd..
That u can use...
‎2008 Jul 04 7:59 AM
‎2008 Jul 04 7:59 AM
Loop at s_anita.
itab-field1 = s_anita-low.
itab-field2 = s_anita-high.
Append itab.
Endloop.
Reward if Helpful.
Regards,
Sachin M M
‎2008 Jul 04 8:01 AM
hi,
Select-Option is an internal table in itself and the values you have Entered will be present in
S_ANITA-LOW and S_ANITA-HIGH.
You can retreive these values as you retrieve the values of an internal table.
Hope this will help.
Reward if useful.
Sumit Agarwal
‎2008 Jul 04 8:02 AM
HI,
when u declare a select option,Select options have values:
S_ANITA-low = lower value enterd
S_ANITA-high = upper value enterd
Hope it helps you.
‎2008 Jul 04 8:02 AM
Hi,
Internaly a select option stores 4 value corresponding to an entry set. they are HIGH, LOW,SIGN and OPTION. They are stores in the internal table named as your select option name
(Here, S_ANITA).
you can access it to get all the value.Check the following code.
loop at S_ANITA.
write:
/ S_ANITA-low,
S_ANITA-high,
S_ANITA-sign,
S_ANITA-option.
endloop.It will for for multiple selection or complex selection also.
Reward if found helpful.
Anirban Bhattacharjee
‎2008 Jul 04 8:02 AM
Hi,
S_ANITA will have low and hight value. u can directly use this in select statment for which the available values between low and high are selected.
but if u want to know wat are the values between low anfd high..use this:
select yanita
from ZAAHEADMET
into table itab
where yanita in s_anita.
regards,
madhu
‎2008 Jul 04 8:03 AM
Hi,
S_ANITA will have low and hight value. u can directly use this in select statment for which the available values between low and high are selected.
but if u want to know wat are the values between low anfd high..use this:
select yanita
from ZAAHEADMET
into table itab
where yanita in s_anita.
regards,
madhu
‎2008 Jul 04 8:31 AM
Hi,
You can retrieve values which you entered AT SELECTION-SCREEN just like how we get values from internal table. So, S_ANITA is also an internal table you can write these values wihtin the
LOOP AT s_anitha .
WRITE :/ s_anita-low,
s_anita-high,
s_anita-sign,
s_anita-option.
ENDLOOP.
Regards,
Rajitha.
Edited by: Rajitha Muthineni on Jul 4, 2008 1:01 PM