<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Woops, embarrassing moment, I had a restriction on the event trace, wouldn't mind but it was me that put it on!!<BR>
&nbsp;<BR>
So the event was triggering for my subclass all along. <BR>
&nbsp;<BR>
Jocelyn just got your mail, thankyou,&nbsp;I'll be implementing&nbsp;your recommendations in any case. <BR>
&nbsp;<BR>
One more thing....<BR>
&nbsp;<BR>
Ideally I would like to define my events on the superclass, and then just trigger the events from the subclass, I've tried this and it works but.....<BR>
&nbsp;<BR>
.... any receivers linked to that event still get triggered irrecpective of the class triggering the event. Is there anything I can do about this?<BR>
Eg<BR>
In trns SWETYPV ZSUPER.CREATE is linked to WF1<BR>
and ZSUB1.CREATE is linked to WF2.<BR>
&nbsp;<BR>
If I trigger ZSUB1.CREATE both WF1 and WF2 are started, but I only want WF2 to start. Same happens when I trigger ZSUPER.CREATE.<BR>
&nbsp;<BR>
Mark<BR>

<HR id=stopSpelling>
<BR>
From: mark_daley@hotmail.com<BR>To: sap-wug@mit.edu<BR>Subject: RE: ABAP OO Super/SubClass Event triggering<BR>Date: Thu, 16 Jun 2011 10:51:12 +0000<BR><BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</STYLE>

