<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<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";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.e
        {mso-style-name:e;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Gavin,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>That would be how I would also implemented. It's also nice
exercise to play around with OO. Classes are very efficient because you only
write the code that you need. A tip here is to create a class with a dummy key
and specify the key as the initial value in your workflow container. This is
because the link will only appear for an object instance, and this way saves
you instantiating the object in your workflow.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<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>Gavin Mooney<br>
<b>Sent:</b> 17 September 2008 08:19<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> Re: Work item to call an enhancement<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>Hi Tony, <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>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? <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>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?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>I think this approach would work, although it seems a shame
to create a new object/class just for the purpose. <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Thanks, <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Gavin<br>
<br>
&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=gmailquote>On 17/09/2008, <b>Read, Tony</b> &lt;<a
href="mailto:Tony.Read@woodside.com.au">Tony.Read@woodside.com.au</a>&gt;
wrote:</span> <o:p></o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Can you not call the enhancement via a method and instantiate the
class and pass that to the work item like a BOR attachment.</span><o:p></o:p></p>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<p><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Regards
</span><br>
<b><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Anthony
Read</span></b><span lang=EN-AU> </span><o:p></o:p></p>

<p><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif"'>SAP
ABAP Consultant</span></b> <br>
<b><span lang=PT style='font-family:"Arial","sans-serif";color:black'>Woodside
SAP Services</span></b> <br>
<span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:green'>Tel&nbsp;&nbsp;&nbsp;&nbsp; +61 (08) 9348 4428</span> <br>
<span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:green'>Fax&nbsp;&nbsp;&nbsp; +61 (08) 9348 5387</span> <br>
<span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:red'><a href="mailto:Anthony.read@woodside.com.au" target="_blank">Anthony.read@woodside.com.au</a></span><span
lang=EN-AU> </span><o:p></o:p></p>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

<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"'> <a href="mailto:sap-wug-bounces@mit.edu"
target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a
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>
</span><span lang=EN-US><br>
&nbsp;<o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal>Hi everyone, <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>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). <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>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. <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Hope I'm missing something obvious!<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Thanks, <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Gavin<o:p></o:p></p>

</div>

</div>

<pre>NOTICE: This email and any attachments are confidential. <o:p></o:p></pre><pre>They may contain legally privileged information or <o:p></o:p></pre><pre>copyright material. You must not read, copy, use or <o:p></o:p></pre><pre>disclose them without authorisation. If you are not an <o:p></o:p></pre><pre>intended recipient, please contact us at once by return <o:p></o:p></pre><pre>email and then delete both messages and all attachments.<o:p></o:p></pre></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</body>

</html>