Dear Experts,
I have a firm foundation in Object oriented concepts as I have been in J2EE and C++ . Now I am in abap for the last 2 Years But yet I am not able to get myself fully into OO Reports in ABAP. I tried searching for in the forum and wiki but didn't find the exact answers there. Mostly people talk about OO ALV . And for OO reports the examples given are car and vehicle sort of things and not in terms of FI Documents or Materials and Inventory. Even if you find one, they will suggest using static methods instead of forms. Again in this case I feel this is not the best use of OOPS but just to replace Procedural with Object oriented.
I am well aware with the concepts and If I have a UML/ Use Case in front of me I can write the code. But my problem is I am able to frame the UML. I know about MVC architecture but am getting afraid to put into OOPS because the procedural makes it too simple and fast .
Say take an example of material. We can either declare a type say ty_material with the required fields or a class say lcl_material with all the fields as attributes.
I am not able to express my confusions.
I will be really thankful if some one can give me a few REAL OBJECT ORIENTED report that can help me getting started.
With Great Hopes,
KG
Hello Kumar
If you are looking for hard-core ABAP-OO programming then have a look at the RE-FX (Flexible Real Estate) component of SAP.
Without deep understanding of OO-concepts you will be totally lost in these applications.
Regards
Uwe
Hello Kumar
I have found my RE-FX example which I published some time ago in the SDN:
[Understanding ABAP Objects|http://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/UnderstandingABAPObjects]
Regards
Uwe
Hello Uwe,
Though the RE-FX was not relevant to me, but what i really appreciated in the Wiki are the sections "Comparing Classical vs. ABAP Objects Approach" & "Conclusions".
I have a question though. I am more or less comfortable with the concepts(although i've not used too many of them) but i am still not able to relate OO principles to day-to-day scenarios. If you have read Horst Keller's OO-ABAP book, you'll understand where i'm coming from.
E.g., In the book he relates EVENTS in OO-ABAP to the scenario of a pilot / passenger are calling for the service of a flight attendant.
Do you think that this kind of perception is a "must"?
I console myself saying, "May be i'm in the phase of the transition from Procedural ABAP to OO-ABAP. Hence this lack of visualisation!" ![]()
Will be really happy to hear your comments!
Cheers,
Suhas