Skip to Content
0
Former Member
Jun 08, 2007 at 11:21 AM

doubt related to select endselect

8 Views

Hi SDN's

Can i use 'for all entries' with in select and endselect and that too the select is with in a loop.

LOOP AT itab.
  SELECT * FROM <table>
           INTO t_data
           FOR ALL ENTRIES IN itab2
           WHERE field1 = p_field1
             AND filed2 = itab2-field2.
  ENDSELECT.
ENDLOOP.

This code is not returning me any errors, but my query is if all the data is validated and if it turns out true. will this statements really execute and give me the related data.

Regards

Pratyusha