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

Displaying the selections screen values

Former Member
0 Likes
880

Hi,

I need to transfer the selection screen values to a file. I'm using Select-options. How do i read the selection screen values. Suppose if the user gives a range of values. from 20-30. In this case, the values transferred to the file should be 20, 21, 22, 23... and so on.

How do i fetch the values.?

Thanks for ur help.

Regds

Albina

Hi,

I need to transfer the selection screen values to a file. I'm using Select-options. How do i read the selection screen values. Suppose if the user gives a range of values. from 20-30. In this case, the values transferred to the file should be 20, 21, 22, 23... and so on.

How do i fetch the values.?

Thanks for ur help.

Regds

Albina

6 REPLIES 6
Read only

Former Member
0 Likes
852

I guess you have to go to the database with the range and select the individual values.

Rob

Read only

0 Likes
852

Hows that done?

Read only

0 Likes
852

You should do it the way Rich has suggested. In addition to ranges and individual values, there may be a mixture of patterns and exclusions.

Rob

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
852

Basically you need to use that select-option and get the values from the database, then write them out.



data: it001 type table of it001.
data: xt001 like line of it001.

select-options: s_bukrs for t001-bukrs.

start-of-selection.

select * into table it001 from t001
               where bukrs in s_bukrs.

* IT001 now has all of the company codes, write them to the file.
Loop at it001 into xt001.

endloop.


Regards,

Rich Heilman

Read only

0 Likes
852

Hi..

Thanks for the update. But i know this option very well. My concern is there are 2 different programs.. one is an Outbound interface program and the other is a report program. Now the Outbound interface prog is a Standard program and this in turn calls a Report program. Hence i'll not be able to pass the selection screen values to the Outbound interface program. Now the report program needs to access these selection screen values and then the data has to be populated based on these entries. Hence I need to store these values in the file. So that i can read these entries in the report program.

Regds

Albina

Read only

Former Member
0 Likes
852

select-options always create default internal table. put debugger mode on and see.then append the values from that internal table to your internal table. hope this could be solve your problem.