<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Hi Mike/Jocelyn.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">I think I'm doing what you've said Mike, but the event is not appearing in SWEL. </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Here's what I've tried in&nbsp;SWUE :</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Object Type 'ZSUB1'</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Event : CREATE</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">I put in object key etc and then click create event, message says 'Event Created - at least one receiver found'..... BUT no event in SWEL and <STRONG>doesn't hit breakpoint in ZSUPER.FIND_BY_LPOR or ZSUPER.LPOR</STRONG></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">If I try ZSUPER with CREATE, I rightly get error saying event does not exist as the event is on ZSUB1 not ZSUPER.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Note I can trigger an event of the superclass fine eg&nbsp;ZSUPER.SUPERCREATE, breakpoint is hit and event is created in SWEL.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">My code is like this...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
<STYLE>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .ecxL1S33
{color:#4DA619;}
.ExternalClass .ecxL1S52
{color:#0000FF;}
</STYLE>
<SPAN><SPAN class=ecxL1S52>method</SPAN>&nbsp;bi_persistent~find_by_lpor.<BR>&nbsp;&nbsp;<SPAN class=ecxL1S52>data</SPAN>&nbsp;:&nbsp;l_matnr&nbsp;<SPAN class=ecxL1S52>type</SPAN>&nbsp;matnr.<BR><BR>&nbsp;&nbsp;l_matnr&nbsp;=&nbsp;lpor-instid.<BR>&nbsp;&nbsp;<SPAN class=ecxL1S52>case</SPAN>&nbsp;lpor-typeid.</SPAN></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN>&nbsp;&nbsp;&nbsp; 
<STYLE>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .ecxL0S33
{color:#4DA619;}
.ExternalClass .ecxL0S52
{color:#0000FF;}
</STYLE>
<SPAN><SPAN class=ecxL0S52>when</SPAN>&nbsp;<SPAN class=ecxL0S33>'ZSUPER'</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL0S52>try</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL0S52>create</SPAN>&nbsp;<SPAN class=ecxL0S52>object</SPAN>&nbsp;result&nbsp;<SPAN class=ecxL0S52>type</SPAN>&nbsp;ZSUPER</SPAN></SPAN></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL0S52>exporting</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i_matnr&nbsp;=&nbsp;l_matnr.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL0S52>catch</SPAN>&nbsp;....</SPAN></SPAN></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN><SPAN></SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL0S52>endtry</SPAN>.</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;</SPAN></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN>&nbsp;&nbsp; &nbsp;<SPAN class=ecxL1S52>when</SPAN>&nbsp;<SPAN class=ecxL1S33>'ZSUB1'</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>try</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>create</SPAN>&nbsp;object&nbsp;result&nbsp;<SPAN class=ecxL1S52>type</SPAN>&nbsp;zZSUB1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>exporting</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i_matnr&nbsp;=&nbsp;l_matnr.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>catch</SPAN>&nbsp;......<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>endtry</SPAN>.<BR>&nbsp;&nbsp;&nbsp;</SPAN></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><SPAN>&nbsp;&nbsp; &nbsp;<SPAN class=ecxL1S52>when</SPAN>&nbsp;<SPAN class=ecxL1S33>'ZSUB2'</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>try</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>create</SPAN>&nbsp;object&nbsp;result&nbsp;<SPAN class=ecxL1S52>type</SPAN>&nbsp;ZSUB2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>exporting</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i_matnr&nbsp;=&nbsp;l_matnr.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>catch</SPAN>&nbsp;.....<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxL1S52>endtry</SPAN>.<BR>&nbsp;&nbsp;<SPAN class=ecxL1S52>endcase</SPAN>.<BR><SPAN class=ecxL1S52>endmethod</SPAN>.</SPAN> </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">&nbsp; 
<STYLE>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .ecxL1S52
{color:#0000FF;}
</STYLE>
<SPAN><SPAN class=ecxL1S52>method</SPAN>&nbsp;BI_PERSISTENT~LPOR.<BR>result&nbsp;=&nbsp;me-&gt;m_por.<BR><SPAN class=ecxL1S52>endmethod</SPAN>.</SPAN> </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">I fill m_por in the constructor</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">ZSUPER.CONSTRUCTOR</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">&nbsp; 
<STYLE>
.ExternalClass SPAN
{font-family:'Courier New';font-size:10pt;color:#000000;background:#FFFFFF;}
.ExternalClass .ecxL0S33
{color:#4DA619;}
</STYLE>
<SPAN>&nbsp;me-&gt;m_por-catid&nbsp;=&nbsp;<SPAN class=ecxL0S33>'CL'</SPAN>.<BR>&nbsp;&nbsp;me-&gt;m_por-typeid&nbsp;=&nbsp;<SPAN class=ecxL0S33>'ZSUPER'</SPAN>.<BR>&nbsp;&nbsp;me-&gt;m_por-instid&nbsp;=&nbsp;me-&gt;matnr.</SPAN> </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">...</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT color=#000000><FONT face=Tahoma><SPAN class=ecxL0S33></SPAN></FONT></FONT></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT color=#000000><FONT face=Tahoma><SPAN class=ecxL0S33></SPAN></FONT></FONT></SPAN>&nbsp;</P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT color=#000000><FONT face=Tahoma><SPAN class=ecxL0S33></SPAN></FONT></FONT></SPAN>&nbsp;<BR><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT face=Tahoma color=#000000><SPAN class=ecxL0S33>But none of this code seems to be executed as my breakpoint is NOT being hit!!</SPAN></FONT></SPAN><BR><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT face=Tahoma color=#000000><SPAN class=ecxL0S33></SPAN></FONT></SPAN>&nbsp;<BR><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT face=Tahoma color=#000000><SPAN class=ecxL0S33>Mark</SPAN></FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><FONT color=#000000><FONT face=Tahoma><BR>
<P class=ecxMsoNormal><BR></P></FONT></FONT></SPAN>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></SPAN></B>&nbsp;</P>
<P class=ecxMsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart, Jocelyn<BR><B>Sent:</B> 16 June 2011 10:02<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Subject:</B> RE: ABAP OO Super/SubClass Event triggering</SPAN></P>
<P class=ecxMsoNormal><FONT face="Times New Roman" size=3>&nbsp;</FONT></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Mark, <BR>Can you send through your code for the FIND_BY_LPOR and LPOR classes please?</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">They are usually only a few lines long. </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Should be easy to spot the problem.</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Regards,</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Jocelyn</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;</SPAN></P><SPAN lang=EN-AU style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
<P class=ecxMsoPlainText><SPAN lang=EN-US><FONT face=Consolas color=#000000 size=3>From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf Of Mike Pokraka<BR>Sent: 15 June 2011 17:39<BR>To: SAP Workflow Users' Group<BR>Subject: Re: ABAP OO Super/SubClass Event triggering</FONT></SPAN></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>Hi Mark,</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>It's certainly possible, what precisely does "having problems" entail? If</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>you raise an event ZSUB.CREATED, that's exactly what you should see in</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>SWEL. If this is the case then your problem is elsewere.</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>You're probably on the right track looking at FIND_BY_LPOR, as that can be</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>tricky to get right. Bear in mind that FIND_BY_LPOR is static and thus</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>cannot be redefined, thus you will need to ensure that the correct class</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>(TYPEID) is retained in your LPOR structure for each instance.</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>Breakpoints are a bit fluffy at times, make sure your breakpoint debugs by</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>just using ZSUPER everywhere, then move the trigger back to ZSUB.</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>Hope that helps,</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT size=3><FONT color=#000000><FONT face=Consolas>Mike</FONT></FONT></FONT></P>
<P class=ecxMsoPlainText><FONT face=Consolas color=#000000 size=3>&nbsp;</FONT></P>
<P class=ecxMsoNormal></SPAN>&nbsp;</P>
<P class=ecxMsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Mark Daley<BR><B>Sent:</B> Thursday, 16 June 2011 12:44 AM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> ABAP OO Super/SubClass Event triggering</SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU><FONT face="Times New Roman" size=3>&nbsp;</FONT></SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-AU style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Hi all,<BR>&nbsp;<BR>I have an abap object class that is workflow enabled ie&nbsp;using IF_WORKFLOW interface.<BR>&nbsp;<BR>I want to create several 'flavours' of this class (ZSUB1) using the original abap class (ZSUPER)&nbsp;as the superclass.<BR>&nbsp;<BR>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. <BR>&nbsp;<BR>This all seems fine, but I'm having problems trying to trigger an event of the subclass&nbsp;eg ZSUB.CREATE? Is it possible to do this?<BR>&nbsp;<BR>I've tried to debug whats happening using SWUE by&nbsp;puting &nbsp;a breakpoint in the FIND_BY_LPOR method of ZSUPER but it&nbsp;does not even get executed?<BR>&nbsp;<BR>What am I missing?<BR>&nbsp;<BR>&nbsp;<BR>Mark</SPAN></P>                                               </body>
</html>