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

F4 for folder search on server

Former Member
0 Likes
863

Hi gurus,

I've created a report which has a selection value fora folder on the server. The idea is to select a folder on the server just like FM TMP_GUI_BROWSE_FOR_FOLDER does for local folders on the PC. Is there a function module/class I can use for this.

kind regards,

Wim

Hi gurus,

I've created a report which has a selection value fora folder on the server. The idea is to select a folder on the server just like FM TMP_GUI_BROWSE_FOR_FOLDER does for local folders on the PC. Is there a function module/class I can use for this.

kind regards,

Wim

4 REPLIES 4
Read only

former_member480923
Active Contributor
0 Likes
803

Try this FM: /SAPDMC/LSM_F4_SERVER_FILE

Hope That Helps

Anirban M

Read only

Former Member
0 Likes
803

Hi,

Try class CL_GUI_FRONTEND_SERVICES>DIRECTORY_BROWSE.

Regards,

Himanshu Verma

Read only

0 Likes
803

Thanks for the reply's but CL_GUI_FRONTEND_SERVICES is only for frontend browsing, not on server.

And /SAPDMC/LSM_F4_SERVER_FILE also shows the filenames, I just want the folders.

regards,

Wim

Read only

venkat_o
Active Contributor
0 Likes
803

Hi, Try this way.


"use the below function module it can use both for application and presentation...
 
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
      EXPORTING
        i_location_flag = 'A'   "a for application path and P for presntation palth
        i_server        = ' '
        i_path          = w_path
        filemask        = ' '
        fileoperation   = 'R'
      IMPORTING
        o_path          = w_path.
 
"or use the below function module..
 
  CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
      directory  = w_path       "if any directory you want to show defalt
      filemask   = ' '
    IMPORTING
      serverfile = w_path.        "the return file stores here
Thanks Venkat.O