<?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: Call FM IN BACKGROUND TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373480#M526067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all reply!&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZRFC_TS_SCM_BOMRTNG'&lt;/P&gt;&lt;P&gt;    in background task&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    commit work and wait.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;the above is synchronous ;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;CALL FUNCTION 'ZRFC_TS_SCM_BOMRTNG'&lt;/P&gt;&lt;P&gt;    in background task&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;the above is asynchronous ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 03:47:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-06T03:47:36Z</dc:date>
    <item>
      <title>Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373476#M526063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   after calling a FM  WITH 'IN BACKGROUND TASK', &lt;/P&gt;&lt;P&gt; what's the difference between 'commit work' and 'commit work and wait' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373476#M526063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373477#M526064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT will wait for all the updates to complete..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373477#M526064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373478#M526065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function of the COMMIT WORK statement is extended when you use it in conjunction with Object Services. Before COMMIT WORK closes the SAP LUW and triggers an update, it calls internal methods of the Persistence Service. These methods bundle the changes made to managed objects of the Persistence Service and pass them to a special update function module using CALL FUNCTION ... IN UPDATE TASK. Thus the Persistence Service works with traditional update methods. The update module is usually registered after any update modules that have already been registered. The update is then triggered and the update task executes the update module in the order in which they were registered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the system executes the COMMIT WORK statement, it sets the attributes of each persistent object in the ABAP program to initial. (That is, it calls the IF_OS_STATE~INVALIDATE method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373478#M526065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373479#M526066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add one more pt,, in simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asynchronous Update &amp;#150; The program does not wait for the work process to finish the update. Commit Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synchronous Update &amp;#150; The program wait for the work process to finish the update. Commit Work and Wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373479#M526066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373480#M526067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all reply!&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZRFC_TS_SCM_BOMRTNG'&lt;/P&gt;&lt;P&gt;    in background task&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    commit work and wait.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;the above is synchronous ;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;CALL FUNCTION 'ZRFC_TS_SCM_BOMRTNG'&lt;/P&gt;&lt;P&gt;    in background task&lt;/P&gt;&lt;P&gt; ................................&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;the above is asynchronous ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373480#M526067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373481#M526068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To apply the changes made to the runtime objects of persistent classes to the actual persistent objects in the database, execute the COMMIT WORK statement. (Alternatively, use COMMIT WORK AND WAIT or SET UPDATE TASK LOCAL). Unless you are executing an object-oriented transaction from within the Transaction Service, you must include the COMMIT WORK statement explicitly in the program. Otherwise, it is encapsulated in the Transaction Service. (If you explicitly include the COMMIT WORK statement as described here, the t op-level transaction runs in compatibility mode).&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 03:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-in-background-task/m-p/2373481#M526068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T03:47:50Z</dc:date>
    </item>
  </channel>
</rss>

