<?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 Is it Advisable to use wait in program ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696699#M305613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is is advisable to use 'wait' in programs ? I need to do a select on a table , that i just wrote ....If i dont do a wait in the program , the select returns blank...!!&lt;/P&gt;&lt;P&gt;Does this make a major performance setback in a program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear bkpf.&lt;/P&gt;&lt;P&gt;clear bkpf2.&lt;/P&gt;&lt;P&gt;wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from bkpf into bkpf where&lt;/P&gt;&lt;P&gt;    belnr = belnr1 and bukrs = messtab-msgv2 .&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if dist &amp;gt;= 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from bkpf into bkpf2 where&lt;/P&gt;&lt;P&gt;    bvorg = bkpf-bvorg and belnr &amp;lt;&amp;gt; belnr1 and gjahr = bkpf-gjahr.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  Cross Company doc num: ' , bkpf-bvorg color 5.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  'Posted In Company Code : ' , bkpf-bukrs color 5.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2006 21:35:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-01T21:35:06Z</dc:date>
    <item>
      <title>Is it Advisable to use wait in program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696699#M305613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is is advisable to use 'wait' in programs ? I need to do a select on a table , that i just wrote ....If i dont do a wait in the program , the select returns blank...!!&lt;/P&gt;&lt;P&gt;Does this make a major performance setback in a program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear bkpf.&lt;/P&gt;&lt;P&gt;clear bkpf2.&lt;/P&gt;&lt;P&gt;wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from bkpf into bkpf where&lt;/P&gt;&lt;P&gt;    belnr = belnr1 and bukrs = messtab-msgv2 .&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if dist &amp;gt;= 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from bkpf into bkpf2 where&lt;/P&gt;&lt;P&gt;    bvorg = bkpf-bvorg and belnr &amp;lt;&amp;gt; belnr1 and gjahr = bkpf-gjahr.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  Cross Company doc num: ' , bkpf-bvorg color 5.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  'Posted In Company Code : ' , bkpf-bukrs color 5.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 21:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696699#M305613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T21:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Advisable to use wait in program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696700#M305614</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;I don't think wait up to 2 seconds will cause major performance while waiting messtab-msgv2 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this inside loop statement?&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 21:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696700#M305614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T21:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Advisable to use wait in program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696701#M305615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is really your discretion. Are you trying to read a record that has "just" been added to the database? If so, the record may still be in the buffer (and not physically in the database) and the wait is justbuying you time. The problem is this may not work all the time (depending on the load and system timings). I would opt for Commit and Wait before Wait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 22:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696701#M305615</guid>
      <dc:creator>vyende</dc:creator>
      <dc:date>2006-11-01T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it Advisable to use wait in program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696702#M305616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are other better ways than WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 23:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-it-advisable-to-use-wait-in-program/m-p/1696702#M305616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T23:14:53Z</dc:date>
    </item>
  </channel>
</rss>

