<?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: Calling function modules in background task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175057#M1623661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;    You can call your second FM for status change in UPDATE TASK so that after commit work is encountered this FM can be called.&lt;/P&gt;&lt;P&gt;    Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Akanksha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 07:59:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-19T07:59:53Z</dc:date>
    <item>
      <title>Calling function modules in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175056#M1623660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a notification in the background and linking it to an order. This I am doing inside a function module which is called in background task as a separate unit. I should change the user status of this newly created notification. This I am doing in another FM called as a separate unit. Now my requirement is that, I need to perform the status change only after the new notification is committed to the database. I would like to know if i can provide some time lag between the 2 FM execution. Can anyone tell me how much time will be consumed to commit the data to the database tables irrespective of the length of the data. Say for example, if i have hundreds of notifications within the object list tab of an order, I want to know what is the maximum time it will take to commit this to the database table so that I can put a wait conditionat the stat of the second FM call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 07:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175056#M1623660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function modules in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175057#M1623661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;    You can call your second FM for status change in UPDATE TASK so that after commit work is encountered this FM can be called.&lt;/P&gt;&lt;P&gt;    Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Akanksha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 07:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175057#M1623661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T07:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function modules in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175058#M1623662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks. But let me tell you 1 thing, actually I am calling these 2 FMs within an enhancement section just before another FM CO_ZV_ORDER_POST which is actually doing a commit work. So is it OK if I call the 1st FM in background task and the second FM in update task in the same place as I am calling the FMs now(i.e., before CO_ZV_ORDER_POST)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 08:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175058#M1623662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T08:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling function modules in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175059#M1623663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;    In that case use COMMIT WORK AND WAIT functionality after creating notification and if your BAPI/FM(used for creating notification) returns you notification number then that can be used for calling second FM. WAIT will help in committing all the changes in database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 11:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-function-modules-in-background-task/m-p/8175059#M1623663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T11:45:54Z</dc:date>
    </item>
  </channel>
</rss>

