<?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 with header line in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866838#M672504</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;itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.&lt;/P&gt;&lt;P&gt;i will explain use of itab w/o header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab1 type standard table of mara with header line occurs 0,&lt;/P&gt;&lt;P&gt;        itab2 type standard table of mara,&lt;/P&gt;&lt;P&gt;        wa_itab2 type mara.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;"This will work fine.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;"This will give erro that itabd does not hav workarea&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;"so write&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab2 into wa_itab2.&lt;/P&gt;&lt;P&gt;"This will work&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="132140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="71750"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="291983"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward point if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Poli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 14:49:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T14:49:55Z</dc:date>
    <item>
      <title>Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866834#M672500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to know what difference does it make if i declare an internal table with header line and if i don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is internal table with header line or without header line recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866834#M672500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T14:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866835#M672501</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;&amp;lt;b&amp;gt;with header line.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;data can be directly go to header first and will be placed in body when we used APPEND statement. cant be used for nesting of internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: data: itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;itab like standard table of ekko with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then itab is a internal with header line so u can use itab directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;select * from itab INTO TABLE itab where matnr in p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/10 itab-fld1.&lt;/P&gt;&lt;P&gt;,,,,,,,,,,,,,,,,,,&lt;/P&gt;&lt;P&gt;,,,,,,,,,,,,,,,,,,&lt;/P&gt;&lt;P&gt;,,,,,,,,,,,,,,,,,,&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;tables with out header line:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;for these tables we need to create a explicit header [workarea] and doing anything for data should be through that explicit header only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;data: itab like mara,&lt;/P&gt;&lt;P&gt;wa like mara.&lt;/P&gt;&lt;P&gt;itab is a internal table without header line [only body] and wa is the explicit workarea. &lt;/P&gt;&lt;P&gt;for this itab when u want to populate data u have to do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into wa where mantr in p_matnr.&lt;/P&gt;&lt;P&gt;append itab from wa.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for accessing data of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write:/10 wa-fld1,&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;With Header line:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap04/sld012.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap04/sld012.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Without Header line&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap-abap/abap04/sld013.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap-abap/abap04/sld013.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to use the Internal tables without header lines, it is better for Performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866835#M672501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866836#M672502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to ABAP Objects ,you must use internal table without header line other wise you get syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other than this you can use internal table with header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use  internal table without header line then you get little bit good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866836#M672502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866837#M672503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not declare internal table with header line, you need to explicitly declare work area to work with that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per ABAP standards we should declare work area explicitly and use the same while processing internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into watab.&lt;/P&gt;&lt;P&gt;  your logic.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this thread which explains the point in detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3860384"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866837#M672503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866838#M672504</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;itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.&lt;/P&gt;&lt;P&gt;i will explain use of itab w/o header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab1 type standard table of mara with header line occurs 0,&lt;/P&gt;&lt;P&gt;        itab2 type standard table of mara,&lt;/P&gt;&lt;P&gt;        wa_itab2 type mara.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;"This will work fine.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;"This will give erro that itabd does not hav workarea&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;"so write&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab2 into wa_itab2.&lt;/P&gt;&lt;P&gt;"This will work&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="132140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="71750"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="291983"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward point if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Poli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866838#M672504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866839#M672505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;performance point of view - without header line is good than with header line.&lt;/P&gt;&lt;P&gt;and in oops inveronment with header internal table is not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with out header line internal tables are called &amp;lt;b&amp;gt;nested internal tabels&amp;lt;/b&amp;gt; in this we can include structures and it is not possible in case of with header line internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if helpful reward some points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 14:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/2866839#M672505</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2007-10-03T14:51:34Z</dc:date>
    </item>
  </channel>
</rss>

