<?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: Reg: Call method document-&amp;gt;add_attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449921#M1413567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even i have tried the same. Try using the 2003 formats only. Is 2003 format not working for you???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 12:39:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-29T12:39:35Z</dc:date>
    <item>
      <title>Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449920#M1413566</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;We are sending attachments by email using set of cl_document_bcs -&amp;gt; methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to send 2007 document files as attachment,i.e docx,xlsx files.The file type is getting truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that the attribute of this method i_attachment_type is of type SOODK-OBJTP of length 3 chars only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD document-&amp;gt;add_attachment&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_attachment_type    = v_extension_type&lt;/P&gt;&lt;P&gt;              i_attachment_subject = v_attachname&lt;/P&gt;&lt;P&gt;              i_att_content_hex    = it_content_binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions to overcome this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 12:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449920#M1413566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449921#M1413567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even i have tried the same. Try using the 2003 formats only. Is 2003 format not working for you???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 12:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449921#M1413567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T12:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449922#M1413568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass XLS only...&lt;/P&gt;&lt;P&gt;any ways MS OFFICE is downward compatible..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 12:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449922#M1413568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-29T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449923#M1413569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at note 1459896 - BCS: Support for four-digit file name extensions&lt;/P&gt;&lt;P&gt;&lt;A href="https://service.sap.com/sap/support/notes/1459896" target="test_blank"&gt;https://service.sap.com/sap/support/notes/1459896&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it has sample source code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 16:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449923#M1413569</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2010-08-18T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449924#M1413570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I just pas through that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I applied note 1433744, to allow to have file name with the proper extension "XLSX".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When using the method add_attachment, the parameter i_attachment_type = 'EXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Be sure to have the parameter I_ATTACHMENT_SIZE setproperly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing so, I have been able to have the right filename as attachment and been able to open the file without error in the Excel 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;dstj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 16:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449924#M1413570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-01T16:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Call method document-&gt;add_attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449925#M1413571</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;         How do you calculated the I_ATTACHMENT_SIZE . Can you share your sample program . I am having a similar issue with .&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sanjib&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 22:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-call-method-document-gt-add-attachment/m-p/6449925#M1413571</guid>
      <dc:creator>former_member394330</dc:creator>
      <dc:date>2020-10-29T22:37:38Z</dc:date>
    </item>
  </channel>
</rss>

