Code: Alles auswählen.
PARAMETERS: P_FILE(128) TYPE C
DEFAULT '/usr/sap/tmp/TEST.DAT' LOWER CASE.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = P_FILE
FILETYPE = 'ASC'
MODE = ' '
IMPORTING
FILELENGTH = FILELENGTH
TABLES
DATA_TAB = UEBERGABE_BER
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hallo CharlieD,CharlieD hat geschrieben:Sollte ich lieber die Methode CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD verwenden?