cancel
Showing results for 
Search instead for 
Did you mean: 

To get Organizational Structure

Former Member
0 Kudos

Hi..

I am new to CRM SAP....

How can i get organizational units under an organization structure?

My requirement is to get the Org units under an org structure and then get the heads of each of these units...

Are there any FMs for these requirements and what are the input data that needs to be given ?

Kindly help me with this...

Helpful Pointers would be rewarded...

Thanks...

Accepted Solutions (1)

Accepted Solutions (1)

BGarcia
Active Contributor
0 Kudos

Hi Swapna,

See if this info may help you:

You can use FM CRM_ORGMAN_DIR_ASSIGNMENTS_GET, to get the below organization structures ID. Use as input paramater the object id of your organizational unit that is showned in t-code PPOSA_CRM

Also, the function module RH_STRUC_GET may offer you all data related to a org. object. For example, to get all BP from a position, call this FM filling this parameters:

ACT_OTYPE = 'O' (for organization code)

ACT_OBJID = <your organization id> (org objid)

ACT_WEGID = 'ORGEH' (path for search: Org.unit->sub Org.units)

If you need any more help regarding this, just write back.

Kind regards,

Bruno

Former Member
0 Kudos

Hi Bruno...

Thanks for the reply...

But the FM CRM_ORGMAN_DIR_ASSIGNMENTS_GET has two obligatory parameters IV_OTYPE and IV_REALO that i need to pass.

Where can i get these data from?

In case of RH_STRUC_GET , there is ID as well as Business Partner in transaction ppoma_crm , of that which should i give as org id?

Org details are stored in table HRP1000?

The relationship details are in table HRP1001?

Have rewarded you with points...

Thanks....

BGarcia
Active Contributor
0 Kudos

Hi,

Well, the iv_otype refers to the type of the object. Something like this: O means Organization, S means Position, CP means Business Partner.

The iv_realo is the object id of the organization at organizational structure.

You can check both of these inputs in PPOSA_CRM transaction, on ID column (ex: O 50001076). Here iv_otype is O, and v_realo is 50001076.

In the second function the logic is the same. Only that parameters are now called ACT_OTYPE and ACT_OBJID.

The parameter ACT_WEGID defines what you want to get. If you put the one that I've told you, you'll get the org.units below. If you put something like O-O, you'll get the org. units above. Or if you put O-S-CP, you'll get all positions and business partner, below that org.unit.

Write back if you still have doubts.

Kind regards,

Former Member
0 Kudos

Hi Bruno...

That was so kind of you to explain....

Can you guide me as to how can i retrieve Employees assigned to a particular position of each of these org units of the org structure that i retrieved through this FM?

Thanks....a lot...

BGarcia
Active Contributor
0 Kudos

Hi there,

Try this:

Call function module RH_STRUC_GET. For example, to get all BP from a position:

ACT_OTYPE = 'S' (for position code)

ACT_OBJID = <your position id> (position objid)

ACT_WEGID = 'O-S-CP' (path for search: Org.unit->Positions->Business Partners)

Kind regards.

PS: I've check an error in my earlier reply. when I said 'For example, to get all BP from a position, call this FM filling this parameters:', I wanted to say 'For example, to get all BP from a organizational unit, call this FM filling this parameters:'

Edited by: Bruno Garcia on Oct 31, 2008 11:26 AM

Former Member
0 Kudos

Hi...

Thanks...

Answers (0)