<?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 Sub class constructor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-class-constructor/m-p/10866532#M1887125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I have created an exception class ZCX_SANJEEV_TEST1 which has a super class CX_STATIC_CHECK. As soon as I created the class, the following components came in automatically for the ZCX_SANJEEV_TEST1 class:&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;A. Two interfaces - IF_SERIALIZABLE_OBJECT and IF_MESSAGE&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;B. A constructor method CONSTRUCTOR and 3 other methods - IF_MESSAGE~GET_TEXT, IF_MESSAGE~GET_LONGTEXT and GET_SOURCE_POSITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;As per my understanding, this constructor method is nothing but should only call Superclass's constructor, and that is exactly what it is doing. Now I have two questions over here:&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1. When I inserted one more&amp;nbsp; interface IF_T100_MESSAGE in the class &lt;SPAN style="font-size: 13.6000003814697px;"&gt;ZCX_SANJEEV_TEST1, the code in the constructor changed. Now along with calling the superclass constructor, there is some more code below it. Where is this code coming from? Moreover, the call to super-&amp;gt;constructor has been changed. Now its just passing one parameter in the call rather than two as earlier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;2. I want to change this code a bit, how should I do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;3. I want to add one more import parameter to this method. How should I do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;lt;removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Sanjeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Matthew Billingham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 20:55:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-23T20:55:55Z</dc:date>
    <item>
      <title>Sub class constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-class-constructor/m-p/10866532#M1887125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I have created an exception class ZCX_SANJEEV_TEST1 which has a super class CX_STATIC_CHECK. As soon as I created the class, the following components came in automatically for the ZCX_SANJEEV_TEST1 class:&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;A. Two interfaces - IF_SERIALIZABLE_OBJECT and IF_MESSAGE&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;B. A constructor method CONSTRUCTOR and 3 other methods - IF_MESSAGE~GET_TEXT, IF_MESSAGE~GET_LONGTEXT and GET_SOURCE_POSITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;As per my understanding, this constructor method is nothing but should only call Superclass's constructor, and that is exactly what it is doing. Now I have two questions over here:&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1. When I inserted one more&amp;nbsp; interface IF_T100_MESSAGE in the class &lt;SPAN style="font-size: 13.6000003814697px;"&gt;ZCX_SANJEEV_TEST1, the code in the constructor changed. Now along with calling the superclass constructor, there is some more code below it. Where is this code coming from? Moreover, the call to super-&amp;gt;constructor has been changed. Now its just passing one parameter in the call rather than two as earlier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;2. I want to change this code a bit, how should I do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;3. I want to add one more import parameter to this method. How should I do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;lt;removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Sanjeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Matthew Billingham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 20:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-class-constructor/m-p/10866532#M1887125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sub class constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-class-constructor/m-p/10866533#M1887126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've removed your text about a quick reply. Such comments are generally considered rude. Everyone wants a quick reply to their question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) When you activate an exception class the constructor and other parts of the class are generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can't edit the constructor of your class (you can enhance it, which is useful for some scenarios). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If you want another import parameter, then create a new public attribute and activate the class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 07:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-class-constructor/m-p/10866533#M1887126</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-01-24T07:53:53Z</dc:date>
    </item>
  </channel>
</rss>

