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

Directory browsing in Application Server

Former Member
0 Likes
426

Hi Gurus,

I need Directory browsing facility for my application server . i.e facility to select any directory on my application server. Can any body help me.

Regards,

Srinivas

2 REPLIES 2
Read only

Former Member
0 Likes
383

Hi Srinivas,

Try using function module F4_DXFILENAME_TOPRECURSION or /SAPDMC/LSM_F4_SERVER_FILE (this gives the help in tree structure)

A sample on how to use F4_DXFILENAME_TOPRECURSION

DATA
     : O_PATH     TYPE DXFIELDS-LONGPATH.

PARAMETERS
     : P_FILE     TYPE RLGRAP-FILENAME
       .

START-OF-SELECTION.

  WRITE : 'Selected file',
           P_FILE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

  CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    EXPORTING
      I_LOCATION_FLAG = 'A'
      I_SERVER        = ' '
      I_PATH          = ' '
      FILEOPERATION   = 'R'
    IMPORTING
      O_PATH          = O_PATH
    EXCEPTIONS
      RFC_ERROR       = 1
      ERROR_WITH_GUI  = 2
      OTHERS          = 3.

  P_FILE = O_PATH.

Regards'

Rajvansh

Edited by: Rajvansh Ravi on Jul 24, 2011 2:36 PM

Read only

0 Likes
383

Hi Rajvansh Ravi,

I need to select the directory but not the file name. Below code is allowing me select the file name but not folder/directory name.

Regards,

Srinivas