<?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: Problem with Move-Corresponding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346222#M1231208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and also one thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FG_MAT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE-CORRESPONDING FG_MAT TO IT_FINAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT RAW_MAT  WHERE MATNR  = FG_MAT-MATNR&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;MOVE-CORRESPONDING FG_MAT TO IT_FINAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    AND WERKS = FG_MAT-WERKS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.&lt;/P&gt;&lt;P&gt;      APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;      CLEAR: IT_FINAL-M101.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put     MOVE-CORRESPONDING FG_MAT TO IT_FINAL inside the loop. it works..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2009 05:26:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-06T05:26:34Z</dc:date>
    <item>
      <title>Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346218#M1231204</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;Please go thru and advice me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT RAW_MAT WHERE MATNR = FG_MAT-MATNR.
    RAW_MAT-MENGE  =  IFG_MAT-MT101 *  RAW_MAT-MENGE.
    MODIFY RAW_MAT.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to move both the internal tables&lt;STRONG&gt;RAW_MAT&lt;/STRONG&gt; and  &lt;STRONG&gt;FG_MAT&lt;/STRONG&gt;  to same internal table &lt;STRONG&gt;IT_FINAL&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the requirement of my report, inorder to get multiple (records)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDNRK&lt;/STRONG&gt;  from  &lt;STRONG&gt;RAW_MAT&lt;/STRONG&gt;  for every single &lt;STRONG&gt;MATNR&lt;/STRONG&gt; in &lt;STRONG&gt;FG_MAT&lt;/STRONG&gt; and this is what I have &lt;/P&gt;&lt;P&gt;used as per my requirement. But here my all of my values are repeating twice.&lt;/P&gt;&lt;P&gt;Please go thru and advice if my logic is wrong else advice if there is any appropriate step &lt;/P&gt;&lt;P&gt;inorder to get multiple records from &lt;STRONG&gt;FG_MAT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT FG_MAT.
    MOVE-CORRESPONDING FG_MAT TO IT_FINAL.
    LOOP AT RAW_MAT  WHERE MATNR  = FG_MAT-MATNR
    AND WERKS = FG_MAT-WERKS.
      MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS.
      MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.
      MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.
      MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.
      MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.
      APPEND IT_FINAL.
      CLEAR: IT_FINAL-M101.
    ENDLOOP.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346218#M1231204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346219#M1231205</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;For best coding practice we should avoid using &lt;STRONG&gt;MOVE-CORRESPONDING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It has some effect with performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we always avoid using this keyword and use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MOVE str TO str1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346219#M1231205</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-06T05:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346220#M1231206</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;before nested looping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first sort the tables and delete adjacent duplicates for those tables. &lt;/P&gt;&lt;P&gt;Then u will get result fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346220#M1231206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346221#M1231207</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;Clear your variables after append&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; LOOP AT FG_MAT.&lt;/P&gt;&lt;P&gt;&amp;gt;     MOVE-CORRESPONDING FG_MAT TO IT_FINAL.&lt;/P&gt;&lt;P&gt;&amp;gt;     LOOP AT RAW_MAT  WHERE MATNR  = FG_MAT-MATNR&lt;/P&gt;&lt;P&gt;&amp;gt;     AND WERKS = FG_MAT-WERKS.&lt;/P&gt;&lt;P&gt;&amp;gt;       &lt;STRONG&gt;MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS. --&amp;gt; moved twice&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;       MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.&lt;/P&gt;&lt;P&gt;&amp;gt;       MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.&lt;/P&gt;&lt;P&gt;&amp;gt;       &lt;STRONG&gt;MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;       MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.&lt;/P&gt;&lt;P&gt;&amp;gt;      APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;&amp;gt;      CLEAR: IT_FINAL-M101,&lt;/P&gt;&lt;P&gt;&amp;gt;                    &lt;STRONG&gt;IT_FINAL-CKGS,IT_FINAL-IDNRK, IT_FINAL-MENGE ,IT_FINAL-MEINS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;gt;    &lt;STRONG&gt;clear IT_FINAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;   ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346221#M1231207</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-03-06T05:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346222#M1231208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and also one thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FG_MAT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE-CORRESPONDING FG_MAT TO IT_FINAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT RAW_MAT  WHERE MATNR  = FG_MAT-MATNR&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;MOVE-CORRESPONDING FG_MAT TO IT_FINAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    AND WERKS = FG_MAT-WERKS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.&lt;/P&gt;&lt;P&gt;      APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;      CLEAR: IT_FINAL-M101.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put     MOVE-CORRESPONDING FG_MAT TO IT_FINAL inside the loop. it works..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346222#M1231208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346223#M1231209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use At New MATNR to loop on each MATNR only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FG_MAT.&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;AT NEW MATNR.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING FG_MAT TO IT_FINAL.   &lt;/P&gt;&lt;P&gt;    LOOP AT RAW_MAT  WHERE MATNR  = FG_MAT-MATNR&lt;/P&gt;&lt;P&gt;    AND WERKS = FG_MAT-WERKS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.&lt;/P&gt;&lt;P&gt;      MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.&lt;/P&gt;&lt;P&gt;      APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;      CLEAR: IT_FINAL-M101.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;ENDAT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346223#M1231209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346224#M1231210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Move-corresponding fg_mat[] to it_final[].           "---------&amp;gt;Get all Data of Fg_mat inot table IT_final

