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?

Thanks

Ed Baker

replied

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
  EXPORTING
    current_directory            = 'C:\temp'
  changing
    rc                           = l_rc.

Regards,

Naimesh Patel.

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