2006 Feb 21 8:01 PM
Hello,
I would like to know if is there a FM that helps to get a directory path, but only just the path I don´t need to select a file, I need it because the user has to select a directory for file output.
Thanks
Gabriel
2006 Feb 21 8:07 PM
Hi
See the method DIRECTORY_BROWSE of class CL_GUI_FRONTEND_SERVICES.
Max
2006 Feb 21 8:06 PM
2006 Feb 21 8:07 PM
Hi
See the method DIRECTORY_BROWSE of class CL_GUI_FRONTEND_SERVICES.
Max
2006 Feb 21 8:17 PM
Here is a sample program.
report zrich_0004.
data: str_path type string.
parameters: p_path type localfile.
at selection-screen on value-request for p_path.
call method cl_gui_frontend_services=>directory_browse
exporting
window_title = 'Please select file path'
initial_folder = 'C:'
changing
selected_folder = str_path
exceptions
cntl_error = 1
error_no_gui = 2
others = 3.
call method cl_gui_cfw=>flush.
p_path = str_path.
Regards,
Rich Heilman