Code: Alles auswählen.
DATA:
gd_file TYPE string.
DATA:
BEGIN OF gt_selektion OCCURS 1,
ifield1(50) TYPE c,
END OF gt_selektion.
(...)
CONCATENATE sel_path
sel_name
INTO gd_file.
CONDENSE gd_file NO-GAPS.
OPEN DATASET gd_file
FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
CLEAR gw_selektion.
READ DATASET gd_file INTO gw_selektion.
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND gw_selektion TO gt_selektion.
ENDDO.
CLOSE DATASET gd_file.