<?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 corresponding Concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506054#M1065984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING, as the name suggests is used to move data between equivalent fields of two different structures. A crude eg: could be:&lt;/P&gt;&lt;P&gt;Struct 1 -&amp;gt; has fields &lt;/P&gt;&lt;P&gt;Name type char30&lt;/P&gt;&lt;P&gt;DOB type dats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Struct 2-&amp;gt; has fields&lt;/P&gt;&lt;P&gt;Name type char30&lt;/P&gt;&lt;P&gt;Address type string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say 'MOVE-CORRESPONDING struct2 to struct 1'. the contents of the 'Name' field would be moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, it_error appears to be an internal table and you are trying to move contents of a structure to the internal table?  As far as I can see, this should not be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 05:09:12 GMT</pubDate>
    <dc:creator>nisha_vinod</dc:creator>
    <dc:date>2008-09-24T05:09:12Z</dc:date>
    <item>
      <title>Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506046#M1065976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell what is the problem in my code.Data is not coming in internal talbe it_error, even on the correct condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at record.&lt;/P&gt;&lt;P&gt;if record-BUKRS_001 = 'XYZ' and record-EKORG_002 ne '2000' .&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING record TO it_error.&lt;/P&gt;&lt;P&gt; APPEND record TO it_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 04:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506046#M1065976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T04:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506047#M1065977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;only identical fields in the structure get moved by move-corresponding..by identical i mean  same name, same data type..&lt;/P&gt;&lt;P&gt;And why are you again checking&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-subrc eq 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after if condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506047#M1065977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506048#M1065978</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;  write this way:&lt;/P&gt;&lt;P&gt;loop at record when BUKRS_001 = 'XYZ'&lt;/P&gt;&lt;P&gt;                    and    EKORG_002 ne '2000' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING record TO it_error.&lt;/P&gt;&lt;P&gt;APPEND  it_error.&lt;/P&gt;&lt;P&gt;clear it_error.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506048#M1065978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506049#M1065979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi  ,&lt;/P&gt;&lt;P&gt;  Unfortunately i did not understand the logic of the below piece of code &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING record TO it_error.&lt;/P&gt;&lt;P&gt;APPEND record TO it_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i feel the correct statement would be &lt;/P&gt;&lt;P&gt;append it_error.&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;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506049#M1065979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506050#M1065980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi,&lt;/P&gt;&lt;P&gt;first of all I think, Sy-subrc check is redundant here, however that doesn't affect the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you better check wheather you have BUKRS_001 and EKORG_002 fields in  it_error, as  MOVE-CORRESPONDING moves records between two fields having same name not based on data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506050#M1065980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506051#M1065981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is record wheather is an work area or an internal table if its an work area you cnt use loop if at all it is an internal tabel we cnt use append internal table to another internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please be specific what is record? just give total code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506051#M1065981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506052#M1065982</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;when you are using MOVE-CORRESPONDING both should be the work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506052#M1065982</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-09-24T05:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506053#M1065983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi Jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Both structure should be same.&lt;/P&gt;&lt;P&gt;2. Use APPEND IT_ERROR instead of APPEND record TO it_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajneesh Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506053#M1065983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506054#M1065984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING, as the name suggests is used to move data between equivalent fields of two different structures. A crude eg: could be:&lt;/P&gt;&lt;P&gt;Struct 1 -&amp;gt; has fields &lt;/P&gt;&lt;P&gt;Name type char30&lt;/P&gt;&lt;P&gt;DOB type dats&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Struct 2-&amp;gt; has fields&lt;/P&gt;&lt;P&gt;Name type char30&lt;/P&gt;&lt;P&gt;Address type string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say 'MOVE-CORRESPONDING struct2 to struct 1'. the contents of the 'Name' field would be moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, it_error appears to be an internal table and you are trying to move contents of a structure to the internal table?  As far as I can see, this should not be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506054#M1065984</guid>
      <dc:creator>nisha_vinod</dc:creator>
      <dc:date>2008-09-24T05:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move corresponding Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506055#M1065985</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 u r using move corresponding then both the internaal tables sould ahve same stucture...&lt;/P&gt;&lt;P&gt;here is small eg just go through the code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;  name(20) type c,&lt;/P&gt;&lt;P&gt;  comp(20) type c,&lt;/P&gt;&lt;P&gt;  city(20) type c,&lt;/P&gt;&lt;P&gt;  END OF ITAB.&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;  name(20) type c,&lt;/P&gt;&lt;P&gt;  city(20) type c,&lt;/P&gt;&lt;P&gt;  END OF ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1-name = 'Rajat11'.&lt;/P&gt;&lt;P&gt;itab1-city = 'Delhi2222'.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1-name = 'Rajat22'.&lt;/P&gt;&lt;P&gt;itab1-city = 'Delhi1'.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1-name = 'Rajat33'.&lt;/P&gt;&lt;P&gt;itab1-city = 'Delhi2'.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-name.&lt;/P&gt;&lt;P&gt;write:/ itab-city.&lt;/P&gt;&lt;P&gt;write:/ itab-comp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u will get solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-corresponding-concept/m-p/4506055#M1065985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T05:21:05Z</dc:date>
    </item>
  </channel>
</rss>

