<?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: constructor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817607#M918187</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;Please, see these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e59b790-0201-0010-88aa-bc8a7f95f6fb], [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3412d190-0201-0010-aaaa-ff5a315ae5fe] and [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 11:14:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T11:14:29Z</dc:date>
    <item>
      <title>constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817605#M918185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts ,&lt;/P&gt;&lt;P&gt;plz explain me this coe with some suitable example  , im unable to understand this . I m new in oo abap .plz help me.&lt;/P&gt;&lt;P&gt;if you have anyb documents regaeding oo abap , plz send me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;constructor&lt;/P&gt;&lt;P&gt;IMPORTING im_no TYPE i&lt;/P&gt;&lt;P&gt;im_name TYPE string&lt;/P&gt;&lt;P&gt;im_hours TYPE i&lt;/P&gt;&lt;P&gt;im_hourly_payment TYPE i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 11:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817605#M918185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817606#M918186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OO ABAP Info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link and go to page 1291. It will give you good info abt OO ABAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at below links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt" target="test_blank"&gt;http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf" target="test_blank"&gt;http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf" target="test_blank"&gt;http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt" target="test_blank"&gt;http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf" target="test_blank"&gt;http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt" target="test_blank"&gt;http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do check transaction ABAPDOCU to learn more about ABAP OO. There are lots of examples and explanations there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 11:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817606#M918186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T11:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817607#M918187</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;Please, see these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e59b790-0201-0010-88aa-bc8a7f95f6fb], [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3412d190-0201-0010-aaaa-ff5a315ae5fe] and [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 11:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817607#M918187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817608#M918188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjna, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the implementation part of the class, in which a constructor will be useful for initializing the class attributes (both public as well as private).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;constructor&lt;/P&gt;&lt;P&gt;IMPORTING im_no TYPE i&lt;/P&gt;&lt;P&gt;im_name TYPE string&lt;/P&gt;&lt;P&gt;im_hours TYPE i&lt;/P&gt;&lt;P&gt;im_hourly_payment TYPE i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this particular constructor is useful for initializing the class attributes number, name, hours, hourly_payment when ever an object is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above example the constructor is importing number , name , hours, payment ....while an object is created and assign these values to the object created from that class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but we need to see that a constructor cant have exporting or returning parametres. only importing parametres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we cant call the constructor explicitly, it is called automatically when ever an object is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is just a small part of constructors &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  , again &lt;/P&gt;&lt;P&gt;constructors are two types one is instanc and other is class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instance constructor is called when ever an object is accessed  and an class constructor is called when ever an class is accessed for the first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instance constructors will be called as many times as objects created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class constructor is called only once. i.e when class is first accessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is just basic idea of constructors.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through the above links given by others.....it will help u a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best of luck......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 17:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817608#M918188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T17:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817609#M918189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to have some object oriented programming knowledge first, which you can acquire through various links provided by others.  Coming to present context,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTRUCTOR is a special method that is called by runtime system as soon as the object has been generated in the memory.  This can have only IMPORTING parameters and exceptions.&lt;/P&gt;&lt;P&gt;There are two types of CONSTRUCTORS:&lt;/P&gt;&lt;P&gt;1) Instance constructor:&lt;/P&gt;&lt;P&gt;The CONSTRUCTOR is a special instance method in a class and is always named CONSTRUCTOR.  The constructor is automatically called at runtime with the CREATE OBJECT.&lt;/P&gt;&lt;P&gt;2) Static or class constructor:&lt;/P&gt;&lt;P&gt;The static constructor is a special static method in a class and is always named CLASS_CONSTRUCTOR.  It is executed no more than once per program or class.  The static constructor is called automatically before the class is first accessed.  This constructor's signature cannot have IMPORTING parameters or EXCEPTIONS and  cannot be called explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTRUCTOR and CLASS_CONSTRUCTOR are automatically called when you create an object or when you first access the components of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constructor/m-p/3817609#M918189</guid>
      <dc:creator>former_member188594</dc:creator>
      <dc:date>2008-05-23T06:25:53Z</dc:date>
    </item>
  </channel>
</rss>

