06-25-2008 10:42 AM
Hi
How to validate the file path when downloading to Presentation or application Server.
06-25-2008 10:45 AM
Hi ,
Pls check the link below:
http://www.saptechnical.com/Tips/ABAP/ValidateFilePath.htm
Hope this will be usefull..
Regards,
Sharath
06-25-2008 10:45 AM
Hi ,
Pls check the link below:
http://www.saptechnical.com/Tips/ABAP/ValidateFilePath.htm
Hope this will be usefull..
Regards,
Sharath
06-25-2008 10:47 AM
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = l_file
RECEIVING
result = l_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
where l_file is only the path....
Reward point if helpful
06-25-2008 10:50 AM
hiii
you can validate file path by following way
REPORT zvalidate.
TYPE-POOLS: abap.
DATA: w_direc TYPE string.
DATA: w_bool TYPE abap_bool.
w_dir = 'c:\Myfolder\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = w_direc
RECEIVING
result = w_bool
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
IF NOT w_bool IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
regards
twinkal