<!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=UTF-8">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" 
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document 
face=Arial color=#000000 size=2>
<DIV>
<DIV>
<DIV>Unfortunately&nbsp;neither the&nbsp;Check nor the Generate functions report 
any warnings&nbsp;or&nbsp; errors in case of&nbsp;undefined exceptions in the 
6.20 release as well. I had a notion that it did and paid for it.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT lang=0 face=Arial size=2 FAMILY="SANSSERIF" 
PTSIZE="10">Regards,<BR>Ramki Maley<BR>Workflow Developer, 
USCBP.<BR>248-613-1287 (C)</FONT></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV>In a message dated 8/31/2005 2:44:23 PM Eastern Standard Time, 
David.Trant@andrew.com writes:</DIV>
<BLOCKQUOTE style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px"><FONT 
  style="BACKGROUND-COLOR: transparent" face=Arial color=#000000 size=2>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">Yes, this exception error that has been 
  one of the biggest thorns in my side since becoming the de facto workflow 
  administrator at my organization.&nbsp; We used to have functional people 
  build workflows with little or no technical involvement, plus the technical 
  involvement was ill-trained, so the resulting methods that were created 
  continue to spew out dozens of “error 394” messages daily.&nbsp; Here’s the 
  deal:&nbsp; someone writes or finds an existing function module that performs 
  some desired functionality.&nbsp; They then create a corresponding method in 
  the business object that calls said function module.&nbsp; SAP is real nice to 
  generate all the required code (well, almost as we’ll see) with the touch of a 
  button.&nbsp; For those not in the know, it seems to work like magic and, 
  indeed, provided the rest of the connections are made properly, bindings done 
  right, etc., the normal scenarios tend to work beautifully.&nbsp; What people 
  here at least failed to notice was that the generated code is but a mere stub 
  that still requires some finishing off.&nbsp; Here’s a living example from one 
  of our workflows:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">BEGIN_METHOD ZBAPIUPDATESOSTATUS CHANGING 
  CONTAINER.&nbsp;&nbsp;&nbsp; <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">DATA:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SOORDERNO 
  LIKE 
  VBAK-OBJNR,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS 
  LIKE 
  JEST-STAT,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHNGEIND 
  LIKE 
  VBAK-VBTYP,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SLSORDERNUMBER LIKE 
  VBAP-VBELN,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SLSORDERITEM LIKE 
  VBAP-POSNR,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SDATE LIKE 
  VBAP-ERDAT,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USER LIKE 
  VBAP-ERNAM.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 
  'SoOrderNo' 
  SOORDERNO.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 'Status' 
  STATUS.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 
  'ChngeInd' 
  CHNGEIND.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 
  'SlsOrderNumber' SLSORDERNUMBER. <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 
  'SlsOrderItem' SLSORDERITEM.&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 'Sdate' 
  SDATE.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; SWC_GET_ELEMENT CONTAINER 'User' 
  USER.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; CALL FUNCTION 
  'Z_BAPI_UPDATE_SO_STATUS'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; 
  EXPORTING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USER = 
  USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SDATE = 
  SDATE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SLS_ORDER_ITEM = SLSORDERITEM&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SLS_ORDER_NUMBER = 
  SLSORDERNUMBER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHNGE_IND 
  = 
  CHNGEIND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS = 
  STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SO_ORDER_NO = 
  SOORDERNO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; 
  EXCEPTIONS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FUNC_FAIL 
  = 
  9001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; READ_FAIL 
  = 
  9002&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OTHERS = 
  01.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; CASE 
  SY-SUBRC.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; WHEN 
  0.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
  OK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; WHEN 
  9001.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
  FUNC_FAIL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  EXIT_RETURN 9001 sy-msgv1 sy-msgv2 sy-msgv3 
  sy-msgv4.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; WHEN 
  9002.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
  READ_FAIL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  EXIT_RETURN 9002 sy-msgv1 sy-msgv2 sy-msgv3 
  sy-msgv4.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp; WHEN 
  OTHERS.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " to be 
  implemented&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; 
  ENDCASE.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">END_METHOD.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">All the above code was automatically 
  generated.&nbsp; Note carefully the code at the very end where the return code 
  (SY-SUBRC) is processed.&nbsp; The code generator recognized the two 
  exceptions from the function module, FUNC_FAIL and READ_FAIL, but has no idea 
  functionally how they should be treated.&nbsp; It therefore essentially 
  inserts syntactically correct placeholders, with the expectation that we will 
  know to go in and modify it according to our needs.&nbsp; If, as happened 
  here, nobody knows that there is still more work to be done, and it isn’t 
  caught in testing, you will get runtime errors.&nbsp; These result in notices 
  to the workflow administrator with the title “Workflow 35406978 Error WL 394 . 
  Please repair the” and the body<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">The following error 
  occurred in the workflow above:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Workflow no. 000035406978: 
  An error occurred in work item 000035865972 ( step no. 0000000183) Please 
  repair the suspended workflow<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Press 'Execute' to display 
  the workflow that has errors.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">Ironically, one of the reasons I didn’t 
  know about this for so long was that the workflow administrator used to not 
  get these error messages.&nbsp; The errors were occurring, sure enough, but 
  nobody knew it.&nbsp; Then one day we implemented a bunch of support packs for 
  HR and I suddenly got deluged with errors! &nbsp;It took quite a while to 
  recognize that the errors were not a result of the hot packs, but rather the 
  reporting of them apparently was.&nbsp; Going forward, one of my review steps 
  is to check each and every method to ensure that complete error handling is 
  implemented.&nbsp; We’re on 4.6C.&nbsp; Hopefully in future releases, SAP will 
  pop up some kind of warning or otherwise guide the person pushing the 
  “generate code” button to pay further attention to this section of the 
  generated code.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">Hope this 
  helps,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy">David<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma><SPAN style="FONT-FAMILY: Tahoma"> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf 
  Of </SPAN></B>Hofstede, Anke (AU - Sydney)<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, August 30, 2005 1:45 
  AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> SAP Workflow Users' 
  Group<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: Exception 
  '9001' error when triggering workflow in CRM4</SPAN></FONT><FONT 
  face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Hi Tom T,</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">This has to do with the exceptions for 
  the method. To see the exceptions:</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Go to SWO1 &gt; object 
  ZBUS200126</SPAN></FONT><SPAN lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Click on method name to highlight 
  it</SPAN></FONT><SPAN lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Click on exceptions 
  button.</SPAN></FONT><SPAN lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">The method program code should contain 
  something to trigger the exception (exit_return) if needed.</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Did you refresh the buffers after the 
  transport? SWU_OBUF</SPAN></FONT><SPAN lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Cheers,</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">Anke</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=DE 
  style="FONT-SIZE: 10pt; COLOR: navy">Anke Libeton (was Anke 
  Hofstede)</SPAN></FONT><SPAN lang=EN-AU><o:p></o:p></SPAN></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=DE 
  style="FONT-SIZE: 10pt; COLOR: navy">Deloitte Australia</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma><SPAN style="FONT-FAMILY: Tahoma"> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf 
  Of </SPAN></B>PEOU Tom T<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, 30 August 2005 3:12 
  PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
  sap-wug@mit.edu<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> 
  Exception '9001' error when triggering workflow in CRM4</SPAN></FONT><SPAN 
  lang=EN-AU><o:p></o:p></SPAN></P></DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">Hi fellow Wuggers,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <DIV>
  <DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">Can anybody assist with this 
  error:<o:p></o:p></SPAN></FONT></P></DIV></DIV></DIV>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">Exception '9001' is not defined for method 
  'ACTIVITYFORPURCHASEORDER' object type 
  'ZBUS200126'<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">This is occurring in our QA system when triggering a 
  workflow to create an activity.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">This workflow was transported from our DEV system to 
  the QA system. However, the same workflow completes successfully in our DEV 
  environment.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">I think the problem is within the Method in the 
  business object, but I cannot see why it would work in DEV and not in our QA 
  System. <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">Has anyone encountered a similar 
  error?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">Cheers,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt">T</SPAN></FONT><FONT face="Times New Roman" 
  size=2><SPAN lang=EN-AU 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'"><BR></SPAN></FONT></P></DIV>_______________________________________________<BR>SAP-WUG 
  mailing 
  list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></FONT></BLOCKQUOTE></DIV>
<DIV></DIV></DIV>
<DIV>&nbsp;</DIV></FONT></BODY></HTML>