<?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: How to insert into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860868#M363474</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;Try as below - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at header.&lt;/P&gt;&lt;P&gt;Loop at item.&lt;/P&gt;&lt;P&gt;Append the required fields from header and item itabs to result itab.&lt;/P&gt;&lt;P&gt;endloop.&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;Reward ponits if found useful..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2007 02:30:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-30T02:30:33Z</dc:date>
    <item>
      <title>How to insert into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860867#M363473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 internal, for example, one of header table, one of item table, one of result table.&lt;/P&gt;&lt;P&gt;How can i insert header and item into result table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like.&lt;/P&gt;&lt;P&gt;Insert header-f1 header-f2 item-f1 item-f2 item-f3 into result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 01:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860867#M363473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T01:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860868#M363474</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;Try as below - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at header.&lt;/P&gt;&lt;P&gt;Loop at item.&lt;/P&gt;&lt;P&gt;Append the required fields from header and item itabs to result itab.&lt;/P&gt;&lt;P&gt;endloop.&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;Reward ponits if found useful..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 02:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860868#M363474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T02:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860869#M363475</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;create a work area for the result table and then move the values to the work area followed by appending to the result internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-f1 = header-f1.&lt;/P&gt;&lt;P&gt;wa-f2 = header-f2&lt;/P&gt;&lt;P&gt;append wa to result.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;wa-f1 = item-f1.&lt;/P&gt;&lt;P&gt;wa-f2 = item-f2&lt;/P&gt;&lt;P&gt;append wa to result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the result itab contains 2 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 02:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860869#M363475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T02:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860870#M363476</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;Since you have more than one record in the item table for a corresponding header table entry.Consider the following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do a loop at the item table. &lt;/P&gt;&lt;P&gt;2. Read the header table for the above key combination from the item table.&lt;/P&gt;&lt;P&gt;For eg: Read it_header with key xxx from the it-item-xxx.&lt;/P&gt;&lt;P&gt;3. Populate the final internal table. You can append the new internal table.&lt;/P&gt;&lt;P&gt;4. Endloop.&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;Regards&lt;/P&gt;&lt;P&gt;Deepu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 03:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860870#M363476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T03:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860871#M363477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at ititem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding ititem to itresult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itheader with key f1 = ititem-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itheader to itresult.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append itresult.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here all the tables are with header line if your table is without header line you have to use explicit work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 03:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-into-internal-table/m-p/1860871#M363477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T03:40:25Z</dc:date>
    </item>
  </channel>
</rss>

