<?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 - on second pass in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent-on-second-pass/m-p/1012158#M79140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible that the receivers table is empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_v_dist had an invalid value, you don't create any entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2005 02:33:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-28T02:33:04Z</dc:date>
    <item>
      <title>OBJECT_NOT_SENT - on second pass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent-on-second-pass/m-p/1012157#M79139</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;P&gt;(see code and variable refs below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;CODE&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>Wed, 28 Sep 2005 01:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent-on-second-pass/m-p/1012157#M79139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T01:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECT_NOT_SENT - on second pass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent-on-second-pass/m-p/1012158#M79140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible that the receivers table is empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_v_dist had an invalid value, you don't create any entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2005 02:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-not-sent-on-second-pass/m-p/1012158#M79140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-28T02:33:04Z</dc:date>
    </item>
  </channel>
</rss>

