cancel
Showing results for 
Search instead for 
Did you mean: 

OrgChart error: Cannot find the root of your orgchart....

Former Member
0 Kudos

Hi,

I'm trying to install orgchart live.

When I run OrgChart - I got following error: "Cannot find the root of your orgchart...."

Well settings are following:

a) data connection: ASHOST=xxxxxxxxxxxx SYSNR=xx USER=xxxx PASSWD=xxxxxx CLIENT=xxx (this is OK)

b) General settings: 50000051 (for OrgChartRot - which is OK)

If i check CDS log I got following:

ERROR: StructGenerator : processStructureRules : Chart Is Empty (ChartingStruct.RootNodes == null)

Any idea?

Thx,

Damjan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Luke,

Yes, it is clear for me that this means that it cannot find data to use to create the structure.

My user has SAP_ALL authorisation. I'm using "anonymus" authentication method.

BR,

Damjan

lukemarson
Active Contributor
0 Kudos

Have you tried Forms login to see if this helps? It may be that you cannot get data from SAP (live) with Anonymous logon. I'm sure you can, but none of my clients use anonymous authentication.

Former Member
0 Kudos

Well it works before (in my old PC) with anonymous. But now (with this instalation) I have this error massage. And because of demand we must use anonymous.

lukemarson
Active Contributor
0 Kudos

I thought it should work okay with Anonymous. Are you connecting to the same SAP system as the instance on your PC that worked?

Former Member
0 Kudos

Sure. I tried on all systems that it works before (DEV, QAS, PRD), so I realy have no idea what could be this time, I have no idea

lukemarson
Active Contributor
0 Kudos

What version are you using?

Former Member
0 Kudos

still 1.1 .

lukemarson
Active Contributor
0 Kudos

Have you tried running the Hcm_Get_Orgstructure_As_Xml BAPI in SAP with your variables? If this returns data then the problem lies with OrgChart and/or it's configuration. If you check the data element in AppResources.xml you can find all of the variables like the view names etc. I think it's SAPOrgUnitHierarchyDataElement.

Former Member
0 Kudos

se37 or what? I don't know how to do it...

lukemarson
Active Contributor
0 Kudos

You should be able to do it in SE37. Maybe ask an OM consultant or ABAPer as they should know this BAPI.

Former Member
0 Kudos

I managed to run it via sm37.

Function module: HCM_GET_ORGSTRUCTURE_AS_XML

Function module => Test => Single test (F8)

Test for function group HCM_ORG_PUBLISH_XML

Function module HCM_GET_ORGSTRUCTURE_AS_XML

Uppercase/Lowercase empty

RFC target sys: TMSSUPxTER.TRANS_DOM (this is OK)

I_VIEWID OCIMIN

I_ORGSCENARIO empty

I_OTYPE US

I_OBJID DADR

I_PLANVARIANT empty

I_BEGINDATE 05.04.2010

I_ENDDATE 05.04.2010

I_KEYDATE 05.04.2010

Resut:

XMLSTRING

RETURN 000

So as it looks like, here is everything OK, I guess.

lukemarson
Active Contributor
0 Kudos

If it says RETURN 000 then it means it returned no records. However, you need to import all of the variables that are in your AppResources.xml for that data element, such as the view Id, object type, root object ID etc

Former Member
0 Kudos

Where and how can I find AppResources.xml to see what data element I need?

lukemarson
Active Contributor
0 Kudos

In your build folder (\Admin_Config\<build>) or the runtime folder (\XML).

Former Member
0 Kudos

OK I'm there.

Any hint from here on reagarding "If it says RETURN 000 then it means it returned no records. However, you need to import all of the variables that are in your AppResources.xml for that data element, such as the view Id, object type, root object ID etc". Thx

lukemarson
Active Contributor
0 Kudos

When you run the BAPI you can enter a number of details. You need to enter the ones that the org unit data element uses. You need to get the conditions exactly right in order to replicate whether it is working or not.

Former Member
0 Kudos

the problem is, that I don't know which are those conditions....I'm looking at AppResources.xml and I'm lost....where to look....can I send you my file?

Former Member
0 Kudos

well...I also check V_TWPC_V table for views ZVW02M, ZVWO2O and ZVWO2P, but thay are OK...

in OrgChart log I get following error:

ERROR: StructGenerator : processStructureRules : Chart Is Empty (ChartingStruct.RootNodes == null)

Edited by: Damjan Drnovsek on Apr 15, 2010 12:17 PM

lukemarson
Active Contributor
0 Kudos

I think it's OrgUnitHierarchyDataElement for your structure.

Former Member
0 Kudos

here is part of code from AppResources.xml regarding SAPOrgUnitHierarchy....do you see any problem here?

