<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.l1s33, li.l1s33, div.l1s33
        {mso-style-name:l1s33;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#4DA619;}
p.l1s52, li.l1s52, div.l1s52
        {mso-style-name:l1s52;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:blue;}
span.l1s521
        {mso-style-name:l1s521;
        font-family:"Courier New";
        color:blue;
        background:white;}
p.l0s33, li.l0s33, div.l0s33
        {mso-style-name:l0s33;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#4DA619;}
p.l0s52, li.l0s52, div.l0s52
        {mso-style-name:l0s52;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:blue;}
span.l0s521
        {mso-style-name:l0s521;
        font-family:"Courier New";
        color:blue;
        background:white;}
span.l0s331
        {mso-style-name:l0s331;
        font-family:"Courier New";
        color:#4DA619;
        background:white;}
span.l1s522
        {mso-style-name:l1s522;
        font-family:"Courier New";
        color:blue;
        background:white;}
span.l1s331
        {mso-style-name:l1s331;
        font-family:"Courier New";
        color:#4DA619;
        background:white;}
span.l1s523
        {mso-style-name:l1s523;
        font-family:"Courier New";
        color:blue;
        background:white;}
span.l0s332
        {mso-style-name:l0s332;
        font-family:"Courier New";
        color:#4DA619;
        background:white;}
span.l0s333
        {mso-style-name:l0s333;
        font-family:"Courier New";
        color:#4DA619;
        background:white;}
span.EmailStyle31
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:25761407;
        mso-list-type:hybrid;
        mso-list-template-ids:-1275313246 201916431 201916441 201916443 201916431 201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Mark, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Don’t stress about breakpoints... workflow is not a program... a lot of what is happening is happening in different logical units of work. Which is why there is a special option for running the event synchronously from SWUE for the purpose of debugging. But even then a lot is happening in system code and that may be your problem. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ok so... <o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Triple check you have set the Object Category to class before you enter your class name. If it still says “object type” you are probably still in BOR mode. <o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Go to SE24 and test your class – run your constructor method and double check the contents of your M_POR attribute. It should contain the correct object category “CL”, your class name, and your class key. Watch out for extra spaces, dates in wrong formats, etc. Especially with multipart keys. Material number has a nasty little ALPHA conversion exit on it which can cause problems if you haven’t taken that into account. If the M_POR value is not correct then your LPOR method won’t return the right result. Check especially the class name is correct when the ZSUB1 is instantiated, vs instantiation of ZSUPER. <o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Your FIND_BY_LPOR code does not look quite correct. Because RESULT is a much more generic class reference the safe way is to create your object first, and then use the ?= casting function to assign it to RESULT. It may be this that is causing the problem – you could try this in a little test program ... but this is how I would usually code this to avoid unnecessary failures:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Data: lo_zsub1 type ref to zsub1.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>when</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s331><span lang=EN-US style='font-size:10.0pt'>'ZSUB1'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>try</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>create</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> object lo_zsub1 </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>type</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> zZSUB1<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>exporting</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'><br> i_matnr = l_matnr.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> Result ?= lo_zsub1. <br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>catch</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> ......<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>endtry</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jocelyn <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;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 8:51 PM<br><b>To:</b> sap-wug@mit.edu<br><b>Subject:</b> RE: ABAP OO Super/SubClass Event triggering<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Hi Mike/Jocelyn.</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>I think I'm doing what you've said Mike, but the event is not appearing in SWEL. </span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Here's what I've tried in SWUE :</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Object Type 'ZSUB1'</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Event : CREATE</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;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><span style='font-family:"Tahoma","sans-serif"'>doesn't hit breakpoint in ZSUPER.FIND_BY_LPOR or ZSUPER.LPOR</span></strong></span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;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><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Note I can trigger an event of the superclass fine eg ZSUPER.SUPERCREATE, breakpoint is hit and event is created in SWEL.</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>My code is like this...</span><o:p></o:p></p><p class=MsoNormal><span class=l1s521><span lang=EN-US style='font-size:10.0pt'>method</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> bi_persistent~find_by_lpor.<br> </span><span class=l1s521><span lang=EN-US style='font-size:10.0pt'>data</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> : l_matnr </span><span class=l1s521><span lang=EN-US style='font-size:10.0pt'>type</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> matnr.<br><br> l_matnr = lpor-instid.<br> </span><span class=l1s521><span lang=EN-US style='font-size:10.0pt'>case</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> lpor-typeid.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>when</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l0s331><span lang=EN-US style='font-size:10.0pt'>'ZSUPER'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>try</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>create</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>object</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> result </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>type</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> ZSUPER</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>exporting</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'><br> i_matnr = l_matnr.<br> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>catch</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> ....</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l0s521><span lang=EN-US style='font-size:10.0pt'>endtry</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>. <br> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>when</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s331><span lang=EN-US style='font-size:10.0pt'>'ZSUB1'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>try</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>create</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> object result </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>type</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> zZSUB1<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>exporting</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'><br> i_matnr = l_matnr.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>catch</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> ......<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>endtry</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>when</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> </span><span class=l1s331><span lang=EN-US style='font-size:10.0pt'>'ZSUB2'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>try</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>create</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> object result </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>type</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> ZSUB2<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>exporting</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'><br> i_matnr = l_matnr.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>catch</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> .....<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>endtry</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> </span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>endcase</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br></span><span class=l1s522><span lang=EN-US style='font-size:10.0pt'>endmethod</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><span class=l1s523><span lang=EN-US style='font-size:10.0pt'>method</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> BI_PERSISTENT~LPOR.<br>result = me->m_por.<br></span><span class=l1s523><span lang=EN-US style='font-size:10.0pt'>endmethod</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>I fill m_por in the constructor</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>ZSUPER.CONSTRUCTOR</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>...</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>...</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'> me->m_por-catid = </span><span class=l0s332><span lang=EN-US style='font-size:10.0pt'>'CL'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> me->m_por-typeid = </span><span class=l0s332><span lang=EN-US style='font-size:10.0pt'>'ZSUPER'</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>.<br> me->m_por-instid = me->matnr.</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>...</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>...</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>...</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>ZSUB1.CONSTRUCTOR</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'>super->constructor( i_matnr ).</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> me->m_por-typeid = </span><span class=l0s333><span lang=EN-US style='font-size:10.0pt'>'ZSUB1'.</span></span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <br></span><span class=l0s333><span lang=EN-US style='font-size:10.0pt'>But none of this code seems to be executed as my breakpoint is NOT being hit!!</span></span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br> <br></span><span class=l0s333><span lang=EN-US style='font-size:10.0pt'>Mark</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:black;background:white'><o:p> </o:p></span></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> 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<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'>Mark, <br>Can you send through your code for the FIND_BY_LPOR and LPOR classes please?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'>They are usually only a few lines long. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'>Should be easy to spot the problem.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'>Jocelyn<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:Consolas;color:black;background:white'>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</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>Hi Mark,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>It's certainly possible, what precisely does "having problems" entail? If<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>you raise an event ZSUB.CREATED, that's exactly what you should see in<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>SWEL. If this is the case then your problem is elsewere.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>You're probably on the right track looking at FIND_BY_LPOR, as that can be<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>tricky to get right. Bear in mind that FIND_BY_LPOR is static and thus<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>cannot be redefined, thus you will need to ensure that the correct class<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>(TYPEID) is retained in your LPOR structure for each instance.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>Breakpoints are a bit fluffy at times, make sure your breakpoint debugs by<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>just using ZSUPER everywhere, then move the trigger back to ZSUB.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>Hope that helps,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;color:black;background:white'>Mike<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white'><o:p> </o:p></span></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'> 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<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;background:white'>Hi all,<br> <br>I have an abap object class that is workflow enabled ie using IF_WORKFLOW interface.<br> <br>I want to create several 'flavours' of this class (ZSUB1) using the original abap class (ZSUPER) as the superclass.<br> <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> <br>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?<br> <br>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?<br> <br>What am I missing?<br> <br> <br>Mark<o:p></o:p></span></p></div></body></html>