<?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>Question Re: When does Business Object event gets triggered ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892772#M4465576</link>
    <description>&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Did you write COMMIT WORK after calling the function module SWE_EVENT_CREATE ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jun 2019 06:34:02 GMT</pubDate>
    <dc:creator>bpawanchand</dc:creator>
    <dc:date>2019-06-15T06:34:02Z</dc:date>
    <item>
      <title>When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaq-p/11892768</link>
      <description>&lt;P&gt;Hi Experts, &lt;/P&gt;
  &lt;P&gt;Would like to know when exactly the business object events get triggered. Is it before database COMMIT or after database COMMIT. If there is any FM associated with this FM, does it get executed in same LUW or separate LUW ? Also can we use COMMIT WORK inside this new FM. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaq-p/11892768</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-12T15:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892769#M4465573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Well, to monitor the events within the system you need to activate the event trace by using SWELS and you can check the in SWEL transaction.&lt;/P&gt;&lt;P&gt;Every workflow event is triggered before COMMIT WORK. To put in other way workflow events are committed and fired in the system only after the COMMIT WORK statement.  All the updates associated with LUW are committed or completed upon or after COMMIT WORK statement and my understanding is that the LUW gets completed.&lt;/P&gt;&lt;P&gt;May  I know, what exactly you are looking for?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 13:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892769#M4465573</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2019-06-13T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892770#M4465574</link>
      <description>&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;Thanks for explaining. I have to trigger an idoc immediately whenever an order ( pm notification) gets created or changed. I have found some customer exits like qqma*, but not sure if we can use that as the data could be changed in later stages.  Also it is for check before save. I have checked in swel, but no log is there.&lt;/P&gt;&lt;P&gt;i am thinking to link it with business object event which trigger FM where i put in my IDoc building. So wanted to know if in such case the event execution/trigger happens before commit work of std transaction or after commit work. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892770#M4465574</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-13T14:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892771#M4465575</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;when i linked event with fm, no event in swel. &lt;/P&gt;&lt;P&gt;i have manually triggered event using fm sww*event*create* in my badi, and now i could see an event in swel. but the linked fm was not triggered.&lt;/P&gt;&lt;P&gt;i have to achieve this functionality &lt;A href="https://answers.sap.com/questions/11812826/trigger-idoc-when-saving-or-changing-service-order.html"&gt;https://answers.sap.com/questions/11812826/trigger-idoc-when-saving-or-changing-service-order.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892771#M4465575</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-14T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892772#M4465576</link>
      <description>&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Did you write COMMIT WORK after calling the function module SWE_EVENT_CREATE ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 06:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892772#M4465576</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2019-06-15T06:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892773#M4465577</link>
      <description>&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;No, I have raised an event in a badi of STD transaction just before commit work. The commit work was raised from STD program.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 04:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892773#M4465577</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-16T04:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892774#M4465578</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Either you need to write the commit work statement immediately after calling the SWE_EVENT_CREATE or the other possibility is to call this function module by using the addition IN UPDATE TASK of CALL FUNCTION. So that as soon as the commit work is executed by standard program the event is triggered.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 04:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892774#M4465578</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2019-06-16T04:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892775#M4465579</link>
      <description>&lt;P&gt;SWE_EVENT_CREATE cannot be called directly in update task, instead use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SWE_EVENT_CREATE_IN_UPD_TASK' IN UPDATE TASK ...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jun 2019 05:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892775#M4465579</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-06-16T05:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892776#M4465580</link>
      <description>&lt;P&gt;I see that you ask many questions to try understanding how things work around COMMIT WORK, LUW, tRFC, update tasks. I suggest that you do tests by yourself and see what happens. You only need to create little programs. Use a SQL trace too. And read the ABAP documentation to understand the concepts.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 05:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892776#M4465580</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-06-16T05:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892777#M4465581</link>
      <description>&lt;P&gt;Thanks Sandra Rossi. Can you please elaborate ?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 05:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892777#M4465581</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2019-06-16T05:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892778#M4465582</link>
      <description>&lt;P&gt;SWE_EVENT_CREATE is not an update function module, you can't call it directly in update task, you need a "wrapper".&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 06:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892778#M4465582</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-06-16T06:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892779#M4465583</link>
      <description>&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt;I have used object linking and raised event in UPD mode. The event is now getting raised and the associated FM is also getting executed. But as I am triggering Idoc in Update mode, and in that again we would be having COMMIT WORK, would this pose a problem ? Right now we dont have any error messages. But if Idoc generation fails, what would be impact on other updates ? &lt;/P&gt;&lt;P&gt;Also i think this will run as V1 update, anyway we can make this as V2 ? Does 'start with delay' make this V2 ? &lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 05:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892779#M4465583</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-17T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892780#M4465584</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Also check  fm SWE_EVENT_CREATE_IN_UPD_TASK .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 08:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892780#M4465584</guid>
      <dc:creator>anjan_paul</dc:creator>
      <dc:date>2019-06-17T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892781#M4465585</link>
      <description>&lt;P&gt;I have used object linking and raised event in UPD mode. The event is now getting raised and the associated FM is also getting executed. But as I am triggering Idoc in Update mode, and in that again we would be having COMMIT WORK, would this pose a problem ? Right now we dont have any error messages. But if Idoc generation fails, what would be impact on other updates ?&lt;/P&gt;&lt;P&gt;Also i think this will run as V1 update, anyway we can make this as V2 ? Does 'start with delay' make this V2 ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892781#M4465585</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-18T11:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892782#M4465586</link>
      <description>&lt;P&gt;Using COMMIT WORK inside an update task will trigger a short dump (it doesn't make sense to use COMMIT WORK again because the update task is triggered by COMMIT WORK). So, just create and process the IDoc inside the update task (don't run it in "another" update task, that wouldn't work anyway), no need of using COMMIT WORK. IDoc is processed via RFC. Yes, V2 = start with delay, but why do you want to make it V2? (it's for logs and so on, whose failures would lead to database integrity errors which are considered as tolerable)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892782#M4465586</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-06-18T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: When does Business Object event gets triggered ?</title>
      <link>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892783#M4465587</link>
      <description>&lt;P&gt;Hi, Yes in update task i am using SUBMIT PROG_CREATE_IDOC AND RETURN which created the idoc and if i use COMMIT WORK in the same program, it is not giving any error.  So do u think it is a good idea to use COMMIT WORK there ? &lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 12:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/when-does-business-object-event-gets-triggered/qaa-p/11892783#M4465587</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2019-06-18T12:22:14Z</dc:date>
    </item>
  </channel>
</rss>

