cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

Dynamic parallel processing steps

Former Member
0 Likes
2,016


Dear Consultants,

I am creating a custom workflow , where i am sending work item to all first level  approvers at the same time and taking approval of all approvers.

This has been achieved by parallel block profetch. However i am stuck with some scenario -

1. I want to send outlook mail to requestor's outlook ID

2. an outlook mail to all approvers ( With table in item text ,where detail and approver list should appear)

3. an most importantly i want if one of the  approver rejects the work item , that work item should go to requestor for edit and resend the item only to the approver who has reected that item, but all the work work item should not go to the all approvers who have already approved the task?

Anyone has any idea?

Thanks

View Entire Topic
I042439
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Sudhanshu

1) Outlook email to requester -> where is the email maintained? In SU01 or HR Infotype 0105?

If either of these, just set the email recipient as workflow initiator (expression) (type ID G) in the standard email step.

Go to txn SO16->Tab MailSys Grp -> Select Send to user's home address (this has to be done in all systems once.) - This will enable the workflow to pickup the email address from HR Infotype or SU01 the moment it encounters the above(Type ID G and User ID WF initiator) (if you are using SU01, make sure that just below the email ID, you select the 'communication type' as 'Internet')

2) Not very sure what you want to display in point two email - please elaborate.

To send the email, just keep "Appending" the _ACTUAL_AGENT from the decision step to a workflow container variable of type TSWHACTOR (in the binding from the task to the workflow, use the double arrow button) (http://scn.sap.com/docs/DOC-3036)

Once you have the list of all approvers, bind it back from Block striucture to the workflow and just send an email like above, TYPE ID G, select expression as that table (of type TSWHACTOR) (provided you do SO16 settings)

3) In the rejection branch , set a variable (using container operation), say LV_REJECTED = 'X'. pass this back from block to WF. In the END condition of the Block, check for this LV_REJECTED = X . This will end the block the moment it is rejected.

In the same rejection branch, save the rejection agent (_ACTUAL_AGENT from the task to the workflow in a new variable)., say in LV_REJ_AGENT of type SWHACTOR. Pass it back from the block to the workflow

After the block , send a revision item to the workflow initiator if LV_REJECTED = 'X', clear the rejection flag, after that activity of WF Initiator, loop back to top of block, replace the agent table with the LV_REJ_AGENT saved in the rejection branch.

Regards,

Modak

Former Member
0 Likes


Hello Modak,

Believe or not , i was expecting your answer only šŸ™‚ I followed your posts and those were interesting. being new in the workflow concept , i could take only some of it .

1. I want to send outlook  mail to requestor of confirmation that request has been submitted. and item text should contain the list of approvers agains the cost center . Which i have in my container ET_agents.However i am not sure from where to take requester ID and email.

2. i want to send same mail to all the approvers with same ITEM text.

I have takedn all the approvers email in one container in agent determination stage only , and attached the container directly in send mail and it is serving my purpose. But i want to attach cost center and there approver's list too. Which i am not able to do.

3. Let me apply your suggestion , and i will come back with question:-)

Former Member
0 Likes


I am working on cutom SRM requirement , It is not a HR system