on 10-07-2007 12:42 PM
Hi,
wf_initiator userid where will store,
i want to call 3 user ids (wf_initiator userid, the wf_initiator's supervisor and HR personnel) in agent assignment.
HR personnel is only one user, common for all users (i have user id, i will enter directly as agent)
but how can we collect all three users and send mail notification at a time.
Regards,
PS
Hi PS,
this could be achieved if you have maintained a reporting structure thru PO13.
If this is maintained, then you need to use FM's like RH_LEADING_POSITION.
Also there are std. rules like 168 which identifies superior's.
Hope it helps.
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi PS,
could you give some more details on your process.
I mean, is it that you know who the users are to whom you want to send mails?
Is userid's stored in some Ztable?
What I could understand from your query is you want to send mails to user and user's superior.
If that is the case you need to have a reporting structure in place.
But if you want to send it to 3 user-id's then you could store them in a WF container, which is multiline and pass it in the SendMail Expression.
Please give some more details, so that all of us could give some thoughts on it.
Aditya
Hi PS,
since your point 1 and 3 are straight forward, these you could do by directly mentioning in the Send Mail Expression (where you can store them in your WF container),
but point 2, you either need to use Rule 168 to identify the superior of the initiator, which means an organizational unit, with a reporting structure needs to be maintained in the system, or using the FM which I mentioned in my previous thread you can fetch the superior which also needs a reporting structure.
If thats the case, you would need help from some one who can create a reporting structure for you.
Hope it helps.
Aditya
Create a Workflow Container element that stores the Wflow Initiator. Now you pass this container element in a method that stores the 1. Initiator (who raised request)
2. Initiator's superior
3. HR department manager (single person, i have his user id)
. Make use of multiline container element in Method; This method will return the Multiline element to task and subsequently to workflow. Make sure the users Id is Prefixed with US. Then use the multiline container element of the wflow in sending mail.
<b>Reward points if useful</b>
Hi,
I guess you can collect the 3 user id's by creating one internal table of type SWHACTOR and then while collecting the user ids using the logic put everything in the internal table, which can be done by using the multiline option in the workflow container to store multiple entries. Pass this variable to the Sent mail activity and it sill send it to all the users in the internal table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
using step type until loop you can send the mail to them.
create a aagent in container and assign al these three agents to them.
these therr agents are already in workflow conatiner
reward points if useful
regards
sathiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.