Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Good Standard SAP Program with Object Oriented Concepts

former_member207873
Participant

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.

11 REPLIES 11

horst_keller
Product and Topic Expert
Product and Topic Expert

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

0 Kudos

Hello Horst Keller ,

Do you mean DEMO_CR_CALL_CAR_RENTAL ?

matt
Active Contributor

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.

0 Kudos

Hello Matthew Billingham ,

Thanks for your reply. Atleast as far as I am concerned, I have learned more by following a neatly written code ( in this case a good Object Oriented Program with most of the concepts ) than book with all the technical jargons in the world 🙂 huddled inside it. If you can point to a ABAP git hub project(people usually share project links in scn, so i think it is within the laws of forum ) which you think is a neatly written one, kindly share.

B.R.

Jelena
Active Contributor
0 Kudos

Maybe the famous ABAP2XLSX ? Just google it, should be the first link.

0 Kudos

Thanks a lot Jelena, Eventhough I am struggling a bit to download the SAP links and stuffs like that. At the same time I would be interested in knowing whether Matthew Billingham can add something on this .

Jelena
Active Contributor

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.

Agreed Thomas Jung's (10+ year old) tutorials are fantastic (and free).

I recommend buying Paul Hardy's ABAP to the Future (volume four) and look at the chapter on ALV and type in the code yourself. You will learn how it works and at the end you will have nice usable tool that your users (and you) will love.

0 Kudos

I really like also the book of Paul.

There is also another very good book, not part of the SAP Press, but for me it's a bible : "Object-Oriented Design with ABAP"

Jelena
Active Contributor
frdric.girod

This blog was posted later than my comment (back in 2018!), this is from James McDonough, the author of the book you've mentioned.

0 Kudos

Thanks jelena.perfiljeva2 !! It looks great