<?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 and move-corresponding? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367430#M524316</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;move statement is used to move a variable or a record from one work area to another. it moves data in a order i.e. field by field the order of fields in in both tables should be same otherwise we will get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding moves data from one table to another with respect to names of fields. i.e no sequence is maintained . it automatically searches for field names and moves data acoordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally moves works faster than move-corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u move the order in both tables i.e sequence in both tables r same go for move otherwise use move-corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 07:47:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T07:47:14Z</dc:date>
    <item>
      <title>move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367424#M524310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends..&lt;/P&gt;&lt;P&gt;can you tell me difference bt move and move-corresponding with an example program?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367424#M524310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367425#M524311</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;1. Move assigns the value to the specified field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just like a = b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Whereas&lt;/P&gt;&lt;P&gt;3. MOVE-CORRESPONDING STRUCT1 TO STRUCT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means,&lt;/P&gt;&lt;P&gt;ALL FIELDS HAVING THE SAME NAME,&lt;/P&gt;&lt;P&gt;WILL BECOME EQUAL.&lt;/P&gt;&lt;P&gt;(Rest fields, which do not have same name,&lt;/P&gt;&lt;P&gt;will be ignored)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Suppose have a struct1 has 5 fields,&lt;/P&gt;&lt;P&gt;struct 2 has 9 fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so instead of giving 5 different lines,&lt;/P&gt;&lt;P&gt;STRUCT2-FIEDL1 = STRUCT1-FIELD1&lt;/P&gt;&lt;P&gt;STRUCT2-FIEDL2 = STRUCT1-FIELD2&lt;/P&gt;&lt;P&gt;STRUCT2-FIEDL3 = STRUCT1-FIELD3&lt;/P&gt;&lt;P&gt;STRUCT2-FIEDL4 = STRUCT1-FIELD4&lt;/P&gt;&lt;P&gt;STRUCT2-FIEDL5 = STRUCT1-FIELD5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just use MOVE-CORRESPONDING STRUCT1 TO STRUCT2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367425#M524311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367426#M524312</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;move statement is more effienet than move-corresponding.&lt;/P&gt;&lt;P&gt;In case of dialog programming move/movecorresponding stsmt&lt;/P&gt;&lt;P&gt;are used to put internal table workarea data into screen fields.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;ort01 like lfa1-ort01,&lt;/P&gt;&lt;P&gt;end of itab.(here lfa1 is DBtable name)&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in case of movecorresponding  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move-Corresponding itab to lfa1.&lt;/P&gt;&lt;P&gt;(here:lfa1 is screen fields name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in case of MOVE stmt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move itab-lifnr to lfa1-lifnr.&lt;/P&gt;&lt;P&gt;Move itab-name1 to lfa1-name1.&lt;/P&gt;&lt;P&gt;Move itab-ort01 to lfa1-ort01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movecorresponding :&lt;/P&gt;&lt;P&gt;If DBtable having 1000 fields and you are using&lt;/P&gt;&lt;P&gt;movecorresponding, then system has to check all the field in&lt;/P&gt;&lt;P&gt;table to move.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367426#M524312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367427#M524313</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 You have the Same Structure for Both Internal Table you can use simple MOVE statement. Otherwise you have to use MOVE-CORRESPONDING... It will find the corresponding column from the second table and will move to data into that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example suppose your itab1 contains 3 columns like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-matnr, itab-werks and itab-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your itab2 is&lt;/P&gt;&lt;P&gt;itab2-werks, itab2-lgort,itab2-matnr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This time if youe are using simple MOVE you will get a type conversion error or something and if you are using MOVE-CORRESPONDING you will get correct movement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itaab2-matnr = itab1-matnr and&lt;/P&gt;&lt;P&gt;itab2-werks = itab1-werks and&lt;/P&gt;&lt;P&gt;itab2-lgort = itab1-lgort..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward All helpfull Answers.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367427#M524313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367428#M524314</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 use move command to assing data from one variable to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: var1 TYPE c VAULE 'A',&lt;/P&gt;&lt;P&gt;      var2 TYPE c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;MOVE var1 to var2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use moe-corresponding to move the data from one structure where the definition of both the strucutre are not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lst_struct1,&lt;/P&gt;&lt;P&gt;             field1,&lt;/P&gt;&lt;P&gt;             field2,&lt;/P&gt;&lt;P&gt;             field3,&lt;/P&gt;&lt;P&gt;             field4,&lt;/P&gt;&lt;P&gt;           END OF lst_struct1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lst_struct2,&lt;/P&gt;&lt;P&gt;             field2,&lt;/P&gt;&lt;P&gt;             field3,&lt;/P&gt;&lt;P&gt;           END OF lst_struct2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING lst_struct1 TO lst_struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, you want to populate the data in lst_struct2 from lst_struct1. But both contains the fields in different order. You can not just do lst_struct2 = lst_struct1. Since fields are out of order, you use MOVE-CORRESPONDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for your referece.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/34/8e732a6df74873e10000009b38f9b8/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/34/8e732a6df74873e10000009b38f9b8/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any other information.&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367428#M524314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367429#M524315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Selva...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll explain it with an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there are two structures stru1 and stru2 with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of stru1,&lt;/P&gt;&lt;P&gt;          a type i,&lt;/P&gt;&lt;P&gt;          b type c,&lt;/P&gt;&lt;P&gt;          c(2) type c,&lt;/P&gt;&lt;P&gt;        end of stru1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of stru2,&lt;/P&gt;&lt;P&gt;          a1 type i,&lt;/P&gt;&lt;P&gt;          b1type c,&lt;/P&gt;&lt;P&gt;          c1(2) type c,&lt;/P&gt;&lt;P&gt;        end of stru1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we use move stru1 to stru2... it workds fine.... Because, te sequence of the fields in both structres are having same type and lengh. Eventhogh if type and lenght are not same it tries for type casting. in case of lenght it may trucate. If type casting is not possible, then it results in DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as MOVE-CORRSPONDING will looks for the same name. If it finds same name it will copy contents of the stru1 to stru2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go through the example bellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of stru1,&lt;/P&gt;&lt;P&gt;          a type i,&lt;/P&gt;&lt;P&gt;          b type c,&lt;/P&gt;&lt;P&gt;          c(2) type c,&lt;/P&gt;&lt;P&gt;        end of stru1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of stru2,&lt;/P&gt;&lt;P&gt;          b type c,&lt;/P&gt;&lt;P&gt;          c(2) type c,&lt;/P&gt;&lt;P&gt;          a type i,&lt;/P&gt;&lt;P&gt;        end of stru1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING str1 TO str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now field contents of str1 will be copied into stru2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD POINTS IF HELPFUL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367429#M524315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367430#M524316</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;move statement is used to move a variable or a record from one work area to another. it moves data in a order i.e. field by field the order of fields in in both tables should be same otherwise we will get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding moves data from one table to another with respect to names of fields. i.e no sequence is maintained . it automatically searches for field names and moves data acoordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally moves works faster than move-corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u move the order in both tables i.e sequence in both tables r same go for move otherwise use move-corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367430#M524316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T07:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: move and move-corresponding?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367431#M524317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 10:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-and-move-corresponding/m-p/2367431#M524317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T10:09:23Z</dc:date>
    </item>
  </channel>
</rss>

