Application Development and Automation 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: 
Read only

function module to check that entered file path

Former Member
0 Likes
1,477

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
Read only

Former Member
0 Likes
771

Hi,

Refer to the link.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
771

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.

Read only

Former Member
0 Likes
771

Hi,

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

Regards,

Naresh.

Read only

Former Member
0 Likes
771

Try using this method

CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

Hope this helps!

Regards,

Prashant

Read only

Former Member
0 Likes
771

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.