ABAP OO and Workflow

Gavin Mooney gavinmooney at gmail.com
Tue Nov 14 06:53:13 EST 2006


Dude,

Did you get any replies to this or did you log it with OSS? Right now
I would like to implement some OO and I see from various ABAP OO posts
that Jocelyn heartily recommends using OO instead of the BOR now.

But the question is - if there's already a BOR object and SAP doesn't
provide an OO one, and perhaps you want to use events that the system
already raises on the BOR object, why would you spend the extra effort
creating an OO class?

One thing I did see is Jocelyn said you could create your OO class and
then add the BOR object as an attribute (not sure at the moment what
the means but guess I can figure it out) which I guess would give you
access to the attributes of the BOR object (but not the methods?).

Also - I see that now a lot of the standard code is calling class
methods, etc. But if you're still using FMs (like ISU_S_etc) then is
it acceptable to call a FM from a class method?

Hope all's good,
Gav

2006/9/25, Alon Raskin <araskin at 3i-consulting.com>:
> Version: SAP ECC 6.0
>
> Well I have finally found myself in a position to implement some Workflow using ABAP OO. One thing I did notice is that many of the 'business classes' delivered by SAP are marked as Private instantiation. Problem with this is that I can not create a sub-type of this class to add the IF_WORKFLOW interface.
>
> I suppose one way around this is rather then inheritance I can simply create my own class which has an instance of the business class. I really don't like this as it messes up my model and reduces the reuse I can gain by using OO. Does anyone think I should log this as an OSS (to see if SAP will agree to change the instantiation scope)? Has anyone successfully (or unsuccessfully) tried this?
>
> Alon
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>



More information about the SAP-WUG mailing list