Run .EXE files from an ABAP program

by Diwakar

report  zdemo_program
       no standard page heading
       line-size 300.
 
data:
           ifile_table type table of file_table,
           xfile_table type file_table,
            return type i..
 
parameters: p_app type file_table-filename
          default 'C:\'.
 
at selection-screen on value-request for p_app.
 
  clear ifile_table.  refresh ifile_table.
  call method cl_gui_frontend_services=>file_open_dialog
   exporting
      window_title       = 'Get App'
      multiselection     = space
   changing
      file_table         = ifile_table
      rc                 = return
   exceptions
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      others                  = 4.
 
  read table ifile_table into xfile_table index 1.
  if sy-subrc  = 0.
    p_app = xfile_table.
  endif.
 
start-of-selection.
 
  data: app type string.
 
  app = p_app.
  call method cl_gui_frontend_services=>execute
    exporting
      application            =  app.
 



 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image