Skip to Content
P D

Good Standard SAP Program with Object Oriented Concepts

Hello Experts,

Have you ever come across a standard program (preferebly with new ABAP features) in SAP ? It is always a challenge when starting to program using object oriented because you do not really know, you are using the power of object oriented concepts like reusablility, extendability etc.So a good standard program to debug and see how it works , the naming conventions they use and so on will really be a help.

PS: I do not want some one who uses objects for the sake of using objects, but to leverage the power of objects.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 02 at 04:12 PM

    The demo programs can be ok, but they're generally only to showcase particular ABAP features - not object oriented programming concepts in general.

    You are making a mistake, in my opinion, if you think that the SAP Standard code base is generally a model to follow for how to program. I have seen some unbelievably terrible programming over the years - some of it very recent. Admittedly it's got better, but it's by no means best practice.

    If you want to learn to use OO well, then read a lot about the practice and theory, study design patterns and practice.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 11:40 AM

    A demo is in package SABAP_DEMOS_CAR_RENTAL, well it's a demo only.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 08:29 PM

    Thomas Jung's ABAP OOP Tutorial is still the best IMHO: https://archive.sap.com/documents/docs/DOC-10236

    Also Paul Hardy posted a lot about it on SCN (see here and here).

    Not exactly the same as having the whole program but it's the best thing you can get for free. I agree with Matthew that, unfortunately, SAP's own programs are not always the greatest example. Would love to find one really good example myself.

    Add comment
    10|10000 characters needed characters exceeded