<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625725#M873505</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;What is the purpose of moving sata from one internal table to other internal table, you can use the first internal table for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See code below, if you want to copy contents of one internal table to other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Append lines of itab to new_tab.

OR

new_tab [] = itab1 [].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 06:23:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T06:23:55Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625721#M873501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to move internal table data to final internal table for process data in the output.&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, 16 Apr 2008 06:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625721#M873501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625722#M873502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;loop the internal table which u want to move to final internal table and move the field data to the fields of the final internal table and now append the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab1 has fng fields say A, B, C, D.&lt;/P&gt;&lt;P&gt;Itab2 has fng fields say D, E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Itab3 is final table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To combine itab1 and itab2,,, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 &lt;/P&gt;&lt;P&gt;itab3-fld1 = itab1-fld1.&lt;/P&gt;&lt;P&gt;itab3-fld2 = itab1-fld2.&lt;/P&gt;&lt;P&gt;itab3-fld3 = itab1-fld3. &lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;clear itab3. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;itab3-fld4 = itab1-fld4.&lt;/P&gt;&lt;P&gt;itab3-fld5 = itab1-fld5.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;clear itab3. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625722#M873502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625723#M873503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;move itab to final_tab.&lt;/P&gt;&lt;P&gt;move-correspondig fields itab to final_itab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625723#M873503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625724#M873504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the MOVE statement. You can do a F1 Help for the MOVE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;move it_vbap-vbeln to it_final-vbeln.
move it_vbap-posnr to it_final-posnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please be more specific while posting a question, and also do not post multiple posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625724#M873504</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-04-16T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625725#M873505</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;What is the purpose of moving sata from one internal table to other internal table, you can use the first internal table for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See code below, if you want to copy contents of one internal table to other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Append lines of itab to new_tab.

OR

new_tab [] = itab1 [].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625725#M873505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625726#M873506</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;You can move like this &lt;/P&gt;&lt;P&gt;Loop at &amp;lt;Current internal table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;final internal table&amp;gt;-val1 = &amp;lt;Current internal table&amp;gt;-val1.&lt;/P&gt;&lt;P&gt;&amp;lt;final internal table&amp;gt;-val2 = &amp;lt;Current internal table&amp;gt;-val2.&lt;/P&gt;&lt;P&gt;append &amp;lt;final internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625726#M873506</guid>
      <dc:creator>Pramanan</dc:creator>
      <dc:date>2008-04-16T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625727#M873507</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 your internal table and final internal table is having same fields then do  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_final[] = i_itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some fields are different then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MOVE-CORRESPONDING i_itab TO i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND i_final.&lt;/P&gt;&lt;P&gt;  CLEAR i_final.&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;Pls. reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625727#M873507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625728#M873508</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;Think that you have four internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab, itab1, itab2 and it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;          field1,&lt;/P&gt;&lt;P&gt;        end of itab1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;          field1,&lt;/P&gt;&lt;P&gt;          field2,&lt;/P&gt;&lt;P&gt;        end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;          field1,&lt;/P&gt;&lt;P&gt;          field4,&lt;/P&gt;&lt;P&gt;        end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_final occurs 0,&lt;/P&gt;&lt;P&gt;          field1,&lt;/P&gt;&lt;P&gt;          field2,&lt;/P&gt;&lt;P&gt;          field4,&lt;/P&gt;&lt;P&gt;        end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly you fill the internal tables itab itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  it_final-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table itab1 with key field1 = itab-field1.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   it_final-field2 = itab1-field2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table itab2 with key field1 = itab-field1.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   it_final-field4 = itab2-field4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append it_final.&lt;/P&gt;&lt;P&gt;  clear it_final. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625728#M873508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625729#M873509</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 the two internal tables structure is same then u can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 = firstinternal table&lt;/P&gt;&lt;P&gt;itab2 = second internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;move : wa_itab1 to wa_itab2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append wa_itab2 to itab2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this code u can move all the contents to final interna table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3625729#M873509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:42:30Z</dc:date>
    </item>
  </channel>
</rss>

