<?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 definition difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657903#M613015</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;speaking with Size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;no need to define the size of your internal table with 100 . you can define 0 as well.&lt;/P&gt;&lt;P&gt;becuase, the system will allocates 8KB memory if you define internal table with occurs 0.&lt;/P&gt;&lt;P&gt;if it is 100 then 100 * 8 = 800 kb. &lt;/P&gt;&lt;P&gt;the system try to allocates 800 kb at runtime as per your declaration of internal table. The system automatically increases your size of the internal table once after reaches the storage of your records(8kb), if you specified occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS keyword will create the body of the internal table to hold your records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;it allocates and increases your internal table memory depends on your records how much you need to keep in that internal table. system automatically increases your internaltable, if required to store more records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2007 15:07:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-24T15:07:04Z</dc:date>
    <item>
      <title>Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657898#M613010</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;I have a doubt about two ways of defining an internal table cos they look alike but i dont really know if the do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First way to define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;DATA: END OF tvbdpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second way to define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are they the same?&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;Roberto Okumura.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 14:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657898#M613010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657899#M613011</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;   Both declarations declare a internal talbe with a header line.. how ever the initial size of the both declaration is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;These both are one and same&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;DATA: END OF tvbdpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;*-- This declaration will declare a internal table with&amp;lt;/b&amp;gt; a initial size of 100 records..&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;DATA: END OF tvbdpr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 14:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657899#M613011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657900#M613012</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;  both are not same why beacuse u r specifying size first itself in the declaration &lt;/P&gt;&lt;P&gt;where as in 2nd case u r not specifying size but taking it as type table of vbdpr , but both have the header line.&lt;/P&gt;&lt;P&gt;&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;sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 14:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657900#M613012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657901#M613013</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;Technically speaking both are having the same functionality but different technical despription.&lt;/P&gt;&lt;P&gt;I mean. &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;DATA: END OF tvbdpr.&lt;/P&gt;&lt;P&gt;the system implicitely creates the header line with the help of key word BEGIN OF.&lt;/P&gt;&lt;P&gt;You need to understand the EXPLICIT Work Aread and IMPLICIT Work Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;The system explicitely creates the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance wise better to go for data: tvbdpr type standard table of vbdpr with header line. becuase no need to create work area for doing some other calculations at header line level or work aread level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;DATA: END OF tvbdpr. &lt;/P&gt;&lt;P&gt;first it recoginze the table vbdpr then allocate the memory area for your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally, if you want to define the explicit work area better to go for with header line internal table otherwise go without header line .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 14:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657901#M613013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657902#M613014</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;Thanx for all the answers. But i have another doubt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to define an internal table without using "occurs" or "with header line" and at the same time to be able to perform the same operations as if it had a header line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657902#M613014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657903#M613015</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;speaking with Size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;no need to define the size of your internal table with 100 . you can define 0 as well.&lt;/P&gt;&lt;P&gt;becuase, the system will allocates 8KB memory if you define internal table with occurs 0.&lt;/P&gt;&lt;P&gt;if it is 100 then 100 * 8 = 800 kb. &lt;/P&gt;&lt;P&gt;the system try to allocates 800 kb at runtime as per your declaration of internal table. The system automatically increases your size of the internal table once after reaches the storage of your records(8kb), if you specified occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS keyword will create the body of the internal table to hold your records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;it allocates and increases your internal table memory depends on your records how much you need to keep in that internal table. system automatically increases your internaltable, if required to store more records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657903#M613015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657904#M613016</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;internal table can be used to store &amp;amp; do some operations on multiple records at a time. &lt;/P&gt;&lt;P&gt; without using "occurs" or "with header line" it is not called as a internal table and we cont store multiple records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can define the internal table without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;data: itab_witout_header like itab occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at internal table........endloop. and &lt;/P&gt;&lt;P&gt;read table internaltable...............&lt;/P&gt;&lt;P&gt;some otheroperations are internally liked with the internal table.&lt;/P&gt;&lt;P&gt;without using "occurs" or "with header line" we cant work with the above specified conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define the structures for holding the single values at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;award points.&lt;/P&gt;&lt;P&gt;sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657904#M613016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657905#M613017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Don't use occurs. Now it is absolute now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : tvbdpr TYPE TABLE OF vbdpr.           " Internal table without header line&lt;/P&gt;&lt;P&gt;DATA : wa_tvbdpr TYPE vbdpr.                      " External Work area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in your example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)        DATA: BEGIN OF tvbdpr OCCURS 100.&lt;/P&gt;&lt;P&gt;           INCLUDE STRUCTURE vbdpr.&lt;/P&gt;&lt;P&gt;           DATA: END OF tvbdpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans :  You can add here other additional fields also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)        data: tvbdpr type standard table of vbdpr with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans :  You can't add other additional fields here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point ???????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657905#M613017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657906#M613018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  it is not usually good to use occurs specification and with header line instead u can for work area concept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can go like this for ex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab,&lt;/P&gt;&lt;P&gt;           vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;           end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type table of itab,&lt;/P&gt;&lt;P&gt;         wa type itab.  -&amp;gt; work area declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u can do the operations thru this work area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is really good practise to do in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still any questions welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657906#M613018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table definition difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657907#M613019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ill award points for all answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 15:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-definition-difference/m-p/2657907#M613019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T15:38:04Z</dc:date>
    </item>
  </channel>
</rss>

