<?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: ABAP Classes Information. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419284#M201435</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;Check This Link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OO Oriented Concept&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/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;/P&gt;&lt;P&gt;Class&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark HelpFul Answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 12:29:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-22T12:29:27Z</dc:date>
    <item>
      <title>ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419283#M201434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never programmed using Classes (Object Oriented) in ABAP but i want to start doing so.&lt;/P&gt;&lt;P&gt;Right now i'm "surfing" in this huge Class Builder and i can see lots of classes... This looks promissing but the problem is that most of the descriptions of the classes are in German and i do read English, French, Spanish, Italian, but unfortunately not German (for now).&lt;/P&gt;&lt;P&gt;Where can i find information on how to start developing using classes, also information about the existing classes in ABAP (something like the API Documentation in JAVA, preferably in English), examples of programs developed this way or tutorials, and at last... best practices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every help will be most apreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419283#M201434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419284#M201435</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;Check This Link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OO Oriented Concept&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/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;/P&gt;&lt;P&gt;Class&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark HelpFul Answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419284#M201435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419285#M201436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the &lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/ca/c035baa6c611d1b4790000e8a52bed/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/ca/c035baa6c611d1b4790000e8a52bed/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make a &amp;lt;i&amp;gt;Class Builder&amp;lt;/i&amp;gt; search in SDN. I can find lots of information there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;TM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419285#M201436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419286#M201437</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;Good,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go Through the procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Definition part&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;CLASS xxx DEFINITION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Public section&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    TYPES:&lt;/P&gt;&lt;P&gt;    DATA: &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Static data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLASS-DATA:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Methods&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Using the constructor to initialize parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       constructor    IMPORTING xxx type yyy,&lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Method with parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      mm1 IMPORTING iii   TYPE ttt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Method without parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      mm2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Static methods&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLASS-METHODS:  &lt;/P&gt;&lt;P&gt;                    &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Protected section. Also accessable by subclasses&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;  PROTECTED SECTION.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Private section. Not accessable by subclasses&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Implementation part&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;CLASS lcl_airplane IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD constructor.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD mm1.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD mm2.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;Template for calling a class&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create reference to class lcl_airplane&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: airplane1 TYPE REF TO lcl_airplane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create instance using parameters in the cosntructor method&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT airplane1 exporting im_name = 'Hansemand'&lt;/P&gt;&lt;P&gt;                                    im_planetype = 'Boing 747'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Calling a method with parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD: airplane1-&amp;gt;display_n_o_airplanes,&lt;/P&gt;&lt;P&gt;               airplane1-&amp;gt;display_attributes.&lt;/P&gt;&lt;P&gt;Subclass&lt;/P&gt;&lt;P&gt;CLASS xxx DEFINITION INHERITING FROM yyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using af class as a parameter for a method&lt;/P&gt;&lt;P&gt;The class LCL_AIRPLANE is used as a parameter for method add_a_new_airplane:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  add_a_new_airplane importing im_airplane TYPE REF to lcl_airplane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces&lt;/P&gt;&lt;P&gt;In ABAP interfaces are implemented in addition to, and independently of classes. An interface only has a declaration part, &lt;/P&gt;&lt;P&gt;and do not have visibility sections. Components (Attributes, methods, constants, types) can be defined the same way as in classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u00B7                Interfaces are listed in the definition part lof the class, and must always be in the PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;u00B7                Operations defined in the interface atre impemented as methods of the class. All methods of the interface&lt;/P&gt;&lt;P&gt;must be present in the  implementation part of the class.&lt;/P&gt;&lt;P&gt;u00B7                Attributes, events, constants and types defined in the interface are automatically available to the class &lt;/P&gt;&lt;P&gt;carrying out the implementation.&lt;/P&gt;&lt;P&gt;u00B7                Interface components are addressed in the class by &amp;lt;interface name&amp;gt;~&amp;lt;component name&amp;gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of how to implement an interface:&lt;/P&gt;&lt;P&gt;INTERFACE lif_document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:          author type ref to lcl_author.&lt;/P&gt;&lt;P&gt;  METHODS:  print,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDINTERFACE.&lt;/P&gt;&lt;P&gt;CLASS lcl_text_document DEFINITION.&lt;/P&gt;&lt;P&gt;   PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INTERFACES lif_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      METHODS     display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS lcl_text_document IMPLEMENTTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD lif_document~print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;  METHOD lif_document~display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;REPORT zzz.&lt;/P&gt;&lt;P&gt;  DATA: text_doc TYPE REF TO lcl_document.&lt;/P&gt;&lt;P&gt;  Start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT text_doc.&lt;/P&gt;&lt;P&gt;    CALL METHOD text_doc-&amp;gt;lif_document~print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD text_doc-&amp;gt;lif_document~display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD text_doc-&amp;gt;display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events&lt;/P&gt;&lt;P&gt;For events of controls, refer to How to use controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u00B7                Events can only have EXPORTING parameters&lt;/P&gt;&lt;P&gt;u00B7                When an event is triggered, only those events handlers that have registered themselves &lt;/P&gt;&lt;P&gt;using SET HANDLER by this point of runtime are  executed. You can register an event using &lt;/P&gt;&lt;P&gt;ACTIVATION 'X' and derigert it by using ACTIVATION 'SPACE'.&lt;/P&gt;&lt;P&gt;Defining events:&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;classname&amp;gt; DEFINITION.&lt;/P&gt;&lt;P&gt;  EVENTS: &amp;lt;event&amp;gt; EXPORTING VALUE (&amp;lt;ex_par&amp;gt;) TYPE type.&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;classname&amp;gt; IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD &amp;lt;m&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    RAISE EVENT &amp;lt;event&amp;gt; EXPORTING &amp;lt;ex_par&amp;gt; = &lt;ACT_PAR&gt;.&lt;/ACT_PAR&gt;&lt;/P&gt;&lt;P&gt;Handling events:&lt;/P&gt;&lt;P&gt;CLASS &amp;lt;classname&amp;gt; DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHODS: &amp;lt;on_event&amp;gt; FOR &amp;lt;event&amp;gt; OF &amp;lt;classname&amp;gt; ! &amp;lt;interface&amp;gt; IMPORTING &amp;lt;imp_par1&amp;gt;...&amp;lt;imp_parN&amp;gt; SENDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;Public attributes&lt;/P&gt;&lt;P&gt;Public attributes are defined in the PUBLIC section and can be viewed and changed from outside the class. There is direct access to public attributes. As a general rule, as few public attributes should be defined as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;  DATA: Counter type i.&lt;/P&gt;&lt;P&gt;Private attributes&lt;/P&gt;&lt;P&gt;Private attributes are defined in the PRIVATE section. The can only be viewes and changed from within the class. There is no direct access from outside the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;    DATA: name(25) TYPE c,&lt;/P&gt;&lt;P&gt;          planetype LIKE saplane-planetyp,&lt;/P&gt;&lt;P&gt;Instance attributes&lt;/P&gt;&lt;P&gt;There exist one instance attribute for each instance of the class, thus they exist seperately for each object. Instance attributes are declared with the DATA keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static attributes&lt;/P&gt;&lt;P&gt;Static attributes exist only once for each class. The data are the same for all instances of the class, and can be used e.g. for instance counters. Static attributes are defined with the keyword CLASS-DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLASS-DATA: counter type i,   &lt;/P&gt;&lt;P&gt;Public methods&lt;/P&gt;&lt;P&gt;Can called from outside the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHODS:  set_attributes IMPORTING p_name(25) TYPE c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                            p_planetype LIKE saplane-planetyp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private methods&lt;/P&gt;&lt;P&gt;Can only be called from inside the class. They are placed in the PRIVATE section of the class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructor method&lt;/P&gt;&lt;P&gt;Implicitly, each class has an instance constructor method with the reserved name constructor and a static constructor method with the reserved name class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instance constructor is executed each time you create an object (instance) with the CREATE OBJECT statement, while the class constructor is executed exactly once before you first access a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constructors are always present. However, to implement a constructor you must declare it explicitly with the METHODS or CLASS-METHODS statements. An instance constructor can have IMPORTING parameters and exceptions. You must pass all non-optional parameters when creating an object. Static constructors have no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static constructor&lt;/P&gt;&lt;P&gt;The static constructor is always called CLASS_CONSTRUCTER, and is called autmatically before the clas is first accessed, that is before any of the following actions are executed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating an instance using CREATE_OBJECT&lt;/P&gt;&lt;P&gt;Adressing a static attribute using &amp;lt;classname&amp;gt;-&amp;gt;&lt;ATTRBUTE&gt;&lt;/ATTRBUTE&gt;&lt;/P&gt;&lt;P&gt;Calling a ststic attribute using CALL METHOD&lt;/P&gt;&lt;P&gt;Registering a static event handler&lt;/P&gt;&lt;P&gt;Registering an evetm handler method for a static event&lt;/P&gt;&lt;P&gt;The static constructor cannot be called explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected components&lt;/P&gt;&lt;P&gt;When we are talking subclassing and enheritance there is one more component than Public and Private, the Protected component. Protected components can be used by the superclass and all of the subclasses. Note that Subclasses cannot access Private components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism&lt;/P&gt;&lt;P&gt;Polymorphism: When the same method is implemented differently in different classes. This can be done using enheritance, by redefining a method from the superclass in subclasses and implement it differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the following sites .. You will find important information about classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP-oops&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;-https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/abap objects/abap code sample to learn basic concept of object-oriented programming.doc&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap&lt;/A&gt; code samples/alv grid/abap code sample to display data in alv grid using object oriented programming.doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck and reward me for the same&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashok.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419286#M201437</guid>
      <dc:creator>ashok_kumar24</dc:creator>
      <dc:date>2006-06-22T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419287#M201438</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;U have to first go through the documentation part which u can find on link- help.sap.com and read about OOP there u will find each n every step how to create how to use n also the T-code for the Classes is SE24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish u luck...&lt;/P&gt;&lt;P&gt;Seema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 12:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419287#M201438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Classes Information.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419288#M201439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start working on OO ABAP by working on one of my uploaded documents, which explains how to code in ABAP Editor and using Class Builder.&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;You can also go to SAPGenie.com to work on various attributes of OOP mainly inheritance, polymorphism,etc.&lt;/P&gt;&lt;P&gt;Its link is&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get useful programs in the transaction ABAPDOCU.In that go to ABAP Objects, you will get useful programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can work on Control Frameworks in ABAP using OO methodology by trying out the transaction DWDM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will send you other links once I find it...&lt;/P&gt;&lt;P&gt;Award points to all helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 13:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-classes-information/m-p/1419288#M201439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T13:10:57Z</dc:date>
    </item>
  </channel>
</rss>

