Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function module to check that entered file path

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

Refer to the link.

Regards

Sumit Agarwal

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Use the FM Gui_download, if the file path is incorrect it will raise an exception.

Regards,

Naresh.

Former Member
0 Kudos

Try using this method

CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

Hope this helps!

Regards,

Prashant

Former Member
0 Kudos

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.