ABAP OO Super/SubClass Event triggering

Mike Pokraka wug at workflowconnections.com
Wed Jun 15 12:39:24 EDT 2011


Hi Mark,

It's certainly possible, what precisely does "having problems" entail? If
you raise an event ZSUB.CREATED, that's exactly what you should see in
SWEL. If this is the case then your problem is elsewere.

You're probably on the right track looking at FIND_BY_LPOR, as that can be
tricky to get right. Bear in mind that FIND_BY_LPOR is static and thus
cannot be redefined, thus you will need to ensure that the correct class
(TYPEID) is retained in your LPOR structure for each instance.

Breakpoints are a bit fluffy at times, make sure your breakpoint debugs by
just using ZSUPER everywhere, then move the trigger back to ZSUB.

Hope that helps,
Mike

On Wed, June 15, 2011 3:44 pm, Mark Daley wrote:
>
> Hi all,
>
> I have an abap object class that is workflow enabled ie using IF_WORKFLOW
> interface.
>
> I want to create several 'flavours' of this class (ZSUB1) using the
> original abap class (ZSUPER) as the superclass.
>
> My understanding from what I've read in Workflow book and blogs, is that I
> need to reference the ZSUB1 instance in my workflow and I will have access
> to methods of the super class.
>
> This all seems fine, but I'm having problems trying to trigger an event of
> the subclass eg ZSUB.CREATE? Is it possible to do this?
>
> I've tried to debug whats happening using SWUE by puting  a breakpoint in
> the FIND_BY_LPOR method of ZSUPER but it does not even get executed?
>
> What am I missing?
>
>
> Mark 		 	   		  _______________________________________________
> 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