<?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: difference between move and move corresponding...with simple easy example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803492#M654908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE : This statement is used to move the contents of one field or structure to another field or structure... If you are moving the contents of a structure to another structure, then it is necessary that both structures have the same fields, with same name, and same sequence..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. DATA : w_a(1) TYPE c ,&lt;/P&gt;&lt;P&gt;w_b(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'A' to w_a. ( w_a contents become 'A' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE w_a to w_b. ( w_b contents become 'B' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. DATA : Begin of e_a,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;End of e_a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of e_b,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;field3 TYPE c,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;END of e_b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of e_c,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;End of e_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, e_a and e_c have same structure and same sequence of fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can use MOVE e_a To e_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, e_b have different sequence of fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you need to use MOVE-CORRESPONDING e_a TO e_b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use MOVE-CPORRESPONDING, the system compares the field names of the source structure with the destination and assigns the source fields to the destination fields with the same name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2007 17:07:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-02T17:07:04Z</dc:date>
    <item>
      <title>difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803491#M654907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2007 16:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803491#M654907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-02T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803492#M654908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE : This statement is used to move the contents of one field or structure to another field or structure... If you are moving the contents of a structure to another structure, then it is necessary that both structures have the same fields, with same name, and same sequence..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. DATA : w_a(1) TYPE c ,&lt;/P&gt;&lt;P&gt;w_b(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'A' to w_a. ( w_a contents become 'A' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE w_a to w_b. ( w_b contents become 'B' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex. DATA : Begin of e_a,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;End of e_a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of e_b,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;field3 TYPE c,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;END of e_b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of e_c,&lt;/P&gt;&lt;P&gt;field1 TYPE c,&lt;/P&gt;&lt;P&gt;field2 TYPE c,&lt;/P&gt;&lt;P&gt;End of e_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, e_a and e_c have same structure and same sequence of fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can use MOVE e_a To e_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, e_b have different sequence of fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you need to use MOVE-CORRESPONDING e_a TO e_b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use MOVE-CPORRESPONDING, the system compares the field names of the source structure with the destination and assigns the source fields to the destination fields with the same name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2007 17:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803492#M654908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-02T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803493#M654909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider that you have 3 structures or table&lt;/P&gt;&lt;P&gt;eg : &lt;/P&gt;&lt;P&gt;structure1 contains fields company code,plant,date,year&lt;/P&gt;&lt;P&gt;structure2 contains fields company code,plant,date,year&lt;/P&gt;&lt;P&gt;structure3 contains fields company code,plant,date,month,year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are declaring all fields in the structure with the same name&lt;/P&gt;&lt;P&gt;ie, companycode like bseg-bukrs for all 3 structures..etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume structure1 contains the data and you are passing it &lt;/P&gt;&lt;P&gt;if you are using &lt;/P&gt;&lt;P&gt;move structure1 to structure2.&lt;/P&gt;&lt;P&gt;what happens::::::::&lt;/P&gt;&lt;P&gt;company code from structure1  passed to company code of structure2&lt;/P&gt;&lt;P&gt;plant from structure1  passed to plant of structure2&lt;/P&gt;&lt;P&gt;date from structure1  passed to date of structure2&lt;/P&gt;&lt;P&gt;year from structure1  moved to year of structure2&lt;/P&gt;&lt;P&gt;all data from structure1 are correctly moved to correct fields of structure2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using&lt;/P&gt;&lt;P&gt;move structure1 to structure3.&lt;/P&gt;&lt;P&gt;what happens::::::::::::::::&lt;/P&gt;&lt;P&gt;data will become corrupt because the structure1 and structure3 have different number of fields and possibly different types of field too&lt;/P&gt;&lt;P&gt;in the above statement what happens is&lt;/P&gt;&lt;P&gt;company code from structure1  passed to company code of structure3&lt;/P&gt;&lt;P&gt;plant from structure1  passed to plant of structure3&lt;/P&gt;&lt;P&gt;date from structure1  passed to date of structure3&lt;/P&gt;&lt;P&gt;year from structure1 will be tried to moved to month of structure3&lt;/P&gt;&lt;P&gt;"this is wrong..year  should be passed to year..this statement may corrupt the "data or possibly give a syntax error while programming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case where the 2 structures are different ad you need to pass date we use&lt;/P&gt;&lt;P&gt;Move-corresponding structure1 to structure3&lt;/P&gt;&lt;P&gt;then what happens::::::::::::::::&lt;/P&gt;&lt;P&gt;company code from structure1  passed to company code of structure3&lt;/P&gt;&lt;P&gt;plant from structure1  passed to plant of structure3&lt;/P&gt;&lt;P&gt;date from structure1  passed to date of structure3&lt;/P&gt;&lt;P&gt;month date in strucure 3 will be left empty since there is no corresponding&lt;/P&gt;&lt;P&gt;field with that name in structure1&lt;/P&gt;&lt;P&gt;year from structure1 will be tried to moved to month of structure3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it proved useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2007 17:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803493#M654909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-02T17:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803494#M654910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the diffrence between Move and Move corresponding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Ex - MOVE f TO g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Assignments and Dynamic Field Assignments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Moves the contents of field f to field g. Field f remains unchanged. &lt;/P&gt;&lt;P&gt;This statement is equivalent to: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g = f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;      FIVE   TYPE I. &lt;/P&gt;&lt;P&gt;MOVE 5 TO FIVE. &lt;/P&gt;&lt;P&gt;MOVE FIVE TO NUMBER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields NUMBER and FIVE now both have the value 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;1) Multiple assignments like &lt;/P&gt;&lt;P&gt;NUMBER = FIVE = 5. &lt;/P&gt;&lt;P&gt;are also possible. ABAP executes them from right to left (as in the above example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)If the field types or lengths differ, the system automatically carries out type conversion. Type I fields are handled like type P fields. If you select the fixed point arithmetic attribute for an ABAP program, type P fields are either rounded according to the number of decimal places or filled with zeros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)If the assignment is allowed but the source field type cannot be converted to the target field type, the contents of the target field are undefined. This would be the case, if you were to assign a C field containing 'ABCD' to a type D or T field. &lt;/P&gt;&lt;P&gt;The operation is terminated only if the target field is a numeric type ( I, P or F). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) MOVE-CORRESPONDING struc1 TO struc2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt; struc1 and struc2 must be structures. &lt;/P&gt;&lt;P&gt;Searches for all names of subfields that occur both in struc1 and struc2. Generates for all relevant field pairs which correspond to the subfields ni, statements of the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE struc1-ni TO struc2-ni. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other fields remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;1)If untyped field symbols or parameters are used for struc1 or struc2 in procedures, the corresponding type is determined at runtime. If struc1 or struc2 are no structures then, a runtime error occurs. If you use untyped operands, in particular, with large structures, the statement executes much more slowly than if you use structures that can be recognized statically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)With deep structures, the complete (path) names of the corresponding field pairs must be textually identical. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)The command performs the assignments based on the name identity of the fields. To avoid unintended assignments, you should consider all fields of the source and the target structure. If the source or the target structure has been defined with reference to a type from the ABAP Dictionary (for example, a database table), new fields are subsequently added to that structure by enhancing the ABAPDictionary type. Besides the intended name identities, accidental identies may occur which may result in a wrong program logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_TABLE OCCURS 10, &lt;/P&gt;&lt;P&gt;        WORD(10), &lt;/P&gt;&lt;P&gt;        NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;        INDEX  LIKE SY-INDEX, &lt;/P&gt;&lt;P&gt;      END   OF INT_TABLE, &lt;/P&gt;&lt;P&gt;      BEGIN OF RECORD, &lt;/P&gt;&lt;P&gt;        NAME(10) VALUE 'not WORD', &lt;/P&gt;&lt;P&gt;        NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;        INDEX(20), &lt;/P&gt;&lt;P&gt;      END   OF RECORD. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING INT_TABLE TO RECORD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This MOVE-CORRESPONDING statement is equivalent to both the following statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE INT_TABLE-NUMBER TO RECORD-NUMBER. &lt;/P&gt;&lt;P&gt;MOVE INT_TABLE-INDEX  TO RECORD-INDEX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ROW1_3, &lt;/P&gt;&lt;P&gt;         CO1 TYPE I, &lt;/P&gt;&lt;P&gt;         CO2 TYPE I, &lt;/P&gt;&lt;P&gt;         CO3 TYPE I, &lt;/P&gt;&lt;P&gt;       END   OF ROW1_3. &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ROW2_4, &lt;/P&gt;&lt;P&gt;         CO2 TYPE I, &lt;/P&gt;&lt;P&gt;         CO3 TYPE I, &lt;/P&gt;&lt;P&gt;         CO4 TYPE I, &lt;/P&gt;&lt;P&gt;       END   OF ROW2_4. &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF MATRIX1, &lt;/P&gt;&lt;P&gt;         R1 TYPE ROW1_3, &lt;/P&gt;&lt;P&gt;         R2 TYPE ROW1_3, &lt;/P&gt;&lt;P&gt;         R3 TYPE ROW1_3, &lt;/P&gt;&lt;P&gt;       END OF   MATRIX1. &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF MATRIX2, &lt;/P&gt;&lt;P&gt;         R2 TYPE ROW2_4, &lt;/P&gt;&lt;P&gt;         R3 TYPE ROW2_4, &lt;/P&gt;&lt;P&gt;         R4 TYPE ROW2_4, &lt;/P&gt;&lt;P&gt;       END OF   MATRIX2. &lt;/P&gt;&lt;P&gt;DATA: ROW TYPE ROW1_3, &lt;/P&gt;&lt;P&gt;      M1  TYPE MATRIX1, &lt;/P&gt;&lt;P&gt;      M2  TYPE MATRIX2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROW-CO1 = 1. ROW-CO2 = 2. ROW-CO3 = 3. &lt;/P&gt;&lt;P&gt;MOVE: ROW TO M1-R1, ROW TO M1-R2, ROW TO M1-R3. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING  M1 TO M2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last MOVE-CORRESPONDING statement is equivalent to the statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: M1-R2-CO2 TO M2-R2-CO2, &lt;/P&gt;&lt;P&gt;      M1-R2-CO3 TO M2-R2-CO3, &lt;/P&gt;&lt;P&gt;      M1-R3-CO2 TO M2-R3-CO2, &lt;/P&gt;&lt;P&gt;      M1-R3-CO3 TO M2-R3-CO3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find helpful....&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;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803494#M654910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803495#M654911</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;&amp;lt;u&amp;gt;MOVE&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  source structure = destination structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;MOVE-Corresponding&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  source structure &amp;lt;&amp;gt; destination structure, but some fields are common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803495#M654911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803496#M654912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF wa_tab1,   &lt;/P&gt;&lt;P&gt;                   fld1(4) VALUE &amp;#146;FLD1&amp;#146;,     &lt;/P&gt;&lt;P&gt;                   fld2(4) VALUE &amp;#146;FLD2&amp;#146;,   &lt;/P&gt;&lt;P&gt;                   fld3(4) VALUE &amp;#146;FLD3&amp;#146;,    &lt;/P&gt;&lt;P&gt;                   fld4(4) VALUE &amp;#146;FLD4&amp;#146;,   &lt;/P&gt;&lt;P&gt;                   fld5(4) VALUE &amp;#146;FLD5&amp;#146;,  &lt;/P&gt;&lt;P&gt;            END OF wa_tab1,   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            BEGIN OF wa_tab2,     &lt;/P&gt;&lt;P&gt;                  fld1(4),    &lt;/P&gt;&lt;P&gt;                  fld2(4),     &lt;/P&gt;&lt;P&gt;                  fld3(4),      &lt;/P&gt;&lt;P&gt;                  fld4(4),   &lt;/P&gt;&lt;P&gt;           END OF wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;Move Corresponding *************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;MOVE-CORRESPONDING wa_tab1 to wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt;End Move Corresponding ************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;Move ********************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;MOVE: wa_tab1-fld1 to wa_tab2-fld1,  &lt;/P&gt;&lt;P&gt;            wa_tab1-fld2 to wa_tab2-fld2,  &lt;/P&gt;&lt;P&gt;            wa_tab1-fld3 to wa_tab2-fld3,     &lt;/P&gt;&lt;P&gt;            wa_tab1-fld4 to wa_tab2-fld4.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="18" type="ul"&gt;&lt;P&gt;End Move ******************   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In above example, the result of MOVE and MOVE-CORRESPONDING is same. MOVE-CORRESPONDING is look like easy to coding but MOVE statement have performance better than MOVE-CORRESPONDING because when you apply MOVE-CORRESPONDING CPU usage of system will be increased. &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>Mon, 03 Sep 2007 05:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803496#M654912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T05:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803497#M654913</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;Please take a look at my example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_aris_test_18.

