browse directory in application server
I would like to ask if there is any FM provide similar result to that of CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
but browsing the directories in application server?
I want to open a browse directory dialog for input and return the directory path only (doesn't include file name).
Amit Mishra replied
Use the following code :
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
serverfile = p_apath
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
No need to check for sy-subrc
<b>Please mark helpful answer.</b>