Let's say we loop at fields of the dynamic structure as follows:
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_segment> TO <fs_field>.
IF sy-subrc <> 0. EXIT. ENDIF.
... operate on <fs_field>
ENDDO.
Please explain what you want to achieve exactly...