Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A


what are the advantages of oops in abap.

Former Member
Former Member replied

OOPs ABAP uses Classes and Interfaces which uses Methods and events.

If you have Java skills it is advantage for you.

There are Local classes as well as Global Classes.

Local classes we can work in SE38 straight away.

But mostly it is better to use the Global classes.

Global Classes or Interfaces are to be created in SE24.

SAP already given some predefined classes and Interfaces.

This OOPS concepts very useful for writing BADI's also.

So first create a class in SE 24.

Define attributes, Methods for that class.

Define parameters for that Method.

You can define event handlers also to handle the messages.

After creation in each method write the code.

Methods are similar to ABAP PERFORM -FORM statements.

After the creation of CLass and methods come to SE38 and create the program.

In the program create a object type ref to that class and with the help of that Object call the methods of that Class and display the data.

see the links below, Understand them and start developing.

chk out the links below:

General Tutorial for OOPS

Have a look at these links for OO ABAP.

SDN Series: [original link is broken]

Basic concepts of OOPS


oops consept in abap


Reward points for useful Answers


Murali Poli

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question