Skip to Content

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

popup for destination folder at selection screen

hi SAPiens,

i need a function module which will pop-up a window for selecting a folder.........

Tags:
Former Member
replied

Hi,

This sample program found in this forum may this also helpful

report zrich_0001 .
 
parameters: p_path type localfile.
 
 
at selection-screen on value-request for p_path.
 
  data: path_str type string.
 
  call method cl_gui_frontend_services=>directory_browse
      exporting
         window_title    = 'Select Directory'
      changing
         selected_folder = path_str
      exceptions
         cntl_error = 1.
 
  call method cl_gui_cfw=>flush
       exceptions
          cntl_system_error = 1
          cntl_error        = 2.
 
  p_path =  path_str.

aRs

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