Skip to Content

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

cl_gui_frontend_services dialog

Hello gurus,

I'm trying to use CL_GUI_FRONTEND_SERVICES to give users a popup file selector box and select one file.

That file will be used later in the program for either uploading or downloading data.

I can't seem to find a method that does what I want.

Have you any suggestions?


Ed Baker

Former Member

You can use the DIRECTORY_SET_CURRENT. In the description, it says don't use but it is working.

Call this method before the FILE_OPEN_DIALOG

data: l_rc type sy-subrc.
CALL METHOD cl_gui_frontend_services=>directory_set_current
    current_directory            = 'C:\temp'
    rc                           = l_rc.


Naimesh Patel.

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