<?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: Performance for tables statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830253#M1130109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.tables mara.&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.data: mara_wa type mara.&lt;/P&gt;&lt;P&gt;select-options:s_matnr for mara_wa-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second statement give the better performance. As tables:mara take global memory if u definde as data: mara_wa type mara.  it is local to that program 7 if u made any changes to the table it will not affect the program also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the program try to use as many as u can local variables for the performances issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Flavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2008 10:08:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-05T10:08:15Z</dc:date>
    <item>
      <title>Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830250#M1130106</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;In below statements which one give the better performance and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.tables mara.&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.data: mara_wa type mara.&lt;/P&gt;&lt;P&gt;select-options:s_matnr for mara_wa-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830250#M1130106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830251#M1130107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no significant difference, this shouldn't be a performance issue! if there are performance problems with your program, it is not because of these statements!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830251#M1130107</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-05T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830252#M1130108</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;One which does not have a Tables statement will give you better performance because it does not goes out searching for reference outside your program. I think so though with every declaration it will validate whether the declaration exist in the local declaration first and then the global declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830252#M1130108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830253#M1130109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.tables mara.&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.data: mara_wa type mara.&lt;/P&gt;&lt;P&gt;select-options:s_matnr for mara_wa-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the second statement give the better performance. As tables:mara take global memory if u definde as data: mara_wa type mara.  it is local to that program 7 if u made any changes to the table it will not affect the program also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the program try to use as many as u can local variables for the performances issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Flavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830253#M1130109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830254#M1130110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this statement doesnot deal with the performance issue, it might be when you have used more loop statements and join select statements only then the performance gets affected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830254#M1130110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830255#M1130111</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;Table statement automatically creates a WA in the memory with the Tables' name.&lt;/P&gt;&lt;P&gt;Hence i believe, the  "select-options s_matnr for mara-matnr"  is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second option you are creating one more wa with same reference., which is waste of money.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajat  Chaturvedi on Dec 5, 2008 3:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830255#M1130111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830256#M1130112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at [TABLES|http://help.sap.com/abapdocu/en/ABAPTABLES.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TABLES work area is an Interface Work Area, where the DATA work area is local. So performance derives from the kind of programs which are running, are there  only one report or many reports that are interfaced, also how are the data selected record by record or mass selection, are there any screen involved, you have not really enough information for an absolute and definitive answer, for hints :&lt;/P&gt;&lt;P&gt;- TABLES should consume more space and resources, but is sharable&lt;/P&gt;&lt;P&gt;- DATA consumes less, but if sharing is necessary, you will consumer resources to transfer data...&lt;/P&gt;&lt;P&gt;- TABLES may be requested in some report/screen communication&lt;/P&gt;&lt;P&gt;- TABLES is not allowed in classes (OO)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830256#M1130112</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-12-05T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830257#M1130113</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;As Eric suggested, this should not cause performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are asking just for info - &lt;/P&gt;&lt;P&gt;First method will take slightly more time than second one.&lt;/P&gt;&lt;P&gt;(I would rather say, first method will take slightly more memory than second one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830257#M1130113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830258#M1130114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If u put the TABLES statements in u r coding it was get the total fields from database,(it was affect to DB performance) if u doesn't require all the fields from MARA table better to avoid the TABLES statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830258#M1130114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830259#M1130115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; the second statement give the better performance. As tables:mara take global memory if u definde as data: mara_wa type mara.  it is local to that program 7 if u made any changes to the table it will not affect the program also.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; So in the program try to use as many as u can local variables for the performances issues.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most of your statements are completely incorrect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both statements will define the same work area, if they are global or local, it depends on where they are placed in the program (in this case both will be global, otherwise you couldn't use it on the selection screen)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830259#M1130115</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-05T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830260#M1130116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for  correction.&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;Flavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-tables-statement/m-p/4830260#M1130116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:55:37Z</dc:date>
    </item>
  </channel>
</rss>

