<?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/2501709#M565286</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;can anybody send me how and explain about with Header Line and Without Header Line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 15:22:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T15:22:36Z</dc:date>
    <item>
      <title>Headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501709#M565286</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;can anybody send me how and explain about with Header Line and Without Header Line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 15:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501709#M565286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501710#M565287</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;Please check this information from other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The header line is a built in structure to your internal table. So if you say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when you loop at the table &lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can reference itab-matnr etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't use a header line you have to declare a structure to move the values into when reading from the table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab type table of mara.&lt;/P&gt;&lt;P&gt;data wtab type mara.&lt;/P&gt;&lt;P&gt;loop at itab into wtab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;and then you reference wtab instead of itab directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see it in action declare both types of table in a test program then debug and look at both your different tables and you'll see the one with a header line has a hat in the first column of the debugger referencing the values of the loop that are currently being pointed at.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 15:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501710#M565287</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-07-18T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501711#M565288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you declare a internal table with header line, it has the body along with header. If you declare an internal table with out header line, then only the body of the internal table will be created and you have to explicitly create a work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A work area will have the same type of the internal table and in order to process records in an internal table you have to move them in to a work area record by record using a loop statement for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 15:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501711#M565288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Headerline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501712#M565289</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;While adding or retrieving records to / from internal table we have to keep the record temporarily. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The area where this record is kept is called as work area for the internal table.  The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header line is a implicit work area for the internal table.  It depends on how the internal table is declared that the itab will have the header line or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;data: begin of itab occurs 10, &lt;/P&gt;&lt;P&gt;           ab type c, &lt;/P&gt;&lt;P&gt;           cd type i, &lt;/P&gt;&lt;P&gt;        end of itab.  " this table will have the header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_itab like itab. " explicit work area for itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 like itab occurs 10. " table is without header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The header line is a field string with the same structure as a row of the body, but it can only hold a single row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table.  It is the default work area for the internal table. &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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 15:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/headerline/m-p/2501712#M565289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T15:33:49Z</dc:date>
    </item>
  </channel>
</rss>

