<?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 headerline in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888617#M678709</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;what is the heder line for internaltable, how can it aloocate memory when using with headerline. some body says while using witout header line we can get more forformence with compare with header line please explain me with exaples,&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;radhakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 04:34:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T04:34:10Z</dc:date>
    <item>
      <title>headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888617#M678709</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;what is the heder line for internaltable, how can it aloocate memory when using with headerline. some body says while using witout header line we can get more forformence with compare with header line please explain me with exaples,&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;radhakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888617#M678709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T04:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888618#M678710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify WITH HEADER LINE, the table is created with a header line,&lt;/P&gt;&lt;P&gt;that is, a field with the same name. It has the same type as the line&lt;/P&gt;&lt;P&gt;type of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sake of clarity, the table name should identify the table&lt;/P&gt;&lt;P&gt;uniquely, or then it depends on the statement whether the body or header&lt;/P&gt;&lt;P&gt;line of a table is accessed (header or table?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without header lines programs are easier to read. Table data and&lt;/P&gt;&lt;P&gt;structure are separated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables with header lines do not improve performance and only tables&lt;/P&gt;&lt;P&gt;without header lines can be declared in ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's better to use the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE|LIKE TABLE OF ... ,&lt;/P&gt;&lt;P&gt;wa LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;col1(1) TYPE c,&lt;/P&gt;&lt;P&gt;col2(1) TYPE c,&lt;/P&gt;&lt;P&gt;END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: with_header_tab LIKE TABLE OF line WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;without_header_tab LIKE TABLE OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-col1 = 'A'. line-col2 = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND line TO with_header_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with header line, SAP creates de work area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT with_header_tab.&lt;/P&gt;&lt;P&gt;WRITE: / with_header_tab-col1, with_header_tab-col2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE with_header_tab[] TO without_header_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;without header line, you create de work area and use into&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT without_header_tab INTO line.&lt;/P&gt;&lt;P&gt;WRITE: / line-col1, line-col2.&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888618#M678710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T04:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888619#M678711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In with header line, the header is the workarea that is the internal table is having implicit workarea whereas in without header line, the internal table has a explicit workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u can create internal tables with header line, even empty internal tables will occupy 256 bytes memory. Whereas if u create internal tables without header line, it will just occupy 16 bytes for each records u store which says u the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will not be any performance issue if u are storing a smaller number of records. But when u are storing larger number of records like 2 lakh entries, there comes the [performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888619#M678711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T04:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888620#M678712</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;header line is the concept used for tables with header line. whenever you want to enter dat into the internal body first it should be passed to header line using SELECT STATEMENT and from there using APPEND  it is passed to body of internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any operations that is to be performed on data of internal table like MODIFY, UPDATE, LOOP  for then the data first should be passed from body to header line and we ll modify data in header itself and again place it body......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara 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-.......&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;internal tables without header line use the concept of workarea.  workarea is some thing similar to header but it is not attached to internal table. here we have to explicitly pass data from workarea to body of internal table and some thing for modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populate data from mara into internal table without header line itab as&lt;/P&gt;&lt;P&gt;wa ls the workarea [header of itab]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara INTO wa where matnr 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 processing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA. [itab INTO wa  -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;used for any operation in internal table without header line&lt;/P&gt;&lt;P&gt; WRITE:/10 WA-.......&lt;/P&gt;&lt;P&gt;                   WA-.........&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;ADV: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.a table without header line can be nested into another table which is not possible for tables with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. provides more flexibility then tables with header line as we can create a workarea of our wish and use for our table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 04:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2888620#M678712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T04:54:22Z</dc:date>
    </item>
  </channel>
</rss>

