09-18-2006 5:52 PM
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..
09-18-2006 5:57 PM
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.
09-18-2006 6:26 PM
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.
09-18-2006 7:58 PM
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.
09-18-2006 8:10 PM
Hi,
Go through the book,
http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
Regards,
Azaz.
09-19-2006 1:19 AM
Hi Aday,
You can go through these documents that I have uploaded.
http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
<b>Award points if found useful.</b>
Regards,
SP.