Saturday, March 15, 2014
CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE method is used to selected browser.



REPORT ztest_download.
"&-------------------------------------------------------------*
"& Select-Options
"&-------------------------------------------------------------*
PARAMETERS:sel_fold TYPE string.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_fold.

  CALL METHOD cl_gui_frontend_services=>directory_browse
*  EXPORTING
*    window_title         =
*    initial_folder       =
    CHANGING
      selected_folder      = sel_fold
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      OTHERS               = 4
          .
  IF sy-subrc <> 0.
* Implement suitable error handling here
  ENDIF.

START-OF-SELECTION.

  WRITE sel_fold.



0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.