<?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 Performance Tuning in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720672#M631190</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;Performance wise which is correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select * from vbrk into ivbrk where vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 regio from kna1 for all entries in ivbrk where kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ivbrk.&lt;/P&gt;&lt;P&gt;read table ikna1 with keykunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;ivbrk-regio = ikna1-regio.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify ivbrk transporting regio.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. select * from vbrk into ivbrk where vbeln in s_vbeln&lt;/P&gt;&lt;P&gt; loop at ivbrk.&lt;/P&gt;&lt;P&gt;select single regio name1 from kna1 into (v_regio,v_name1) where kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;ivbrk-regio = v_regio.&lt;/P&gt;&lt;P&gt;modify ivbrk transporting regio.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in first one im selcting datas in ikna1 by select statement and within loop endloop am reading the internal table ikna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in second one within loop and endloop and using select single to to fetch data from kna1.&lt;/P&gt;&lt;P&gt;here everytime am hitting database table using select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you please tell me which is correct for improving the performance tunning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2007 11:44:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-21T11:44:49Z</dc:date>
    <item>
      <title>Performance Tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720672#M631190</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;Performance wise which is correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select * from vbrk into ivbrk where vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 regio from kna1 for all entries in ivbrk where kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ivbrk.&lt;/P&gt;&lt;P&gt;read table ikna1 with keykunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;ivbrk-regio = ikna1-regio.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify ivbrk transporting regio.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. select * from vbrk into ivbrk where vbeln in s_vbeln&lt;/P&gt;&lt;P&gt; loop at ivbrk.&lt;/P&gt;&lt;P&gt;select single regio name1 from kna1 into (v_regio,v_name1) where kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;ivbrk-regio = v_regio.&lt;/P&gt;&lt;P&gt;modify ivbrk transporting regio.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in first one im selcting datas in ikna1 by select statement and within loop endloop am reading the internal table ikna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in second one within loop and endloop and using select single to to fetch data from kna1.&lt;/P&gt;&lt;P&gt;here everytime am hitting database table using select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you please tell me which is correct for improving the performance tunning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 11:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720672#M631190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720673#M631191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first one is better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 11:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720673#M631191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720674#M631192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first one is correct. it will definitely improve perfomance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 11:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720674#M631192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T11:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720675#M631193</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;use first one and modify like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbrk into TABLE ivbrk where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IVBRK.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM IVBRK COMPARING KUNNR.&lt;/P&gt;&lt;P&gt;IF IVBRK[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 regio from kna1INTO TABLE IKNA1 for all entries in ivbrk where kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ivbrk.&lt;/P&gt;&lt;P&gt;read table ikna1 with key kunnr = ivbrk-kunag.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;ivbrk-regio = ikna1-regio.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify ivbrk transporting regio.&lt;/P&gt;&lt;P&gt;CLEAR IVBRK,IKNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 11:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720675#M631193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720676#M631194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE THIS THREAD IF SOLVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 11:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning/m-p/2720676#M631194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T11:56:41Z</dc:date>
    </item>
  </channel>
</rss>

