Is multiple inheritence is possible in sap?

can any one help me?
is multiple inheritence possible in sap ?
and is one class can extend multiplre interfaces??

Hi,
        Multiple inheritance as a concept is not allowed in ABAP Objects. But the effect and behaviour that you get by multiple inheritance is acheviable in ABAP objects with the help of interfaces. As follows.
An interface can inlcude more than one interface, that is an interface can extend more than one interface. Now if you have say interface1, interface2 and interface3.
interface4 can be declared to include all three other interfaces. And you class can include this interface4 in its interfaces tab.
Due to this your class gets the behviour(methods) that is defined in all ther interfaces. You can assign an object of this class to a reference of any one of these four interfaces. So one object can react to method calls on four different interfaces which is what you want to achevie in multiple inheritance.
Regards,
Sesh

Similar Messages

  • Interfaces to replace multiple inheritence

    Howdy,
    I have, conceptually, the following situation: I have a Ball abstract class. The Ball has several
    concrete methods. It also has an abstract method getAppearance (that would somehow return how a
    Ball is visualized). I have several "adjective" subclasses that I would like to build from it, for example:
    SpikyBall, GlowingBall, ColorBall, etc. I would like these classes to be concrete.
    Additionally, I would like to have a concrete class of any permutation of this list of adjectives, for example:
    SpikyColorBall, GlowingColorBall, SpikyGlowingColorBall. I want to accomplish this
    using as little code rewriting as possible, and, hopefully, none at all.
    Using certain other single letter languages that I won't name here, I used Multiple Inheritence. A
    SpikyColorBall would inherit from both SpikyBall and ColorBall, who both inherited from
    Ball. I was told I could accomplish this in Java using interfaces instead of multiple inheritence, which
    Java doesn't support. How is this accomplished? Could you give me (or forward me to) a good
    example? Again, the power I'm looking for is multiple inheritence's code-reusability.
    As a side note, why did Java choose to use interfaces instead of multiple inheritence?

    Courtesy of yawmark...
    composition_v_inheritance
    Bruce Eckel, author of Thinking In Java, has this to say about composition vs. inheritance:
    When deciding between inheritance and composition, ask if you need to upcast to the base type. If not, prefer composition (member objects) to inheritance. This can eliminate the perceived need for multiple base types. If you inherit, users will think they are supposed to upcast.
    Choose composition first when creating new classes from existing classes. You should only used inheritance if it is required by your design. If you use inheritance where composition will work, your designs will become needlessly complicated.
    Bill Venners: Composition versus Inheritance
    Use inheritance (of implementation) only when the class satisfies the following criteria:
    1) "Is a special kind of," not "is a role played by a";
    2) Never needs to transmute to be an object in some other class;
    3) Extends rather than overrides or nullifies superclass;
    4) Does not subclass what is merely a utility class (useful functionality you'd like to reuse); and
    5) Within PD: expresses special kinds of roles, transactions, or things.
    -- from Java Design: Building Better Apps and Applets (2nd Edition), by Peter Coad and Mark Mayfield

  • What are the different types of analytic techniques possible in SAP HANA with the examples?

    Hello Gurus,
    Please provide the information on what are the different types of Analytic techniques possible in SAP HANA with examples.
    I would want to know in category of Predictive analysis ,Advance statistical analysis ,segmentation analysis ,data reduction techniques and forecast techniques
    Which Analytic techniques are possible in SAP HANA?
    Thanks and Regards
    Sushma C Narasimhamurthy

    Hi Sushma,
    You can download the user guide here:
    http://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CFcQFjAB&url=http%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2FSBOpa10%2Fen%2Fpa_user_en.pdf&ei=NMgHUOOtIcSziQfqupyeBA&usg=AFQjCNG10eovyZvNOJneT-l6J7fk0KMQ1Q&sig2=l56CSxtyr_heE1WlhfTdZQ
    It has a list of the algorithms, which are pretty disappointing, I must say. No Random Forests? No ensembling methods? Given that it's using R algorithms, I must say this is a missed opportunity to beat products like SPSS and SAS at their own game. If SAP were to include this functionality, they would be the only BI vendor capable of having a serious predictive tool integrated with the rest of the platform.... but this looks pretty weak.
    I can only hope a later release will remedy this - or maybe the SDK will allow me to create what I need.
    As things stand, I could built a random forest using this tool, but I would have to use a lot of hardcoded SQL to make it happen. And if I wanted to go down that road, I could use the algorithms that come with the Microsoft/Oracle software.
    Please let me be wrong........

  • Multiple Line item proposal in SAP based on return reason for Material Serv

    Hi,
    I have a requirement in which the customer returns the faulty material for repair, the company does the inspection of the material and sends the faulty material to the External vendors for Repairing.
    External Vendor after repairing sends the material back to the company, which is then returned back to the customer.
    I want to understand , is it possible in SAP to have a sales document created with different line items (One for the material returned from the customer, one for the Material to be send to the external vendor for repairing , and one for the material to be returned back to customer after repairing)
    Is it possible to have this proposal automatically based on return reason in SAP ?
    Kindly Advise.
    Regards,
    Harsh

    Hi Harsh,
    I think you are trying to amalgamate 3 processes which is quite ambitious by all means :). However in my past experience we have been able to track these articles but playing around using the standards. Customer return was a process through which an article was brought in a seperate storage location for repair and was sent out for repair using sub contracting process, after repair it was again sent out to the customer with the sales process. Of course there were quite a few physical processes that were needed to support this. We started to think but than refrained ourselves from using batches and serial numbers for this.
    Regards
    Kaizad

  • Is 2D Barcode possible in SAP SCRIPTS

    Hi  folks ,
    Is 2D barcode  possible in Sap scripts?
    Thnaks
    pabi

    What Barcode are you thinking of?
    SAP supports a list of 2D Barcodes see in OSS
    Pls. also think about how to bring this Barcode to paper?
    This is an interessting theme!
    Start considering an external Output Program like LaserSoft from DETEC, Streamserve, DCS2000 from invaris or DocumentDesigner from OCE.

  • Is service sale possible in SAP SD

    Dear all,
    I want to know if service sale is possible in SAP SD
    Regards,
    Gaurav

    Hi Gaurav,
    Yes service sale is possible in SAP SD.
    I have worked in one project that is Gas related work project which is a service project.
    For this we have to create a material of type DIEN(Service material) while creating the material using MM01.
    As it is service project there will be no delivery.
    And the billing will only order related billing only.
    Except this change every thing will be similar to our standard procedure.
    Pls let me know if there are any other issues.
    Reagdrs,
    Krishna.

  • IFRIC 1 in IFRS ---- Is it possible in SAP to discount a liability figure

    Hi All,
    As per IFRIC 1 in IFRS: To measure decommissioning provision, the periodic unwinding of discounting shall be recognised in income statement as finance cost as it occurs.
    Is it possible in SAP to discount a liability figure and charge to interest the annual addition for unwinding of discount?

    No, sorry, I mean I copied the data vector (model.getDataVector()) to an other vector, not the model. And the problem is that the serialized data did not reflect the changes if I just change vecor values, so this is why I reinstantiated the full model. I think this is rather a java io issue, not a swing issue, it seems any object I serialize will not be refreshed if I just change some attributes in it and not the full variable. Can this be true?
    On the othe hand
    table.setAutoCreateColumnsFromModel( false );
    quite simplified my framework, which is great!
    The old framework looked like this:
    public BaseTblModel resetModel() {                    
    removeListeners(tm);
    removeListeners(tb);          
    tm = new TrackTblModel();     
    tb.setModel(tm)
    reinstallEditors(tb)
    addListeners(tm);
    addListeners(tb);     
    return tm;
    Now with table.setAutoCreateColumnsFromModel( false ); it looks like as simple as:
    public BaseTblModel resetModel() {                    
    tm = new TrackTblModel();     
    tb.setModel(tm)
    return tm;
    So it would be better If I could leave out this step as well, because I do it just because of the mentioned serialization problems.

  • Is it possible in SAP?

    SAP GURUS, is it possible to SAP to pay and print checks without using any vendor accounts. Exmaple of this is to transfer a check from checking account in bank to petty cash .. PLease help,

    I enter  the following entries: via account assignment model FKMT . the following entries are:
    DEbit Salaries Expense   100,000
             Medicare Contribution Expense  20000
    Credit Withholding tax payable   10000
              Medicare Payable           20000
              Salaries Payable            70000
    Next i want it to pay and create a payment document. I tried F-53 but when i enter the GL account, no pen itmes list in that GL... Please help
    Edited by: Roy Jensen Carasco on Jan 13, 2009 7:25 AM
    Edited by: Roy Jensen Carasco on Jan 13, 2009 7:27 AM

  • Is it possible in SAP B1 only.

    Hi,
    I want to find out the ITEM WISE - its Last Purchase Price . Is it possible in SAP B1 only.
    Item Details according to item wise -its Last Purchase Price
    Plz reply..............................!

    Hi Jyotsana......
    You can get this report through query generator........
    You may try this.......
    SELECT Top 5 T0.[DocNum], T1.[ItemCode], T1.[Dscription], T1.[Price], T3.[ItmsGrpCod],
    T3.[ItmsGrpNam] FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON
    T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T3.[ItmsGrpNam] ='[%0]' ORDER BY T0.[DocDate] desc
    Regards,
    Rahul

  • Is it possible in SAP that I can restrict a specific delivery with shipment

    Hi All,
    Is it possible in SAP that I can restrict a specific delivery can be attached with specific shipment?
    Example,
    I have a delivery type "A", which can only be attached with Shipment type "Z".
    Thanks in advance.

    I don't think it is possible, However you can restrict that through selection criteria of VT04.

  • Is it possible in SAP that I can restrict a specific delivery can be attach

    Hi All,
    Is it possible in SAP that I can restrict a specific delivery can only be attached with specific shipment?
    Example,
    I have a delivery type "A", which can only be attached with Shipment type "Z".
    Thanks in advance.

    NO.
    You can only specify a selection variant to select certain type of deliveries.

  • How to cancel automatically messages stated 17 (Application error - manual restart possible) in SAP ECC

    Hi people. I need to create a job to cancel automatically the messages with the status 17 (Application error - manual restart possible) in SAP ECC.
    In SXI_MONITOR I can retrieve these messages filtering just for "Application Error". I can cancel them here, however I need for a Job to do it.
    I appreciate your help.
    Regards
    Arturo Santos

    Hi,
    >Is there any way we can make this automatic
    In RWB-Component Montoring-Adapter Engine-Communication Channel Montoring- Select the Adapter- Go to Settings  and  change as per your Business Requirement.
    Regards
    Agasthuri Doss

  • Only VAT correction. How possible in SAP?

    Hi,
    We would like to correct only the VAT amount.
    Is this possible in SAP? Please give an example with transaction code.
    Best Regards,
    Eric van Zundert.

    Hi
    Use TCode F-02 and post the document with same amount of Debit and Credit (Posting Key 40 and 50). Before that check the relavant GL Accounts are allowed for post manually at TCode FS00
    Cheers
    Srinivas

  • Up to what level abap devlopment is possible in SAP

    hi
    up to what level abap devlopment is possible in SAP.
    thanks.

    Laxman,
    May I know the context of your query.Why do you think beyond a particular point it will not be possible.
    K.Kiran.

  • Is conditional prompt possible with SAP BO AO Excel?

    Hi folks,
    Is conditional prompt possible i.e the "prompt" should appear only when the measure is used in the report?
    Is this kind of feature possible with SAP BO AO on HANA?
    Regards,
    Krishna Tangudu

    Could you clarify?
    Do you mean conditional formatting?
    If against HANA, I am not sure as the SAP help doesn't specifically mention it:
    http://help.sap.com/businessobject/product_guides/AMS14/en/14SP7_aaoffice_user_en.pdf
    See page 141 - Source: SAP help
    SAP HANA data sources
    With SAP HANA data sources, you can use the following Analysis functions to analyze your data:
    ● Inserting a crosstab with SAP HANA data
    You can also insert more than one data source in a workbook.
    ● Saving/Opening a workbook to/from the business intelligence platform server
    ● Undo/Redo
    ● Defining style sets for crosstabs
    ● Swapping axes
    ● Analyzing data with the design panel
    ● Filtering members
    ● Sorting data by members and by measures
    ● Inserting charts
    ● Inserting filter components
    ● Converting crosstab cells to formula
    ● Creating Presentations
    ● Pause Refresh

Maybe you are looking for

  • What are the options to use itunes with multiple accounts on one computer

    I am totally confused; apple phone support seems to have no clue at least the person I spoke to. I want to get two iTunes accounts on one computer, one exists already. I am not sure what apple allows in this case. I was told at a apple store that if

  • Where is the Quicklook preview when saving a file as Photoshop EPS in CC2014

    When I save a photoshop image as a PHOTOSHOP EPS it does not add a preview in the file. In CS6 it worked fine. Now the Quicklook preview (in the finder) is gone it makes it very hard to see what you are importing in for example Indesign. The reason w

  • Strange behavior after using NIK plug-ins

    Every once in a while I encounter this strange behavior of Aperture. I first process the NEF's in Aperture (white balance, Exposure, Enhance... and, when needed, Cropping) and then I fine tune the image with the NIK plug-ins; when needed DfIne 2.0, V

  • VHS to DV distortion

    I have an off the shelf VHS deck output to Canopus ADVC 110 to MacPro/FCP for capturing VHS tapes. Can someone suggest a method/hardware for eliminating the distortion I receive as seen in this link? http://www.tedean.com/ThomasDean/VHSDemo.html Than

  • Using variants of hierarchical blocks with bom

    Hye, I'm exploring the use of hierarchical blocks right now, and I think it's a great feature. However, I would also like to use variants of these HB's, so for example I can have a piece of I2C circuitry (I2C HB) for a master and a slave situation (s