<?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 Creating Internal table or work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954495#M392796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have  struct1 LIKE TABLE OF struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both are structures. can anybody give me syntax to create the internal table for this and how to store values from struct1 to the internal table/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 20:48:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T20:48:34Z</dc:date>
    <item>
      <title>Creating Internal table or work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954495#M392796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have  struct1 LIKE TABLE OF struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both are structures. can anybody give me syntax to create the internal table for this and how to store values from struct1 to the internal table/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 20:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954495#M392796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T20:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Internal table or work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954496#M392797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may use -&lt;/P&gt;&lt;P&gt;data: begin of i_tab.&lt;/P&gt;&lt;P&gt;        include structure struct1.&lt;/P&gt;&lt;P&gt;data: end of i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_tab type struct1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will create an internal table without header line and you can use structure to pass value to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative you may also use -&lt;/P&gt;&lt;P&gt;data: begin of i_tab occurs 0.&lt;/P&gt;&lt;P&gt;        include structure struct1.&lt;/P&gt;&lt;P&gt;data: end of i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will create an internal table with header line but this is not advisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 20:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954496#M392797</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-02-22T20:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Internal table or work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954497#M392798</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;IF you have struct1 LIKE TABLE OF struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then STRUCT1 is an internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE TABLE OF STRUCT1.&lt;/P&gt;&lt;P&gt;DATA: WA  LIKE STRUCT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA-FIELD1 = 'ABC'.&lt;/P&gt;&lt;P&gt;WA-FIELD2 = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the internal table ITAB from the work area WA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND WA TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display the records.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  WRITE: / WA-FIELD1, WA-FIELD2.&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;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 20:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954497#M392798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T20:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Internal table or work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954498#M392799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can declare a Internal table using the structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: ITAB_struct1 like struct2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB_struct1 = 'abcd'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ITAB_struct1.&lt;/P&gt;&lt;P&gt;clear ITAB_struct1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare the internal table without the headerline also. In that case you don't have to have the clear ITAB_struct1 statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 20:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-or-work-area/m-p/1954498#M392799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T20:58:06Z</dc:date>
    </item>
  </channel>
</rss>

