<?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: Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681307#M1100811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE lt_contents_hex LINES lv_lines.&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   = lv_lines.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_type   = 'XLS'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_name   = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_descr  = 'Attachment'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_size   = lv_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using lt_contents_hex instead of lt_contents_bin.&lt;/P&gt;&lt;P&gt;Still the problem is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to calculate the doc size correctly?&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;Edward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 06:47:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T06:47:16Z</dc:date>
    <item>
      <title>Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681305#M1100809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;Let say I send it to my own email account.&lt;/P&gt;&lt;P&gt;But, when try to open the excel document, from lotus notes, there is warning message produced by the microsoft excel saying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The file is not in a recognizable format.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;and so on....."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, when I click button 'OK', excel sheet will be opened and no information lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we code the abap program so that the message will not come each time I open the attachment from my lotus notes?&lt;/P&gt;&lt;P&gt;Or this is just the tab delimited issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&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;Edward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 05:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681305#M1100809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T05:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681306#M1100810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE so_ali[] LINES lineno.&lt;/P&gt;&lt;P&gt;      objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;      objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;      objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;      objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;      objpack-doc_size = lineno * 255 .&lt;/P&gt;&lt;P&gt;      objpack-body_num = lineno.&lt;/P&gt;&lt;P&gt;      objpack-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;      objpack-obj_name = 'INVOICE'.&lt;/P&gt;&lt;P&gt;      objpack-obj_descr = 'Invoice'.&lt;/P&gt;&lt;P&gt;      objpack-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;      APPEND objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur document size should be calculated properly otherwise u will be getting this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 05:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681306#M1100810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T05:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681307#M1100811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE lt_contents_hex LINES lv_lines.&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   = lv_lines.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_type   = 'XLS'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_name   = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-obj_descr  = 'Attachment'.&lt;/P&gt;&lt;P&gt;  lt_packing_list-doc_size   = lv_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using lt_contents_hex instead of lt_contents_bin.&lt;/P&gt;&lt;P&gt;Still the problem is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to calculate the doc size correctly?&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;Edward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 06:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681307#M1100811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T06:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681308#M1100812</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;&lt;/P&gt;&lt;P&gt;describe table it_attach lines w_lines.&lt;/P&gt;&lt;P&gt;read table it_attach index w_lines.&lt;/P&gt;&lt;P&gt;w_doc_data-doc_size =&lt;/P&gt;&lt;P&gt;( w_lines - 1 ) * 255 + strlen( it_attach ).&lt;/P&gt;&lt;P&gt;w_doc_data-obj_langu  = sy-langu.&lt;/P&gt;&lt;P&gt;w_doc_data-obj_name   = 'SAPRPT'.&lt;/P&gt;&lt;P&gt;w_doc_data-obj_descr  = ld_mtitle.&lt;/P&gt;&lt;P&gt;w_doc_data-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;clear t_attachment.&lt;/P&gt;&lt;P&gt;refresh t_attachment.&lt;/P&gt;&lt;P&gt;t_attachment[] = pit_attach[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 06:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681308#M1100812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681309#M1100813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan &amp;amp; Jana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is due to doc size.&lt;/P&gt;&lt;P&gt;Thx for your help.&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;Edward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 07:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-excel-attachment-using-fm-so-new-document-att-send-api1/m-p/4681309#M1100813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T07:17:46Z</dc:date>
    </item>
  </channel>
</rss>

