on 08-05-2015 10:42 AM
Hi All,
Please help me. I'm new in workflow.
I'm currently enhancing a copy of standard workflow WS20000077 to have an email notification functionality, which sents an email into the SAP Inbox and External email of the approver.
I have created a program exit where I will do the email functionality instead of the email step.
What I want to know is how could I get the name of the approver upon creation of the PR, I need to get the names of the 1st approver, 2nd approver and so on to be able to send the email.
Please do give me a sample, if its ok with you.
Thanks in Advance.
Hello Franco,
This are even not clear now,
What actually is the requirement?
Or
--->Here agent name is based on Relcode and other stuff , becuse for each release code you would
find different agent.
First of all clearly let us know , what actually is the requirement and figure out how agents are maintained,
It can be through a custom table , rule, role etc...
Hope you got our point right, make the things very clear so that we can give the best
Regards,
Prasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for the initial replies.
What I would like to know is, is there an FM able to get the details of the next approver, or get the next release code of the PR and I will select the details of the approver in tables.
Currently I was only able to get the release code and details of the current approver, but not the next approver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Please let us know how the approvers are determining or approving the PR now? without workflow?
If workflow is already establised then no need to go for approver determination.
If approval process not in place, then find the suitable workflow template and assigned.
If there is any custom approval process already in place then map in workflow and then go for email notifcation.
Email notification is not big task.
You need to integrate current approval process and Email notifcations and workflow together. Both can not be run separate.
Hello
You can get the approver of the PR from rule 20000026 (Go to Transaction PFAC) or FM ME_REL_GET_RESPONSIBLE.
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You can also test this FM via transaction PFAC
Regards
Sandy
Hello Franco Veras,
can you elaborate what kind of enhancement you did it to the Requisition release workflow?
And can you let us know how approvers are maintained?
Please post the information so that we can help you better..
Regards,
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
Thanks.
My requirement in the enhancement is to create an email notification, that will be sent to the approvers of the purchase requisition. Emails should be sent to SAP inbox and the external email of the user and emails should only be sent once the PR is release or save.
So I need to determine the name of the next approvers, to get their details.
Is there any ways to get those details in program exit?
Regards,
Franco
There are many ways to sned notification for approval:
1. Through workflow
2. Through custom programs
3. Through standard scheduled programs
4. Customizing
Please describe in detail. If you are going to continue with workflow, then please avoid custom programs.
If you want to change email subject, body completely then go for
1. Program RSWUWFML2 OR
2. Add custom task/activity background method for business object and send email. You will get approver names from workflow directly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think best way will check the table EBAN, CDHDR and CDPOS to get the approver name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.