<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=537035622-17092008><FONT face=Arial 
color=#0000ff size=2>Yes correct. We use OO classes as BOR and by attaching the 
class it appears as an attachment and by clicking it it will run the default 
class (your enhancement). If you need an example let me 
know.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-au><FONT face=Arial size=2>Regards </FONT></SPAN><BR><SPAN 
lang=en-au><B><FONT face=Arial size=2>Anthony Read</FONT></B></SPAN> </P>
<P><SPAN lang=en-au><B><FONT face=Arial size=2>SAP ABAP 
Consultant</FONT></B></SPAN> <BR><B><SPAN lang=pt><FONT face=Arial 
color=#000000>Woodside SAP Services</FONT></SPAN><SPAN lang=en-au></SPAN></B> 
<BR><SPAN lang=en-au><FONT face=Arial color=#008000 
size=2>Tel&nbsp;&nbsp;&nbsp;&nbsp; +61 (08) 9348 4428</FONT></SPAN> <BR><SPAN 
lang=en-au><FONT face=Arial color=#008000 size=2>Fax&nbsp;&nbsp;&nbsp; +61 (08) 
9348 5387</FONT></SPAN> <BR><SPAN lang=en-au><FONT face=Arial color=#ff0000 
size=2>Anthony.read@woodside.com.au</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>Gavin 
Mooney<BR><B>Sent:</B> Wednesday, 17 September 2008 3:19 PM<BR><B>To:</B> SAP 
Workflow Users' Group<BR><B>Subject:</B> Re: Work item to call an 
enhancement<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi Tony, </DIV>
<DIV>&nbsp;</DIV>
<DIV>Let me check if I've understood you correctly. I create a new BOR object 
which has a default method which executes the enhancement. I bind in this object 
so it appears as a link in the work item. Then the user can click on it to 
execute the enhancement if needed? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Could I do that with an OO class - can you just bind an OO instance in to a 
work item so it appears as a link?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I think this approach would work, although it seems a shame to create a new 
object/class just for the purpose. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks, </DIV>
<DIV>Gavin<BR><BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 17/09/2008, <B class=gmail_sendername>Read, 
Tony</B> &lt;<A 
href="mailto:Tony.Read@woodside.com.au">Tony.Read@woodside.com.au</A>&gt; 
wrote:</SPAN> 
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Can you 
  not call the enhancement via a method and instantiate the class and pass that 
  to the work item like a BOR attachment.</FONT></SPAN></DIV>
  <DIV>&nbsp;</DIV>
  <P><SPAN lang=en-au><FONT face=Arial size=2>Regards </FONT></SPAN><BR><SPAN 
  lang=en-au><B><FONT face=Arial size=2>Anthony Read</FONT></B></SPAN> </P>
  <P><SPAN lang=en-au><B><FONT face=Arial size=2>SAP ABAP 
  Consultant</FONT></B></SPAN> <BR><B><SPAN lang=pt><FONT face=Arial 
  color=#000000>Woodside SAP Services</FONT></SPAN><SPAN lang=en-au></SPAN></B> 
  <BR><SPAN lang=en-au><FONT face=Arial color=#008000 
  size=2>Tel&nbsp;&nbsp;&nbsp;&nbsp; +61 (08) 9348 4428</FONT></SPAN> <BR><SPAN 
  lang=en-au><FONT face=Arial color=#008000 size=2>Fax&nbsp;&nbsp;&nbsp; +61 
  (08) 9348 5387</FONT></SPAN> <BR><SPAN lang=en-au><FONT face=Arial 
  color=#ff0000 size=2><A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:Anthony.read@woodside.com.au" 
  target=_blank>Anthony.read@woodside.com.au</A></FONT></SPAN> </P>
  <DIV>&nbsp;</DIV><BR>
  <DIV lang=en-us dir=ltr align=left>
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> <A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:sap-wug-bounces@mit.edu" 
  target=_blank>sap-wug-bounces@mit.edu</A> [mailto:<A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:sap-wug-bounces@mit.edu" 
  target=_blank>sap-wug-bounces@mit.edu</A>] <B>On Behalf Of </B>Gavin 
  Mooney<BR><B>Sent:</B> Wednesday, 17 September 2008 1:00 PM<BR><B>To:</B> SAP 
  Workflow Users' Group<BR><B>Subject:</B> Work item to call an 
  enhancement<BR></FONT><BR>&nbsp;</DIV>
  <DIV><SPAN class=e id=q_11c6ebf656fc381d_1>
  <DIV></DIV>
  <DIV>Hi everyone, </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have a requirement for a work item. It needs to have a link to a couple 
  of BOR objects (that's fine - we can just bind them in) and also a link to a 
  custom enhancement. The users may not&nbsp;need to use all of these links, but 
  they have to have the option should they need to. To call the enhancement we 
  could use the method on the work item task but the problem is that if we did 
  it this way then the enhancement would be called any time the user executes 
  the work item, and many users seem to execute work items without realising it 
  by double clicking to display them (rather than selecting the work item from 
  the list and clicking display). </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Is there an easy way around this? We could make the work item a decision 
  task where if the user wants to call the enhancement they select that option 
  and the workflow calls the enhancement in the subsequent step. The problem 
  with that is if the user clicks to execute the enhancement and then wants to 
  go back to view the objects that we're binding in. It just all seems to get a 
  bit messy. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Hope I'm missing something obvious!</DIV>
  <DIV>Thanks, </DIV>
  <DIV>Gavin</DIV></SPAN></DIV><PRE>NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
</PRE></DIV><BR>_______________________________________________<BR>SAP-WUG 
  mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://mailman.mit.edu/mailman/listinfo/sap-wug" 
  target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR></BLOCKQUOTE></DIV><BR><pre>
NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
</pre></BODY></HTML>