DX_FILE_EXISTENCE_CHECK
PARAMETERS p_file TYPE dxfile-filename.
DATA: flag_file_exists TYPE char1.
CALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'
EXPORTING
filename = p_file "File name with path on Front-end
pc = 'X' "If File to be checked on PC
* SERVER =
IMPORTING
file_exists = flag_file_exists
IF flag_file_exists = 'X'.
MESSAGE 'File entered does not exist.' TYPE 'E'.
ENDIF.
Useful Links
Useful Links