Code: Alles auswählen.
FIELD-SYMBOLS:
<fs> TYPE ANY.
Loop at <T> assigning <S>.
...
ASSIGN COMPONENT 'PERNR' OF STRUCTURE <s> TO <fs>.
...
Endloop.
Code: Alles auswählen.
FIELD-SYMBOLS:
<fs> TYPE ANY.
Loop at <T> assigning <S>.
...
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <s> TO <fs>.
IF sy-subrc NE 0.
EXIT.
ENDIF.
* do, what thou willt
ENDDO.
...
Endloop.