Skip to Content
0
Former Member
Feb 02, 2005 at 02:45 PM

Internal table help

28 Views

Hi,

I have an internal table and i would like to read a bunch of records that matches the selection criteria in one step (without using a loop), just like we do using select statement from a DB table...

This is what I currently have...

INTTABLE1 IS A SORTED TABLE WITH KEY F1 F2 F3 F4.

LOOP AT INTTABLE1 INTO S_WORKAREA.

IF S_WORKAREA-F1 = INTTABLE2-F1 AND

S_WORKAREA-F2 = INTTABLE2-F2 AND

S_WORKAREA-F3 = INTTABLE2-F3 AND

S_WORKAREA-F4 = INTTABLE2-F4.

APPEND S_WORKAREA-F5 TO INTTABLE3.

ENDIF.

ENDLOOP.

So, I would like to get rid of this LOOP and still be able to append all the matching records to INTTABLE3. Is there any functionality like that, which lets me do it.

Thanks alot

John