Skip to Content
0
Jul 02, 2007 at 03:35 AM

Read an internal table using range.

2570 Views

Dear Expert,

Example:

SELECT-OPTIONS so_klart for kssk-klart.

and I have an internal table it_kssk , which i want to filter by the selection range above.

since it_kssk already populated with data with the previous SQL statements, and I dont want to execute another SQL statement for the filtering. I am trying to avoid selecting it again using SQL because this is a heavy table...

I would like to find a way to read it_kssk with something like this

" read table it_kssk with key kssk-klart <b>IN SO_KLART</b> " ....

Or any function module to do this?

Or any suggestions?

using this way below is kind of tiresome...

LOOP at so_klart .

IF so_klart -option = "EQ"

read table xxxxx.....

elseif so_klart-option = "NE"

read table XXX...

else if ...

.....

Endloop...

Thank you.

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

null