<?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 FM issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843561#M1473453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just whether you are clearing the parameters in initialization and check whether you are raising all the exceptions from FM or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 11:19:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-25T11:19:53Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_ATT_SEND_API1 FM issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843560#M1473452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a program where in I send the applicant there Offer Letters through emals. It consist of a body text and a pdf attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the tcode for the first time and emal it, it will go successfully.&lt;/P&gt;&lt;P&gt;But, when I again emal through the same session, the emal is trigerred but my emal body contains junk characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time I have to start the session again (Again run the tcode from scratch) then only it will get emaled with correct data in the body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the parameters which are been passed to function module SO_NEW_DOCUMENT_ATT_SEND_API1 are getting cleared properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 11:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843560#M1473452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 FM issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843561#M1473453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just whether you are clearing the parameters in initialization and check whether you are raising all the exceptions from FM or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 11:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843561#M1473453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 FM issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843562#M1473454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish ,&lt;/P&gt;&lt;P&gt;                    The function module your are using for sending mail is being outdated , So try using BCS_Class for sending mail with PDF attachment . There are examples for this BCS_EXAMPLE_1 to BCS_EXAMPLE_6 . For sample codes u cud refer to previous posts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;p.gurunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843562#M1473454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_ATT_SEND_API1 FM issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843563#M1473455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish Kansara  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh the message body Internal Table at the start of your code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      DOCUMENT_DATA              = WA_DOC_CHNG
      PUT_IN_OUTBOX              = 'X'
      COMMIT_WORK                = 'X'
    TABLES
      PACKING_LIST               = I_OBJPACK
      OBJECT_HEADER              = WA_OBJHEAD
      CONTENTS_BIN               = I_OBJBIN
      CONTENTS_TXT               = I_OBJTXT
      RECEIVERS                  = I_RECLIST
    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;in the above example I_OBJTXT will contain message body,you need to refresh it at the start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 11:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-att-send-api1-fm-issue/m-p/6843563#M1473455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T11:29:45Z</dc:date>
    </item>
  </channel>
</rss>

