‎2011 Jul 24 12:57 PM
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
‎2011 Jul 24 1:12 PM
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
‎2011 Jul 25 4:27 AM
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