<?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: internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704149#M891854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The new table should have some fields that are common to both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic to use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at header table&lt;/P&gt;&lt;P&gt;loop at detail table where field = header-field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding header to newtable&lt;/P&gt;&lt;P&gt;move-corresponding detail to newtable&lt;/P&gt;&lt;P&gt;append newtable&lt;/P&gt;&lt;P&gt;clear newtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 05:10:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-10T05:10:03Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704148#M891853</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;there is one fuction module from standard program.&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPTRX/EVENT_MGR_FILL_TABCONT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      tabledef1          = 'GENERAL_HEADER_DATA'&lt;/P&gt;&lt;P&gt;      tabledef2          = 'HU_HEADER'&lt;/P&gt;&lt;P&gt;      tabledef3          = 'HU_ITEM'&lt;/P&gt;&lt;P&gt;      tabledef4          = 'HU_HISTORY_ENTRIES'&lt;/P&gt;&lt;P&gt;      opt_init_container = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      table1             = ls_general_data&lt;/P&gt;&lt;P&gt;      table2             = it_header&lt;/P&gt;&lt;P&gt;      table3             = it_items&lt;/P&gt;&lt;P&gt;      table4             = it_history&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      table_container    = datacontainer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i want to create another internal table some field from&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_header and  it_item  how to crate it ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704148#M891853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704149#M891854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The new table should have some fields that are common to both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic to use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at header table&lt;/P&gt;&lt;P&gt;loop at detail table where field = header-field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding header to newtable&lt;/P&gt;&lt;P&gt;move-corresponding detail to newtable&lt;/P&gt;&lt;P&gt;append newtable&lt;/P&gt;&lt;P&gt;clear newtable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704149#M891854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704150#M891855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare another internal table that have your required fields i.e. some from IT_HEADER &amp;amp; some from IT_ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at it_header.
  read table it_item with key f1 = it_header-f1.
  if sy-subrc = 0.
     v_tabix = sy-tabix.
     loop at it_item index sy-tabix.
        if it_item-f1 &amp;lt;&amp;gt; it_header-f1.
          exit.
        endif.
        it_final-f1 = it_hedaer-f1.
        it_final-f2 = it_item-f2.
        append it_final.  
     endloop.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704150#M891855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704151#M891856</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;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_details OCCURS 0,&lt;/P&gt;&lt;P&gt;              Declare all your hearder and line items fields here.&lt;/P&gt;&lt;P&gt;            END OF it_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lot of fields are there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704151#M891856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704152#M891857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jun 2008 12:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3704152#M891857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-07T12:21:06Z</dc:date>
    </item>
  </channel>
</rss>

