OOPs concept any one?

Hi Friends,
I dont know the oops concept even from basics ....
as part of requirement we need to work in oops Do any one having the links to learn oops..Pls provide
All pains are rewarded ...thanks once again
reards
sas

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/tutorial
check this sample program on local classes
report zalv_sel_screen .
class venkatesh definition.
public section .
data: publicdata(30) type c  value 'this is the public data',
      num1 type i value 2,
      num2 type i value 3,
      num3 type i.
methods: publicmethod.
protected section.
data: protecteddata(30) type c value  'this is the private data'.
private section.
data: privatedata(30) type c  value  'this is the private data'.
endclass.
class venkatesh implementation.
method : publicmethod .
  num3 = num1 + num2.
  do num3 times.
write:/ 'this is venkatesh'.
enddo.
endmethod.
endclass.
start-of-selection.
data: venky type ref to venkatesh.
create object : venky .
call method: venky->publicmethod.

Similar Messages

  • Which is better to use in alv functions or oops concept

    hi,
    actually some people are using function modules
    and some are using oops concept
    which one is better
    could anybody suggest
    thanks,
    kalyan

    I assume you've found TLFTextField in Flash Pro (I can't remember if Flash Builder made a TLFTextField class or not). Anyway, if you're considering using Flash Pro, here's some background on the TLFTextField class:
    This class was created primarily for backwards compatibility with Classic Text coding. If you used Flash Pro CS 4 or earlier versions, and you wrote ActionScript for your text objects, you were using TextField objects. So, when you upgraded to CS 5, and you decided to convert all your old Classic text objects to the new TLF objects, all your code would have broken were it not for TLFTextField class. TLFTextField implements the TextField API so that your existing TextField code can be used in the TLF environment.
    So, if you're an ActionScript programmer who is already comfortable programming using the TextField API, it certainly makes sense to continue doing so but using TLFTextField objects. However, if you want to take advantage of the new TLF features, the old API doesn't really give you the ability to do that. So, the TLFTextField provided a new API:
    function get textFlow():TextFlow;
    The TextFlow class is the top level class of the TLF model objects. Using that object, you can then set attributes on your text just as if you were working with TextFlow in Flash Builder. So, in essence, TLFTextField provides backwards compatibility, continued use of the familiar API set, and access to the TextFlow model class.
    Another nuance to be aware of is that if you choose to embed fonts, TLF requires the newer "DF4" (for DefineFont4, based on the SWF Tag name) vs. the older "DF3" fonts that TextField requires. For text on the stage, Flash Pro will do all the tricky work for deciding when to embed DF3 and when to embed DF4 fonts, but just be aware that mixing Classic text and TLF text when using embedded fonts can cause a "double tax" on your SWF size because it may embed the same font both as DF3 and DF4.
    Good Luck!
    Rusty

  • Can any one tell whether the concept which i understood is correct or not

    hai everyone
    iam studying jdbc and this is what i understood about the basic concept .can any one tell whether the concept which i understood is correct or not
    whenever the statement class.forName("driver class") is executed driver class is loaded and registered with drivermanager.Internally drivr class contains a static bloc which contains the following code
    static
    Driver drv=new name of driver class();
    DriverManager.registerDriver(drv);
    whenever the statement class.forName("driver class") is executed,static bloc is executed first and driver class is registerd.
    concept as i understood about DriverManager:
    suppose there may be situations where an application developed in java has to deal with one or several databases and this is accomplished with one or different driver classes.so all these driver classes are to be managed and this is done by DriverManager class and in order to make the driver class itself known to the driver manager we have to register the driver classes with the help of registerDriver() method of DriverManager class because DriverManager is the class which will attempt to load the driver classes into memory..
    If we look at the last statement: DriverManager is the class which will attempt to load the driver classes into memory.Here i have some doubt if DriverManager class loads the driver class after registering the driver class then what does the statement class.forName("driver class") will do which is also used to loaad the driver class.
    what i understood is since the responsibility of loading the class is done by class.forName("driver class") only registering of the driver class is done as the class is alredy loaded.
    help me to clear my confusion
    thanks in advance

    hai everyone
    iam studying jdbc and this is what i understood about
    the basic concept .can any one tell whether the
    concept which i understood is correct or not
    whenever the statement class.forName("driver class")
    is executed driver class is loaded and registered
    with drivermanager.Internally drivr class contains a
    static bloc which contains the following code
    static
    Driver drv=new name of driver class();
    DriverManager.registerDriver(drv);
    }That's supposed to be the case, but there's no way to guarantee that every driver actually has that static init. I don't think I've ever run across one that doesn't, though, so, yes, you're basically correct.
    whenever the statement class.forName("driver class")
    is executed,static bloc is executed first and driver
    class is registerd.When you do Class.forName(), the class is loaded and initialized. Whenever you initialize a class, its static init blocks are executed, yes.
    concept as i understood about
    DriverManager:
    suppose there may be situations where an application
    developed in java has to deal with one or several
    databases and this is accomplished with one or
    different driver classes.so all these driver classes
    are to be managed and this is done by DriverManager
    class and in order to make the driver class itself
    known to the driver manager we have to register the
    driver classes with the help of registerDriver()
    method of DriverManager class because
    DriverManager is the class which will attempt
    to load the driver classes into memory..Except for that last part, yes.
    DM keeps track of loaded drivers, and gives them a chance to parse the connection URL when you call getConnection. DM does NOT load the driver classes into memory, however. That's done when you call Class.forName.
    what i understood is since the responsibility of
    loading the class is done by class.forName("driver
    class") only registering of the driver class is done
    as the class is alredy loaded.Right.

  • Can any one explain the concept of  Hash ( # ),

    Hi All,
    I am generating the report on Billing Cube.. for that cube I have DS 2lis_13_vdhdr, 2lis_13_vditm,
    I am executing the report with characteristics Material , Billing Number and Key Figures Billing Value.
    For Example : I am seeing the report By Material , in last line it is showing Hash ( # ),
    When I am drill down by material by Billing no  with Billing value.
    Now it is showing the billing value agents’ the Billing Number and in the same time it is showing hash for the same Billing Number….
    Eg:       Material     Billing No     Billing Value
         120          199001     400 USD
         122          199002     500 USD
         125          199003     300 USD
         #          199001     000.00
                   199002     000.00
                   199003     000.00
    Can any one explain the concept of  Hash ( # ), and why the Billing No is reputing in Hash..
    I have same problem in other Cubes with other Characteristics …
    <b>How can I permanently Restrict Hash..  my user don’t want to see in report..</b>
    Regards,
    Shaik

    Shaik,
    since the thread in the Business Explorer forum has been marked as answered , I assume that this thread can also be closed as answered ... please assign points and close as answered..
    Arun
    other post
    How can I permanently Restrict Hash..in Query level  ( # )

  • Any one having idea on SAP RE FX flat selling concept

    if any one is having material on SAP RE FX flat selling can u please forward to my mail id its [email protected]

    The selling of Flat or plot in Real Estate management can be done only through Real Estate Sales. For that you have to take the enhancement pack 2 in SAP and activate home building solution. Than you can get Real estate Sale and you can make flat as sales unit and can sale it.
    Thanks,
    Shailendra Tyagi

  • Creating a report in Web dynpro using OOPS concept

    Hi all,
             Iam new to web Dynpro, i need to create a report in Web Dynpro  using oops concept. can any one guide me regarding it.
    Regads,
    Easter

    Hi,
    Please refer to these links -
    DEMO_COMMON_ASSISTANCE1 -Example for standard component
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
    Regards,
    Lekha.

  • Need Description of OOPS Concept in LABVIEW

    Hi Every one.
    Good Morning to all.
    I want to learn the OOPS concepts in LabVIEW.
    Please can any one suggest me the links or provide me the necessary documents (like PDFs).
    Thanks in advance..
    Regards
    Naresh G

    Naresh,
    I think this will help you
    Also check for this
    =========================================
    Please remember to accept a solutions and show your appreciation by giving Kudos to helpful messages...
    Mangesh D.
    CLAD | Project Engineer
    ==
    VIPM, LabVIEW 8.2, 2009, 2011SP1, 2012, 2012SP1, 2013, cRIO,cDAQ, PXI, ELVIS, Multisim, Smart Camera....

  • SC creation using oops concept

    Hi we are writing code in SRM7.o using oops concept, based on FM BBP_SC_APP_EVENT_DISPATCHER events which triggers while creating SC from portal.
    am using the class /SAPSRM/CL_PDO_BO_SC_ADV and using the methods of following class which suitable for the events.
    if any one created same SC or any related to this code, please share with me.
    Thanks in advance.

    Hi There,
    SRM 7.0 already uses object oriented programming, i.e. ABAP Objects. Why not just use what is already provided?
    Regards,
    Jason

  • Sub total in ALV GRID using oops concept

    Hi,
    If Plant (VBAP-WERKS) is not the same for all items on a Sales Order (VBAK-VBELN is the same for al items) then create a separate line on the report for each different plant specified in the line items.  Copy all fields from the original order line except for plant and Net Value.  Net Value should be the total of item Net Values for all items with the same plant in the order.
    Example:
    Data:
    Order----                     Item-             Plant-                                     Net Value---
    123----          010-               3467-                      100.00---
    123----          020-               7865-                      50.00---
    123----          030-               3467-                     80.50---
    Report:
    Order-                     Plant-                  Net Value---
    123-          3467-                  180.50---
    123-          7865-                   50.00----
    I need to dispaly the Report format in ALV Grid using oops concept...
    no need of calling any function modules.
    Regards,
    Nithya

    Hi
    Here is example code
    This is the method to be called:
    get_subtotals
    Use
    Returns the current subtotals of the ALV Grid Control. Having created totals for at least one column, users can calculate at most nine subtotals. The list is sorted by the values of one or several columns (called the subtotals column). If a value is changed in the subtotals column, the subtotal is displayed (this is also referred to as control level change).
    Integration
    Before you access the subtotals value, you use the method get_sort_criteria to get the sort table . One row of this table describes properties of a column in the output table.
    • If the field SUBTOT is set for a column in this table, the column is a subtotals column.
    • The field SPOS then indicates at which level (see below) the subtotal has been calculated.
    • The field FIELDNAME contains the name of the subtotals column in the output table.
    Based on this information, you specifically access the values of the tables passed (using reference variables COLLECT01 to COLLECT09).
    Features
    CALL METHOD <ref. var. to CL_GUI_ALV_GRID>->get_subtotals
    IMPORTING
    EP_COLLECT00 = <reference variable of type REF TO DATA>
    EP_COLLECT01 = <reference variable of type REF TO DATA>
    EP_COLLECT02 = <reference variable of type REF TO DATA>
    EP_COLLECT03 = <reference variable of type REF TO DATA>
    EP_COLLECT04 = <reference variable of type REF TO DATA>
    EP_COLLECT05 = <reference variable of type REF TO DATA>
    EP_COLLECT06 = <reference variable of type REF TO DATA>
    EP_COLLECT07 = <reference variable of type REF TO DATA>
    EP_COLLECT08 = <reference variable of type REF TO DATA>
    EP_COLLECT09 = <reference variable of type REF TO DATA>
    ET_GROUPLEVELS = <ínternal table of type LVC_T_GRPL>.
    In order to access the values of EP_COLLECT00 to EP_COLLECT09, you use ASSIGN to dereference the relevant reference variable in a field symbol of your output table type (see below).
    Parameters
    Meaning
    EP_COLLECT00
    Points to the totals line. Since there is only one totals line which, in addition, has a unique totalling area, no further information is available for this table in table ET_GROUPLEVELS.
    get_subtotals
    EP_COLLECT01 to EP_COLLECT09
    Point to the subtotals line. For each subtotals level, there is one reference variable. Each of these variables points to an internal table that has the type of the output table. EP_COLLECT01 points to the subtotal at the hightest level, while EP_COLLECT02 points to the subtotal at the second highest level, and so on. The levels are derived from the sort priority (field SPOS in the sort table ). The column by which the data was sorted first, is the highest subtotals level.
    ET_GROUPLEVELS
    Manages all indexes for the individual control levels. The fields of the table have the following meaning:
    • INDEX_FROM, INDEX_TO: Rows of the output table for which the subtotal was created
    • LEVEL: Subtotals level (see above)
    • COUNTER: Number of rows for which the subtotal was created
    • COMPRESS: For this subtotals line, the user has hidden the associated rows.
    • COLLECT: Indicates the subtotals table (01-09) in which the values are stored
    For an overview, see Methods of Class CL_GUI_ALV_GRID
    Activities

  • Oops concepts in abap - please help me

    Hi ,
       can any one help me how to move ahead in abap with oops concepts.
       Please explain me concepts with small example program.
    Regards
    Vijaya

    Hi learn the concepts of oops and then the syntax 
    of the statements. Find the pgrm if it useful for u                                                                               
    *& Report  Z_CLASS_DEMO1                                               *
    REPORT  Z_CLASS_DEMO1                           .
          CLASS vehicle DEFINITION
    class vehicle definition.
      public section.
        methods: create.
        events: vehicle_created.
    endclass.                    "vehicle DEFINITION
          CLASS vehicle IMPLEMENTATION
    class vehicle implementation.
      method create.
       break-point.
       write:/ 'vehicle is created'.
       raise event vehicle_created.
      endmethod.
    endclass.                    "vehicle IMPLEMENTATION
          CLASS reg_office DEFINITION
    class reg_office definition.
      public section.
        methods: add_vehicle FOR EVENT vehicle_created of VEHICLE.
    endclass.                    "reg_office DEFINITION
          CLASS reg_office IMPLEMENTATION
    class reg_office implementation.
      method add_vehicle.
        write:/ 'Vehicle is created and is ready for registration'.
      endmethod.                    "reg_office
    endclass.                    "reg_office IMPLEMENTATION
    start-of-selection.
      data: r_vehicle type ref to vehicle,
            r_reg_office type ref to reg_office.
      create object r_vehicle.
      create object r_reg_office.
      set handler r_reg_office->add_vehicle for all instances.
      r_vehicle->create( ).

  • Regarding ALV oop concepts

    Hi
    Can any one please provide material for ALV OOP concepts.
    If you attach any PDF to my mail id, that will be more helpful for me.
    This is my mailing id : [email protected]
    Points will be awarded.
    Regards
    Sandeep Reddy

    An excellent introduction is the following document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    You will find plenty of sample reports in the reuse library (transaction SE83) and in the Development Workbench Demos (transaction DWDM).
    check out any example program starting with BCALV*
    You can refer these documents also.
    http://esnips.com/doc/b708766f-a934-42a1-8064-c4de75b48fc4/Sample-Program-of-alv-using-oops.ppt
    http://esnips.com/doc/a2e42503-cf0f-4418-94ee-580f5900a81f/alv-with-oop.doc
    http://esnips.com/doc/2d953590-e8c5-490c-a607-d1ab7cf517d7/ALV.pdf

  • Hey, I had met a problem with installation. Can any one help me?

    Hi everyone, I'm an user of Windows 7(64 bit),
    I had just download "Master Collection CS5.5"
    Everything are fine but Adobe Acrobat Professional can't install on my computer.
    There are the details..:
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 1 warning(s)
    WARNING: DW066: OS requirements not met for {AC76BA86-1033-F400-7760-000000000005}
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: Install MSI payload failed with error: 1603 - 安裝時發生嚴重錯誤。
    MSI Error message: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed
    Thanks

    Re: Hey, I had met a problem with installation. Can any one help me?
    This worked for an English version and the concept should work with all Adobe programs - new or old (hopefully in any language). My guess is that you have/had an older version of Acrobat/Reader on your computer hard drive that needs to be *completely* removed first. Uninstall the new (and any old) Acrobat; then try using the "kb2..." guideline link below before reinstalling the new Acrobat. I am including the lengthy instructions in order to help others with more extensive installation problems. Good luck!
    I live on a fixed income and use CS for a hobby. I had problem installing Adobe Creative Suite (CS1) to Windows 7 64-bit Pro on my new computer. Also installed Adobe Photoshop LR3. What I learned: All Adobe products (Flash, Acrobat/Reader, Photoshop, Creative Suites, etc.) leave a VERY pervasive footprint on your hard drive. Logic finally worked for me.... think of building a house; there is an order you have to do things in. First, you have to clean the area before laying the foundation; then you have to build the framework before you put the roof on. You cannot install an older program over ANY newer program; and you will sometimes have a problem installing a newer program containing Flash, Reader, etc. unless you "erase" the older versions of Flash, Reader beforehand. If installing older programs, do a Custom/Manual install; do not install older versions of Flash, Reader, etc.  packaged with your Adobe software.
    SOLUTION (not easy, but it works):
    I first tried this; it did not solve my problem (but, if applicable, may help others).  http://windows.microsoft.com/en-us/windows7/Make-older-programs-run-in-this-version-of-Win dows
    Before doing anything, make document and any database/presets/cache back-ups beforehand (keep notes on their designated location*); manually create a System Restore point. (Be prepared to reinstall Windows if necessary - I didn't have to.)
    Completely and meticulously eradicate (clean) your hard drive of ALL Adobe programs [uninstall, remove remaining folders, and remove only the registry entries that have the Adobe name attached (unless you are an expert and fully understand the other entries)]. Use this as a guideline  http://kb2.adobe.com/cps/400/kb400769.html
    Do a Custom/Manual reinstall of all your Adobe products *in order of release dates* (OLDEST first).... do not include Reader, Flash, etc. If your CD will not automatically run at this point, click "Open folder to view files" (use Computer/Windows Explorer, if necessary). Click "Adobe Creative Suite (or your desired program) ==> Setup.exe" (IMPORTANT: Make sure that Reader, Flash, etc. are unchecked.)
    After each of your desired Adobe programs are installed, test to insure they boot up. Then download the latest Reader, Flash, etc. apps and install them (I did this in order of release date - oldest first). Do test boot(s) again.
    Copy/Paste your document and any database/presets/cache back-ups into the appropriate folders (*this will vary depending on your programs and your filing system).
    It has been four weeks and all my Adobe programs work flawlessly - system is stable, no problems!

  • OOPs Concept ! - Why Static Methods can't be redefined in its subclass ?

    Dear Experts ,
    I had searched the SDN , but unable to find out the satisfactorily answers ..
    Can anybody let me know the reason for the following Confusion in Oops Concept
    Question 1: As we know , We can Inherit the Static Methods in the Sub Class , But we can't redefine it in the base class  or       Sub Class  ?
    Question 2 : Why can't Static Method be Abstract ?
    Question 3 : Can a Class be Abstract or Final Both, If yes, then why ?
    Thanks in Advance
    Saurabh Goel

    As per the above discussion two of your doubts have already been clarified  so I am taking only third one.
    A class cannot never be Abstract and final both coz Abstract signifies that the implementation of the class has not been defined completelyi.e. may be some methods have been defined but few methods are still missing implementation. 'Final' is used for those classes/methods which cannot be redefined  means the complete implementation of the method has been defined no one can implement further logic under the same method.
    If you are saying your method is Final then it cannot be overridden and Abstract implies that method implementation is yet to be defined which can only be implemented if that class/method is not 'Final'. So both the terms are contradictory.
    Hope it clarifies!!!
    Thanks,
    Vishesh

  • Can any one guide me in this. I would like to start my certifications in VM Ware. Especially in cloud. I saw there is an exam for the new starters .(VCA). it is enough or should I go for any other Training in MCSA (Server).

    Can any one guide me in this. I would like to start my certifications in VM Ware. Especially in cloud. I saw there is an exam for the new starters .(VCA). it is enough or should I go for any other Training in MCSA (Server).

    VCA is to make sure that you have a understanding of the general concepts before you go to do a full VCP course.
    I have taken the VCA datacenter and it was very much a case of: What product does what?
    You wouldnt get a job on merit of having a VCA where as you would with the VCP.

  • Any one have any information about Security Group to send it to me

    any one have any information about Security Group to send it to me
    what is it and how can we use it in our work

    Have a look in the general R12 MOAC and FA concepts.
    With security groups, you can defined a set of organizations with a shared access.
    E.g. you defined one Secruity groups and assigned in these group 5 organizations.
    The security group is assign to a responsibility.
    You have access to these 5 organizations over one responsibility, you must not change the responsibility, if you will enter transactions for a other organization.

Maybe you are looking for

  • Installation problem in Windows 2000

    Hi, When i am trying to install J2EE 1.4 SDK on my Windows 2000 Ver5 an error message "You are currenty attempting to install J2EE 1.4 SDK on an unsupported platform and/or patch level..." is being shown.Can anyone help me out, does J2EE 1.4 support

  • 27" iMac processor / hard drive noise

    I just picked up a 27" iMac with the 1 T HD. I can hear the hard drive any time the computer is "working". Took the first one back to the Apple store and exchanged it, thinking I had a defective machine. The replacement makes the same noise. Anyone e

  • PS elements 11 panels have disappeared

    I am using PS elements 11 with MacBook Pro OS X 10.9.4. My panels have disappeared. The layers box in the windows tab is ticked. I have tried resetting panels and have uninstalled and reinstalled elements but there's no change. What can I do to get t

  • Illustrator CS6 on Mac Yosemite keeps unhiding when minimizing or maximizing any other application from the dock

    I am running Adobe Illustrator CS6 on my Mac,  I just upgraded to Yosemite OS and when I have Illustrator hidden and then minimize any other application to the dock - Illustrator pops back up. The same happens when I restore/maximize any other applic

  • I want to connect two itunes accounts.

    Hi i want to connect two itunes accounts. my old one with all my music is on my pc with one email address and i have a newish mac which has a different email account number. how do i move the old accounts music to the new one. thanks kellie