<?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 &amp; Move corresponding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384210#M529672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 11:29:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T11:29:54Z</dc:date>
    <item>
      <title>Move &amp; Move corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384209#M529671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Difference between Move &amp;amp; Move-corresponding .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vighnesh .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 11:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384209#M529671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T11:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Move &amp; Move corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384210#M529672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 11:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384210#M529672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T11:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Move &amp; Move corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384211#M529673</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;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 11:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384211#M529673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Move &amp; Move corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384212#M529674</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;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;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;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;Generally, Move 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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 11:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384212#M529674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T11:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move &amp; Move corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384213#M529675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assigns values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;f1&amp;gt; TO &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Assigns the contents of the data object &amp;lt;f1&amp;gt; to the variable &amp;lt;f2&amp;gt;, with automatic type conversion if necessary. Equivalent to &amp;lt;f2&amp;gt; = &amp;lt;f1&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE-CORRESPONDING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assigns values between identically-named components of structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;struc1&amp;gt; TO &amp;lt;struc2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Moves the contents of the components of structure &amp;lt;struc1&amp;gt; to the components of &amp;lt;struc2&amp;gt; that have identical names.&amp;lt;/b&amp;gt;&lt;/P&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;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 11:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2384213#M529675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T11:40:27Z</dc:date>
    </item>
  </channel>
</rss>

