cancel
Showing results for 
Search instead for 
Did you mean: 

iView "Related activities" and WF_INITIATOR

Former Member
0 Kudos

Hi,

We're using the iView "Related Activities" (former ESS in MSS) to let secretaries take care of posting travel expenses for other employees. We're also using workflow for the approval process of travel expenses.

Our problem occurs when a secretary creates a travel expense workitem on behalf of another employee. The system then sets the secreatary as workflow initiator and the workitem is therefore sent to the secretarys manager instead of to the managar which the workitem really belongs.

Any thoughts on how to fix this problem?

Regards

Geir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Geir,

I just tell you why this happens.

In SAP everything is releated the SAP logon id, so i think you have designed the workflow just picking the logon id and you use the rule for determining his manager.

Do proceed with this approch. Follow this approch.

Dont always check for the initator's user id, make the task as general task such that who ever can start the task but pic the user id from the travel expense scenario ( i think there is field user ) Pick that field and do other things as you do.

Hope this will help you.

Regards

Balaji E.

Former Member
0 Kudos

Hi Balaji!

Problem solved, thank you. Points awarded.

Regards

Geir

Former Member
0 Kudos

Hi ,

I have not got any points ya.

If your problem solved through my solution award me points.

Regards

Balaji E.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Geir,

You can add a activity step (background) in your workflow template - to determine the manager of the Person for whom the request has been raised.

You can add a Method ( for determining the Manager of the employee ) in the Business Object used for this workflow and call the Method in the background activity step.

In this method

You can first read the Person for whom the form is raised.

Find his manager of the person using the relationship B002

and then find the User id mapped to the Manager Pernr using IT105.

and then transfer the Manager id found to a workflow container.

May be, then it will be routed to the Manager of the employee for whom the request is raised, irrespective of whether it is raised by the secretary or the employee himself.

Regards,

raj