<?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 Asynchronous function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898154#M54659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a line in a table (c) with data of two tables (a) (b). I have only one user-exit and it reads the data of only one table (a).  I need both data of (a) (b) to add a line in (c). The user-exit is at the commit of the table (a), the commit of the table (b) comming just after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think to create an asynchronous function, call it in the user-exit and wait the commit of the table (b). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user-exit is already call in an asynchronous function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you think it's dangerous to have two asynchronous function launch in the same time ? (process problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you do to wait a commit ? wait n seconds ? or there is a way to wait a commit on a table ? &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2005 08:00:16 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2005-02-25T08:00:16Z</dc:date>
    <item>
      <title>Asynchronous function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898154#M54659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a line in a table (c) with data of two tables (a) (b). I have only one user-exit and it reads the data of only one table (a).  I need both data of (a) (b) to add a line in (c). The user-exit is at the commit of the table (a), the commit of the table (b) comming just after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think to create an asynchronous function, call it in the user-exit and wait the commit of the table (b). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user-exit is already call in an asynchronous function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you think it's dangerous to have two asynchronous function launch in the same time ? (process problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you do to wait a commit ? wait n seconds ? or there is a way to wait a commit on a table ? &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 08:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898154#M54659</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-02-25T08:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898155#M54660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frédéric!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should search for different options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statement 'call function ... starting new task / in background' may trigger an implicit commit work -&amp;gt; this has to be avoided (at all costs), since later rollback work won't clear up whole transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about writing change pointers in exit for (a) and (b) - can be done without commit; only message (WE81) has to be customized, pointer activated (BD50) and CHANGE_POINTERS_CREATE_DIRECT can be used. Later you can read both entries 'asynchron' by a job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 08:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898155#M54660</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-25T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898156#M54661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you repply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution looks very interesting, I never play with things like that. Do you know where I could find documentation ? I look in help.sap.com but I don't find a real doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work in MSEG &amp;amp; MSEGO2 (OIL) this is not too big for this solution ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Frédéric Girod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 08:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898156#M54661</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-02-25T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898157#M54662</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;it's no problem - with appropriate server - to have 1 million change pointers per day (and jobs handling this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menu points for this settings are behind:&lt;/P&gt;&lt;P&gt;workbench - ALE - ALE development - IDOC - change service (free translated, but you should find it anyway). Documentation is linked to this key words, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ALE-scenarios are much more sophisticated and have nothing to do with my process description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start was already described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your job should contain following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM CHANGE_POINTERS_READ&lt;/P&gt;&lt;P&gt;Your (a), (b), (c) handling&lt;/P&gt;&lt;P&gt;FM CHANGE_POINTERS_STATUS_WRITE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daily or weekly BD22 'archiving'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you plan this job in higher frequency then your runtime (every 5 minutes, sometimes runtime of job is longer -&amp;gt; two active jobs), move ...status_write in the beginning (+ commit work) -&amp;gt; then second job only reads new pointers, not same again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 09:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898157#M54662</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-25T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898158#M54663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank a lot for this answer Christian, I can stop borring SAP OSS now &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 09:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-function/m-p/898158#M54663</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-02-25T09:10:39Z</dc:date>
    </item>
  </channel>
</rss>

