<?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: header line in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049887#M88861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, here is a little sample.  Put it in debug and watch it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Types: ty_header(10) type c,
       ty_detail(10) type c.


types: begin of ty_test1,
           header type ty_header,
           detail type ty_detail occurs 0,
       end of ty_test1.

data: it_test type standard table of ty_test1 with header line.
data: wa_test type ty_test1.

data: it_detail type table of ty_detail.
data: wa_detail type ty_detail.


wa_detail = 'blahblahblah'.
append  wa_detail to it_detail.

wa_test-detail[] = it_detail[].
append wa_test to it_test.


Check sy-subrc  = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Wed, 14 Dec 2005 16:23:04 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-12-14T16:23:04Z</dc:date>
    <item>
      <title>header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049882#M88856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have declared a 'table in table' structure. (is it called deep structure?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN of ty_test1&lt;/P&gt;&lt;P&gt;         header TYPE ty_header,&lt;/P&gt;&lt;P&gt;         detail TYPE ty_detail OCCURS 0,&lt;/P&gt;&lt;P&gt;        END of ty_test1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_test TYPE STANDARD TABLE OF ty_test1 WITH HEADER LINE OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I also have a header line declared for the structure 'detail' inside the internal table so that I can use related functions LIKE 'MOVE-CORRESPONDING', 'SELECT..INTO CORRESPONDING FIELDS...' and 'LOOP AT it_test-detail'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 15:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049882#M88856</guid>
      <dc:creator>former_member220801</dc:creator>
      <dc:date>2005-12-14T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049883#M88857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Yes you can Declare.&lt;/P&gt;&lt;P&gt;But I am not sure about this deep structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 16:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049883#M88857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049884#M88858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can declare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_test like it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: chandrasekhar jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 16:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049884#M88858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049885#M88859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's possible to have a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to declare a aux. structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Phani may Know another way, for his reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre Nogueira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 16:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049885#M88859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049886#M88860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was getting some syntax problems with you code.  I have adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

types: begin of ty_test1,
           header type ty_header,
           detail type ty_detail occurs 0,
       end of ty_test1.

data: it_test type standard table of ty_test1 with header line.
data: wa_test type ty_test1.


&lt;/CODE&gt;&lt;/PRE&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>Wed, 14 Dec 2005 16:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049886#M88860</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-14T16:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: header line in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049887#M88861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, here is a little sample.  Put it in debug and watch it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Types: ty_header(10) type c,
       ty_detail(10) type c.


types: begin of ty_test1,
           header type ty_header,
           detail type ty_detail occurs 0,
       end of ty_test1.

data: it_test type standard table of ty_test1 with header line.
data: wa_test type ty_test1.

data: it_detail type table of ty_detail.
data: wa_detail type ty_detail.


wa_detail = 'blahblahblah'.
append  wa_detail to it_detail.

wa_test-detail[] = it_detail[].
append wa_test to it_test.


Check sy-subrc  = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Wed, 14 Dec 2005 16:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-line-in-internal-table/m-p/1049887#M88861</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-14T16:23:04Z</dc:date>
    </item>
  </channel>
</rss>

