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: 

object oriented programming

former_member611341
Participant
0 Kudos

Hello guys..

iam new to object oriented programming..i need to knoe basic information and sample programmes to understand it.

whats main diff ABAP prog and OO prog.

thanks..

5 REPLIES 5

Former Member
0 Kudos

Hi,

Goto transaction <b>ABAPDOCU</b> --> ABAP Objects.

Lot of programs there based on OOPS concept.

Check the below links too:

http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm

Regards,

Prakash.

Former Member
0 Kudos

Aday,

I would suggest that you take SAP's BC401 - ABAP Objects.

The differences are large. This class will introduce you to the ideas of OOP.

The goal of OOP is reusable code (objects). "Standard" ABAP is more procedural in nature - based on it's roots in COBOL, Pascal, etc.

Former Member
0 Kudos

Hello Aday,

Check the syntax and examples in the F1 help in the workbench.

Go to Transaction code SE80. Enter the syntax..Place the cursor on the class and press F1. It helps you all the features in ABAP with best syntax and examples..

Example

CLASS C_COUNTER DEFINITION.

PUBLIC SECTION.

METHODS: SET_COUNTER IMPORTING VALUE(SET_VALUE) TYPE I,

INCREMENT_COUNTER,

GET_COUNTER EXPORTING VALUE(GET_VALUE) TYPE I.

PRIVATE SECTION.

DATA COUNT TYPE I.

ENDCLASS.

CLASS C_COUNTER IMPLEMENTATION.

METHOD SET_COUNTER.

...

ENDMETHOD.

METHOD INCREMENT_COUNTER.

...

ENDMETHOD.

METHOD GET_COUNTER.

...

ENDMETHOD.

ENDCLASS.

Regards

Madhavi.

Former Member