Code: Alles auswählen.
REPORT z_file_reader_demo_01 .
* Datendefinition *****************
DATA: BEGIN OF itab OCCURS 0,
name(10) TYPE c.
DATA: END OF itab.
* Parameters **********************
PARAMETER: file(60) TYPE c .
* Selections***********************
START-OF-SELECTION.
PERFORM holedaten.
END-OF-SELECTION.
*&--------------------------------------------------
*& Form holedaten
*&--------------------------------------------------
FORM holedaten.
OPEN DATASET file FOR INPUT IN TEXT MODE.
Do.
READ DATASET file INTO itab.
APPEND itab.
ENDDO.
CLOSE DATASET file.
ENDFORM.