<?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: Difference bw data, type, tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426408#M542014</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;1)&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declares a work area where you can have values in the work area in the run time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declares a type where you can use in a work area..But you cannot have values in the TYPES in the run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;TABELS: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 05:34:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T05:34:40Z</dc:date>
    <item>
      <title>Difference bw data, type, tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426407#M542013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;         carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;          END OF wa_spfli.&lt;/P&gt;&lt;P&gt;                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;         carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;          END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABELS: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;         carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;          END OF wa_spfli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426407#M542013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference bw data, type, tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426408#M542014</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;1)&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declares a work area where you can have values in the work area in the run time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declares a type where you can use in a work area..But you cannot have values in the TYPES in the run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;TABELS: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426408#M542014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference bw data, type, tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426409#M542015</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;1)DATA: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;  carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;  END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With DATA you are actually declaring the Variables with or without referencing the TYPES.DATA statements allocate the memory at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)TYPES: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;  carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;  END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With TYPES you are defining the data types that can be used by other variables/itabs in the program.TYPES statement defines the structure without allocation of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)TABELS: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;  carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;  END OF wa_spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can't use tables for defining a work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426409#M542015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference bw data, type, tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426410#M542016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; 1. TYPES statement defines the structure without allocation of memory, DATA statements allocate the memory at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a structure by using types statement and refer it by using the DATA statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In order to avoid the internal table declaration without header line, we are declaring a structure by types statemnet and declaring an internal table with reference to the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Type is one of the DATA TYPES which we create and reference to this datatype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426410#M542016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference bw data, type, tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426411#M542017</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;DATA: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can now use wa_spfli as a work area.(ie) a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here u have defined a data type.. so u cannot use wa_spfli as it is as a structure..&lt;/P&gt;&lt;P&gt;u can define str n tables using this data type..&lt;/P&gt;&lt;P&gt;eg.  data str type wa_spfli ...............(define structure of that type)&lt;/P&gt;&lt;P&gt;       data itab type table of wa_spfli .............(define internal table using the tupe defenition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABELS: BEGIN OF wa_spfli,&lt;/P&gt;&lt;P&gt;carrid TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;END OF wa_spfli. &lt;/P&gt;&lt;P&gt;  Ucannot use tables like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax is ..&lt;/P&gt;&lt;P&gt;Tables &amp;lt;database table&amp;gt;.&lt;/P&gt;&lt;P&gt;This will create a workarea(structure) of the same type as the database table&lt;/P&gt;&lt;P&gt;also it will have the same name at the dbtab.&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;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-bw-data-type-tables/m-p/2426411#M542017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:39:01Z</dc:date>
    </item>
  </channel>
</rss>