Loop at raw_mat.
Read table it_final with key matnr = raw_mat-matnr.     "----------&amp;gt; Read matching materials.
If sy-sunrc = 0.
Modify it_final from raw_mat transproting CKGS IDNRK MENGE  CKGS   MEINS . "---&amp;gt;If the material matches modify It_final
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346224#M1231210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346225#M1231211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before going to loop you have to sort the internal table and delete the adjacent duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to avoid Move-Corresponding because of performance issue. After appending the internal table you want to clear the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You check the data while debugging.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346225#M1231211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346226#M1231212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chek this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT FG_MAT.
READ TABLE RAW_MAT WITH KEY MATNR = FG_MAT-MATNR
                            WERKS = FG_MAT-WERKS.
      MOVE RAW_MAT-CKGS  TO  IT_FINAL-CKGS.
      MOVE RAW_MAT-IDNRK  TO  IT_FINAL-IDNRK.
      MOVE RAW_MAT-MENGE  TO  IT_FINAL-MENGE.
      MOVE RAW_MAT-CKGS   TO  IT_FINAL-CKGS.
      MOVE RAW_MAT-MEINS  TO  IT_FINAL-MEINS.
      APPEND IT_FINAL.
      CLEAR: IT_FINAL-M101.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346226#M1231212</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-06T05:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346227#M1231213</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;Non of the above said logic is working for me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My output is correct if  &lt;STRONG&gt;lifnr, werks and budat&lt;/STRONG&gt; is obligatory in selection screen but I am worried if there won't be any problem in future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if write like the below, my output is correct in development as there are only few records in it&lt;/P&gt;&lt;P&gt;Please advice me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT RAW_MAT BY IDNRK WERKS.
DELETE ADJACENT DUPLICATES FROM RAW_MAT  COMPARING ALL FIELDS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 07:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346227#M1231213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T07:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346228#M1231214</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;Generally we dnt use &lt;STRONG&gt;MOVE-CORRESPONDING&lt;/STRONG&gt; due to some performance issues&lt;/P&gt;&lt;P&gt;If we use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE-CORRESPONDING it_header TO it_final.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then this statement will match all the fields from &lt;STRONG&gt;it_header&lt;/STRONG&gt; to &lt;STRONG&gt;it_final&lt;/STRONG&gt; till it finds the same column and then transfer the values from one to other table.&lt;/P&gt;&lt;P&gt;So, this is considered to be time taking and a lot of resources can be used in this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if we use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_header.
  MOVE : it_header-field1 TO it_final-field1,
         it_header-field2 TO it_final-field2,
         it_header-field3 TO it_final-field3.
         " and so on.....
  APPEND it_final.
  CLEAR it_final.
  CLEAR it_header.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this approcah we already mae sure the field type match.&lt;/P&gt;&lt;P&gt;So no extra time is taken to find the appropiate field type.&lt;/P&gt;&lt;P&gt;And thus eliminates performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference reading on &lt;STRONG&gt;Performance Issues&lt;/STRONG&gt; you can refer link:-&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/performance" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/performance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346228#M1231214</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-06T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Move-Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346229#M1231215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you solved you issue yet?  I was away on vacation, so I was unable to respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are still looking for help - I would be curious as to the contents of the IT_RAW and the FG_MAT tables before you begin the process of totaling.  I am wondering if some of the results are causing the double rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mark Schwendinger on Mar 16, 2009 7:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 18:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-move-corresponding/m-p/5346229#M1231215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T18:17:37Z</dc:date>
    </item>
  </channel>
</rss>

