Code: Alles auswählen.
LOOP AT lt_keys ASSIGNING <key>.
IF lo_category IS BOUND.
CLEAR lo_category. FREE lo_category.
ENDIF.
lo_category ?= get_obj_category( <key> ). "TODO: wieso erfolgt hier ein append auf t_pointer?
IF lo_category IS BOUND.
READ TABLE t_pointer ASSIGNING <pointer>
WITH KEY category = lo_category->s_category_key-category.
IF sy-subrc NE 0.
APPEND INITIAL LINE TO t_pointer ASSIGNING <pointer>.
<pointer>-category = lo_category->s_category_key-category.
<pointer>-object = lo_category.
IF <pointer> IS ASSIGNED.
UNASSIGN <pointer>.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.