<?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 buffered table in a join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736255#M1674194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; We had developed a&amp;nbsp; Customised program to get mail those who are separated or transfered one payroll area to another payroll area. Its working fine. But when performance checking in code inspector its showing some warning messages like "Buffered Table T001P in a JOIN" .&amp;nbsp; I have wrote code like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT pernr endda begda aedtm a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl name1 &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btext &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_prsarea &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;pa0001 &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;a INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;t500p &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;b&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;b&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;persa&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;t001p &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;pernr&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_0001&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;pernr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;How i will remove these warning message. Give me suggessions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2012 10:03:17 GMT</pubDate>
    <dc:creator>geetha_k</dc:creator>
    <dc:date>2012-04-26T10:03:17Z</dc:date>
    <item>
      <title>buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736255#M1674194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; We had developed a&amp;nbsp; Customised program to get mail those who are separated or transfered one payroll area to another payroll area. Its working fine. But when performance checking in code inspector its showing some warning messages like "Buffered Table T001P in a JOIN" .&amp;nbsp; I have wrote code like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT pernr endda begda aedtm a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl name1 &lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btext &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_prsarea &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;pa0001 &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;a INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;t500p &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;b&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;b&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;persa&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER &lt;SPAN class="L0S52"&gt;JOIN &lt;/SPAN&gt;t001p &lt;SPAN class="L0S52"&gt;AS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks &lt;SPAN class="L0S52"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;btrtl&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;a&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;pernr&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_0001&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;pernr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;How i will remove these warning message. Give me suggessions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736255#M1674194</guid>
      <dc:creator>geetha_k</dc:creator>
      <dc:date>2012-04-26T10:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736256#M1674195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a join, then the Buffering will be of no use as it will hit the database layer,&lt;/P&gt;&lt;P&gt;Please try using BYPASSING BUFFER in the select statement and check if you are still getting a warning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736256#M1674195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-26T10:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736257#M1674196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you need a Text table in a Join Query. It will deteriorate your query performance. Instead, you do you selection directly from PA0001 and then create a temp internal table of those contents. Delete duplicate from that temp table and find the text from T001P separately.. which can be further updated in your original internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736257#M1674196</guid>
      <dc:creator>former_member209818</dc:creator>
      <dc:date>2012-04-26T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736258#M1674197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I had tried using BYPASSING BUFFER . But no use of that. Stiil warning message is coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736258#M1674197</guid>
      <dc:creator>geetha_k</dc:creator>
      <dc:date>2012-04-26T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736259#M1674198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main options I see are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove T001P from the join and later do a select single on it inside a loop (OK for buffered tables) or with some FOR ALL ENTRIES construct&lt;/LI&gt;&lt;LI&gt;deactivate the warning with a comment "#EC CI_BUFFJOIN&lt;/LI&gt;&lt;LI&gt;just live with the warning&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow I don't really like option 1, since this makes the code more complex, as I assume you want all data in that one final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the number of rows in T001P, this might not present a problem at all, so 2 could be ok, if 3 is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see what the experts say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas﻿﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736259#M1674198</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-04-26T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736260#M1674199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you check the Code inspector message you can see that you can hide thee error message using #EC .&lt;/P&gt;&lt;P&gt;Please check the log completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 10:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736260#M1674199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-26T10:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736261#M1674200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Geetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the options that Thomas proposed above should be evaluated based on the fact, how the table T001P is accessed in your query and how large it is.&lt;/P&gt;&lt;P&gt;If the table is very small and fits into 1-2 blocks and if "full table scan" is selected in access path, then it should not be an issue from the performance point of view. This table block will be in memory and only one access will be necessary. I don't see a reason to split the JOIN and use option 1. Option 2 will be ok.&lt;/P&gt;&lt;P&gt;But, if the table T001P has many hundred or thousands of entries, and index access + table block access are required, then option 1 may be better from the performance point of view. And it will automatically resolve the message.&lt;/P&gt;&lt;P&gt;I'd actually compare the performance of both variants directly in your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 11:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736261#M1674200</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2012-04-26T11:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: buffered table in a join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736262#M1674201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First off all you should understand that if a buffered table appears in a join then the SAP table buffer is bypassed because the buffer does not support join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyword BYPASSING BUFFER explicitly bypasses the buffer, how should that help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, nearly all tables with Tnnn... with n numbers are buffered tables, i.e T500p and T001p are buffered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The recommended solution would be a SELECT/ENDSELECT on PA001 and inside two select single on the buffered tables. But add a comment otherwise somebody else will try to fix the nested selects.&lt;/P&gt;&lt;P&gt;Performance impact is probably small, as these 2 tables are quite small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 12:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffered-table-in-a-join/m-p/8736262#M1674201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-26T12:27:15Z</dc:date>
    </item>
  </channel>
</rss>

