cancel
Showing results for 
Search instead for 
Did you mean: 

Leave Request workflow modification

Former Member
0 Kudos

Hi!

I want a copy of PS_TIMREQ workflow, but with a especific user for the task of approve TS12300097, but I need the teoric agent who will had to approve in order to send him a email.

Can anybody to give any idea how to do it?

If in the task TS12300097, I specify an user in AGENT, after of this I can't retrieve the teoric agent.

Help please!

Thanks in advanced.

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can use report Rptarqemail to send mails to the approver and the requestor which is available

as a standard report to facilitate sending of the mail! Please check this

Former Member
0 Kudos

The report standard Rptarqemail doesn't make what I need.

I want to send a fixed user the workitem in order to approve or not a leave request.

And when this user makes the approval (or rejection), the teoric agent needs a mail with the response, that is, in order to know if the request has been approved or not.

I think that the report Rptarqemail sends to the agent a mail saying that he has to approve or reject. I don't want this.

I hope my explanation would be better than previous.

Thanks in advance for any help.

Former Member
0 Kudos

Thanks a lot.. Please confirm my understanding.

1) All leave workflow should go to only One user,lets call time Administrator, this can be very well achieved if you define concerned user say X as Agent for copied task.

2) Mails to requester can be send with report Rptarqemail .

This report can be configured to

-> send reminders to Approver for pending leave requests

-> Information mail to requester about decision on their request i.e. Approver or Reject

-> On any Leave Posting error, mail to Time Administrator with details.

Hope that helps. Please let us know if my understanding differs from what you are looking for.

Rgds

Former Member
0 Kudos

Hi Sudhir!

about your reply..

1) its correct. I want to send the workitem a fixed user

2) I need to send the email not to the requester, but the superior of the requester, with the information of the leave request, Approved o Refejected.

That's the reason because of the report Rptarqemail is not useful.

Thanks for trying to understand me.

Former Member
0 Kudos

1) Hope you figured out how to set user if in workflow

2) Well you will require a custom report..

Logic will be pretty simple.

Capture all requests where status has changed (approve/reject) in define period(daily or 3hrs as per frequency of report).. you can find these data in PTREQ* tables.

and then use standard or custom function module to read approver and then create a SAP text element and send the mail to managers.

You have to configure SCOT to send mails from your system and schedule this program to mail managers about progress of requests.

Hope this helps.

Former Member
0 Kudos

Hi Sudhir!

your response was very useful.

Now I need one more help.

How can I find de reponsible of the owner of the request?

I have seen the field responsible_ins in the PTREQ_HEADER... I think it could be useful.. but I'm not sure how this field is filled.

In the customizing I have to set the option of Employee Self-Service, Determine Next Agent = MANU (No calculation/Manual Entry).

So the mode of calculation of the report PTARQ doesn't works, because it must check this option of customizing.

Any help would be appreciate!

Thanks in advance.

Former Member
0 Kudos

Hi Adell,

Glad that we are able to help. Please consider to award points for helpful replies :-)..

Well in this case it might be a little tricky.. entry in PTREQ_HEADER contains some code.. which honestly i don't know to read.. though that entry of agent which is manually selected by Employee.

You can refer to code of report RPTARQDBVIEW, that might give you some clue....

Rgds

Answers (1)

Answers (1)

Former Member
0 Kudos

Apologies for my poor english, but i could not understand business case and what are you trying to achieve. Would you mind elaborating this issue.

Cheers