<?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: Corresponding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851553#M668245</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;CORRESPONDING option is used to Copy the fields based on their name (matching fields) instead of their Position.&lt;/P&gt;&lt;P&gt;So only when the Field names are same it will copy the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is used in 2 cases:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING WA1 TO WA2. &lt;/P&gt;&lt;P&gt;                "To copy identical fields from one wa to anothter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) SELECT &amp;lt;FIELDS&amp;gt; FROM &amp;lt;DBTABLE&amp;gt; INTO CORRESPONDING FIELDS OF TABLE &amp;lt;ITAB&amp;gt;&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>Wed, 19 Sep 2007 09:09:01 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-09-19T09:09:01Z</dc:date>
    <item>
      <title>Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851548#M668240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the exact use of corresponding?&lt;/P&gt;&lt;P&gt;Identical structure in the sense same fields or same structure?&lt;/P&gt;&lt;P&gt;What will happen if not same name and also not same fields while using corresponding???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        arunshori ganesan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851548#M668240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851549#M668241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that you don't have to declare all the fields individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when you say into corresponding fields of table alle fields with the same name from the source are transported to fields with the same fieldname in the target area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851549#M668241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851550#M668242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have&lt;/P&gt;&lt;P&gt; SUBTRACT-CORRESPONDING&lt;/P&gt;&lt;P&gt;ADD-CORRESPONDING&lt;/P&gt;&lt;P&gt;MULTIPLY-CORRESPONDING&lt;/P&gt;&lt;P&gt;DIVIDE-CORRESPONDING&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING struc1 TO struc2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Interprets struc1 and struc2 as structures. If, for example, struc1 and struc2 are tables, it executes the statement for their header lines. &lt;/P&gt;&lt;P&gt;Searches for the sub-fields which occur both in struc1 and struc2 and then generates, for all relevant field pairs which correspond to the sub-fields ni, statements of the form&amp;lt;/b&amp;gt; &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;With complex structures, the full names of the corresponding &amp;lt;b&amp;gt;field pairs must be identical&amp;lt;/b&amp;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;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851550#M668242</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-09-19T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851551#M668243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you two internal tables of not identical structure  ie some fields in common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will copy the fields that have identical names in itab1 to itab2, other fields which does not match will be left blank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851551#M668243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851552#M668244</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;**********************&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE is transferring the value from select clause to itab where the field names are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;menge like mseg-menge,&lt;/P&gt;&lt;P&gt;lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr lgort into table from mard where....&lt;/P&gt;&lt;P&gt;it may give an error because you are not filling menge here or it may fetch the value in matnr and menge field.&lt;/P&gt;&lt;P&gt;but if you use INTO CORRESPONDING FIELDS OF TABLE then it will fetch the data to matnr and lgort field only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE is only matching by name not by datatype be careful.&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;ADD-CORRESPONDING rec1 TO rec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Interprets rec1 and rec2 as field strings. If, for example, rec1 and rec2 are tables, executes the statement for their header lines. &lt;/P&gt;&lt;P&gt;Searches for all sub-fields which occur both in rec1 and rec2 and then, for all relevant field pairs corresponding to the sub-fields ni , generates statements of the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD rec1-ni TO rec2-ni. &lt;/P&gt;&lt;P&gt;The other fields remain unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With complex structures, the complete names of the corresponding field &lt;/P&gt;&lt;P&gt;pairs must be textually identical. &lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING rec1 TO rec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Interprets rec1 and rec2 as field strings. If, for example, rec1 and rec2 are tables, executes the statement for their header lines. &lt;/P&gt;&lt;P&gt;Searches for the sub-fields which occur both in rec1 and rec2 and then generates, for all relevant field pairs which correspond to the sub-fields ni , statements of the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE rec1-ni TO rec2-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;With complex structures, the full names of the corresponding field pairs must be identical. &lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;P&gt;SUBTRACT-CORRESPONDING rec1 FROM rec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Interprets rec1 and rec2 as field strings. If, for example, rec1 and rec2 are tables, executes the statement for their header lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searches for all sub-fields which occur both in rec1 and rec2 and then generates, for all relevant field pairs corresponding to the component fields ni , statements of the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBTRACT rec1-ni FROM rec2-ni.&lt;/P&gt;&lt;P&gt;&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;With complex structures, the full names of the field pairs must be identical. &lt;/P&gt;&lt;P&gt;****************************************&lt;/P&gt;&lt;P&gt;MULTIPLY-CORRESPONDING rec1 BY rec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Interprets rec1 and rec2 as field strings. If, for example, rec1 and rec2 are tables, executes the statement for their header lines. &lt;/P&gt;&lt;P&gt;Searches for all sub-fields which occur both in rec1 and rec2 and then generates, for all field pairs corresponding to the sub-fields ni , statements of the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MULTIPLY rec1-ni BY rec2-ni.&lt;/P&gt;&lt;P&gt;&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;With complex structures, the full names of the corresponding field pairs must be identical. &lt;/P&gt;&lt;P&gt;****************************************&lt;/P&gt;&lt;P&gt;DIVIDE-CORRESPONDING rec1 BY rec2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Interprets rec1 and rec2 as field strings, i.e. if rec1 and rec2 are tables with header lines, the statement is executed for their header lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searches for all sub-fields that occur both in rec1 and rec2 and then generates, for all field pairs corresponding to the sub-fields ni , statements similar in the following form: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIVIDE rec1-ni BY rec2-ni.&lt;/P&gt;&lt;P&gt;&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;With more complex structures, the complete names of the field pairs must be identical. &lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/add_corr.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/add_corr.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851552#M668244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851553#M668245</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;CORRESPONDING option is used to Copy the fields based on their name (matching fields) instead of their Position.&lt;/P&gt;&lt;P&gt;So only when the Field names are same it will copy the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is used in 2 cases:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING WA1 TO WA2. &lt;/P&gt;&lt;P&gt;                "To copy identical fields from one wa to anothter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) SELECT &amp;lt;FIELDS&amp;gt; FROM &amp;lt;DBTABLE&amp;gt; INTO CORRESPONDING FIELDS OF TABLE &amp;lt;ITAB&amp;gt;&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>Wed, 19 Sep 2007 09:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851553#M668245</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-19T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851554#M668246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use CORRESPONDING with following options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBTRACT-CORRESPONDING&lt;/P&gt;&lt;P&gt;ADD-CORRESPONDING&lt;/P&gt;&lt;P&gt;MULTIPLY-CORRESPONDING&lt;/P&gt;&lt;P&gt;DIVIDE-CORRESPONDING&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally we use &amp;lt;b&amp;gt;CORRESPONDING&amp;lt;/b&amp;gt;, if we have two different internal tables/structures with some common fields(and order of the common fields in those internal tables/structures also different) in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: MOVE-CORRESPONDING source to destination.&lt;/P&gt;&lt;P&gt;In this case  values of common fields with the same name will be moved from source to destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points If Useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851554#M668246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851555#M668247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;please see below declaration..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;          matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;         ersda type mara-ersda,&lt;/P&gt;&lt;P&gt;        ernam type mara-ernam,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr&lt;/P&gt;&lt;P&gt;         ernam&lt;/P&gt;&lt;P&gt; from mara&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u see aboveinternal table declaration ernam is the third place. if u write the select qurey (please see below) ernam will sit in second plzce of internal table some times type mismatch may occur in that case program give dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u use into corresponding fields of table itab selected field will sit in writght place of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thsi is the difference between corresponding and normal select query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maheedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851555#M668247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851556#M668248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zsubfield.&lt;/P&gt;&lt;P&gt;data : f1 type i value 1,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;begin of s1,&lt;/P&gt;&lt;P&gt;   c1 type i value 10,&lt;/P&gt;&lt;P&gt;   c2 type i value 20,&lt;/P&gt;&lt;P&gt;   c3 type i value 30,&lt;/P&gt;&lt;P&gt;  end of s1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : f2 type i value 5,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; begin of s2,&lt;/P&gt;&lt;P&gt;   c1 type i value 40,&lt;/P&gt;&lt;P&gt;   c2 type i value 50,&lt;/P&gt;&lt;P&gt;   c3 type i value 60,&lt;/P&gt;&lt;P&gt;   end of s2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / f1.&lt;/P&gt;&lt;P&gt;add-corresponding s1 to s2.&lt;/P&gt;&lt;P&gt;write : / s2-c1,&lt;/P&gt;&lt;P&gt;          s2-c2,&lt;/P&gt;&lt;P&gt;          s2-c3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtract-corresponding s1 from s2.&lt;/P&gt;&lt;P&gt;write : / s2-c1,&lt;/P&gt;&lt;P&gt;          s2-c2,&lt;/P&gt;&lt;P&gt;          s2-c3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;multiply-corresponding s2 by s1.&lt;/P&gt;&lt;P&gt;write : / s2-c1,&lt;/P&gt;&lt;P&gt;          s2-c2,&lt;/P&gt;&lt;P&gt;          s2-c3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to understand this program. You will come to know the usage of Corresponding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851556#M668248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851557#M668249</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;Corresponding keyword is used in two cases.&lt;/P&gt;&lt;P&gt;       1. INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;       2. MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;corresponding generally used when we don't know the order of fields that are declared in internal tables and to move data into that table with out bothering for order we go for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally the order in which we declare in internal tables should be used in populating data otherwise it displays a error for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to skip this procedure we go for corresponding and if we use corresponding then the field names are taken into consideration rather than index and data is placed into corresponding fields by comparing manes of fields.&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 Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851557#M668249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851558#M668250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;move corresponding in  select query that means its  moves the feild data to the declared itab from header to the body correspondingly , if we r not using it inthe select  statement, it generals moves the data directly into the body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                but it always better to use move corresponding  in the select stament&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;                prasanth kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851558#M668250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851559#M668251</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-CORRESPONDING struc1 TO struc2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Structures have to be specified for struc1 and struc2.&amp;lt;b&amp;gt; All components with the same name are searched for in struc1 und struc2 and the content of components in struc1 is assigned to the components with the same name in struc2M.&amp;lt;/b&amp;gt; All other components are not affected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nested structures are fully expanded. &amp;lt;b&amp;gt;The names of the components are compared to the lowest common level. For each comp component pair with the same name, the&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE struc1-comp TO struc2-comp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement is executed, and - if necessary - the corresponding conversions are performed.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Before Release 6.10, specified field symbols or formal parameters had to be structured and typed for struc1 and struc2. Since Release 6.10, untyped field symbols or formal parameters can be used for struc1 and struc2. These have to be structures when the statement is executed, otherwise this triggers an untreatable exception. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If structures are specified for struc1 and struc2, the name is compared once when the program is generated by the ABAP Compiler. If untyped field symbols or formal parameters are used, the names must be compared each time the statement is executed&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;In the struc1 and struc2 structures there are the components struci-comp1 and struci-comp2. These are asssigned from struc1 to struc2. In struc1, struci-comp2 is self-structured, in struc2, struci-comp is elementary. For the assignment of struc1-struci-comp1 to struc2-struci-comp1 , the source field is interpreted as an elementary field of type c according to the conversion rules for structures. The struc1-comp1 and struc2-struci-comp3 components do not have any equivalents with the same name and are not considered for the assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF struc1, &lt;/P&gt;&lt;P&gt;        comp(1) TYPE c VALUE 'X', &lt;/P&gt;&lt;P&gt;        BEGIN OF struci, &lt;/P&gt;&lt;P&gt;          comp1(1) TYPE c VALUE 'Y', &lt;/P&gt;&lt;P&gt;          BEGIN OF comp2, &lt;/P&gt;&lt;P&gt;            comp(1) TYPE c VALUE 'Z', &lt;/P&gt;&lt;P&gt;          END OF comp2, &lt;/P&gt;&lt;P&gt;        END OF struci, &lt;/P&gt;&lt;P&gt;     END OF struc1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF struc2, &lt;/P&gt;&lt;P&gt;        BEGIN OF struci, &lt;/P&gt;&lt;P&gt;          comp1(1) TYPE c, &lt;/P&gt;&lt;P&gt;          comp2(1) TYPE c, &lt;/P&gt;&lt;P&gt;          comp3(1) TYPE c, &lt;/P&gt;&lt;P&gt;        END OF struci, &lt;/P&gt;&lt;P&gt;     END OF struc2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING struc1 TO struc2.&lt;/P&gt;&lt;P&gt;&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, 19 Sep 2007 09:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2851559#M668251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:37:00Z</dc:date>
    </item>
  </channel>
</rss>

