<?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 objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103059#M981197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS CL_PRICE_DATA DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Hotspot Method&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLASS-METHODS : HOTSPOT FOR EVENT HOTSPOT_CLICK OF&lt;/P&gt;&lt;P&gt;   CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;                 IMPORTING E_ROW_ID .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: UCOMM TYPE SY-UCOMM.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constructor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    METHODS : CONSTRUCTOR&lt;/P&gt;&lt;P&gt;     IMPORTING CONTAINER TYPE REF TO CL_GUI_CONTAINER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  toolbar for Fixed Pricing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   HANDLE_TOOLBAR&lt;/P&gt;&lt;P&gt;      FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;      IMPORTING E_OBJECT E_INTERACTIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above methods Importing means when these methods are E_ROWID would be having a value E_OBJECT E_INTERACTIVE wouldf haaving the pass passed by the event associated .so from the events it would exporting and in the local it would importing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 05:51:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T05:51:00Z</dc:date>
    <item>
      <title>ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103056#M981194</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;   If a local class is to be created, which parameter is to be used as importing and which is to be used as exporting.I have seen some examples, but could not understand that which should be importing parameter and which is to be exporting one?  Please Give AN EXAMPLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;khadeer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103056#M981194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103057#M981195</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;  Refer to the following link. You will get many simple sample code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/OOPS/MainPage.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/OOPS/MainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaya Vani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103057#M981195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103058#M981196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khadeer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating a local class, In a method the parameters you want from user to be entered, that parameters will be declared as Importing Parameters.&lt;/P&gt;&lt;P&gt;The parameters, that you want as output after some calculation or logic using importing parameters, will be declared as Exporting Parameters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving you a very basic Example of a class :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_princ TYPE p DECIMALS 2 VALUE 1000,&lt;/P&gt;&lt;P&gt;          w_time TYPE p VALUE 5,&lt;/P&gt;&lt;P&gt;          w_rate TYPE p DECIMALS 2 VALUE 10,&lt;/P&gt;&lt;P&gt;          w_intr TYPE p DECIMALS 2.&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;      CLASS NITIN DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&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;P&gt;CLASS interest DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: calculate IMPORTING princ TYPE p&lt;/P&gt;&lt;P&gt;                                  time TYPE p&lt;/P&gt;&lt;P&gt;                                  rate TYPE p&lt;/P&gt;&lt;P&gt;                        EXPORTING intr TYPE p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "INTEREST DEFINITION&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;      CLASS INTEREST IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&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;P&gt;CLASS interest IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD calculate.&lt;/P&gt;&lt;P&gt;    intr = ( ( princ * time * rate ) / 100 ).&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "CALCULATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "INTEREST IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: obj1 TYPE REF TO interest.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT: obj1.&lt;/P&gt;&lt;P&gt;  CALL METHOD : obj1-&amp;gt;calculate EXPORTING princ = w_princ&lt;/P&gt;&lt;P&gt;                                           time = w_time&lt;/P&gt;&lt;P&gt;                                           rate = w_rate&lt;/P&gt;&lt;P&gt;                                 IMPORTING intr = w_intr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/5 'INTEREST FOR PRINCIPLE : 1000 , RATE : 10% , TIME : 5 WILL BE'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  WRITE:/5 w_intr COLOR 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103058#M981196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103059#M981197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS CL_PRICE_DATA DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Hotspot Method&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLASS-METHODS : HOTSPOT FOR EVENT HOTSPOT_CLICK OF&lt;/P&gt;&lt;P&gt;   CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;                 IMPORTING E_ROW_ID .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: UCOMM TYPE SY-UCOMM.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constructor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    METHODS : CONSTRUCTOR&lt;/P&gt;&lt;P&gt;     IMPORTING CONTAINER TYPE REF TO CL_GUI_CONTAINER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  toolbar for Fixed Pricing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   HANDLE_TOOLBAR&lt;/P&gt;&lt;P&gt;      FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;      IMPORTING E_OBJECT E_INTERACTIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above methods Importing means when these methods are E_ROWID would be having a value E_OBJECT E_INTERACTIVE wouldf haaving the pass passed by the event associated .so from the events it would exporting and in the local it would importing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103059#M981197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103060#M981198</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;DATA:NUM1 TYPE I,&lt;/P&gt;&lt;P&gt;     NUM2 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS counter DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: NAME1 IMPORTING VALUE(VAR1) TYPE i&lt;/P&gt;&lt;P&gt;                   EXPORTING VALUE(VAR2) TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS counter IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD name1.&lt;/P&gt;&lt;P&gt;    VAR2 = VAR1 + 2.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT cnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cnt-&amp;gt;name1 EXPORTING VAR1 = NUM1&lt;/P&gt;&lt;P&gt;                         IMPORTING VAR2 = NUM2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is nothing like a functiob module bcoz...in class if u specify importing c1 and exporting c2 it 'll cosidered in a reverse manner in program like exporting c1 and impoting c2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arunprasad.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/4103060#M981198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:52:06Z</dc:date>
    </item>
  </channel>
</rss>

