<?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 Explain yhe below ABAP Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-yhe-below-abap-code/m-p/3476438#M835663</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;The following CODE was written in the Update Rules as Field routine...of a Business Content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain me what job does the code was performing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the internal table "MONITOR", to make monitor entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result value of the routine &lt;/P&gt;&lt;P&gt;if not &amp;amp;CS&amp;amp;-datebirth is initial. &lt;/P&gt;&lt;P&gt;&amp;amp;RS&amp;amp; = &amp;amp;CS&amp;amp;-calday&lt;EM&gt;0(4) - &amp;amp;CS&amp;amp;-datebirth&lt;/EM&gt;0(4). &lt;/P&gt;&lt;P&gt;IF &amp;amp;CS&amp;amp;-calday&lt;EM&gt;4(4) LT &amp;amp;CS&amp;amp;-datebirth&lt;/EM&gt;4(4). &lt;/P&gt;&lt;P&gt;&amp;amp;RS&amp;amp; = &amp;amp;RS&amp;amp; - 1. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the returncode is not equal zero, the result will not be updated &lt;/P&gt;&lt;P&gt;&amp;amp;RC&amp;amp; = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if abort is not equal zero, the update process will be canceled &lt;/P&gt;&lt;P&gt;&amp;amp;AB&amp;amp; = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 17:00:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T17:00:22Z</dc:date>
    <item>
      <title>Explain yhe below ABAP Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-yhe-below-abap-code/m-p/3476438#M835663</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;The following CODE was written in the Update Rules as Field routine...of a Business Content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain me what job does the code was performing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill the internal table "MONITOR", to make monitor entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result value of the routine &lt;/P&gt;&lt;P&gt;if not &amp;amp;CS&amp;amp;-datebirth is initial. &lt;/P&gt;&lt;P&gt;&amp;amp;RS&amp;amp; = &amp;amp;CS&amp;amp;-calday&lt;EM&gt;0(4) - &amp;amp;CS&amp;amp;-datebirth&lt;/EM&gt;0(4). &lt;/P&gt;&lt;P&gt;IF &amp;amp;CS&amp;amp;-calday&lt;EM&gt;4(4) LT &amp;amp;CS&amp;amp;-datebirth&lt;/EM&gt;4(4). &lt;/P&gt;&lt;P&gt;&amp;amp;RS&amp;amp; = &amp;amp;RS&amp;amp; - 1. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the returncode is not equal zero, the result will not be updated &lt;/P&gt;&lt;P&gt;&amp;amp;RC&amp;amp; = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if abort is not equal zero, the update process will be canceled &lt;/P&gt;&lt;P&gt;&amp;amp;AB&amp;amp; = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 17:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-yhe-below-abap-code/m-p/3476438#M835663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T17:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Explain yhe below ABAP Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-yhe-below-abap-code/m-p/3476439#M835664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BW USER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; * fill the internal table "MONITOR", to make monitor entries&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This is a comment, that you can use the MONITOR table for your own error messages in the scheduler protocol; if needed I could send you the appropriate code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; * result value of the routine &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This comment indicates the section, where the results were computed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; if not &amp;amp;CS&amp;amp;-datebirth is initial. 
&amp;amp;RS&amp;amp; = &amp;amp;CS&amp;amp;-calday+0(4) - &amp;amp;CS&amp;amp;-datebirth+0(4). 
IF &amp;amp;CS&amp;amp;-calday+4(4) LT &amp;amp;CS&amp;amp;-datebirth+4(4). 
&amp;amp;RS&amp;amp; = &amp;amp;RS&amp;amp; - 1. 
ENDIF. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now the values of the communication structure &amp;amp;CS&amp;amp; are transformed in values of the return structure &amp;amp;RS&amp;amp; (here the current age of a person in years). The type of &amp;amp;RS&amp;amp; and &amp;amp;CS&amp;amp; depend on the technical name of your update rule, e.g. RESULT LIKE /BIC/VZIB_POSIBT-/BIC/ZIM_CGCO and COMM_STRUCTURE LIKE /BIC/CSZI_POSIB_IST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; * if the returncode is not equal zero, the result will not be updated 
&amp;amp;RC&amp;amp; = 0. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here you can return whether your transformation was successful or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; * if abort is not equal zero, the update process will be canceled 
&amp;amp;AB&amp;amp; = 0. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Finally you can state whether a technical error appeared during your transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;regards M.L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 10:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-yhe-below-abap-code/m-p/3476439#M835664</guid>
      <dc:creator>martin_lehmann4</dc:creator>
      <dc:date>2008-02-28T10:15:57Z</dc:date>
    </item>
  </channel>
</rss>

