<?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 vs TYPE STANDARD TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116859#M984227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES statement will not define internal table&lt;/STRONG&gt; rather it defines work area of same structure as the name defined in tables statement and with the same name.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(It can hold single record at any point of time)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: TABLES: T001 defines work area with name T001 of structure same as T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_t001 TYPE STANDARD TABLE OF t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement defines internal table &lt;STRONG&gt;without header line&lt;/STRONG&gt; having structure same as T001 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jun 2008 13:15:47 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-06-29T13:15:47Z</dc:date>
    <item>
      <title>TABLES vs TYPE STANDARD TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116857#M984225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the difference exactly in declaring&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES T001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab TYPE STANDARD TABLE OF T001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that with the 1st command we create an internal table with the exact same structure as of the table specified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the 2nd command doesn't do the same, I'm wondering where exactly does the difference lies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 12:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116857#M984225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES vs TYPE STANDARD TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116858#M984226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kahana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get this clarified.. Answer these questions then you could differentiation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Are you able to perform table opperations in first case?&lt;/P&gt;&lt;P&gt;2. In first case is the table holds the values selected from database table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are just declaring the table structure in the first case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 13:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116858#M984226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES vs TYPE STANDARD TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116859#M984227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES statement will not define internal table&lt;/STRONG&gt; rather it defines work area of same structure as the name defined in tables statement and with the same name.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(It can hold single record at any point of time)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: TABLES: T001 defines work area with name T001 of structure same as T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_t001 TYPE STANDARD TABLE OF t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement defines internal table &lt;STRONG&gt;without header line&lt;/STRONG&gt; having structure same as T001 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 13:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116859#M984227</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-29T13:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES vs TYPE STANDARD TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116860#M984228</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;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creates an &lt;STRONG&gt;structure - the table work area&lt;/STRONG&gt; - in a program, for the database table , view , or structure dbtab with the &lt;STRONG&gt;same name&lt;/STRONG&gt;. The structure of the table work area corresponds exactly to the line structure of the database table dbtab. dbtab must be declared in the ABAP Dictionary.  &lt;/P&gt;&lt;P&gt;The fields of the table work area are filled with the initial value appropriate for their ABAP data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : If you want to list all the company code and its text&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from t001.
  write : / 10 t001-bukrs,
             15 t001-butxt.
endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : itab TYPE STANDARD TABLE OF T001.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are declaring a internal table which has a line type T001. And, you need to explicitily create a header line / work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : itab TYPE STANDARD TABLE OF T001,
         wa like line of itab.

select * from t001 into table itab.
loop at itab into wa.
 write : 10 wa-bukrs,
           15 wa-butxt.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 13:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116860#M984228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-29T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES vs TYPE STANDARD TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116861#M984229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not exactly. Historically (below R/3 3.0) the TABLES statement was necessary for all database accesses involving the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today TABLES is obsolete. It declares a STRUCTURE (one line!), that means a structure variable off the name and structure of the ztable name used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES T001.
DATA T001 TYPE T001.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the same and will lead to a syntax error (T001 already declared).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  itab TYPE STANDARD TABLE OF T001.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;declares an internal table without header line and row structure of T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use F1 on TABLES and DATA to find out yourself.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2008 13:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-vs-type-standard-table/m-p/4116861#M984229</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-06-29T13:45:27Z</dc:date>
    </item>
  </channel>
</rss>