<hierarchy name="SAPOrgUnitHierarchy">

<caption key="SAPOrgUnitHierarchy_OrgUnit"><![CDATA[Org Unit]]></caption>

<processingmode>live</processingmode>

<checkparentexists>True</checkparentexists>

<dataelement>

<hierarchydataelement>SAPOrgUnitDataElement</hierarchydataelement>

<displaydataelement>SAPOrgUnitDataElement</displaydataelement>

</dataelement>

<filter>

<hierarchyparentexists><![CDATA[ParentNo > '']]></hierarchyparentexists>

</filter>

<fields>

<hierarchyidfield>ID</hierarchyidfield>

<hierarchyparentfield>ParentNo</hierarchyparentfield>

<hierarchyparentgroupfield>

</hierarchyparentgroupfield>

<elementidfield>ID</elementidfield>

<sort>

<field name="Name" defaultsort="asc" allowsortasc="True" allowsortdesc="True" />

</sort>

</fields>

</hierarchy>

lukemarson
Active Contributor
0 Kudos

HI Damjan,

The section you need is the data element called SAPOrgUnitDataElement in the <dataelementconfiguration> section.

Luke

Former Member
0 Kudos

Luke...this is the part....

<dataelementconfiguration>

<dataelement name="SAPOrgUnitDataElement" webservice="False">

<extrainfo>

<item>

<name><![CDATA[DLL]]></name>

<value><![CDATA[Nakisa.SAP.SAPProcessor]]></value>

</item>

<item>

<name><![CDATA[CLASS]]></name>

<value><![CDATA[Nakisa.SAP.SAPProcessor.BAPI_Hroci]]></value>

</item>

<item>

<name><![CDATA[ParentViewId]]></name>

<value><![CDATA[ZVWO2P]]></value>

</item>

<item>

<name><![CDATA[ViewId]]></name>

<value><![CDATA[ZVWO2O]]></value>

</item>

........

lukemarson
Active Contributor
0 Kudos

Is there anything else in the <extrainfo> section?

Former Member
0 Kudos

sure....

<extrainfo>

<item>

<name><![CDATA[DLL]]></name>

<value><![CDATA[Nakisa.SAP.SAPProcessor]]></value>

</item>

<item>

<name><![CDATA[CLASS]]></name>

<value><![CDATA[Nakisa.SAP.SAPProcessor.BAPI_Hroci]]></value>

</item>

<item>

<name><![CDATA[ParentViewId]]></name>

<value><![CDATA[ZVWO2P]]></value>

</item>

<item>

<name><![CDATA[ViewId]]></name>

<value><![CDATA[ZVWO2O]]></value>

</item>

<item>

<name><![CDATA[ObjectType]]></name>

<value><![CDATA[O]]></value>

</item>

<item>

<name><![CDATA[Depth]]></name>

<value><![CDATA[3]]></value>

</item>

<item>

<name><![CDATA[PlanVersion]]></name>

<value><![CDATA[01]]></value>

</item>

<item>

<name><![CDATA[BapiName]]></name>

<value><![CDATA[Hcm_Get_Orgstructure_As_Xml]]></value>

</item>

<item>

<name><![CDATA[AddChildrenFlag]]></name>

<value><![CDATA[True]]></value>

</item>

<item>

<name><![CDATA[mail]]></name>

<value><![CDATA[]]></value>

</item>

</extrainfo>

do you see something here...

Any idea from here on...what should I do?

Edited by: Damjan Drnovsek on Apr 21, 2010 3:54 PM

Former Member
0 Kudos

Hi Damjan,

Just wondering - you mentioned that this worked previously on your old PC?

Can you tell us what is the difference between this current installation and the build on your old PC? What happens if you just copy the build from there to your new PC?

I'd like to try to pinpoint where the failure is - something in the RFC, or the server or config

Thanks

Former Member
0 Kudos

Hi Charles,

well mc PC brake down so I have to reinstall it. So I can't just copy. I know there is somerhing with RFC I guess.

Config seems OK to me....

Well anyway we can go step by step to check things....one by one....

Former Member
0 Kudos

Sorry we couldn't help you out more... I would go back and start with the RFCs and make sure that data is returned. If you have the transport for the HROCI evaluation paths, you could reapply that just to be sure?

Thanks, and best of luck! Do let us know what happens?

lukemarson
Active Contributor
0 Kudos

That error means it cannot find data to use to create the structure. What authentication method are you using? If you are using Forms login but haven't configured the authentication settings correctly then it may not work. Also, if you are using this method of authentication then you shouldn't put the username and password in the connection string if you want structural authorizations to be used by OrgChart. You should also check the authorisations your user has.