• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

GETTING ROLES FROM A POSITION ID

Hello,
How can we get the associated roles for a particular position id.

is it the table "hrp1001"?

Thanks in advance
0
wong83
Asked:
wong83
  • 4
  • 2
1 Solution
 
jonvaughanCommented:
This is quite tricky and not something I am expert on ...
However...

In HR the main Function module is

HR_SELECT_WITH_PATH

using this you can start from an Org unit ( your position ) and using what are known as "Evaluation paths" you can get back any of the data from that position - so you can get a list of all people who are subordinaate to a position etc.

Getting the damn thing to work is not so easy.

I will try to get an example together for you ... but you are probably better off having a go yourself in SE37.

Jon


0
 
jonvaughanCommented:
You can find the evaluation paths in SPRO -- > Personnel management --> Basic Settings --> Maintain Evaluation Paths

i think you might be after A201 -- Assigned roles.]

Cheers
Jon
0
 
wong83Author Commented:
Jon

You are talking about very high level stuff!!!
I can get a perner from pa20 then use this in p013d to get a position no

Now Im trying to get a list of roles assigned to this particular no

I know they do it using the table hrp1001 but I'm not sure about the fields that needs to be populated.

wong
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
jonvaughanCommented:
OK - the thing about using the correct method with the evaluation paths is that it takes into account what is planned, active , what is within the date ranges and what is the correct status and is set to the users authorisations .... also whether it is top down or bottom up that you are looking for.

if you want to go straight to the table you need to take all this into account yourself ....

Whereas using the evaluation path you start with a pernr and it gives you all the rolls .....


0
 
wong83Author Commented:
ok!! Here you go

use po13d, put in your position no in it, choose the relationship infotype and hit the glasses icon(display) and BOOM! the icon now changes to an arrow mark. hit it to view all the roles assigned to the position.


0
 
jonvaughanCommented:
Sorry - Ithought you were talking about how to get it via an ABAP !!! thrown by the table reference ....
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now