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?
Naimesh Patel 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.