TABLES: vbak.

TYPES: BEGIN OF t_vbak,
        vbeln TYPE vbak-vbeln,
        vbtyp TYPE vbak-vbtyp,
       END OF t_vbak.

TYPES: BEGIN OF t_vbap,
        vbeln TYPE vbap-vbeln,
        posnr TYPE vbap-posnr,
       END OF t_vbap.

TYPES: BEGIN OF t_output,
        vbeln TYPE vbak-vbeln,
        posnr TYPE vbap-posnr,
        vbtyp TYPE vbak-vbtyp,
       END OF t_output.

DATA: gt_vbak   TYPE STANDARD TABLE OF t_vbak,
      gt_vbap   TYPE STANDARD TABLE OF t_vbap,
      gt_output TYPE STANDARD TABLE OF t_output,
      wa_output LIKE LINE OF gt_output.

FIELD-SYMBOLS: &amp;lt;fs_vbak&amp;gt; LIKE LINE OF gt_vbak,
               &amp;lt;fs_vbap&amp;gt; LIKE LINE OF gt_vbap.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_vbtyp FOR vbak-vbtyp.
SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.
  SELECT vbeln vbtyp
    FROM vbak
    INTO TABLE gt_vbak
   WHERE vbeln IN s_vbeln
     AND vbtyp IN s_vbtyp.

  IF NOT gt_vbak[] IS INITIAL.
    SELECT vbeln posnr
      FROM vbap
      INTO TABLE gt_vbap
       FOR ALL ENTRIES IN gt_vbak
     WHERE vbeln = gt_vbak-vbeln.
  ENDIF.

  SORT gt_vbak BY vbeln.
  SORT gt_vbap BY vbeln posnr.

  LOOP AT gt_vbak ASSIGNING &amp;lt;fs_vbak&amp;gt;.
    LOOP AT gt_vbap ASSIGNING &amp;lt;fs_vbap&amp;gt;
                    WHERE vbeln = &amp;lt;fs_vbak&amp;gt;-vbeln.
*     Using MOVE-CORRESPONDING statement
      MOVE-CORRESPONDING &amp;lt;fs_vbap&amp;gt; TO wa_output.

*     Using MOVE statement
      MOVE &amp;lt;fs_vbak&amp;gt;-vbtyp TO wa_output-vbtyp.
      APPEND wa_output TO gt_output.
      CLEAR wa_output.
    ENDLOOP.
  ENDLOOP.

END-OF-SELECTION.
  LOOP AT gt_output INTO wa_output.
    WRITE: / wa_output-vbeln,
             wa_output-posnr,
             wa_output-vbtyp.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points if it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 05:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803497#M654913</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-09-03T05:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: difference between move and move corresponding...with simple easy example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803498#M654914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Balaji &lt;/P&gt;&lt;P&gt;its very simple boss.&lt;/P&gt;&lt;P&gt;when the datatype of both the variable is same we use move statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when the datatype is diffent and the structure of both the variables are different we use move-corresponding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD ME IF U ARE HAPPY WITH THE ANSWER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 05:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-move-and-move-corresponding-with-simple-easy-example/m-p/2803498#M654914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T05:29:59Z</dc:date>
    </item>
  </channel>
</rss>

