<?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_DOCUMENT_SEND_API1 - Text File attachment data in Different formate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458847#M1250791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;t_packing_list-doc_type = 'RAW'.
....
----
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data                    = w_doc_data
*     PUT_IN_OUTBOX                    = ' '
     commit_work                      = 'X'
   IMPORTING
     sent_to_all                      = lv_flag
*     NEW_OBJECT_ID                    =
    TABLES
      packing_list                     = t_packing_list&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 14:13:53 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-04-21T14:13:53Z</dc:date>
    <item>
      <title>SO_DOCUMENT_SEND_API1 - Text File attachment data in Different formate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458846#M1250790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1 Fm is used to send mail with text file attachment,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E-MAil message body is coming perfect, but the content in text file is displaying different formate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB the content in Text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IM7330003226161208RIBA20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        140000001                    200904210700 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             200000001Wella Italia Labocos SrlVia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the content as shown in below.&lt;/P&gt;&lt;P&gt; IM7330003226161208RIBA20                                                                                &lt;/P&gt;&lt;P&gt;140000001                  200904210700 &lt;/P&gt;&lt;P&gt; 200000001Wella Italia Labocos SrlVia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 14:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458846#M1250790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: SO_DOCUMENT_SEND_API1 - Text File attachment data in Different formate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458847#M1250791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;t_packing_list-doc_type = 'RAW'.
....
----
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data                    = w_doc_data
*     PUT_IN_OUTBOX                    = ' '
     commit_work                      = 'X'
   IMPORTING
     sent_to_all                      = lv_flag
*     NEW_OBJECT_ID                    =
    TABLES
      packing_list                     = t_packing_list&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 14:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458847#M1250791</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-21T14:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: SO_DOCUMENT_SEND_API1 - Text File attachment data in Different formate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458848#M1250792</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;pass attachment data to contents_hex instead of  contents_bin. use thebelow logic to convert to hexa..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SO_RAW_TO_RTF'
    TABLES
      objcont_old = lt_objbin
      objcont_new = lt_objbin.

  LOOP AT lt_objbin INTO l_line.
   conv = cl_abap_conv_out_ce=&amp;gt;create( encoding = 'UTF-8' endian = 'B').
    CALL METHOD conv-&amp;gt;write( data = l_line ).
    l_buffer = conv-&amp;gt;get_buffer( ).
    MOVE l_buffer TO l_hexa.
    MOVE l_hexa TO l_hex-line.
    APPEND l_hex TO lt_contents_hex.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to thie link with example...Instead of DOC use the TXT attachement..&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.google.com/Doc?id=dfv2hmgs_6hf8nm5f4&amp;amp;hl=en" target="test_blank"&gt;http://docs.google.com/Doc?id=dfv2hmgs_6hf8nm5f4&amp;amp;hl=en&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 14:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458848#M1250792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: SO_DOCUMENT_SEND_API1 - Text File attachment data in Different formate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458849#M1250793</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;     Check for the documentation of the FM used where example is also provided how to use the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 14:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-document-send-api1-text-file-attachment-data-in-different-formate/m-p/5458849#M1250793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T14:41:32Z</dc:date>
    </item>
  </channel>
</rss>

