<?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: tables statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621555#M872476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this gives the buffer other wise it will access the database directly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally if u r calling a database many times it is not good for the performance...to avoid this u can use a buffer  using the tables statement...after using the tables statement if u r calling the database many times it will come from the buffer not from the database table ...&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;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 18:50:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T18:50:35Z</dc:date>
    <item>
      <title>tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621554#M872475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys can you please tell me siginficance of using TABLES statement with appropriate example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621554#M872475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621555#M872476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this gives the buffer other wise it will access the database directly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally if u r calling a database many times it is not good for the performance...to avoid this u can use a buffer  using the tables statement...after using the tables statement if u r calling the database many times it will come from the buffer not from the database table ...&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;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621555#M872476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T18:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621556#M872477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES statement wil be useful when u declare select-options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not declare tables then you will get syntax error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621556#M872477</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2008-03-26T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621557#M872478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When you declare the word TABLES as:&lt;/P&gt;&lt;P&gt;TABLES : KNA1.&lt;/P&gt;&lt;P&gt;It will create a work area similar to KNA1 table&lt;/P&gt;&lt;P&gt;If you wants to use the work area of that table you declare the Tables.&lt;/P&gt;&lt;P&gt;otherwise declare a internal table and use.&lt;/P&gt;&lt;P&gt;when you declare TABLES &lt;/P&gt;&lt;P&gt;you can write&lt;/P&gt;&lt;P&gt;select single * from KNA1 where kunnr = '0000001200'.&lt;/P&gt;&lt;P&gt;if kna1-land1 &amp;lt;&amp;gt; 'US'.&lt;/P&gt;&lt;P&gt;  write:/ kna1-kunnr, kna1-name1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in ECC 6-0 we should not declare Tables and should not use the internal tables with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621557#M872478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T18:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621558#M872479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;tables staement create external work area,&lt;/P&gt;&lt;P&gt;it is used for select-options,&lt;/P&gt;&lt;P&gt;if we use tables: in our prgm no need to create any work area,&lt;/P&gt;&lt;P&gt;this statement cteate buffer so it decreases the efficiancy&lt;/P&gt;&lt;P&gt;so avoid tables,&lt;/P&gt;&lt;P&gt;for select options use variables&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt; data: gv_matnr type matnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-option material for gv_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 19:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621558#M872479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621559#M872480</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;One common kind of interface work area are table work areas, which you declare using the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES &amp;lt;dbtab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement. This statement creates a structure with the same data type and the same name as a database table, a view, or a structure from the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Release 4.0, it was necessary to declare a database table &amp;lt;dbtab&amp;gt; to an ABAP program using the statement TABLES &amp;lt;dbtab&amp;gt; before you could access the table using Open SQL statements. This restriction no longer applies to Open SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you still need to use the TABLES statement if you want to define input/output fields on a screen with reference to database tables, views, or ABAP Dictionary structures (Get from Dict. function in the layout editor of the  Screen Painter). In the PBO event, the ABAP program sends the contents of the fields to the screen fields. In the PAI event, it receives the contents of the screen fields back into the corresponding components of the table work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you are using select-options if you did not use tables statement , it shows error. inorder to avoid that error we have to create a variable of that type and use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code with TABLES STMT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mara. " this creates buffer and it is maintained by the server. hence performance decreases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alternative and effecient method.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gv_matnr type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options matnr for gv_matnr.&lt;/P&gt;&lt;P&gt;*This method doesnt create any buffer  and hence there is no need of maintaining buffer on the server which indirectly increases the effecieny and performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ammavajjala Narayana on Mar 26, 2008 9:09 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 26, 2008 4:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 20:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement/m-p/3621559#M872480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T20:09:07Z</dc:date>
    </item>
  </channel>
</rss>

