<?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: SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150710#M1514530</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;Try using the class CL_BCS.&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Sending" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Sending&lt;/A&gt;&lt;EM&gt;Mails&lt;/EM&gt;-&lt;EM&gt;Home&lt;/EM&gt;Page#SendingMails-HomePage-CLBCS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Omkar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 10:31:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-03T10:31:09Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150706#M1514526</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´m using FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send email with 3 attachments, the problem is with the result size of the 3 XLS files in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first XLS attachment file code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lt_packing_list-transf_bin  = 'X'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_start  = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_num    = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_start  = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_num    = LINES( lt_attachment ).&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_type    = 'XLS'. &lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_name    = 'ims_productos.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_descr   = 'ims_productos.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_size    = lt_packing_list-body_num * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_packing_list. CLEAR lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result file size = 1.28mb&lt;/P&gt;&lt;P&gt;if i copy the data to a new excel file the result size is: 588kb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second XLS attachment file code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lt_packing_list-transf_bin  = 'X'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_start  = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_num    = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_start  = lineas + 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_num    = LINES( lt_attachment ) - lineas.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_type    = 'XLS'. &lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_name    = 'ims_clientes.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_descr   = 'ims_clientes.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_size    = lt_packing_list-body_num * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_packing_list. CLEAR lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result file size = 2.95mb&lt;/P&gt;&lt;P&gt;if i copy the data to a new excel file the result size is: 2.46mb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third XLS attachment file code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lt_packing_list-transf_bin  = 'X'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_start  = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-head_num    = 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_start  = line + 1.&lt;/P&gt;&lt;P&gt;  lt_packing_list-body_num    = LINES( lt_attachment ) - line.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_type    = 'XLS'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_name    = 'ims_ventas.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_descr   = 'ims_ventas.xls'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_size    = lt_packing_list-body_num * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_packing_list. CLEAR lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result file size = 8.86mb&lt;/P&gt;&lt;P&gt;if i copy the data to a new excel file the result size is: 2.03mb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this line ( lt_packing_list-doc_size  = lt_packing_list-body_num * 255.) gives the size of the file, but what can i do to get a size file like the one i get if a create the file and copy the data by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the last file using "GUI_DOWNLOAD" gets the file with 2MB size, but as attachment the size increase to almost 9MB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Fúnez&lt;/P&gt;&lt;P&gt;Tegucigalpa, Honduras&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 02:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150706#M1514526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T02:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150707#M1514527</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 to compress the file before sending.&lt;/P&gt;&lt;P&gt;     &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1998533"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 03:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150707#M1514527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T03:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150708#M1514528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that the XLS attachment files are created larger that they should be, if i cut the same data of the XLS attachment and paste it in an excel sheet the size of the new XLS file is lower than the generated attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need is to get a real size of the XLS attachment files... because is not the same multiply N lines * 255 = file_size than the size of the XLS file with the same data created by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i´m getting an XLS attachment file with 9MB when the real size is 2MB with the same amount of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope i explained better this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem sending files, the problem is the size of the generated attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: David Funez on Aug 31, 2010 10:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: David Funez on Aug 31, 2010 10:05 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 03:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150708#M1514528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T03:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150709#M1514529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt; gs_objpack-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objbin ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 10:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150709#M1514529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-03T10:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 plus attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150710#M1514530</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;Try using the class CL_BCS.&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Sending" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Sending&lt;/A&gt;&lt;EM&gt;Mails&lt;/EM&gt;-&lt;EM&gt;Home&lt;/EM&gt;Page#SendingMails-HomePage-CLBCS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Omkar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 10:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-plus-attachment/m-p/7150710#M1514530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-03T10:31:09Z</dc:date>
    </item>
  </channel>
</rss>

