2008 Jan 22 7:07 PM
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
2008 Jan 22 7:15 PM
I guess you have to go to the database with the range and select the individual values.
Rob
2008 Jan 22 7:17 PM
2008 Jan 22 7:21 PM
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
2008 Jan 22 7:18 PM
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
2008 Jan 22 7:25 PM
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
2008 Jan 22 7:54 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |