cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module to get URL for Application Server Files

Former Member
0 Kudos

Hi Experts,

Is there any Function Module available to get URL for Application Server Files.

There are Multiple files stored under a directory in Application Server.

I need to show URL in Web dynpro screen for those files. If User clicks on URL, that needs to be open corresponding files(Images).

Regards,

Arjun.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Arjun,

Try these FM to get the files from Application server.

call function 'RZL_READ_DIR'

        exporting

          name           = p_file            " Application server directory

          srvname        = ' '

        tables

          file_tbl       = lt_file              " this internal table having list of file names

        exceptions

          argument_error = 1

          not_found      = 2

          send_error     = 3

          system_failure = 4

          others         = 5.

FM-----SUBST_GET_FILE_LIST.

And using this FM 'WDY_CONSTRUCT_URL '  you can construct URL of every file and display on UI.

also refer this Docu for Some FM

http://wiki.sdn.sap.com/wiki/display/ABAP/Useful+ABAP+Function+Modules

Regards

Madhukiran.