<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.53">
<TITLE>Result Value &amp; Outcomes</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT SIZE=2 FACE="Trebuchet MS">I have been looking at a standard SAP workflow where there are two outcomes, result value 0 and result value 1.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">I have looked at the method that is called and the final piece of code in the method is :</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">SWC_SET_ELEMENT CONTAINER RESULT '0'.</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">or</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">SWC_SET_ELEMENT CONTAINER RESULT '1'.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">These seem to result in the two outcomes in the workflow step.</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">Operation performed successfully (result=0)</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">Operation performed with errors (result=1)</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">In this standard workflow, the method has an export parameter of 'result' type METHRETURN-METHODFIND</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">There is no binding defined for this result value between the method and the task or between the workflow and the task.</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">The task in synchronous, non-dialog.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">I have a custom workflow where I am trying to mimic this.</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">I have the same set up as the standard workflow, synchronous ,non-dialog.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">My method sets RESULT to either 1 or 0.</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">There is no binding defined for this result value between the method and the task or between the workflow and the task.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">In my step, I only have two available outcomes :</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">Step executed (result=****)</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">Processing obsolete (temporary error)</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">I cannot add the two outcomes for result value 0 or 1.</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">Can anyone give any pointers as to why I cannot do this ?</FONT>
</P>

<P><FONT SIZE=2 FACE="Trebuchet MS">Many Thanks</FONT>

<BR><FONT SIZE=2 FACE="Trebuchet MS">David</FONT>
</P>


<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">_______________________________________________ </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy it or disclose its contents to anyone. All messages sent to and from Linklaters may be monitored to ensure compliance with internal policies and to protect our business. Emails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. Anyone who communicates with us by email is taken to accept these risks. </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;"> </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">The contents of any email addressed to our clients are subject to our usual terms of business; anything which does not relate to the official business of the firm is neither given nor endorsed by it. </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;"> </SPAN>
</P>
<P STYLE="margin-top: 0pt;margin-bottom: 0pt;"><SPAN STYLE="FONT-FAMILY:'Arial';FONT-SIZE:8pt;">The registered address of the UK partnership of Linklaters is One Silk Street, London, EC2Y 8HQ. Please refer to http://www.linklaters.com/regulation for important information on the regulatory position of the firm. </SPAN> </P></BODY>
</HTML>