<?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 attachment using SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788651#M1465660</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;I am also using 6.0 and similar logic is working fine to calculate the size. I think there must be some problem some where else in the code. Can you put your code that you have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Apr 2010 09:51:53 GMT</pubDate>
    <dc:creator>Rocky1</dc:creator>
    <dc:date>2010-04-15T09:51:53Z</dc:date>
    <item>
      <title>Excel attachment using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788650#M1465659</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;I am using FM SO_DOCUMENT_SEND_API1 to send .XLS attachment from ABAP program.&lt;/P&gt;&lt;P&gt;I am using following code to calculate the size.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
 t_packing_list-doc_size   =  t_packing_list-body_num * 255.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       IMPORTING
            sent_to_all                = w_sent_all
       TABLES
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_receivers
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(I have posted only relevant code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was working fine in 4.7. But since upgrade to 6.0, the attachment is transferred only half the actual size.&lt;/P&gt;&lt;P&gt;i.e. if my internal table shows 4 records, the attachment in the mail shows only 2 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be done in this case. A simple solution would be to multiply the size by 2.&lt;/P&gt;&lt;P&gt; t_packing_list-doc_size   =  t_packing_list-body_num * 255 * 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but does seem like a work around. &lt;/P&gt;&lt;P&gt;What could be the reason for this and what should be the solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 08:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788650#M1465659</guid>
      <dc:creator>jpsapabap21</dc:creator>
      <dc:date>2010-04-15T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel attachment using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788651#M1465660</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;I am also using 6.0 and similar logic is working fine to calculate the size. I think there must be some problem some where else in the code. Can you put your code that you have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 09:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788651#M1465660</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2010-04-15T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Excel attachment using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788652#M1465661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Implementing Note 1430123 solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 09:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-attachment-using-so-document-send-api1/m-p/6788652#M1465661</guid>
      <dc:creator>jpsapabap21</dc:creator>
      <dc:date>2010-04-15T09:57:40Z</dc:date>
    </item>
  </channel>
</rss>

