<?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 WAIT up to command while using FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699071#M2018242</link>
    <description>&lt;P&gt;We are using an FM .Based on the update operation done by the FM , we are supposed to do some more operation POST operation .&lt;/P&gt;
  &lt;P&gt;But by the time it reaches the next line , it does not update the required database table .&lt;/P&gt;
  &lt;P&gt;If we add WAIT UPTO 0.2 seconds it works .&lt;/P&gt;
  &lt;P&gt;SET UPDATE LOCAL TASK is also not working .&lt;/P&gt;
  &lt;P&gt;Is it a good programming practice to add wait up to 0.2 seconds in middle of program .&lt;/P&gt;
  &lt;P&gt;Or is there a better option like ENQUEUE SLEEP &lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 15:02:02 GMT</pubDate>
    <dc:creator>former_member780342</dc:creator>
    <dc:date>2023-05-02T15:02:02Z</dc:date>
    <item>
      <title>WAIT up to command while using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699071#M2018242</link>
      <description>&lt;P&gt;We are using an FM .Based on the update operation done by the FM , we are supposed to do some more operation POST operation .&lt;/P&gt;
  &lt;P&gt;But by the time it reaches the next line , it does not update the required database table .&lt;/P&gt;
  &lt;P&gt;If we add WAIT UPTO 0.2 seconds it works .&lt;/P&gt;
  &lt;P&gt;SET UPDATE LOCAL TASK is also not working .&lt;/P&gt;
  &lt;P&gt;Is it a good programming practice to add wait up to 0.2 seconds in middle of program .&lt;/P&gt;
  &lt;P&gt;Or is there a better option like ENQUEUE SLEEP &lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699071#M2018242</guid>
      <dc:creator>former_member780342</dc:creator>
      <dc:date>2023-05-02T15:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: WAIT up to command while using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699072#M2018243</link>
      <description>&lt;P&gt;In my opinion all wait steps are bad practice as they try to make asynchronous updates synchronous. Surely sometimes there is no other way. You would need to share more details about what you are trying to acomplish, so the community can help you better.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699072#M2018243</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2023-05-02T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: WAIT up to command while using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699073#M2018244</link>
      <description>&lt;P&gt;Yep, bad practice. Also, maybe one day "WAIT UP TO '0.2' SECONDS" might not work at random moment just because of slow system.&lt;/P&gt;&lt;P&gt;If you run a &lt;STRONG&gt;SQL trace with ABAP stack&lt;/STRONG&gt;, you can understand what caused the update and you will find a solution (provided that you understand how ABAP runtime works - Refer to ABAP documentation for these details).&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-up-to-command-while-using-fm/m-p/12699073#M2018244</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-02T16:48:55Z</dc:date>
    </item>
  </channel>
</rss>

