DATA: it_fields TYPE STANDARD TABLE OF dynpread.
DATA: wa_field LIKE LINE OF it_fields.
DATA: lv_field_type TYPE c.
FIELD-SYMBOLS: <field> TYPE any.
PARAMETERS: ... " irgendwelche Selektionsparameter auf dem Selektionsbild plazieren
AT SELECTION-SCREEN.
" Dynpro Feldwerte lesen vor Feldtransport
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
request = 'A' " alle Elemente auslesen
perform_conversion_exits = ' '
perform_input_conversion = ' '
TABLES
dynpfields = it_fields
EXCEPTIONS
OTHERS = 11.
START-OF-SELECTION.
" ausgelesene Elemente und deren Werte ausgeben
LOOP AT it_fields INTO wa_field.
ASSIGN (wa_field-fieldname) TO <field>.
DESCRIBE FIELD <field> TYPE lv_field_type.
WRITE: / |{ <field> }: { lv_field_type }|.
ENDLOOP.