<?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: Problem with SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312956#M1636624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not because of any code changes. You need to change the SCOT settings. Go to transaction SCOT. Select the INT node &amp;amp; double click on the node 'SMTP' (or some other name). You will get a popup. click on 'Set' button against the 'Internet' option. Please note that you should do it for INT node. In the next popup, check for 'Output formats for SAP documents'. In that, check what is there against 'RAW text'. By what you have described here, now it is set as 'No conversion' in your system. Thatswhy you are getting '.RAW' attachments. Change it to 'TXT'. Thats it. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 02:01:27 GMT</pubDate>
    <dc:creator>gokul_radhakrishnan3</dc:creator>
    <dc:date>2011-11-18T02:01:27Z</dc:date>
    <item>
      <title>Problem with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312955#M1636623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem sending plain text emails with the FM SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;I've wrote a Z FM to send plain emails (pure txt) and it works fine into various SAP ECC 6.0 systems. Now I'm copying the FM into another SAP System and it send a .RAW attachment with text instead a simply text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code fragment bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    ...
    
    DESCRIBE TABLE lt_bodytxt LINES ld_lines.
    READ     TABLE lt_bodytxt INTO ls_bodytxt INDEX ld_lines.

    ls_docdata-doc_size = ( ld_lines - 1 ) * 255 + strlen( ls_bodytxt ).

    CLEAR ls_packing-transf_bin.
    ls_packing-head_start = 1.
    ls_packing-head_num   = 0.
    ls_packing-body_start = 1.
    ls_packing-body_num   = ld_lines.
    ls_packing-doc_type   = 'RAW'.
    APPEND ls_packing TO lt_packing.

    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
        document_data              = ls_docdata
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = lt_packing
        contents_txt               = lt_bodytxt
        receivers                  = lt_receivers
      EXCEPTIONS
        too_many_receivers         = 1
        document_not_sent          = 2
        document_type_not_exist    = 3
        operation_no_authorization = 4
        parameter_error            = 5
        x_error                    = 6
        enqueue_error              = 7
        OTHERS                     = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows whats happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gregory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 21:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312955#M1636623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-17T21:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312956#M1636624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not because of any code changes. You need to change the SCOT settings. Go to transaction SCOT. Select the INT node &amp;amp; double click on the node 'SMTP' (or some other name). You will get a popup. click on 'Set' button against the 'Internet' option. Please note that you should do it for INT node. In the next popup, check for 'Output formats for SAP documents'. In that, check what is there against 'RAW text'. By what you have described here, now it is set as 'No conversion' in your system. Thatswhy you are getting '.RAW' attachments. Change it to 'TXT'. Thats it. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 02:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312956#M1636624</guid>
      <dc:creator>gokul_radhakrishnan3</dc:creator>
      <dc:date>2011-11-18T02:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312957#M1636625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gokul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for ur answer it solves my problem.&lt;/P&gt;&lt;P&gt;Points rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 13:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-so-document-send-api1/m-p/8312957#M1636625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T13:10:44Z</dc:date>
    </item>
  </channel>
</rss>

