<?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: Diff between the following declarations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938539#M62649</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;The two declaration are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2005 16:23:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-29T16:23:09Z</dc:date>
    <item>
      <title>Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938532#M62642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diff b/n the fllowing declarations&lt;/P&gt;&lt;P&gt;*data:   begin of ITAB1 occurs 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       include structure /nam/abc_dates.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*data:   end of ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  ITAB2 TYPE TABLE OF ITAB2 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and please let me know&lt;/P&gt;&lt;P&gt;how to declare  and use interanl table in two diff function modules in the same function group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Pavankumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938532#M62642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T12:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938533#M62643</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;when u use begin of for defining internal table then the header line will be included automatically in other cases we need to specify the Header line explicitly or we woke with work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938533#M62643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938534#M62644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is no difference between this 2 decleration.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938534#M62644</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2005-09-29T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938535#M62645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I'm right you want to use the same table globally within one function group - right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so, add a top include to your group and declare your table there. It will be available and changable in any of your function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning your two table declarations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first of the declarations defines a table without a header line. You have to use the table in loops and read table declarations always transferring a table line to a workarea. E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO workarea.&lt;/P&gt;&lt;P&gt;[...work with "workarea"]&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second declaration (which is obsolete) defines a table with header line, which can be used in loops as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;[... work with "itab"]&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE TABLE OF struc_type [OCCURS 0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to declare an internal table without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938535#M62645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938536#M62646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no difference, both the tables have header line, first declaration create internal table with header line where in second declaration you have to explicitely add WITH HEADER LINE otherwise it will create internal table without header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938536#M62646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938537#M62647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its wrong Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The decleration of internal table starts (Begin of), its automatically have the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938537#M62647</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2005-09-29T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938538#M62648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Difference. The only thing is that you need to specify the OCCURS 0 addition in the first declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 13:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938538#M62648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938539#M62649</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;The two declaration are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 16:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938539#M62649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938540#M62650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring internal table you can basically use occurs 0 addition or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab {TYPE TABLE OF linetype|LIKE TABLE OF lineobj}. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This is a shortened form of the definition of a standard table. It corresponds to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DATA itab {TYPE STANDARD TABLE OF linetype| &lt;/P&gt;&lt;P&gt;              LIKE STANDARD TABLE OF lineobj} WITH DEFAULT KEY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the old definition (compare variant 4) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DATA itab {TYPE linetype|LIKE lineobj} OCCURS 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add WITH HEADER LINE, then it creates a work area or header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to other point of declating internal tables in two different function in the same Func Grp&lt;/P&gt;&lt;P&gt;Use the following path GOTO --&amp;gt; Global data and then declare your internal tables there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tables can be used globally in all function modules assigned to that func grp.&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, 29 Sep 2005 16:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938540#M62650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between the following declarations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938541#M62651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short answer......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No difference.&lt;/P&gt;&lt;P&gt;The OCCURS statement is "obselete".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use the OCCURS syntax in ABAP Objects.  You must use TYPE TABLE OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points to all your fellow SDNers whose posts have helped you.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 16:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-the-following-declarations/m-p/938541#M62651</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-29T16:57:40Z</dc:date>
    </item>
  </channel>
</rss>

