Application Development and Automation 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: 
Read only

Object Oriented.

Former Member
0 Likes
811

I am new to the concepts of SAP.I would like to ask a simple question.

1.Why is SAP referred as object oriented . What is the significance of that.

2.BAPI is the first object oriented concept of SAP as per my knowledge. Apart from this what are the other tools which are referred as object oriented in SAP.

Regards

Atahar.

1 ACCEPTED SOLUTION
Read only

manuel_bassani
Contributor
0 Likes
761

Hi,

in SAP programs you can use object oriented concepts (Classes, objects, interfaces and so on..).

You can organize your programs:

- with classic procedural programming

- with object oriented paradigm

you can define classes in repository (transaction SE24) or local classes (only visible inside the program in which they are declared) using statements CLASS (press F1 in statement CLASS and check ABAP documentation)

BAPI are special function modules and they have nothing to do with object oriented programming (see transaction SE37)

I hope to has been clear

Regards, Manuel

7 REPLIES 7
Read only

Former Member
0 Likes
761
Read only

Former Member
Read only

Former Member
0 Likes
761

Hi

1- Because the most important softwares/systems are based on object oriented language, so it's easier to link SAP to other systems, because SAP has choosen to use ABAP and JAVA as development languages, and JAVA is OO.

Moreover a OO language is more powerfull to design the layout, now in SAP there are some objects (for example frame control) for the screen they can be created only by OO .

2- Now every thing can be created by classical ABAP and OO ABAP.

Max

Read only

manuel_bassani
Contributor
0 Likes
762

Hi,

in SAP programs you can use object oriented concepts (Classes, objects, interfaces and so on..).

You can organize your programs:

- with classic procedural programming

- with object oriented paradigm

you can define classes in repository (transaction SE24) or local classes (only visible inside the program in which they are declared) using statements CLASS (press F1 in statement CLASS and check ABAP documentation)

BAPI are special function modules and they have nothing to do with object oriented programming (see transaction SE37)

I hope to has been clear

Regards, Manuel

Read only

dani_mn
Active Contributor
0 Likes
761

Hi shaik,

Form 4.7 sap have moved to object oriented approch completey. It's not only limited to bapi's.

You can build CLASSES, OBJECTS in your program. and use inheritance, polymorphism and all other OO concept.

New ALV grid is a good example for this which is build on oo concept.

see the class 'CL_GUI_ALV_GRID' in 'SE24'.

Abap is shifting from structural approch to OO now.

for details check this link.

http://sap.genieholdings.com/abap/OO/index.htm

Regards,

Wasim Ahmed