‎2007 Jun 01 10:03 AM
Hi there,
I am looking for a good book on ABAP Objects for a beginner in OOPS. Can you pls suggest a couple of good books?
Appreciate your help.
Thanks,
Hitesh
‎2007 Jun 01 10:05 AM
Hi Hitesh,
Check the book by Horst Keller.
http://www.sappressbooks.com/downloads/h958_preview.pdf
Also check <b>"ABAP Objects: Introduction to Programming SAP Applications" by Horst Keller (Author), Sascha Kruger (Author)</b>
You can also see SAP Library and transaction ABAPDOCU for example programs on ABAP Objects.
Check following links also.
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
Send me your mail ID. I will pass u a useful ppt.
Award points if found useful.
Regards
Indrajit
‎2007 Jun 01 10:22 AM
Hi Indrajit,
Thanks for the quick reply. I actually came across this book y'day on the sap press. But the confusion was: there is another book from this author (see below link)
http://books.google.com/books?id=vyQyAAAACAAJ&dq=abapobjectsbook
so the questions are:
- which one of this is better?
- arent there any other authours for this topic? or is this author "the best"?
Have you personally read any of these books?
Thanks,
Hitesh
‎2007 Jun 01 10:25 AM
Hi Hitesh,
The first book by Horst Keller whose pdf link i have mentioned is the best according to me. But any of his other books are also fine because Horst really expalins well in his books. Start of with the PDF and take referenece from other sources i have mentioened and please make sure you are using SDN - because nothing can be better than SDN as far as SAP is concerned.
Award points if found useful.
Regards
Indrajit
‎2007 Jun 01 10:31 AM
I would think that it makes sense to go for the latest version, which released in May. You can catch the author, Horst, talk abt it in this <a href="/people/horst.keller/blog/2007/05/06/finally-shipping. There is a contact email in the comments - maybe you could contact him directly with further questions?
Sudha
‎2007 Dec 07 4:03 PM
Hi Indrajeet,
As mentioned in your reply below, can you pls send me the ppt that you are referring to ? email: hiteshbhansali@yahoo.com
Thanks a lot,
hitesh
‎2007 Jun 01 10:30 AM
Hi,
Abap Objects
Introduction to Programming Sap Applications
Author : Horst Keller et Sascha Kruger
Thanks,
Anitha
‎2007 Dec 07 4:33 PM
Hitesh,
OO ABAP is nothing but a class-method apprach to write ABAP codes and define them : below are few of the
informations which will be of help for a newbie :
Types of attributes and the basic concepts :
Public attributes
Private attributes
Instance attributes
Static attributes
Public methods
Private methods
Constructor method
Static constructor
Protected components
Polymorphism
Public attributes
Public attributes are defined in the PUBLIC section and can be viewed and changed from outside the class.
There is direct access to public attributes. As a general rule, as few public attributes should be defined
as possible.
PUBLIC SECTION.
DATA: Counter type i.
Private attributes
Private attributes are defined in the PRIVATE section. The can only be viewes and changed from within the
class. There is no direct access from outside the class.
PRIVATE SECTION.
DATA: name(25) TYPE c,
planetype LIKE saplane-planetyp,
Instance attributes
There exist one instance attribute for each instance of the class, thus they exist seperately for each
object. Instance attributes are declared with the DATA keyword.
Static attributes
Static attributes exist only once for each class. The data are the same for all instances of the class, and
can be used e.g. for instance counters. Static attributes are defined with the keyword CLASS-DATA.
PRIVATE SECTION.
CLASS-DATA: counter type i,
Public methods
Can called from outside the class
PUBLIC SECTION.
METHODS: set_attributes IMPORTING p_name(25) TYPE c,
p_planetype LIKE saplane-planetyp,
Private methods
Can only be called from inside the class. They are placed in the PRIVATE section of the class.
Constructor method
Implicitly, each class has an instance constructor method with the reserved name constructor and a static
constructor method with the reserved name class_constructor.
The instance constructor is executed each time you create an object (instance) with the CREATE OBJECT
statement, while the class constructor is executed exactly once before you first access a class.
The constructors are always present. However, to implement a constructor you must declare it explicitly
with the METHODS or CLASS-METHODS statements. An instance constructor can have IMPORTING parameters and
exceptions. You must pass all non-optional parameters when creating an object. Static constructors have no
parameters.
Static constructor
The static constructor is always called CLASS_CONSTRUCTER, and is called autmatically before the clas is
first accessed, that is before any of the following actions are executed:
Creating an instance using CREATE_OBJECT
Adressing a static attribute using <classname>->
Calling a ststic attribute using CALL METHOD
Registering a static event handler
Registering an evetm handler method for a static event
The static constructor cannot be called explicitly.
Protected components
When we are talking subclassing and enheritance there is one more component than Public and Private, the
Protected component. Protected components can be used by the superclass and all of the subclasses. Note
that Subclasses cannot access Private components.
Polymorphism
Polymorphism: When the same method is implemented differently in different classes. This can be done using
enheritance, by redefining a method from the superclass in subclasses and implement it differently.
follow this link ABAP OBJECTS with good examples.......
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
check the below links lot of info and examples r there
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
Check this cool weblog:
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
😎 http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
these are the links
Check this for basic concepts of OOPS
Tabstrip
Editable ALV
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sap-img.com/abap/what-is-alv-programming.htm
http://www.sap-img.com/abap-function.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
http://www.sap-img.com/abap-function.htm
Classical ALV:
http://www.geocities.com/mpioud/Abap_programs.html
OOPS ALV:
Regards,
Satish
‎2007 Dec 08 7:16 AM
Hi Hitesh
I think ABAP is a difficult language in which to learn OO techniques and principles. Java is a much better language to learn such things.
I programmed classic ABAP for many years, then did the ABAP Objects course, but still couldn't really get to grips with OO programming. So, I bought "Head First Java" from O'Reilly Press, the only "teach-yourself" book I've ever worked all the way through, and learned OO programming using Java.
I then took the techniques I'd learned with Java, and applied it to ABAP Objects. I'm now proficient in OO programming in ABAP. And have the added bonus of knowing Java as well!
matt