<?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 Table type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827910#M920548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt; I am new to abap, I am having confusion regarding line type, table type, and structure declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reward  usefull inputs.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;  V.K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 16:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T16:46:50Z</dc:date>
    <item>
      <title>Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827910#M920548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt; I am new to abap, I am having confusion regarding line type, table type, and structure declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reward  usefull inputs.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;  V.K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 16:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827910#M920548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T16:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827911#M920549</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;This is confusion very one has at the start. Earlier days we used to use occurs statement which includes all ur types in one statement. But it occupies lots of system memory. So SAP has recommeded to use types. It works like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First u define a structure- a structure is not but a definition. It does'nt occupy any memory. This u can global declare from se11 or inside the program using types statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table types: its a table definitoin again not linked to any memory component. when u say itab type table of struct. it takes the same format of structure which can expand at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line type: its like a work area wherein the header data is stored we define as: witab type struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 17:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827911#M920549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827912#M920550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Line type :&lt;/P&gt;&lt;P&gt;Before the 4.7 release in SAP if we want to define an internal table we have to write the defination using the occurs statement and we need to define all the fields using INCLUDE STRUCTURE or indidually all the fields ine by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From 4.7 release of R/3 SAP introduced the Line type concept and it's part of the ABAP OOPS concept. for internal table defination we don't need to use the occur statements. Instead INCLUDE structure we need to create a Line type for that structure in Se11 and then we can define the internal table like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB TYPE TABLE OF &amp;lt;LINE_TYPE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only thing is this table will be a table without header. So for internal table processing we need to define a work area structure of type line of line type . EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB TYPE  &amp;lt;LINE_TYPE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table type:&lt;/P&gt;&lt;P&gt;1) In SE11 in Data Type Enter your Table type's name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Click Create; Choose Table Type&lt;/P&gt;&lt;P&gt;The maintenance screen for Table types appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) In Row Type , you can specify : a Data type/Data element/Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) You can change:&lt;/P&gt;&lt;P&gt;The access mode as desired on the Access category.&lt;/P&gt;&lt;P&gt;Define the Key of the table type on the Key tab page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Save and Activate the table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration : itab type &amp;lt;table_type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure:&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;         include &amp;lt;structure&amp;gt;.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 17:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827912#M920550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827913#M920551</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;Please, read this: &lt;SPAN __jive_macro_name="thread" id="754886"&gt;&lt;/SPAN&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>Thu, 15 May 2008 17:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827913#M920551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827914#M920552</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;Awesome  I did not know this site will work like this your inputs were very help full. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;What I infered from your inputs is that we should not use occurs 0 in our  coding, instead we can go either by declaring types statement in our code or by defining the structure in SE11.&lt;/P&gt;&lt;P&gt; Am I on the way ?&lt;/P&gt;&lt;P&gt;let me know, if I got you wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;     V.K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 17:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827914#M920552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T17:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827915#M920553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya Vikram...you r exactly rite.&lt;/P&gt;&lt;P&gt;you should not use OCCURS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wat evr I posted, if that helped you.....reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 17:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/3827915#M920553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T17:38:13Z</dc:date>
    </item>
  </channel>
</rss>

