<?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: issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598273#M268638</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;loop at i_vbak. -Correct&lt;/P&gt;&lt;P&gt;loop at i_vbap where vbeln = i_vbak-vbeln.-Correct&lt;/P&gt;&lt;P&gt;loop at i_vbep where vbeln = i_vbep-vbeln.-Correct&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into i_vbak. &lt;/P&gt;&lt;P&gt;read table i_vbak where vbeln = 'xxx'-Correct&lt;/P&gt;&lt;P&gt;posnr = 'yyy'&lt;/P&gt;&lt;P&gt;vkorg = 'zzz'&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right-&amp;gt;&lt;/P&gt;&lt;P&gt;select * from tablename into i_vbak .&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>Mon, 11 Sep 2006 08:44:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-11T08:44:40Z</dc:date>
    <item>
      <title>issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598270#M268635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best way to fix this loop performance wise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_vbak.&lt;/P&gt;&lt;P&gt;loop at i_vbap where vbeln = i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;loop at i_vbep where vbeln = i_vbep-vbeln.&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also .... do you see any errors/performance issues with these statements. Please donot take "select" query in to consideration. of course "sort i_vbak" is one that needs to be considered i guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into i_vbak. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_vbak where vbeln = 'xxx'&lt;/P&gt;&lt;P&gt;posnr = 'yyy'&lt;/P&gt;&lt;P&gt;vkorg = 'zzz'&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. Enjoy! your weekends.&lt;/P&gt;&lt;P&gt;Mary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 08:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598270#M268635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T08:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598271#M268636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at i_vbak.&lt;/P&gt;&lt;P&gt;*loop at i_vbap where vbeln = i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;read table i_vbap with key vbeln = i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at&amp;lt;b&amp;gt; i_vbep&amp;lt;/b&amp;gt; where vbeln = &amp;lt;b&amp;gt;i_vbep-vbeln&amp;lt;/b&amp;gt;&amp;lt;/b&amp;gt;.---&amp;gt;wrong what is  use  of that.&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  is  better  that u  just send  ur  requirment.&lt;/P&gt;&lt;P&gt;we will try  to code that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 08:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598271#M268636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598272#M268637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all nested loop is not good..we should always try and avoid it. As for your required since you dont want to use SELECT..is to surely sort the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_vbak.&lt;/P&gt;&lt;P&gt;sort i_vbap.&lt;/P&gt;&lt;P&gt;sort i_vbep.&lt;/P&gt;&lt;P&gt;loop at i_vbak.&lt;/P&gt;&lt;P&gt;clear i_vbap.&lt;/P&gt;&lt;P&gt;loop at i_vbap where vbeln = i_vbak-vbeln.&lt;/P&gt;&lt;P&gt;clear i_vbep.&lt;/P&gt;&lt;P&gt;read table i_vbep with key vbeln = i_vbap-vbeln&lt;/P&gt;&lt;P&gt;and posnr = i_vbap-posnr.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Try the above logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Please try an avoid opening the same issue in multiple threads ..Cheers !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 08:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598272#M268637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T08:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598273#M268638</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;loop at i_vbak. -Correct&lt;/P&gt;&lt;P&gt;loop at i_vbap where vbeln = i_vbak-vbeln.-Correct&lt;/P&gt;&lt;P&gt;loop at i_vbep where vbeln = i_vbep-vbeln.-Correct&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;xxxxxxxx&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into i_vbak. &lt;/P&gt;&lt;P&gt;read table i_vbak where vbeln = 'xxx'-Correct&lt;/P&gt;&lt;P&gt;posnr = 'yyy'&lt;/P&gt;&lt;P&gt;vkorg = 'zzz'&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right-&amp;gt;&lt;/P&gt;&lt;P&gt;select * from tablename into i_vbak .&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>Mon, 11 Sep 2006 08:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598273#M268638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598274#M268639</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;Avoid using nested loops wherever possible. Chk out the'read' statement/keyword.&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;Shehryar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 09:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issues/m-p/1598274#M268639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T09:01:37Z</dc:date>
    </item>
  </channel>
</rss>

