Skip to Content
0
Former Member
May 13, 2008 at 09:59 AM

READ command question

19 Views

Hello Experts.

Regarding the READ command I've got a question:

Let's imagine that I've got a local table with several records.

If I perform a READ statement, and I know that there are more than one record that fulfills the READ.

Is there a way to do something like this:

READ lt_table 
   WITH KEY key1 = 100 (holding the indexes where it is true like 35,178,2090).

LOOP AT lt_table into ls_table (only in my indexes 35,178,2090)
  do whatever we have to do.
ENDLOOP

That should increase dramatically the performance of the loop.

Is this possible?

Thank you,

Jorge