Showing posts with label Print Internal Table to Excel File in ABAP. Show all posts
Showing posts with label Print Internal Table to Excel File in ABAP. Show all posts

Tuesday, June 10, 2014

Print Internal Table to Excel File in ABAP

PARAMETERS  : LV_FILE1(50).
DATA: LV_FILE TYPE STRING.
LV_FILE = LV_FILE1.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
  EXPORTING
    FILENAME                  = LV_FILE
    FILETYPE                  = 'DAT'
  CHANGING
    DATA_TAB                  = ITAB[].