<?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 Problem: ITAB to Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-itab-to-excel/m-p/6454052#M1414337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table whose data has to be sent via mail in an excel format as an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a restriction of 255 characters and I have a large number of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, I tried to look into the forums and understood that i will have to put all the data in a &lt;EM&gt;string&lt;/EM&gt;, then further convert it into &lt;EM&gt;xstring&lt;/EM&gt;, and then finally convert it into &lt;EM&gt;binary table&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this and i have achieved it as seen from the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i open the excel attachment which i have sent through the FM &lt;STRONG&gt;'SO_NEW_DOCUMENT_SEND_API1'&lt;/STRONG&gt;, I get an empty excel sheet with a message that it does not support the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope we can solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 14:37:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-29T14:37:01Z</dc:date>
    <item>
      <title>Problem: ITAB to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-itab-to-excel/m-p/6454052#M1414337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table whose data has to be sent via mail in an excel format as an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a restriction of 255 characters and I have a large number of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, I tried to look into the forums and understood that i will have to put all the data in a &lt;EM&gt;string&lt;/EM&gt;, then further convert it into &lt;EM&gt;xstring&lt;/EM&gt;, and then finally convert it into &lt;EM&gt;binary table&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this and i have achieved it as seen from the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i open the excel attachment which i have sent through the FM &lt;STRONG&gt;'SO_NEW_DOCUMENT_SEND_API1'&lt;/STRONG&gt;, I get an empty excel sheet with a message that it does not support the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope we can solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 14:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-itab-to-excel/m-p/6454052#M1414337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T14:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: ITAB to Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-itab-to-excel/m-p/6454053#M1414338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; First Try to download the excel sheet at your desktop by this function module and see whether data is flowing into Excel sheet and then try to use the FM u used.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      bin_filesize            = v_bin_filesize&lt;/P&gt;&lt;P&gt;      filename                = v_filename&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = it_det .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = wa_doc_chng &lt;/P&gt;&lt;P&gt;      put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;      commit_work                = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = i_objpack &lt;/P&gt;&lt;P&gt;      object_header              = wa_objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = i_objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = i_objtxt&lt;/P&gt;&lt;P&gt;      receivers                  = i_reclist&lt;/P&gt;&lt;P&gt;   Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 04:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-itab-to-excel/m-p/6454053#M1414338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-30T04:44:35Z</dc:date>
    </item>
  </channel>
</rss>

