<?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: fill a table with table type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257873#M1016286</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;LOOP AT i_tab&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld1 TO result_tab-fld1.&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld2 TO result_tab-fld2.&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld3 TO result_tab-fld3.&lt;/P&gt;&lt;P&gt;APPEND result_tab.&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;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab&lt;/P&gt;&lt;P&gt;result_tab-fld1 =  i_tab-fld1.&lt;/P&gt;&lt;P&gt;result_tab-fld2 =  i_tab-fld2.&lt;/P&gt;&lt;P&gt;result_tab-fld3 =  i_tab-fld3.&lt;/P&gt;&lt;P&gt;APPEND result_tab.&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;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 07:32:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-13T07:32:45Z</dc:date>
    <item>
      <title>fill a table with table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257871#M1016284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;can please anybody tell me how can I insert a new record to a table which associated type referred to a table type.  I have an internal table i_tab and I need to copy the content of the i_tab in to a result_tab which is defined in my function in the interface as a table with associated type referred to an table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Kami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 07:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257871#M1016284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T07:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: fill a table with table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257872#M1016285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;loop at itab&lt;/P&gt;&lt;P&gt;read table itab with key .... int result_tab.&lt;/P&gt;&lt;P&gt;append result_tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 07:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257872#M1016285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: fill a table with table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257873#M1016286</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;LOOP AT i_tab&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld1 TO result_tab-fld1.&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld2 TO result_tab-fld2.&lt;/P&gt;&lt;P&gt;MOVE i_tab-fld3 TO result_tab-fld3.&lt;/P&gt;&lt;P&gt;APPEND result_tab.&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;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_tab&lt;/P&gt;&lt;P&gt;result_tab-fld1 =  i_tab-fld1.&lt;/P&gt;&lt;P&gt;result_tab-fld2 =  i_tab-fld2.&lt;/P&gt;&lt;P&gt;result_tab-fld3 =  i_tab-fld3.&lt;/P&gt;&lt;P&gt;APPEND result_tab.&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;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 07:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257873#M1016286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T07:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: fill a table with table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257874#M1016287</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;1. define the result_tab  TYPE associated type referred to an table type (refered in FM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. define ITAB1 TYPE TABLE OF &amp;lt;Line type of that table type&amp;gt; with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Move the content from your internal table (i_tab) to ITAB1.&lt;/P&gt;&lt;P&gt;(Using loop and move the correponding fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then RESULT_TAB[] = ITAB1[] .&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;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 07:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257874#M1016287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: fill a table with table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257875#M1016288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Kami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 08:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-a-table-with-table-type/m-p/4257875#M1016288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T08:19:28Z</dc:date>
    </item>
  </channel>
</rss>

