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: 

Abap Objects

herzelhaimharel_gilor
Participant
0 Kudos

Hi Folks ,

can anyone let me know if there's some design patterns examples in abap objects ?

5 REPLIES 5

ssimsekler
Active Contributor
0 Kudos

Hi Herzel

You can find example demo programs on ABAP OO programming. Search for the programs with the mask <b>"DEMOABAPOBJECTS*"</b> . However they will not be so much to do with design patterns, but they will be helpful for OO perspective of ABAP programming.

I certainly need to mention the book "ABAP Objects — The Official Reference"

A comprehensive guide to all ABAP language elements

by Horst Keller & Joachim Jacobitz

--> You can find more info from http://www.sap-press.com

Kind regards...

*--Serdar

Former Member
0 Kudos

There are OO patterns available from the ABAP Editor. Just hit the PATTERN button and select the "AABAP Objects patterns" radio button. Not sure about the spelling error but that is what shows up in my 4.6C system. Is this the kind of patterns you were looking for?

0 Kudos

Hi dude ,

i'm impressed that there's an heavy misunderstanding

when i asked for "Design Patterns" i mean somewaht like

this : http://www.industriallogic.com/papers/learning.html

0 Kudos

In BSP, there is a design pattern which is being used, and it is very well-known. It is the MVC(Model-View-Controller) design pattern. It also has iterators.

Singleton classes are already available in ABAP. That is one the design patterns, you might be looking for.

Secondly, I do not blame the other people who have responded to your post for confusing design patterns with Pattern button, mainly because :

<i>Programs in ABAP are usually written in procedural manner, rather than using the OO approach. This is still the trend, and the transition would be slow. The concept of design pattern is more aggressive in Java rather than in ABAP, as ABAP is essentially for business programming and Java can be used for almost any purpose</i>

Regards,

Subramanian V.

Former Member
0 Kudos

For those who stumble onto this thread as I have..

I have just started down this path of using ABAP OO Design Patterns.. nearly 5 years after the original post..

Check out the book by Igor Barbaric: "Design Patterns in Object-oriented ABAP".

You can download a demo program from the SAP Press site: /people/igor.barbaric/blog/2006/09/20/oo-abap-contest-results

Its not perfect and a bit dry to read. But, its definitely worth your attention, as there are concrete examples of the Composite, Singleton, Adapter, Facade and MVC design patterns.

Its by no means a definitive publication, but its the only one available.

Thank you Igor!