<?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: Error while sending .XLS attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997632#M406322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried, but it didn't help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a way to change an extension of a file without changing doc_type ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 14:12:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T14:12:11Z</dc:date>
    <item>
      <title>Error while sending .XLS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997630#M406320</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;I'm trynig to send an email with an .XML attachment. I use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to do it. When I use this code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE lt_objbin LINES l_records.&lt;/P&gt;&lt;P&gt;  lt_objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_num   = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_num   = l_records.&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_name   = ls_doc_chng-obj_name.&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_descr  = ls_doc_chng-obj_name.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_type   = 'XLS'.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_size   = l_records * 255.&lt;/P&gt;&lt;P&gt;  APPEND lt_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            document_data              = ls_doc_chng&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            packing_list               = lt_objpack&lt;/P&gt;&lt;P&gt;            object_header              = lt_objhead&lt;/P&gt;&lt;P&gt;            contents_bin               = lt_objbin&lt;/P&gt;&lt;P&gt;            contents_txt               = lt_objtxt&lt;/P&gt;&lt;P&gt;            receivers                  = lt_reclist&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;            document_not_sent          = 2&lt;/P&gt;&lt;P&gt;            document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;            operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;            parameter_error            = 5&lt;/P&gt;&lt;P&gt;            x_error                    = 6&lt;/P&gt;&lt;P&gt;            enqueue_error              = 7&lt;/P&gt;&lt;P&gt;            OTHERS                     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get such an error: "Message cannot be processed as it cannot be converted".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change lt_objpack-doc_type to 'RAW' everything is OK, but I get attachment that has 'TXT' extension. If I change it manually to ".xls" Excel opens the file without any problems. I looked at &amp;lt;a href="http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm"&amp;gt;http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;and it seems like there is nothing wrong with my program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rafal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 13:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997630#M406320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while sending .XLS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997631#M406321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE lt_objbin LINES l_records.&lt;/P&gt;&lt;P&gt;lt_objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;lt_objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;lt_objpack-body_num = l_records.&lt;/P&gt;&lt;P&gt;lt_objpack-obj_name = ls_doc_chng-obj_name.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;lt_objpack-obj_descr =  'Test.XLS'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;lt_objpack-doc_type = 'XLS'.&lt;/P&gt;&lt;P&gt;lt_objpack-doc_size = l_records * 255.&lt;/P&gt;&lt;P&gt;APPEND lt_objpack.&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;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 13:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997631#M406321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while sending .XLS attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997632#M406322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried, but it didn't help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a way to change an extension of a file without changing doc_type ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 14:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-sending-xls-attachment/m-p/1997632#M406322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T14:12:11Z</dc:date>
    </item>
  </channel>
</rss>

