Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Looping through Objects


I'm trying to design business entities with ABAP Objects. I have been able to create internal tables of custom object types.

I stumbled into a very peculiar situation in which i have to loop through my custom object internal table. i couldn't use the WHERE specification since the line type is not a structure. READ TABLE doesnt work either. What i did to overcome the problem was to do a LOOP AT with an IF statement inside and an EXIT command to quit the search when found.

Is there a better solution? And Is the whole idea of wrapping everything in classes and accessing the through an internal idea a good idea in the first place?


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question