2009 Feb 27 6:44 AM
Hi experts,
I need to find the existence of the file at specific location...is it possible
<<text removed by moderator>>
thnx in advance.
Edited by: Matt on Feb 28, 2009 7:04 PM - Please do not offer rewards or points
2009 Feb 27 6:47 AM
U can do it by using Func. Moduel DX_FILE_EXISTENCE_CHECK or static class CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
2009 Feb 27 6:47 AM
if you want to check the app.server existence hen you can write the OPEn dataset and if it is not succesfull..and all
else check the FM DX_FILE_EXISTENCE_CHECK
regards.
sravan
Edited by: Sravan Kumar on Feb 27, 2009 7:48 AM
2009 Feb 27 6:53 AM
Hi,
Example:
start-of-selection .
CALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'
EXPORTING
FILENAME = file
PC = 'X'
IMPORTING
FILE_EXISTS = FILE_EXISTS
EXCEPTIONS
RFC_ERROR = 1
FRONTEND_ERROR = 2
NO_AUTHORITY = 3
OTHERS = 4
Try like this.
Neelima.
2009 Feb 27 6:47 AM
U can do it by using Func. Moduel DX_FILE_EXISTENCE_CHECK or static class CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
2009 Feb 27 6:51 AM
HI,
Yes for
Presentation Serevr - class CL_GUI_FRONTEND_SERVICES=>FILE
Appication Server - Open Dataset <filename> In INPUT mode....
2009 Feb 27 6:54 AM
2009 Feb 27 6:56 AM
Try this
CL_GUI_FRONTEND_SERVICES=>FILE_EXIST method.
Regards,
Joan