Skip to Content
0
Former Member
May 05, 2009 at 09:19 PM

Loop at Conditions within internal table

18 Views

I have not been ABAPing long so primarily have been using keyword help...

I am trying to loop round an itab and only select and process unique keys from within the table!

However the table I am using to obtain the records has multiple records with the same reference and I am only interested in each unique occurrence of the IBASE_COMPONENT_GUID field.

So there could be four items for one Appliance and four for another one. So of the eight records, I would only need to loop round and select the unique GUIDS.

So there would only be two unique appliances I need to extract the records for.

Basically I am trying to do something like this:

    LOOP AT GT_ITEM_DATA INTO GS_ITEM_DATA WITH UNIQUE KEY IBASE_COMPONENT_GUID. 

Is there a way to select each unique occurrence?