cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Org. Object to Rule?

former_member185879
Active Contributor
0 Kudos

Hi All,

Org Unit 1

*********HR Manager1

*********HR Manager2

*********Org. Unit 2

***************Manager2

********************Supervisor2

*********Org. Unit 3

***************Manager3

********************Supervisor3

This is my Organization structure. According to my scenario, i want to get approval from supervisor3 and manager3. After getting approval from manager3, the workitem should forwarded to supervisor2. Then as usual the approval process should continue to manager2 then both HR managers.

1. Can anyone help me to achieve this?

2. i think we have write custom rule? how can i achieve by using custom rule?

3. or is there any ways to achieve this scenario?

Thanks

Regards

SM Nizamudeen.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184495
Active Contributor
0 Kudos

Hi NS,

you could use Rule, where you could make use of std. FM

RH_GET_LEADING_POSITION which gives the position id, now using this position id, pass it to FM RH_OM_POSITION which would get you the agent name.

Hope it helps.

Aditya

Edited by: Aditya Varrier on Oct 15, 2008 11:46 AM

Edited by: Aditya Varrier on Oct 15, 2008 11:47 AM

former_member185879
Active Contributor
0 Kudos

Hi,

Can you tell me any FM to get the Organization Name and id of the current user or for the given position id?

and please tell me how to get the SOBID of the current approver?

Thanks

Regards

SM Nizamudeen

Edited by: Nizamudeen SM on Oct 15, 2008 9:28 AM

former_member184495
Active Contributor
0 Kudos

Hi NS,

check the 1st FM I told, it would give you the id and 2nd FM would give you the agent for that id.

Hope it helps.

Aditya

Edited by: Aditya Varrier on Oct 15, 2008 1:20 PM

former_member185879
Active Contributor
0 Kudos

Hi Aditya,

I check that FM. it is giving the object id. but for getting that object id i have to pass another objid as a input to that FM.

what i need is i want to get the object id of the person who logs in or the current user. then i have to pass that object id to the function module you specified.

Please help me out.

Thanks

Regards

SM Nizamudeen

Former Member
0 Kudos

You can get the User Id of the User and then you can check table PA0105 and find out the PERNR and then check table pa0001 to get the Position Id which will be required.

Thanks

Arghadip

former_member185879
Active Contributor
0 Kudos

Hi All,

Org Unit 1-500100

*********HR Manager1

*********HR Manager2

*********Org. Unit 2 - 500101

***************Manager2

*********Org. Unit 3 - 500102

***************Manager3

i got org unit ID 500102 when manager3 executes the task. my scenario is once manager3 has executed it should go to the Org. Unit 500101 That is it should go for Manager2's approval.

this is my real scenario. can anyone suggest me how to achieve.

Thanks

Regards

SM Nizamudeen

Answers (1)

Answers (1)

former_member185879
Active Contributor
0 Kudos

Thanks for your help experts. I passed a user name to the org. unit.