<?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 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/2687484#M621491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is difference between move &amp;amp; move corresponding ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Aug 2007 18:18:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-12T18:18:12Z</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/2687484#M621491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is difference between move &amp;amp; move corresponding ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 18:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2687484#M621491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T18:18:12Z</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/2687485#M621492</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 just move the values without looking at the field names. Meaning it just the moves the number of characters from the source to the target structure OR variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING looks for the corresponding field names in the target structure and move those values only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF source,
matnr type matnr,
end of source.
 
DATA: BEGIN OF target,
vbeln type vbeln,
matnr type matnr,
end of target.
 
source-matnr = 'asdfasf'.
 
MOVE-CORRESPONDING source to target.
 
write: / 'vbeln- ', target-vbeln.
write: / 'matnr- ', target-matnr.
 
clear: target.
 
skip 1.
 
MOVE source to target.
write: / 'vbeln- ', target-vbeln.
write: / 'matnr- ', target-matnr.
 
* If you see the second output the value in matnr is moved to
* vbeln in target.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for MOVE the both structures should be same, becasue it startring copy first field of first structure to first field of second structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING will look for fields with similar names in both the structures and move only those fields which have same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move means same like &lt;/P&gt;&lt;P&gt;a = b.&lt;/P&gt;&lt;P&gt;move b to a. ( shuld be type matched)&lt;/P&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;Gaurav&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 18:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-move-corresponding/m-p/2687485#M621492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-12T18:31:17Z</dc:date>
    </item>
  </channel>
</rss>

