<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=287153222-22022005><FONT face=Arial 
color=#0000ff size=2>Hi Miguel, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=287153222-22022005><FONT face=Arial 
color=#0000ff size=2>In order to evaluate your start condition based on your 
"ApprovalRequired" attribute workflow has to instantiate your object and that 
attribute - so of course it is running your code.&nbsp;&nbsp;&nbsp; Have you 
remembered to catch the exceptions of the function module, so you can ignore the 
rate convert in systems where the exchange rate is not 
maintained?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=287153222-22022005><FONT face=Arial 
color=#0000ff size=2>Jocelyn </FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <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>Adao-Cruz, 
  Miguel<BR><B>Sent:</B> Wednesday,23 February 2005 3:21 AM<BR><B>To:</B> 
  SAP-WUG@mit.edu<BR><B>Subject:</B> Start conditions error<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial color=#000000 size=2>Hello workflowers,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Strange problem:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I created an attribute callef "ApprovalRequired", 
  char 1.</FONT></DIV>
  <DIV><FONT face=Arial size=2>In the code I use the function: </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>CALL FUNCTION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sp; 
  TYPE_OF_RATE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  = 
  'M'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp; 
  READ_TCURR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  = 
  'X'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR></DIV>
  <DIV>Everything works fine here.</DIV>
  <DIV>Then I create start condition in my DEV environment based on this 
  attribute (<FONT face=Arial size=2>ApprovalRequired = X)</FONT>, and I got the 
  following error message: "Enter rate&nbsp;&nbsp;/ GBP rate type M for 
  22.02.2005 in the system settings".</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>It looks there is a check done to see if&nbsp; 
  'CONVERT_TO_LOCAL_CURRENCY' is used in the attributes used in the condition 
  definition and that SAP checks that all the exchange rates are 
  maintained!!!</DIV>
  <DIV>But in DEV we don't need to maintain all the exchange rates!</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Did someone had the same problem?</DIV>
  <DIV>Any advice, please!</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Cheers</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Miguel</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <TABLE>
    <TBODY>
    <TR>
      <TD bgColor=#ffffff><FONT color=#000000>This message contains 
        information that may be privileged or confidential and is the property 
        of the Capgemini Group. It is intended only for the person to whom it is 
        addressed. If you are not the intended recipient, you are not authorized 
        to read, print, retain, copy, disseminate, distribute, or use this 
        message or any part thereof. If you receive this message in error, 
        please notify the sender immediately and delete all copies of this 
        message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>