on 04-02-2010 2:29 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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>
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>
........
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
10 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.