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

Retreive values form Selection Screen .

Former Member
0 Likes
1,111

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 ...

1 ACCEPTED SOLUTION
Read only

sachin_mathapati
Contributor
0 Likes
1,083

Loop at s_anita.

itab-field1 = s_anita-low.

itab-field2 = s_anita-high.

Append itab.

Endloop.

Reward if Helpful.

Regards,

Sachin M M

9 REPLIES 9
Read only

former_member195383
Active Contributor
0 Likes
1,083

S_ANITA-high and S_ANITA-low will contain the values...that u have enterd..

That u can use...

Read only

former_member188827
Active Contributor
0 Likes
1,083

u can retrieve value from s_anita-low and s_anita-high.

Read only

sachin_mathapati
Contributor
0 Likes
1,084

Loop at s_anita.

itab-field1 = s_anita-low.

itab-field2 = s_anita-high.

Append itab.

Endloop.

Reward if Helpful.

Regards,

Sachin M M

Read only

Former Member
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

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.

Read only

Former Member
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

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

Read only

Former Member
0 Likes
1,083

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