09-18-2008 9:06 AM
Hi ,
I need a function module which check that entered file path is valid or not in fore ground mode.
Thanks in advance..
krishan kant
09-18-2008 9:09 AM
09-18-2008 9:17 AM
Hi,
Krishnakant,
Check this link for your requirement.
[https://www.sdn.sap.com/irj/sdn/advancedsearch?query=filenameiscorrect&cat=sdn_all]
In the below link you will also find the procedure to use F4_FILENAME.
[http://www.sap-img.com/abap/using-function-modules-f4-filename.htm]
Regards,
Amit.
09-18-2008 9:22 AM
Hi,
Use the FM Gui_download, if the file path is incorrect it will raise an exception.
Regards,
Naresh.
09-18-2008 9:24 AM
Try using this method
CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
Hope this helps!
Regards,
Prashant
09-18-2008 9:27 AM
hi,
There is a FM which directly opens up the Path window from front end . You can try out this FM so that you will not be required validation part.
PARAMETERS: file_name TYPE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE_NAME.
CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
EXPORTING
dynpfield_filename = 'FILE_NAME'
dyname = sy-cprog
dynumb = sy-dynnr
filetype = 'P' "P-->Physical
location = 'P' "P Presentation Srever
server = space.