on 11-18-2008 11:46 AM
Hi Workflow experts,
I am new to workflow, we have some requirement in CATS for approving timesheets,
can somebody pls help me with the below requirements.
an email notifications needs to trigger to the Manager on a particular day of month asking him to approve the timesheets.
and another mail needs to trigger to the employee, on a particular day asking him to enter the timesheet.
and if the Manager rejects the timesheet an email needs to be triggered to employee stating that timesheet has been rejected
points will be awarded for helpful answers
RaD
RaD,
SAP-provided ABAP report RSWUWFML2 will notify any agent(s) of any work items that have been recently sent to his/her workflow inbox for approval. Mine is scheduled to run daily.
Regards,
Jim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thnx for the replies, well Jim, with that report can we send just one mail on a particular day in a month (just a generic kind of mail with some simple text asking him to approve the timesheets)
and how about the reciepents hw to give recipents there, can we give multiple reciepents there, because we need to send mails to employees and managers.
Rad
For Multiple receipents, You may need to use the Second exit u201CFM for Determining Addressu201D can be used to manipulate with the retrieved email addresses, e.g to make a check against a Z_Table to define other email addresses, or to skip the notification for specific email addresses (e.g. No e-mail to the CEO u2013 send to the secretary instead).
The parameter the function module specified here are:
IMPORTING
UNAME type SYUNAME
I_WI_HDR type SWR_WIHDR
CHANGING
C_EMAIL type string.
Hi The CATS workflow is only a standard task and the SAP help says you can not changed this to a mulit step task.
I think as far as the mails to enter and approve the time sheets then a normal ABAP report should be written to send out the mails as requried.
As far as sending out a mail after approva/rejection. There is a completion event that you could use to trigger a new workflow or write a report that is scheduled to check the table CATSDB and end the mails as required. Trev B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use SO_DOCUMENT_SEND_API1 function module in Report to send mails.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_TXT = OBJTXT"<-your itab
RECEIVERS = RECLIST
Look into the below links
http://www.sap-img.com/abap-function.htm
http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.