<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2>Prasath,</FONT></SPAN></DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2>Honestly, I've never come across it. I've seen SWE_EVENT_CREATE several 
times in the CATS ABAP code but it's used with&nbsp;either&nbsp;CREATED or 
COMPLETED.</FONT></SPAN></DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff size=2>My 
guess would be that CATS.REJECTED is there in case you write your own 
code.</FONT></SPAN></DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=429302718-03102006><FONT face=Arial color=#0000ff 
size=2>Claude</FONT></SPAN></DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>prasath 
natesan<BR><B>Sent:</B> October 3, 2006 5:05 AM<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> Re: Send mail for CATS Approval and pending 
workitems<BR><BR></FONT></DIV>
<DIV>Hi,</DIV>
<DIV>Is it possible to use the CATS.REJECTED event? In my case this event is not 
getting triggered in any case. When is this CATS.REJECTED event triggered?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Prasath N<BR><BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 9/25/06, <B class=gmail_sendername>Claude 
Bourque</B> &lt;<A 
href="mailto:cbourque@bank-banque-canada.ca">cbourque@bank-banque-canada.ca</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><SPAN><FONT face=Arial color=#0000ff size=2>Prasath,</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2>We build a custom utility 
  <SPAN class=st id=st name="st">for</SPAN> 2 reasons. Reason 1: <SPAN class=st 
  id=st name="st">CATS</SPAN>.COMPLETED wouldn't work because, <SPAN class=st 
  id=st name="st">CATS</SPAN> behaves differently than other workflows. 
  Everytime an employee enters a timesheet record, the entry gets attached to 
  the existing outstanding work item <SPAN class=st id=st name="st">for</SPAN> 
  that employee. So until a manager has approved all records, an employee can 
  keep adding to the work item. Since in some cases completion took several 
  weeks, we decided to create a utility that is run nightly that creates an 
  event to trigger a <SPAN class=st id=st name="st">send</SPAN> email workflow. 
  Reason 2: Although <SPAN class=st id=st name="st">CATS</SPAN>.REJECTED would 
  work, we needed an email <SPAN class=st id=st name="st">for</SPAN> <SPAN 
  class=st id=st name="st">approval</SPAN> as well as rejection. So, again the 
  utility does the trick.</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2>We've been using it <SPAN 
  class=st id=st name="st">for</SPAN> 2 weeks <SPAN class=st id=st 
  name="st">and</SPAN> so far so good.</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff 
  size=2>Regards,</FONT></SPAN></DIV><SPAN class=sg>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial color=#0000ff size=2>Claude 
  Bourque</FONT></SPAN></DIV>
  <DIV></DIV></SPAN>
  <DIV lang=en-us dir=ltr align=left><FONT face=Tahoma size=2><SPAN 
  class=q>-----Original Message-----<BR><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>Kjetil 
  Kilhavn<BR><B>Sent: </B>September 25, 2006 2:01 AM<BR><B>To:</B> SAP Workflow 
  Users' Group<BR></SPAN>
  <DIV><SPAN class=e id=q_10de508b27253d88_4><B>Subject:</B> RE: Send mail for 
  CATS Approval and pending workitems<BR><BR></SPAN></DIV></FONT></DIV>
  <DIV><SPAN class=e id=q_10de508b27253d88_6>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>You don't 
  write what version you are on, but assuming you're not on a version with 
  extended notifications (that would have to be 6.x as far as I know) 
  </FONT></SPAN><SPAN><FONT face=Arial color=#0000ff size=2>I think the 
  notification via RSWUWFML2 is your best choice for the 
  manager.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Why don't 
  you use CATS.REJECTED as triggering event for your other solution? I'm not 
  familiar with the standard approval solution for time sheets, so perhaps your 
  answer is "because that event is not triggered" - but looking at BOR object 
  type CATS it seems an obvious choice :-) </FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Looking at 
  program RCATSB01 in our system I see there is a selection screen option to 
  send notification of rejection. Unfortunately the parameter MAIL in function 
  module CATS_DISPLAY_LIST which is called by the program is not referenced in 
  the function module's ABAP code. An&nbsp;OSS&nbsp;message to SAP to see if you 
  receive the standard answer "this is not an error" is perhaps in place. 
  </FONT></SPAN></DIV>
  <DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>Kjetil Kilhavn, Statoil OFT GBS 
  BAS&nbsp;DEV SAP</FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><FONT face=Arial 
  size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
  size=2></FONT><FONT face=Arial size=2></FONT><BR>
  <BLOCKQUOTE 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
    <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>prasath 
    natesan<BR><B>Sent:</B> 25. september 2006 06:43<BR><B>To:</B> SAP Workflow 
    Users' Group<BR><B>Subject:</B> Send mail for CATS Approval and pending 
    workitems<BR></FONT><BR>&nbsp;</DIV>
    <DIV></DIV><SPAN><A name=10de508b27253d88_2432285></A><FONT face=Arial 
    color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff 
    size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
    color=#0000ff size=2></FONT></SPAN><BR>Hi,<BR>We use approval task 
    TS20000460(approval by superior) for approval of CATS submitted by an 
    employee. This task sends a mail back to the employee if the Approval is 
    rejected by the superior. We have 2 more requirements for this case as 
    follows, <BR><BR><B>1. The initiator should receive an e-mail notification 
    when the CATS submitted by him is approved by the manager.</B><BR><BR>For 
    this i have tried to create a custom workflow with a sendmail step. I have 
    assigned CATS-COMPLETED event as the triggering event for this workflow. The 
    problem is this event is triggered in both the cases i.e when the workitem 
    is either Approved or Rejected. I need this workflow to be triggered only in 
    cases of Approval. I also could not find any container elements which shows 
    the status as Aprpoved/Rejected.<BR><BR><B>2. The Approver should receive a 
    notification in his inbox whenever the employee submits the time sheets 
    asking him to approve the pending time sheets weekly. </B><BR><BR>For this i 
    think i might be able to use the report RSWUWFML2 and schedule it on a 
    certain time period to check for pending workitems of task TS20000460 and 
    send notifications. But havent yet tried on this. Is there a better way to 
    do this? Any tables that get updated based on this? <BR><BR>we are at ECC5.0 
    with EP6.0<BR><BR>Any help on the above queries will be of great 
    use.<BR>Thanks in advance for any help provided.<BR><BR>Prasath 
  N<BR></BLOCKQUOTE>
  <P></P>
  <P><FONT 
  size=1>-------------------------------------------------------------------<BR>The 
  information contained in this message may be CONFIDENTIAL and is<BR>intended 
  for the addressee only. Any unauthorised use, dissemination of the 
  <BR>information or copying of this message is prohibited. If you are not 
  the<BR>addressee, please notify the sender immediately by return e-mail and 
  delete<BR>this message.<BR>Thank you.</FONT> 
  </P></SPAN></DIV></DIV><BR>====================================================================================<BR><BR>La 
  version française suit le texte 
  anglais.<BR><BR>------------------------------------------------------------------------------------ 
  <BR><BR>This email may contain privileged <SPAN class=st id=st 
  name="st">and</SPAN>/or confidential information, <SPAN class=st id=st 
  name="st">and</SPAN> the Bank of<BR>Canada does not waive any related rights. 
  Any distribution, use, or copying of this <BR>email or the information it 
  contains by other than the intended recipient is<BR>unauthorized. If you 
  received this email in error please delete it immediately from<BR>your system 
  <SPAN class=st id=st name="st">and </SPAN>notify the sender promptly by email 
  that you have done 
  so.<BR><BR>------------------------------------------------------------------------------------<BR><BR>Le 
  présent courriel peut contenir de l'information privilégiée ou confidentielle. 
  <BR>La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
  diffusion,<BR>utilisation ou copie de ce courriel ou des renseignements qu'il 
  contient par une<BR>personne autre que le ou les destinataires désignés est 
  interdite Si vous recevez <BR>ce courriel par erreur, veuillez le supprimer 
  immédiatement et envoyer sans délai à<BR>l'expéditeur un message électronique 
  pour l'aviser que vous avez éliminé de votre<BR>ordinateur toute copie du 
  courriel 
  reçu.<BR><BR><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><BR></BLOCKQUOTE></DIV><BR><pre>====================================================================================

La version française suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential information, and the Bank of
Canada does not waive any related rights. Any distribution, use, or copying of this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately from
your system and notify the sender promptly by email that you have done so. 

------------------------------------------------------------------------------------

Le présent courriel peut contenir de l'information privilégiée ou confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans délai à
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de votre
ordinateur toute copie du courriel reçu.
</pre></BODY></HTML>