Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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).

Thanks!

Tags:
Former Member
replied

Hi Gundam,

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'

IMPORTING

serverfile = p_apath

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • No need to check for sy-subrc

ENDIF.

<b>Please mark helpful answer.</b>

Regards,

Amit Mishra

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question