cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail for CATS Approval and pending workitems

Former Member
0 Kudos

Hi,

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,

<b>1. The initiator should receive an e-mail notification when the CATS submitted by him is approved by the manager.</b>

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/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.

<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>

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?

we are at ECC5.0 with EP6.0

Any help on the above queries will be of great use.

Thanks in advance for any help provided.

Prasath N

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prasath,

I don't know if this question is still valid but I was looking for something related and bumped into it..

For your first question, you can use a check function module to achieve this. In the check function module (run after event raise, but before workflow triggering) you can then check if a corresponding timesheet entry with status rejected exists in table CATSDB (do a table lookup by the work item ID). If the status is rejected, raise an exception and your workflow won't trigger.

For the second question, the answer is Extended notifications. RSWUWFML2 should no longer be used from was6.40 onwards. Please see http://help.sap.com/saphelp_nw04/helpdata/EN/d5/581ee8d56f1247bf34cfcd66d16d81/frameset.htm for more info about them.

Hope this helps,

Mikko

Former Member
0 Kudos

Hi,

I am trying to trigger CATS- Created Event from CAT2.. But itz not triggering any event... Can u help me in sorting out this problem...???I am building workflow for approval for recording overtime.

Is there any configurations to be done for this...Plz be in detail as i am new to this...

Regards,

Sivagami.R