<?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: excel mail attachment in background execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683291#M1576209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel itself has a restriction that there can be no more than 255 characters in a cell (at least before 2010 version).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why it would truncate data in Excel, e.g. I send PDFs as attachment and they're just a stream of binary data. The content is placed in the same 255 char. table, but it's binary data, so at the end it comes out OK anyway. It's supposed to be magically reassembled when leaving SAP (as far as I understand). Are you using binary transfer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are numerous examples already available on SDN. Here is just one from the top of the list:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1686292"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 17:07:33 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2011-03-07T17:07:33Z</dc:date>
    <item>
      <title>excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683286#M1576204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to send excel as mail attachment with 53 columns when exceute in background. But i_attach has 255 characters so its truncating more than 255 characters in header and values of excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so pls tel how to send attachment with all internal table contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adding Attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD L_DOCUMENT-&amp;gt;ADD_ATTACHMENT&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          I_ATTACHMENT_TYPE    = C_EXT&lt;/P&gt;&lt;P&gt;          I_ATTACHMENT_SIZE    = L_SIZE&lt;/P&gt;&lt;P&gt;          I_ATTACHMENT_SUBJECT = 'Valid Standard Cost Estimate'&lt;/P&gt;&lt;P&gt;          I_ATT_CONTENT_TEXT   = I_ATTACH[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 08:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683286#M1576204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683287#M1576205</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;What extension are you using? Try 'BIN' Extension and remove the size parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also add it to the HEX table, not the text one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

          CALL METHOD lv_document-&amp;gt;add_attachment
            EXPORTING
              i_attachment_type    = 'BIN'
              i_attachment_subject = lv_string
              i_att_content_hex    = lt_attach[]
              i_attachment_header  = lt_att_table[].

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ernesto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 08:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683287#M1576205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T08:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683288#M1576206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but all hex and text are also declared with 255 ly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or otherwise i can download that internal table into excel in background execution and upload it and send as mail attachment ah.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how to download,upload and send mail in background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 08:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683288#M1576206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683289#M1576207</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;You can check SAP Std. Program BCS_EXAMPLE_5. It sends a Word Document by email. Excel file should be the same.&lt;/P&gt;&lt;P&gt;If you do not specify the size, it will automatically calculate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ernesto Caballero on Mar 4, 2011 10:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683289#M1576207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683290#M1576208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they use the same method CALL METHOD lv_document-&amp;gt;add_attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it allows the internal table only for 255 characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683290#M1576208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: excel mail attachment in background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683291#M1576209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel itself has a restriction that there can be no more than 255 characters in a cell (at least before 2010 version).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why it would truncate data in Excel, e.g. I send PDFs as attachment and they're just a stream of binary data. The content is placed in the same 255 char. table, but it's binary data, so at the end it comes out OK anyway. It's supposed to be magically reassembled when leaving SAP (as far as I understand). Are you using binary transfer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are numerous examples already available on SDN. Here is just one from the top of the list:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1686292"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 17:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-mail-attachment-in-background-execution/m-p/7683291#M1576209</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2011-03-07T17:07:33Z</dc:date>
    </item>
  </channel>
</rss>

