<?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: object_not_sent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966584#M68676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if you are using global data declarations &lt;/P&gt;&lt;P&gt;in the mail sending  Function Module and they are getting&lt;/P&gt;&lt;P&gt;refreshed / populated with correct values the second time the function is called in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2005 01:56:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-23T01:56:03Z</dc:date>
    <item>
      <title>object_not_sent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966583#M68675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I have created a custom transaction in which I send an email if the user changes a Service Master from my transaction.  The first time the user enters my custom transaction and changes a Service Master, the email sends.  If the user changes any subsequent Service Master from my transaction - the email does not send and I get the above exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM: SO_NEW_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call the FM from a custom program multiple times it sends multiple emails - but in my transaction it throws the exception on the second call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started debugging SO_OBJECT_SEND from within the above FM - but have not yet found the inconsistency between the calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any feedback is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 01:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966583#M68675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T01:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_sent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966584#M68676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if you are using global data declarations &lt;/P&gt;&lt;P&gt;in the mail sending  Function Module and they are getting&lt;/P&gt;&lt;P&gt;refreshed / populated with correct values the second time the function is called in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 01:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966584#M68676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T01:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_sent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966585#M68677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think some clear commands are missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please post code you are using for &lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 03:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966585#M68677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T03:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: object_not_sent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966586#M68678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - thank you very much for the response - I apologize for my delay in posting the code, but here is how I am calling:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;The text elements text-011 thru -013 simply state SM Created, Changed, or Deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_language is 'EN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_doc_type is 'RAW'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_v_dist is a distribution list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_rec_type is 'C'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_com_type is 'INT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_express is 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_content is populated with classification data for the changed Service Masters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CODE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Distribution List - email prep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_v_dist = c_dist_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_descr = text-011.&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_langu = c_language.&lt;/P&gt;&lt;P&gt;    v_doc_type = c_doc_type.&lt;/P&gt;&lt;P&gt;    i_receivers-receiver = p_v_dist.&lt;/P&gt;&lt;P&gt;    i_receivers-rec_type = c_rec_type.&lt;/P&gt;&lt;P&gt;    i_receivers-com_type = c_com_type.&lt;/P&gt;&lt;P&gt;    i_receivers-express = c_express.&lt;/P&gt;&lt;P&gt;    append i_receivers.&lt;/P&gt;&lt;P&gt;    clear i_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change Distribution List - email prep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  elseif  p_v_dist = c_dist_chng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_descr = text-012.&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_langu = c_language.&lt;/P&gt;&lt;P&gt;    v_doc_type = c_doc_type.&lt;/P&gt;&lt;P&gt;    i_receivers-receiver = p_v_dist.&lt;/P&gt;&lt;P&gt;    i_receivers-rec_type = c_rec_type.&lt;/P&gt;&lt;P&gt;    i_receivers-com_type = c_com_type.&lt;/P&gt;&lt;P&gt;    i_receivers-express = c_express.&lt;/P&gt;&lt;P&gt;    append i_receivers.&lt;/P&gt;&lt;P&gt;    clear i_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete Distribution List - email prep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  elseif p_v_dist = c_dist_del.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_descr = text-013.&lt;/P&gt;&lt;P&gt;    wa_doc_data-obj_langu = c_language.&lt;/P&gt;&lt;P&gt;    v_doc_type = c_doc_type.&lt;/P&gt;&lt;P&gt;    i_receivers-receiver = p_v_dist.&lt;/P&gt;&lt;P&gt;    i_receivers-rec_type = c_rec_type.&lt;/P&gt;&lt;P&gt;    i_receivers-com_type = c_com_type.&lt;/P&gt;&lt;P&gt;    i_receivers-express = c_express.&lt;/P&gt;&lt;P&gt;    append i_receivers.&lt;/P&gt;&lt;P&gt;    clear i_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function to send the email - for all Create, Change,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;or Delete SM actions in transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DOCUMENT_DATA                    = wa_doc_data&lt;/P&gt;&lt;P&gt;    DOCUMENT_TYPE                    = c_doc_type&lt;/P&gt;&lt;P&gt;    COMMIT_WORK                      = c_wait&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;   OBJECT_CONTENT                    = i_content&lt;/P&gt;&lt;P&gt;    RECEIVERS                        = i_receivers&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;&lt;/P&gt;&lt;P&gt;Again I appreciate any help you can provide letting me know why the email sends the first time I process a change in my transaction and only the first time.  All other changes attempt to send the email but return the exception 'OBJECT_NOT_SENT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 18:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent/m-p/966586#M68678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T18:50:10Z</dc:date>
    </item>
  </channel>
</rss>

