Code: Alles auswählen.
Start-of-selection.
CALL FUNCTION 'FILE_READ_AND_CONVERT_SAP_DATA'
EXPORTING
I_FILENAME = 'Test'
* I_SERVERTYP = C_APPLICATION_SERVER
I_FILEFORMAT = 'csv '
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
* IMPORTING
* E_BIN_FILELENGTH =
* TABLES
* I_TAB_RECEIVER =
* EXCEPTIONS
* FILE_NOT_FOUND = 1
* CLOSE_FAILED = 2
* AUTHORIZATION_FAILED = 3
* OPEN_FAILED = 4
* CONVERSION_FAILED = 5
* OTHERS = 6
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.