<?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: Internal Table creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537400#M245156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is difference in the internal table structure. but the way of definition is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the first way,&lt;/P&gt;&lt;P&gt; you are directly creating the internal table object with the fields what you wanted&lt;/P&gt;&lt;P&gt;in the second step,&lt;/P&gt;&lt;P&gt; you are defining a datatype (as like elementory datatypes c,i etc), we call them as user defined datatypes, by using TYPES and then by refering that datatype you are creating the actual OBject(internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 12:57:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T12:57:22Z</dc:date>
    <item>
      <title>Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537394#M245150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends, &lt;/P&gt;&lt;P&gt; I have a question..We can create internal tables in 2 ways:&lt;/P&gt;&lt;P&gt;1. Data:Begin of itab,&lt;/P&gt;&lt;P&gt;        -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Types:Begin of itab,&lt;/P&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;         end of itab.&lt;/P&gt;&lt;P&gt;types: myitab type standard table of itab.&lt;/P&gt;&lt;P&gt;data:int_tab type myitab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the differenc ebetween two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 05:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537394#M245150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T05:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537395#M245151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES - Defining a Structured Type 


Basic form 
TYPES: BEGIN OF structype, 
         ... 
       END   OF structype. 



The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Operational statements not allowed in structure definitions and New naming conventions. 

Effect 
Defines the structured type structype, where all of the fields defined between " BEGIN OF structype" and "ENDOFstructype" are components of type structype. You can address individual components of the type using the prefix "structype-", 


A type name can be up to 30 characters long. The name may only consist of alphanumeric characters and the underscore character. It may not consist entirely of digits. Special characters such as German umlauts are not allowed. As well as these characters, certain special characters are used internall. However, these should not be used in application programs. SPACE is a reserved name, and cannot therefore be used. Furthermore, you should not use a field in a statement if it has the same name as one of the additions of the keyword (for example: PERFORM SUB USING CHANGING.). 

Recommendations for Type Names: 



Always start the name with a letter. 



Use the underscore to separate compound names (for example, NEW_PRODUCT. 



Example 
Defines a type with two components NAME und AGE: 



TYPES: BEGIN OF PERSON, 
         NAME(20) TYPE C, 
         AGE      TYPE I, 
       END   OF PERSON. 


Additional help 
Local Data Types in Programs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 05:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537395#M245151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T05:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537396#M245152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jyotsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For practical purpose,&lt;/P&gt;&lt;P&gt;   for the usage of final internal table,&lt;/P&gt;&lt;P&gt;  there is no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Its only that we can use the type,&lt;/P&gt;&lt;P&gt;  for creating other internal tables also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (we can also use itab, for creating other internal tables)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 05:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537396#M245152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T05:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537397#M245153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyotsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The internal table is declared with header line with type of 'itab', where you declare your type using TYPES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A way on how you construct an internal table, in which you can declare as many internal tables as you want by referring to the structure type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above clear your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 06:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537397#M245153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T06:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537398#M245154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;I will make it very simply for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: Begin of &amp;lt;tablename&amp;gt;,  "This is the OLD METHOD&lt;/P&gt;&lt;P&gt;      end of &amp;lt;tablename&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: Begin of &amp;lt;tablename&amp;gt;  "This just the new Method&lt;/P&gt;&lt;P&gt;                             "And schould be encouraged&lt;/P&gt;&lt;P&gt;       end of &amp;lt;tablename&amp;gt;,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537398#M245154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537399#M245155</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;you can use both, Ideally there is no difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537399#M245155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537400#M245156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is difference in the internal table structure. but the way of definition is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the first way,&lt;/P&gt;&lt;P&gt; you are directly creating the internal table object with the fields what you wanted&lt;/P&gt;&lt;P&gt;in the second step,&lt;/P&gt;&lt;P&gt; you are defining a datatype (as like elementory datatypes c,i etc), we call them as user defined datatypes, by using TYPES and then by refering that datatype you are creating the actual OBject(internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537400#M245156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537401#M245157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyotsna...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such practically there is  no difference between the two. However, types has one advandtage over the directly declalaring the table. Types once defined can be used to declare more than one table.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You declare one type say t_itab. then you can declare many internal table with this structure. But if you directly declare a table and you have to again give the same lines of code for declaring other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 12:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-creation/m-p/1537401#M245157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T12:59:20Z</dc:date>
    </item>
  </channel>
</rss>

