<?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 Re: Function module to generate excel sheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520203#M846647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MS_EXCEL_OLE_STANDARD_DAT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2008 08:39:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-14T08:39:01Z</dc:date>
    <item>
      <title>Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520198#M846642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me find some function module or an alternative to create an excel sheet onto my desktop with the data passed from the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520198#M846642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520199#M846643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keerthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM GUI_DOWNLOAD wil help u for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful&lt;/P&gt;&lt;P&gt;Thanks Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520199#M846643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520200#M846644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use GUI_DOWNLOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520200#M846644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520201#M846645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if you require titles in excel sheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try ws_download.  (though it is obsolute it still works.)&lt;/P&gt;&lt;P&gt;also &lt;/P&gt;&lt;P&gt;try in se37 ..ole_excel*  it will give you a fm to down load in excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520201#M846645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520202#M846646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;     l_filename    like rlgrap-filename,&lt;/P&gt;&lt;P&gt;     wa_x030l      like x030l,&lt;/P&gt;&lt;P&gt;     tb_dfies      type standard table of dfies,&lt;/P&gt;&lt;P&gt;     wa_dfies      type dfies,&lt;/P&gt;&lt;P&gt;     begin of tb_flditab occurs 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     field description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       fldname(40)  type c,&lt;/P&gt;&lt;P&gt;     end of tb_flditab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get table/structure field info&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'GET_FIELDTAB'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            langu               = sy-langu&lt;/P&gt;&lt;P&gt;            only                = space&lt;/P&gt;&lt;P&gt;            tabname             = i_tabname&lt;/P&gt;&lt;P&gt;            withtext            = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            header              = wa_x030l&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            fieldtab            = tb_dfies&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            internal_error      = 01&lt;/P&gt;&lt;P&gt;            no_texts_found      = 02&lt;/P&gt;&lt;P&gt;            table_has_no_fields = 03&lt;/P&gt;&lt;P&gt;            table_not_activ     = 04.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check result&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  case sy-subrc.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     copy fieldnames&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      loop at tb_dfies into wa_dfies.&lt;/P&gt;&lt;P&gt;        case i_desc_type.&lt;/P&gt;&lt;P&gt;          when 'F'.&lt;/P&gt;&lt;P&gt;            tb_flditab-fldname = wa_dfies-fieldname.&lt;/P&gt;&lt;P&gt;          when 'S'.&lt;/P&gt;&lt;P&gt;            tb_flditab-fldname = wa_dfies-scrtext_s.&lt;/P&gt;&lt;P&gt;          when 'M'.&lt;/P&gt;&lt;P&gt;            tb_flditab-fldname = wa_dfies-scrtext_m.&lt;/P&gt;&lt;P&gt;          when 'L'.&lt;/P&gt;&lt;P&gt;            tb_flditab-fldname = wa_dfies-scrtext_l.&lt;/P&gt;&lt;P&gt;          when others.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        use fieldname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            tb_flditab-fldname = wa_dfies-fieldname.&lt;/P&gt;&lt;P&gt;        endcase.&lt;/P&gt;&lt;P&gt;        append tb_flditab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       clear variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        clear: wa_dfies.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;      with  sy-subrc raising error_get_dictionary_info.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;export (and open) file to MS-Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            file_name                 = i_filename&lt;/P&gt;&lt;P&gt;            data_sheet_name           = 'Data'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab                  = i_tb_data&lt;/P&gt;&lt;P&gt;            fieldnames                = tb_flditab&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            file_not_exist            = 1&lt;/P&gt;&lt;P&gt;            filename_expected         = 2&lt;/P&gt;&lt;P&gt;            communication_error       = 3&lt;/P&gt;&lt;P&gt;            ole_object_method_error   = 4&lt;/P&gt;&lt;P&gt;            ole_object_property_error = 5&lt;/P&gt;&lt;P&gt;            invalid_filename          = 6&lt;/P&gt;&lt;P&gt;            invalid_pivot_fields      = 7&lt;/P&gt;&lt;P&gt;            download_problem          = 8&lt;/P&gt;&lt;P&gt;            others                    = 9.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 raising error_excel_ole.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF HELPFUL,&lt;/P&gt;&lt;P&gt;KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520202#M846646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520203#M846647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MS_EXCEL_OLE_STANDARD_DAT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520203#M846647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520204#M846648</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;Try this one out.&lt;/P&gt;&lt;P&gt;DATA: file_name     TYPE string value 'C:\TEXT.XLS'.,&lt;/P&gt;&lt;P&gt;           file_type(10)           TYPE c VALUE 'ASC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          filename                = file_name&lt;/P&gt;&lt;P&gt;          filetype                = file_type&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          data_tab                = itab&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          file_write_error        = 1&lt;/P&gt;&lt;P&gt;          invalid_type            = 2&lt;/P&gt;&lt;P&gt;          no_batch                = 3&lt;/P&gt;&lt;P&gt;          unknown_error           = 4&lt;/P&gt;&lt;P&gt;          gui_refuse_filetransfer = 5&lt;/P&gt;&lt;P&gt;          OTHERS                  = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ITAB holds values u want to store on ur EXCEL SHEET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balakumar.G.&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520204#M846648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520205#M846649</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;Try out with these FM's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEL_OLE_STANDARD_DAT &amp;#150; Starts Excel and transfers internal table data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS_EXCEL_OLE_STANDARD_DAT &amp;#150; Builds a file and automatically starts Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RH_START_EXCEL_WITH_DATA &amp;#150; Starts Excel with contents of an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP_CONVERT_TO_XLS_FORMAT &amp;#150; Downloads internal table to Excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do  reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520205#M846649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520206#M846650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You can use following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'XXL_FULL_API'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename          = 'ZZ_SALE'&lt;/P&gt;&lt;P&gt;            no_dialog         = space&lt;/P&gt;&lt;P&gt;            n_att_cols        = h_count&lt;/P&gt;&lt;P&gt;            n_hrz_keys        = 1&lt;/P&gt;&lt;P&gt;            n_vrt_keys        = v_count&lt;/P&gt;&lt;P&gt;            sema_type         = 'X'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data              = xmplt_d&lt;/P&gt;&lt;P&gt;            hkey              = xmplt_h&lt;/P&gt;&lt;P&gt;            online_text       = xmplt_o&lt;/P&gt;&lt;P&gt;            print_text        = xmplt_p&lt;/P&gt;&lt;P&gt;            sema              = xmplt_s&lt;/P&gt;&lt;P&gt;            vkey              = xmplt_v&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cancelled_by_user = 1&lt;/P&gt;&lt;P&gt;            data_too_big      = 2&lt;/P&gt;&lt;P&gt;            dim_mismatch_data = 3&lt;/P&gt;&lt;P&gt;            dim_mismatch_sema = 4&lt;/P&gt;&lt;P&gt;            dim_mismatch_vkey = 5&lt;/P&gt;&lt;P&gt;            error_in_hkey     = 6&lt;/P&gt;&lt;P&gt;            error_in_sema     = 7&lt;/P&gt;&lt;P&gt;            file_open_error   = 8&lt;/P&gt;&lt;P&gt;            file_write_error  = 9&lt;/P&gt;&lt;P&gt;            inv_data_range    = 10&lt;/P&gt;&lt;P&gt;            inv_winsys        = 11&lt;/P&gt;&lt;P&gt;            inv_xxl           = 12&lt;/P&gt;&lt;P&gt;            OTHERS            = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;xmplt_d : required data&lt;/P&gt;&lt;P&gt;xmplt_h : row heading&lt;/P&gt;&lt;P&gt;xmplt_s : EXCEL schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 08:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520206#M846650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to generate excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520207#M846651</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;When using function GUI_DOWNLOAD, FILENAME = e.g. 'c\:test.xls',&amp;nbsp; if set import parameter &lt;SPAN style="color: #ff0000;"&gt;FILETYPE = 'ASC'&lt;/SPAN&gt;, open the excel file you created, you will get message "&lt;STRONG&gt;The file format and extension of 'test.xls' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anywya?&lt;/STRONG&gt;" You can just ignore the message and proceed.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/716723" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If set &lt;SPAN style="color: #ff0000;"&gt;FILETYPE = 'DBF'&lt;/SPAN&gt;, you won't get such a message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-generate-excel-sheet/m-p/3520207#M846651</guid>
      <dc:creator>WenjingLiu</dc:creator>
      <dc:date>2015-06-03T07:59:46Z</dc:date>
    </item>
  </channel>
</rss>

