<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=491260900-11052006><FONT face=Arial 
color=#0000ff size=2>Markus, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491260900-11052006><FONT face=Arial 
color=#0000ff size=2>Your wrapper function should do a CREATE OBJECT 
statement..... this does work. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491260900-11052006></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=491260900-11052006><FONT face=Arial 
color=#0000ff size=2>Leave the LPOR methods to internal workflow. 
</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN 
lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn 
Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT face=Arial 
color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>Level 1/168 Walker 
St.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>North Sydney </FONT></SPAN><BR><SPAN lang=en-us><FONT face=Arial 
color=#808080 size=1>NSW, 2060</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>Australia</FONT></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>T&nbsp;&nbsp; +61 412 390 
267</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>M&nbsp;&nbsp; + 61 412 390 267</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>E&nbsp;&nbsp; jocelyn.dart@sap.com</FONT></SPAN> 
<BR><SPAN lang=en-us><FONT face=Arial color=#808080 size=1><A 
href="http://www.sap.com/">http://www.sap.com</A></FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>The 
information contained in or attached to this electronic transmission is 
confidential and may be legally privileged. It is intended only for the person 
or entity to which it is addressed. If you are not the intended recipient, you 
are hereby notified that any distribution, copying, review, retransmission, 
dissemination or other use of this electronic transmission or the information 
contained in it is strictly prohibited. If you have received this electronic 
transmission in error, please immediately contact the sender to arrange for the 
return of the original documents. </FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Electronic 
transmission cannot be guaranteed to be secure and accordingly, the sender does 
not accept liability for any such data corruption, interception, unauthorized 
amendment, viruses, delays or the consequences thereof.</FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Any views 
expressed in this electronic transmission are those of the individual sender, 
except where the message states otherwise and the sender is authorized to state 
them to be the views of SAP AG or any of its subsidiaries. SAP AG, its 
subsidiaries, and their directors, officers and employees make no representation 
nor accept any liability for the accuracy or completeness of the views or 
information contained herein. Please be aware that the furnishing of any pricing 
information/ business proposal herein is indicative only, is subject to change 
and shall not be construed as an offer or as constituting a binding agreement on 
the part of SAP AG or any of its subsidiaries to enter into any relationship, 
unless otherwise expressly stated. </FONT></SPAN></P>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Markus 
Klein<BR><B>Sent:</B> Wednesday, 10 May 2006 6:00 PM<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> RE: ABAP OO and Workflow (Events, Get a handle 
etc)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2>Hello,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2>1.) This is exactly what i have done. I developed a wrapper 
method (static) which calls the find~by~lpor method. This wrapper method is 
implemented in a task in my workflow and returns an instance. Unfortunatelly the 
returned instance is always initial in my workflow even tho the key which gets 
passted to the task is a valid key. As the task is exectuted by the background 
user wf-batch i cant debug it. So its hard to figure what is running wrong :( 
....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790235307-10052006><FONT face=Arial 
color=#0000ff size=2>Markus</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV class=Section1>
<P style="tab-stops: 36.0pt" align=left><SPAN lang=EN-GB 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">______________________________________<BR><BR><STRONG><SPAN 
style="FONT-FAMILY: Arial">ABS Team 
GmbH</SPAN></STRONG><B><BR></B>SAP-Consulting, Human Capital Management<BR><SPAN 
style="COLOR: black">Muehlenweg 65<BR>37120 Bovenden</SPAN></SPAN><SPAN 
lang=EN-GB style="mso-ansi-language: EN-GB"><o:p></o:p></SPAN></P>
<P style="tab-stops: 36.0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Markus Klein<BR>SAP 
Consultant<BR></SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">eMail:<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp; </SPAN>klein@abs-team.de<BR>Tel.:<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>+49 551 820 33 
0<BR>Mobil:<SPAN style="mso-tab-count: 1">&nbsp;&nbsp; </SPAN>+49 151 126 23 
047<BR>Fax:<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>+49 551 820 33 99<BR><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN><SPAN style="COLOR: black"><A 
href="http://www.abs-team.com/">www.abs-team.com</A></SPAN><o:p></o:p></SPAN></P></DIV>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart, 
Jocelyn<BR><B>Sent:</B> Wednesday, May 10, 2006 9:27 AM<BR><B>To:</B> SAP 
Workflow Users' Group<BR><B>Subject:</B> RE: ABAP OO and Workflow (Events, Get a 
handle etc)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=654542007-10052006><FONT face=Arial 
color=#0000ff size=2>Restrictions in 6.20 are:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=654542007-10052006><FONT face=Arial 
color=#0000ff size=2>* No functional methods (which is sad but you'll 
live)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=654542007-10052006><FONT face=Arial 
color=#0000ff size=2>* Some small changes in persistent object handling (again 
sad but liveable). </FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff size=2>1. 
Always add a CREATEINSTANCE static method to your ABAP OO object.&nbsp; This 
method should accept in your object key, do a create object step, and catch any 
exceptions (e.g. object does not exist) and return the object in a returning 
parameter. You can then call the CREATEINSTANCE step in a 
task.&nbsp;&nbsp;&nbsp; Double check your binding - I often find it easier to 
bind directly to the returning parameter rather than use the _WI_Object element. 
</FONT></SPAN></DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff size=2>Note: 
You are not permitted to call the Constructor method directly in a task, and 
likewise leave all the LPOR stuff alone -that's for internal use by the workflow 
engine only.&nbsp; In NW04s you don't even get to choose those methods when you 
create a task so best not to touch them at all. </FONT></SPAN></DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff size=2>2. 
Absolutely use ABAP OO Events.&nbsp; You should only use BOR events if you have 
an SAP provided BOR object and no way of raising an OO event due to the way that 
applications config works.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=654542007-10052006><FONT face=Arial color=#0000ff size=2>Change 
documents let you raise ABAP OO events without any problems at all... and of 
course you can always raise ABAP OO events from user exits, BADIs, custom 
programs, etc. </FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Arial size=1>Regards,</FONT></SPAN> <BR><SPAN 
lang=en-us><B><FONT face=Arial color=#000080 size=1>Jocelyn 
Dart</FONT></B></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>Senior Consultant</FONT></SPAN> <BR><SPAN lang=en-us><B><FONT face=Arial 
color=#808080 size=1>SAP Australia Pty Ltd.</FONT></B></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>Level 1/168 Walker 
St.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>North Sydney </FONT></SPAN><BR><SPAN lang=en-us><FONT face=Arial 
color=#808080 size=1>NSW, 2060</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>Australia</FONT></SPAN> <BR><SPAN 
lang=en-us><FONT face=Arial color=#808080 size=1>T&nbsp;&nbsp; +61 412 390 
267</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Arial color=#808080 
size=1>M&nbsp;&nbsp; + 61 412 390 267</FONT></SPAN> <BR><SPAN lang=en-us><FONT 
face=Arial color=#808080 size=1>E&nbsp;&nbsp; jocelyn.dart@sap.com</FONT></SPAN> 
<BR><SPAN lang=en-us><FONT face=Arial color=#808080 size=1><A 
href="http://www.sap.com/">http://www.sap.com</A></FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>The 
information contained in or attached to this electronic transmission is 
confidential and may be legally privileged. It is intended only for the person 
or entity to which it is addressed. If you are not the intended recipient, you 
are hereby notified that any distribution, copying, review, retransmission, 
dissemination or other use of this electronic transmission or the information 
contained in it is strictly prohibited. If you have received this electronic 
transmission in error, please immediately contact the sender to arrange for the 
return of the original documents. </FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Electronic 
transmission cannot be guaranteed to be secure and accordingly, the sender does 
not accept liability for any such data corruption, interception, unauthorized 
amendment, viruses, delays or the consequences thereof.</FONT></SPAN></P>
<P><SPAN lang=en-au><FONT face="Times New Roman" color=#ff0000 size=1>Any views 
expressed in this electronic transmission are those of the individual sender, 
except where the message states otherwise and the sender is authorized to state 
them to be the views of SAP AG or any of its subsidiaries. SAP AG, its 
subsidiaries, and their directors, officers and employees make no representation 
nor accept any liability for the accuracy or completeness of the views or 
information contained herein. Please be aware that the furnishing of any pricing 
information/ business proposal herein is indicative only, is subject to change 
and shall not be construed as an offer or as constituting a binding agreement on 
the part of SAP AG or any of its subsidiaries to enter into any relationship, 
unless otherwise expressly stated. </FONT></SPAN></P>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Markus 
Klein<BR><B>Sent:</B> Wednesday, 10 May 2006 4:51 PM<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> ABAP OO and Workflow (Events, Get a handle 
etc)<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>Hello 
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>i am currently 
implementing Workflows baseing on ABAP OO in a 6.20 System (yes i know there are 
some restrictions, just dont know&nbsp;much about these restrictions, as i 
havent yet found any valuable infos).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>I do facing some 
problems and need some ideas:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>1. How do i get a 
handle of a ABAP OO class (included the IF_WORKFLOW as well as implementation of 
the respective Methods (find~by~lpor etc)) in my workflow container at 
runtime?.&nbsp;I do start the workflow with the WAPI-FB to start a workflow. So 
far i have tried to wrapp the find~by~lpor&nbsp;method in another static method 
which is called from my workflow. I do pass a key to the task which implements 
the wrapper method. The task passes the key to the method and the 
method&nbsp;should&nbsp;return a handle which will then passed back to the 
workflow. Everthing on the data-level is fine, meaning the key is a&nbsp;valid 
key (did&nbsp;run the class in testmode and called the wrapper method with 
that&nbsp;key and i do get a valied handle back)&nbsp;. Unfortuantelly the 
container element of the workflow which should hold the returned handle is 
always empty.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>2. Is it recommend 
to use EVENTS as part of ABAP OO to control workflows or&nbsp;should i 
better&nbsp;go with a BOR implementation for that matter?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=091293506-10052006>thanks 
:)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006>regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=091293506-10052006>Markus</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV class=Section1>
<P style="tab-stops: 36.0pt" align=left><SPAN lang=EN-GB 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">______________________________________<BR><BR><STRONG><SPAN 
style="FONT-FAMILY: Arial">ABS Team 
GmbH</SPAN></STRONG><B><BR></B>SAP-Consulting, Human Capital Management<BR><SPAN 
style="COLOR: black">Muehlenweg 65<BR>37120 Bovenden</SPAN></SPAN><SPAN 
lang=EN-GB style="mso-ansi-language: EN-GB"><o:p></o:p></SPAN></P>
<P style="tab-stops: 36.0pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Markus Klein<BR>SAP 
Consultant<BR></SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">eMail:<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp; </SPAN>klein@abs-team.de<BR>Tel.:<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>+49 551 820 33 
0<BR>Mobil:<SPAN style="mso-tab-count: 1">&nbsp;&nbsp; </SPAN>+49 151 126 23 
047<BR>Fax:<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>+49 551 820 33 99<BR><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN><SPAN style="COLOR: black"><A 
href="http://www.abs-team.com/">www.abs-team.com</A></SPAN><o:p></o:p></SPAN></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>