<?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: add-corresponding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912938#M938066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well add-corresponding is now obselete &lt;/P&gt;&lt;P&gt;still the use is like this&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;&lt;/P&gt;&lt;P&gt;I suggest you shld use control break statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 07:41:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-06T07:41:17Z</dc:date>
    <item>
      <title>add-corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912937#M938065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does add-corresponding works/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912937#M938065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: add-corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912938#M938066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well add-corresponding is now obselete &lt;/P&gt;&lt;P&gt;still the use is like this&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;&lt;/P&gt;&lt;P&gt;I suggest you shld use control break statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912938#M938066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: add-corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912939#M938067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;type in ADD-CORRESPONDING in SE38, click on it and press F1! you'll be surprised...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912939#M938067</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-06-06T07:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: add-corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912940#M938068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frd&lt;/P&gt;&lt;P&gt;&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;Reward Me Points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Pari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912940#M938068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: add-corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912941#M938069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark!!&lt;/P&gt;&lt;P&gt;Avoid using this statement as its obsolete these days.&lt;/P&gt;&lt;P&gt;if u want to have syntax of any keyword,type that keyword in se38 and do F1,u will get details about the same with solved example to explain it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD-CORRESPONDING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;ADD-CORRESPONDING struc1 TO struc2. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement, which is not allowed in classes, adds structures by component. You must specify structures for struc1 and struc2. All components of the same name in struc1 and struct2 are added in pairs and the result is assigned to the respective component of struct2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name comparison is executed in the same way as for the MOVE-CORRESPONDING statement. For each component pair with the same name comp, internally the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD struc1-comp TO struc2-comp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is executed and, if necessary, the required conversions are performed. &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;This statement is not allowed in classes. It is error-prone, because - especially in complex structures - it cannot be guaranteed in a simple manner that the components of the same name actually have the data types and contents required for a numeric operation. &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;The components x and y exist in both structures and are added. After adding, the results are stored in struc2-x and struc2-y. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF struc1, &lt;/P&gt;&lt;P&gt;        x TYPE i, &lt;/P&gt;&lt;P&gt;        y TYPE i, &lt;/P&gt;&lt;P&gt;        z TYPE i, &lt;/P&gt;&lt;P&gt;      END OF struc1, &lt;/P&gt;&lt;P&gt;      BEGIN OF struc2, &lt;/P&gt;&lt;P&gt;        a      TYPE i, &lt;/P&gt;&lt;P&gt;        b      TYPE i, &lt;/P&gt;&lt;P&gt;        x      TYPE p LENGTH 8 DECIMALS 0, &lt;/P&gt;&lt;P&gt;        y      TYPE p LENGTH 8 DECIMALS 0, &lt;/P&gt;&lt;P&gt;      END OF 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;ADD-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;Exceptions &lt;/P&gt;&lt;P&gt;Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_SY_ARITHMETIC_OVERFLOW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Overflow while adding, type I in the additions UNTIL or FROM ... TO &lt;/P&gt;&lt;P&gt;Runtime Error: ADDF_INT_OVERFLOW (catchable) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Overflow during arithmetic operation (type P) &lt;/P&gt;&lt;P&gt;Runtime Error: BCD_OVERFLOW (catchable) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Integer overflow while adding &lt;/P&gt;&lt;P&gt;Runtime Error: COMPUTE_INT_PLUS_OVERFLOW (catchable) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_SY_CONVERSION_OVERFLOW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Overflow during arithmetic operation (type P, with specified length) &lt;/P&gt;&lt;P&gt;Runtime Error: BCD_FIELD_OVERFLOW (catchable) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Access to data outside the area specified in the RANGE addition &lt;/P&gt;&lt;P&gt;Runtime Error: ADD_FIELDS_NOT_IN_RANGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: Unallowed access to tables, strings, field or object references within the area specified in the RANGE addition. &lt;/P&gt;&lt;P&gt;Runtime Error: ADD_FIELDS_ILLEGAL_ACCESS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: P field does not contain a correct BCD format &lt;/P&gt;&lt;P&gt;Runtime Error: BCD_BADDATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepika Singh on Jun 6, 2008 9:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 07:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-corresponding/m-p/3912941#M938069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T07:43:45Z</dc:date>
    </item>
  </channel>
</rss>

