<?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: tranfer data between internal tables... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245549#M1013404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use loop on final table and read rest all two tables if sy-subrc = 0 than append else nothing to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2008 07:05:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-07T07:05:06Z</dc:date>
    <item>
      <title>tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245545#M1013400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my issue is ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 3 internal tables, and 2 final tables.&lt;/P&gt;&lt;P&gt;i have a field which is same in all three internal tables and in the first final table i have appended all the data from all the three internal tables, it doesn't matter if it is having any duplicate entries in the final table ,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now , i want to tranfer all records from one final table (above final table) to the second final table , but the condition is,  only that particular records will be transfered which exists in all the three internal tables ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Preetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 06:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245545#M1013400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245546#M1013401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at final table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read all the first  internal tables with common field .&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;read all the second internal tables with common field .&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;read all the third  internal tables with common field .&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;append in second final table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no append .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would solve the problem .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245546#M1013401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245547#M1013402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALgorithm should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IT_FIN1.

READ IT1 WITH KEY KEY = IT_FIN1-KEY.
IF SY-SUBRC = 0.
  READ IT2 WITH KEY KEY = IT_FIN1-KEY.
    IF SY-SUBRC = 0.
      READ IT3 WITH KEY KEY = IT_FIN1-KEY.
      IF SY-SUBRC = 0.
        APPEND IT_FIN2.
      ENDIF.
    ENDIF.
ENDIF.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&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;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245547#M1013402</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-08-07T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245548#M1013403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example we have a field say FLD1 which common in 3 tables (i_temp1,i_temp2,i_temp3) ans in 1 final  table (i_final1) .Now att records from these 3 temp tables are populated in i_final1 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read i_temp1 with key fld1 = i_final1-fld1.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;  read i_temp2 with key fld1 = i_final1-fld1.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;  read i_temp3 with key fld1 = i_final1-fld1.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   Populate records from i_final1 to i_final2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     append i_final2.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245548#M1013403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245549#M1013404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use loop on final table and read rest all two tables if sy-subrc = 0 than append else nothing to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245549#M1013404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245550#M1013405</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;First get all the data into first final internal table upto here u dont have any problem righ then wht u do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at first_final_itab.
  read table first_itab with (give the fields that u require )
    if sy-subrc eq 0.
         read table second_itab with (give the fields that u require )
         if sy-subrc eq 0.
             read table third_itab with (give the fields that u require )
              if sy-subrc eq 0.
                 append fs_first_final_itab to second_final_itab.
              endif.
         endif.
    endif.
 endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sunil Kumar Mutyala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245550#M1013405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245551#M1013406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preetesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_final_1.&lt;/P&gt;&lt;P&gt; read itab1 &lt;/P&gt;&lt;P&gt;    if not found set flag = 'X'.&lt;/P&gt;&lt;P&gt;    continue&lt;/P&gt;&lt;P&gt; read itab2 &lt;/P&gt;&lt;P&gt;    if not found set flag = 'X'.&lt;/P&gt;&lt;P&gt;    continue.&lt;/P&gt;&lt;P&gt; read itab3 &lt;/P&gt;&lt;P&gt;    if not found set flag = 'X'.&lt;/P&gt;&lt;P&gt;    continue.&lt;/P&gt;&lt;P&gt;if flag is empty then append itb_final_1 to itab_final_2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245551#M1013406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245552#M1013407</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;when you go for 'for all entries' to club the tables than it selects only those data which are present in all the tables. &lt;/P&gt;&lt;P&gt;if u want to transfer data from final table1 to final table 2 than check out this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at final_table1 into wa_final1.&lt;/P&gt;&lt;P&gt;read table itba1 into wa1 with key field1 = wa_final1.&lt;/P&gt;&lt;P&gt;   if sy-subrc = '0'.&lt;/P&gt;&lt;P&gt;      read table itba2 into wa2 with key field1 = wa_final1.&lt;/P&gt;&lt;P&gt;          if sy-subrc = '0'.&lt;/P&gt;&lt;P&gt;              read table itba3 into wa3 with key field1 = wa_final1.&lt;/P&gt;&lt;P&gt;                      if sy-subrc = '0'.&lt;/P&gt;&lt;P&gt;                          wa_final2-field1 = wa_final1-field1.&lt;/P&gt;&lt;P&gt;                          append wa_final2 to final_table2.&lt;/P&gt;&lt;P&gt;     else.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;            continue.&lt;/P&gt;&lt;P&gt;               else.&lt;/P&gt;&lt;P&gt;                 continue&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&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;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245552#M1013407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245553#M1013408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz follow below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data iflag type i.&lt;/P&gt;&lt;P&gt;Data kflag type i.&lt;/P&gt;&lt;P&gt;Data jflag type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_1st_final.&lt;/P&gt;&lt;P&gt;iflag = 0.&lt;/P&gt;&lt;P&gt;Read table itab1 with key &amp;lt;keyField&amp;gt; = it_1st_final-&amp;lt;key_field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;iflag = 1.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt; jflag = 0.&lt;/P&gt;&lt;P&gt;Read table itab2 with key &amp;lt;keyField&amp;gt; = it_1st_final-&amp;lt;key_field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;jflag = 1.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kflag = 0.&lt;/P&gt;&lt;P&gt;Read table itab3 with key &amp;lt;keyField&amp;gt; = it_1st_final-&amp;lt;key_field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;kflag = 1.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  iflag  = 1 and &lt;/P&gt;&lt;P&gt;   jflag  = 1 and &lt;/P&gt;&lt;P&gt;   kflag = 1 and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move it_1nd_final to it-2nd_final..&lt;/P&gt;&lt;P&gt;append it_2nd_final.&lt;/P&gt;&lt;P&gt;clear it_2nd-final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RAJESH KUMAR on Aug 7, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 07:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245553#M1013408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245554#M1013409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the response...,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if we are using READ TABLE ITAB INTO WA WITH KEY (FIELD)  it will read only one record,&lt;/P&gt;&lt;P&gt;and the problem is that it will check for the first record each time from the internal table,&lt;/P&gt;&lt;P&gt;and suppose that the same record in the internal table is in third row, then it will not pick that one.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245554#M1013409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T08:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: tranfer data between internal tables...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245555#M1013410</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;have a look,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at first internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read second int table with key &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want,  delete adjacent duplecates from int table comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign second int table fields to first int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append first int table to final table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table third int table with key &amp;lt; condition&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want,  delete adjacent duplecates from int table comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign third int table fields to first int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append first int table to final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tranfer-data-between-internal-tables/m-p/4245555#M1013410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T08:24:11Z</dc:date>
    </item>
  </channel>
</rss>

