<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577145#M861110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code to create one excel sheet in ABAP Screen. Though its showing me the excel sheet, but the data is not getting populated in the excel sheet. Kindly help ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Populating Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT vbeln matnr erdat UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO TABLE t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Create the instance CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD c_oi_container_control_creator=&amp;gt;get_container_control&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      control = control&lt;/P&gt;&lt;P&gt;      error   = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Create a container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" create the object that manages the link to the OLE interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;init_control&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      r3_application_name      = 'R/3 Basis'&lt;/P&gt;&lt;P&gt;inplace_enabled          = inplace&lt;/P&gt;&lt;P&gt;      inplace_scroll_documents = 'X'&lt;/P&gt;&lt;P&gt;      parent                   = container&lt;/P&gt;&lt;P&gt;      register_on_close_event  = 'X'&lt;/P&gt;&lt;P&gt;      register_on_custom_event = 'X'&lt;/P&gt;&lt;P&gt;      no_flush                 = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      error                    = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;get_document_proxy&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_type  = 'Excel.Sheet'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      document_proxy = document&lt;/P&gt;&lt;P&gt;      error          = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;create_document&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_title = 'Excel'&lt;/P&gt;&lt;P&gt;      open_inplace   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;has_spreadsheet_interface&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      is_available = has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;get_spreadsheet_interface&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      sheet_interface = handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD handle-&amp;gt;insert_full&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      data              = t_itab[]&lt;/P&gt;&lt;P&gt;      sema              = lt_sema[]&lt;/P&gt;&lt;P&gt;      hkey              = lt_hkey[]&lt;/P&gt;&lt;P&gt;      vkey              = lt_vkey[]&lt;/P&gt;&lt;P&gt;      online_text       = lt_online[]&lt;/P&gt;&lt;P&gt;      n_vrt_keys        = 0&lt;/P&gt;&lt;P&gt;      n_hrz_keys        = 0&lt;/P&gt;&lt;P&gt;      n_att_cols        = l_colno&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      dim_mismatch_data = 1&lt;/P&gt;&lt;P&gt;      dim_mismatch_sema = 2&lt;/P&gt;&lt;P&gt;      dim_mismatch_vkey = 3&lt;/P&gt;&lt;P&gt;      error_in_hkey     = 4&lt;/P&gt;&lt;P&gt;      error_in_vkey     = 5&lt;/P&gt;&lt;P&gt;      inv_data_range    = 6&lt;/P&gt;&lt;P&gt;      error_in_sema     = 7&lt;/P&gt;&lt;P&gt;      OTHERS            = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(38) WITH 'Error Code: ' sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 10:35:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-27T10:35:41Z</dc:date>
    <item>
      <title>Creating Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577145#M861110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code to create one excel sheet in ABAP Screen. Though its showing me the excel sheet, but the data is not getting populated in the excel sheet. Kindly help ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Populating Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT vbeln matnr erdat UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO TABLE t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Create the instance CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD c_oi_container_control_creator=&amp;gt;get_container_control&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      control = control&lt;/P&gt;&lt;P&gt;      error   = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Create a container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" create the object that manages the link to the OLE interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;init_control&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      r3_application_name      = 'R/3 Basis'&lt;/P&gt;&lt;P&gt;inplace_enabled          = inplace&lt;/P&gt;&lt;P&gt;      inplace_scroll_documents = 'X'&lt;/P&gt;&lt;P&gt;      parent                   = container&lt;/P&gt;&lt;P&gt;      register_on_close_event  = 'X'&lt;/P&gt;&lt;P&gt;      register_on_custom_event = 'X'&lt;/P&gt;&lt;P&gt;      no_flush                 = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      error                    = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;get_document_proxy&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_type  = 'Excel.Sheet'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      document_proxy = document&lt;/P&gt;&lt;P&gt;      error          = error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;create_document&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_title = 'Excel'&lt;/P&gt;&lt;P&gt;      open_inplace   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;has_spreadsheet_interface&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      is_available = has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD document-&amp;gt;get_spreadsheet_interface&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      sheet_interface = handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD handle-&amp;gt;insert_full&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      data              = t_itab[]&lt;/P&gt;&lt;P&gt;      sema              = lt_sema[]&lt;/P&gt;&lt;P&gt;      hkey              = lt_hkey[]&lt;/P&gt;&lt;P&gt;      vkey              = lt_vkey[]&lt;/P&gt;&lt;P&gt;      online_text       = lt_online[]&lt;/P&gt;&lt;P&gt;      n_vrt_keys        = 0&lt;/P&gt;&lt;P&gt;      n_hrz_keys        = 0&lt;/P&gt;&lt;P&gt;      n_att_cols        = l_colno&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      dim_mismatch_data = 1&lt;/P&gt;&lt;P&gt;      dim_mismatch_sema = 2&lt;/P&gt;&lt;P&gt;      dim_mismatch_vkey = 3&lt;/P&gt;&lt;P&gt;      error_in_hkey     = 4&lt;/P&gt;&lt;P&gt;      error_in_vkey     = 5&lt;/P&gt;&lt;P&gt;      inv_data_range    = 6&lt;/P&gt;&lt;P&gt;      error_in_sema     = 7&lt;/P&gt;&lt;P&gt;      OTHERS            = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(38) WITH 'Error Code: ' sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577145#M861110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577146#M861111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ZMULTICOLOR_TEST no standard page heading.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this report demonstrates how to send some ABAP data to an&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEL sheet using OLE automation.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;include ole2incl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handles for OLE objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: h_excel type ole2_object,        " Excel object&lt;/P&gt;&lt;P&gt;      h_mapl type ole2_object,         " list of workbooks&lt;/P&gt;&lt;P&gt;      h_map type ole2_object,          " workbook&lt;/P&gt;&lt;P&gt;      h_zl type ole2_object,           " cell&lt;/P&gt;&lt;P&gt;      h_f type ole2_object,            " font&lt;/P&gt;&lt;P&gt;      h_c type ole2_object.            " color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FILENAME LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: spfli.&lt;/P&gt;&lt;P&gt;data  h type i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table of flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_spfli like spfli occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;   Event START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * from spfli into table it_spfli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  uline (61).&lt;/P&gt;&lt;P&gt;  write: /     sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;          (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.&lt;/P&gt;&lt;P&gt;  uline /(61).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display flights&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_spfli.&lt;/P&gt;&lt;P&gt;    write: / sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-carrid color col_key no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-connid color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-cityto color col_normal no-gap, sy-vline no-gap,&lt;/P&gt;&lt;P&gt;             it_spfli-deptime color col_normal no-gap, sy-vline no-gap.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  uline /(61).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-007&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create object h_excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM ERR_HDL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set property of h_excel  'Visible' = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'  .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM ERR_HDL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-008&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get list of workbooks, initially empty&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of h_excel 'Workbooks' = h_mapl.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add a new workbook&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of h_mapl 'Add' = h_map.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tell user what is going on&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          PERCENTAGE = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           text       = text-009&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;output column headings to active Excel sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform fill_cell using 1 1 1 200 'Carrier id'(001).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 2 1 200 'Connection id'(002).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 3 1 200 'City from'(003).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 4 1 200 'City to'(004).&lt;/P&gt;&lt;P&gt;  perform fill_cell using 1 5 1 200 'Dep. Time'(005).&lt;/P&gt;&lt;P&gt;  loop at it_spfli.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy flights to active EXCEL sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    h = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;    if it_spfli-carrid cs 'AA'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 000255000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'AZ'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 168000000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'JL'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 168168000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'LH'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 111111111 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-carrid cs 'SQ'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 100100100 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 1 0 000145000 it_spfli-carrid.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-connid lt 400.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 255000255 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-connid lt 800.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 077099088 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 2 0 246156138 it_spfli-connid.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-cityfrom cp 'S*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-cityfrom cp 'N*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-cityto cp 'S*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 200200200 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-cityto cp 'N*'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 000111222 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 4 0 130230230 it_spfli-cityto.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if it_spfli-deptime lt '020000'.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 145145145 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-deptime lt '120000' .&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 015215205 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    elseif it_spfli-deptime lt '180000' .&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 000215205 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      perform fill_cell using h 5 0 115115105 it_spfli-deptime.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEL FILENAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE SY-REPID '_' SY-DATUM&lt;EM&gt;6(2) '_' SY-DATUM&lt;/EM&gt;4(2) '_'&lt;/P&gt;&lt;P&gt;              SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  free object h_excel.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM FILL_CELL                                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      sets cell at coordinates i,j to value val boldtype bold       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fill_cell using i j bold col val.&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = h_zl&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      #1 = i&lt;/P&gt;&lt;P&gt;      #2 = j.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_zl 'Value' = val .&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  get property of h_zl 'Font' = h_f.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_f 'Bold' = bold .&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;  set property of h_f 'Color' = col.&lt;/P&gt;&lt;P&gt;  perform err_hdl.&lt;/P&gt;&lt;P&gt;endform.                    "FILL_CELL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  ERR_HDL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      outputs OLE error if any                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form err_hdl.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write: / 'OLE-Automation Error:'(010), sy-subrc.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " ERR_HDL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577146#M861111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577147#M861112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. But it has not solved my issue.&lt;/P&gt;&lt;P&gt;I want an excel sheet embedded in my SAP screen.&lt;/P&gt;&lt;P&gt;Please let me know where I am wrong in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swastik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577147#M861112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577148#M861113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPORT ZP_EXCEL .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report ZP_EXCEL *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include ole2incl.&lt;/P&gt;&lt;P&gt;data: application type ole2_object,&lt;/P&gt;&lt;P&gt;workbook type ole2_object,&lt;/P&gt;&lt;P&gt;sheet type ole2_object,&lt;/P&gt;&lt;P&gt;cells type ole2_object,&lt;/P&gt;&lt;P&gt;sheets TYPE ole2_object.&lt;/P&gt;&lt;P&gt;constants: row_max type i value 256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data index type i.&lt;/P&gt;&lt;P&gt;data : det type ref to CL_ABAP_structDESCR,&lt;/P&gt;&lt;P&gt;       wa like line of det-&amp;gt;components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_finaltab occurs 0,&lt;/P&gt;&lt;P&gt;       Col1 type i,&lt;/P&gt;&lt;P&gt;       col2 type i,&lt;/P&gt;&lt;P&gt;       col3 type i,&lt;/P&gt;&lt;P&gt;       col4 type i,&lt;/P&gt;&lt;P&gt;      end of i_finaltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : count type i,&lt;/P&gt;&lt;P&gt;        v_excel_count(3), " type i value 1,&lt;/P&gt;&lt;P&gt;        sheet_name(15)  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 100 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  count =  count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_finaltab-col2 = 5 * count.&lt;/P&gt;&lt;P&gt;  i_finaltab-col3 = 10 * count.&lt;/P&gt;&lt;P&gt;  i_finaltab-col4 = 20 * count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move : count to i_finaltab-col1.&lt;/P&gt;&lt;P&gt;  append  i_finaltab.&lt;/P&gt;&lt;P&gt;  clear i_finaltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object application 'excel.application'.&lt;/P&gt;&lt;P&gt;set property of application 'visible' = 1.&lt;/P&gt;&lt;P&gt;call method of application 'Workbooks' = workbook.&lt;/P&gt;&lt;P&gt;call method of workbook 'Add'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Create first Excel Sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;call method of application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt; #1 = 1.&lt;/P&gt;&lt;P&gt;  call method of sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  set property of sheet 'Name' = 'EXCEL0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     count = 1.&lt;/P&gt;&lt;P&gt;     index = row_max * ( count - 1 ) + 1.&lt;/P&gt;&lt;P&gt;     perform header_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA FNAME(60) VALUE '/data/sapdata/mk112.xls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_finaltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   count = count + 1.&lt;/P&gt;&lt;P&gt;  if count LE 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    index = row_max * ( count - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_excel_count =  v_excel_count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL METHOD OF application 'Sheets' = sheets.&lt;/P&gt;&lt;P&gt;   CALL METHOD OF sheets 'Add'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate 'EXCEL' v_excel_count into sheet_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     clear count.&lt;/P&gt;&lt;P&gt;     count =  count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     call method of application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;      #1 = 1.&lt;/P&gt;&lt;P&gt;      set property of sheet 'Name' = sheet_name.&lt;/P&gt;&lt;P&gt;      call method of sheet 'Activate'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      index = row_max * ( count - 1 ) + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform header_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      count =  count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      index = row_max * ( count - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;      call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;       #1 = index.&lt;/P&gt;&lt;P&gt;     set property of cells 'Value' = i_finaltab-col1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;       #1 = index.&lt;/P&gt;&lt;P&gt;      set property of cells 'Value' = i_finaltab-col2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    index =  index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;     #1 = index.&lt;/P&gt;&lt;P&gt;    set property of cells 'Value' = i_finaltab-col4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  header_details&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form header_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;det ?= cl_abap_typedescr=&amp;gt;describe_by_DATA( i_finaltab ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at det-&amp;gt;components into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of sheet 'Cells' = cells&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;  #1 = index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set property of cells 'Value' = wa-name.&lt;/P&gt;&lt;P&gt;  index = index + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " header_details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577148#M861113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577149#M861114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. But it has not solved my issue.&lt;/P&gt;&lt;P&gt;I want an excel sheet embedded in my SAP screen.&lt;/P&gt;&lt;P&gt;Please let me know where I am wrong in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swastik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-excel/m-p/3577149#M861114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:22:26Z</dc:date>
    </item>
  </channel>
</rss>

