cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple root in Orgchart

ibrahimhassan
Explorer
0 Kudos

Dear All,

Is it possible when the user belongs to 2 orgunits or more to have a virtual orgunit root and under this the user will have his root orgunits?

Now when I implemented the dynamic rooting for user. it shows the root object as the first orgunit the user belongs to. and discared the second one.

Best regards

Accepted Solutions (0)

Answers (5)

Answers (5)

lukemarson
Active Contributor
0 Kudos

Hi Mohamed,

Can you confirm if your question was answered? If your query has been answered, please close the thread and mark it as answered. If the post remains open with activity for a month it will be closed automatically.

Best regards,

Luke Marson

ibrahimhassan
Explorer
0 Kudos

Hello Luke,

Thanks for the clarification I will give it a try.

Thanks for your helb

Regards

M Ibrahim

ibrahimhassan
Explorer
0 Kudos

Hello,

regarding the same topic how can I do the same concept in the staged version ?

how the concept should be

regards

lukemarson
Active Contributor
0 Kudos

Hi Ibrahim,

I've found in the Live you can use a function in the downloadSchema called BAPI_SAP_OTFProcessor_Chart_VR (with the VR meaning Virtual Root). There should be a downloadSchema ref document in the ZIP file you downloaded from SMP.

Meanwhile the staged is a bit more difficult. You need to create the data in a table and then generate reecords for the dummy roots. You would need the user object to have the dummy root ID as the orgunit ID so that it can be matched in the defaultroot tag in your orgchart configuration. I just posted about using a custom root in another post by Jamie Bullen.

Good luck!

Luke

ibrahimhassan
Explorer
0 Kudos

Hi Luke,

Actually, yesterday I was able to do the virtual root in the staged version I was going to update the forum today. my idea is same as yours i tested this and it works.

Regarding live i saw the document but the guide is not so clear and doesn't provide an exact value refrence or examples.

I will give it a try

Thanks

Ibrahim

Former Member
0 Kudos

Let us know if you get it working with the live solution.

thanks.

JB

ibrahimhassan
Explorer
0 Kudos

Hello All,

Just to update everybody on the class _VR. it didn't work out as i wanted. secondly it is not dynamically setting the virtual root id.

therefore it would be better to stick with rfc to return the virtual node and its child. if someone did this before it would be great to share his experience ex. input output of this rfc how he did the data element,.... the idea or so

Regards

Ibrahim

lukemarson
Active Contributor
0 Kudos

Hi Ibrahim,

I have been thinking about this and struggle to think how it can be done in Live. There are 2 issues to consider:

1. HR-OCI returns an entire structure as XML so if you can add the dummy root objects, these will show up in the structure for other users to see.

2. The user authentication object needs to have the dummy object ID in it as the starting point. As this would be derived by a function module in the HR-OCI configuration it would not be available in a SAP table to be added to the object.

For what purposes are you performing this task? Maybe we can find a functional solution that might work.

Best regards,

Luke

ibrahimhassan
Explorer
0 Kudos

Hello Luke,

The idea is simple now a manager is managing 3 4 orgunits. in the same time i don't want to set static root then he will see all of the other orgunits. then when he logins he should see only the orgunits he manages then we need the dynamic dummy root. in the same time there are no structural authorization in place. also he should n't be able to navigate up.

regards

ibrahim

lukemarson
Active Contributor
0 Kudos

Hi Ibrahim,

Does each manager manage orgunits that are related, or are they in different parts of the structure. Only if they are related it might be worth your client changing their orgstructure in SAP to reflect this and add the "dummy" orgunit as a parent to the 3 or 4 they manage. Just a thought.

Cheers,

Luke

ibrahimhassan
Explorer
0 Kudos

I am afraid this is not possible for example a manager of one department might have a temp managing relation to another orgunit and what soever. so changing this in SAP backend i dont think it will be the right choice. there should be some way here otherwise the dynamic rooting functionality fails if one has more than one orgunit.

Regards

Edited by: Mohamed Ibrahim Aly Hossny M Hassan on Apr 20, 2011 2:26 PM

lukemarson
Active Contributor
0 Kudos

So you have different relationships for the manager to other orgunits? Does their position only have one 012 relationsip or multiple 012 relationships?

ibrahimhassan
Explorer
0 Kudos

It can be that one position has 2 012 or more with other orgunits. this is SAP standard. Nakisa get the orgunit in PA0001 and set it as the root. even in the other scenario where P has more than one S in diffrent orgunits Nakisa also ignores all that and uses the one in PA0001. but the fact is the user should be able to see all his orgunits if it is this way or another

lukemarson
Active Contributor
0 Kudos

SAP best practice is one chief per orgunit and this is what OrgChart is based on. You will have to do some SAP customization with the HR-OCI to achieve this requirement.

ibrahimhassan
Explorer
0 Kudos

Thanks Luke

Thanks Sebastian

If I want to go with the evaluation path solution that means I should create a new function module? Or Can I use the existing fm with another view ID?

Another question that means I will have 3 hierarchies one for person the dummy node at the begining one for positions and another for orgs? Right?

Regards

M. Ibrahim

lukemarson
Active Contributor
0 Kudos

Hi M. Ibrahim,

I expect for this solution you will probably need to create a function module to create the dummy root in the output of the HR-OCI module. I think this module exports XML (possibly compressed XML) to OrgChart. I have seen similar technical solutions created to derive S A 002 S relationships so I think a technical solution is possible.

I don't think you'd necessarily need to create a new orgchart, but it depends on your requirements. You could change the existing HR-OCI config in SAP for this orgchart or if you add new HR-OCI configuration then you can create a new orgchart.

Good luck!

Luke

Former Member
0 Kudos

The concept of dummy node is not supported in the regular, Out Of Box build of OC 3.0 Live.

As Luke suggested, you could handle this by using either a custom evaluation path (P-S-O-O) or with an HR-OCI view design to fit that purpose.

Best,

Sébastien

lukemarson
Active Contributor
0 Kudos

Hi Mohamed,

What version of OrgChart is this and is it Live or Staged? I expect that if you are using dynamic rooting then this is not possible. However, if you are using Staged I expect there might be some clever coding that can be done to achieve this.

Best regards,

Luke

ibrahimhassan
Explorer
0 Kudos

Hello Luke,

Sorry i forgot to mention. this is Live and nakisa version is 3.0 and i am using orgchart

Regards

ibrahimhassan
Explorer
0 Kudos

Hello Luke,

I debuged the Function call of the user population and it returns only the first orgunit. So is there some workaround to make it happening that with dynamic rooting the user can see all org units assigned under the area of responsibility

Regards

lukemarson
Active Contributor
0 Kudos

Hi Mohamed,

Not in the live version unless you alter the function module to return a "dummy" node to the application with all the users nodes underneath it. Another way could be to create a new evaluation path that contains a function module to derive this information. Other than that it can't actually be done on the application side.

Best regards,

Luke