<?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: move fields from third internal table to first internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477864#M557934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab3[] = itab1[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 09:26:48 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2007-07-06T09:26:48Z</dc:date>
    <item>
      <title>move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477854#M557924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am moving fields from third internal table to first itab by using move corresponding itab3 to itab1.&lt;/P&gt;&lt;P&gt;i am geting the values but only the last row of itab3 for particular partner1 .&lt;/P&gt;&lt;P&gt;since itab3 is having more than one row for particular partner1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all 3 itabs have different structure.&lt;/P&gt;&lt;P&gt;itab1 have more than 10 fields including partner2, name .&lt;/P&gt;&lt;P&gt; ,itab2 has partner1 and partner2, itab3 has partner2 and name.&lt;/P&gt;&lt;P&gt;and i want to move itab3-partner 2 and itab-3 name to itab1&lt;/P&gt;&lt;P&gt;itab-partner = itab2-partner1&lt;/P&gt;&lt;P&gt;itab2-partner2 = itab-partner3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am doing this way.&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;loop at itab2 where partner1 = itab1-partner1.&lt;/P&gt;&lt;P&gt;loop at itab3 where partner2 = itab2-partner2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding itab3 to itab1.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;pls reply , thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 07:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477854#M557924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T07:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477855#M557925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Use move instead of move-corresponding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 07:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477855#M557925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477856#M557926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ekta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: FIELD1(10) VALUE '1234567890', 
      OFF1 TYPE I VALUE 1, 
      LEN1 TYPE I VALUE 2, 
      FIELD2(8) VALUE 'abcdefgh', 
      OFF2 TYPE I VALUE 3, 
      LEN2 TYPE I VALUE 4. 
MOVE FIELD1+OFF1(LEN1) TO FIELD2+OFF2(LEN2). 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ROW1_3, 
         CO1 TYPE I, 
         CO2 TYPE I, 
         CO3 TYPE I, 
       END   OF ROW1_3. 
TYPES: BEGIN OF ROW2_4, 
         CO2 TYPE I, 
         CO3 TYPE I, 
         CO4 TYPE I, 
       END   OF ROW2_4. 
TYPES: BEGIN OF MATRIX1, 
         R1 TYPE ROW1_3, 
         R2 TYPE ROW1_3, 
         R3 TYPE ROW1_3, 
       END OF   MATRIX1. 
TYPES: BEGIN OF MATRIX2, 
         R2 TYPE ROW2_4, 
         R3 TYPE ROW2_4, 
         R4 TYPE ROW2_4, 
       END OF   MATRIX2. 
DATA: ROW TYPE ROW1_3, 
      M1  TYPE MATRIX1, 
      M2  TYPE MATRIX2. 

ROW-CO1 = 1. ROW-CO2 = 2. ROW-CO3 = 3. 
MOVE: ROW TO M1-R1, ROW TO M1-R2, ROW TO M1-R3. 
MOVE-CORRESPONDING  M1 TO M2. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If move statement is not working properly try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;modify  ITAB3 transporting KBETR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 07:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477856#M557926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T07:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477857#M557927</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 THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB3.&lt;/P&gt;&lt;P&gt;MOVE CORRESPONDING ITAB3 TO ITAB1.&lt;/P&gt;&lt;P&gt;MODIFY ITAB1.&lt;/P&gt;&lt;P&gt;ENDOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT ALL OTHER CONDITIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 07:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477857#M557927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T07:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477858#M557928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; i am doing the same way but getting only one row from itab3 to itab1 for particular partner1 &lt;/P&gt;&lt;P&gt;instead itab3 is having more than that&lt;/P&gt;&lt;P&gt;like for partner1 '304540'  partner2 is '405454'  'abhishek'&lt;/P&gt;&lt;P&gt;                                                     '700069'  'satish'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in itab1 only last row '700069'   'satish' is moving.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477858#M557928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477859#M557929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be ITAb2 is not having the more than one entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477859#M557929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477860#M557930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi... u can use 'MOVE-CORRESPONDING'&lt;/P&gt;&lt;P&gt;plz reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477860#M557930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477861#M557931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi atish &lt;/P&gt;&lt;P&gt;i debugged the report and found that within 3rd loop itab 3 is getting all&lt;/P&gt;&lt;P&gt;the rows &lt;/P&gt;&lt;P&gt;so there is no quetion of itab2 is empty.&lt;/P&gt;&lt;P&gt;i think some appending problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477861#M557931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477862#M557932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the example  : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS p_name TYPE scarr-carrname DEFAULT '*'. 

DATA: scarr_tab TYPE SORTED TABLE OF scarr 
                WITH UNIQUE KEY carrname, 
      spfli_tab TYPE SORTED TABLE OF spfli 
                WITH NON-UNIQUE KEY carrid. 

FIELD-SYMBOLS LIKE LINE OF scarr_tab. 
DATA spfli_line LIKE LINE OF spfli_tab. 

SELECT * 
       FROM scarr 
       INTO TABLE scarr_tab. 

SELECT * 
       FROM spfli 
       INTO TABLE spfli_tab. 

LOOP AT scarr_tab ASSIGNING 
                  WHERE carrname CP p_name. 
  LOOP AT spfli_tab INTO spfli_line 
                    WHERE carrid = -carrid. 
    WRITE: / spfli_line-carrid, 
             spfli_line-connid. 
  ENDLOOP. 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477862#M557932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477863#M557933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ekta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are modifying ITAB1 based on the fields from ITAB3...Now your logic of MODIFYing the ITAB1 itself is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As lets say loop starts and the ITAB3 has three entries related to ITAB1 so it will LOOP at ITAB3 ..3 times but always MODIFY the last entry from ITAB3 to ITAB1 as ITAB1 is only in the same loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want ITAB1 should contain all those entries then you may use COLLECT..but still the logic you written is not good and not correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477863#M557933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477864#M557934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab3[] = itab1[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477864#M557934</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-07-06T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from third internal table to first internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477865#M557935</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;Ur logic of modifying is wrong, if I have understood ur requirements correctly for all the partner values in ITAB1 partner u want all the values of ITAB3 for all the partners . for that this logic won't work. &lt;/P&gt;&lt;P&gt;what u must do is define a table having similar structure as itab1 and inside the third loop append the entries to that table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Saurabh Chhatre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 09:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-third-internal-table-to-first-internal-table/m-p/2477865#M557935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T09:35:10Z</dc:date>
    </item>
  </channel>
</rss>

