Wednesday, December 22, 2010
REPORT ztest_program. DATA: window_title TYPE string VALUE 'Set download directory'. DATA: sapworkdir TYPE string VALUE 'C:\'. PARAMETERS folder TYPE string. AT SELECTION-SCREEN ON VALUE-REQUEST FOR folder. CALL METHOD cl_gui_frontend_services=>directory_browse EXPORTING window_title = window_title initial_folder = sapworkdir CHANGING selected_folder = folder EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4. IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. IF folder IS INITIAL. MESSAGE 'No folder has been selected' TYPE 'S'. EXIT. ENDIF. START-OF-SELECTION. WRITE folder.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.