Oracle HRMS Organization Hierarchy query

Dear All,
Could any one provide me Oracle HRMS Organization Hierarchy query, please find the attachment of navigation.
and please find the following query i developed, here i am getting all hierarchies as per attachment.
SELECT distinct pose.D_PARENT_NAME , pose.org_structure_version_id,pose.organization_id_parent,
    haou2.ORGANIZATION_ID PARENT_ID_ORG,
    pose.D_CHILD_NAME
FROM   apps.per_organization_structures_v pos
       ,      apps.per_org_structure_versions  posv
       ,      apps.per_org_structure_elements_v  pose
       ,      apps.hr_all_organization_units   haou2
WHERE  pos.name = 'PIC HR ORGANIZATION HIERARCHY'
AND    pose.D_PARENT_NAME='CHAIRMAN'
AND    pose.org_structure_version_id = posv.org_structure_version_id
AND    posv.organization_structure_id = pos.organization_structure_id
AND    haou2.organization_id = pose.organization_id_child
and    pose.D_PARENT_NAME=nvl(:P_PARENT_NAME,pose.D_PARENT_NAME)
and    pose.D_CHILD_NAME=nvl(:P_CHILD_NAME,pose.D_CHILD_NAME)
and    sysdate between posv.DATE_FROM and nvl(posv.DATE_TO,sysdate)
CONNECT BY PRIOR pose.organization_id_parent = pose.organization_id_child
can any one help me on this??
Thanks in advance..
Best Regards

Hi,
Try the following query and adapt as required for your instance (I've used Vision instance):
SELECT DISTINCT pose.d_parent_name,
  pose.organization_id_parent,
  pose.d_child_name,
  pose.organization_id_child
FROM
  per_org_structure_elements_v pose,
  per_org_structure_versions posv,
  per_organization_structures pos
WHERE pos.name                                       = 'Primary Reporting Hierarchy'
AND posv.version_number                              = 1
AND pos.business_group_id                            = 202
AND posv.organization_structure_id                   = pos.organization_structure_id
AND pose.org_structure_version_id                    = posv.org_structure_version_id
AND pose.business_group_id                           = pos.business_group_id
AND posv.business_group_id                           = pose.business_group_id
  START WITH pose.d_parent_name                      = 'Vision Operations'
  CONNECT BY NOCYCLE PRIOR pose.organization_id_child = pose.organization_id_parent
ORDER BY pose.organization_id_parent,  pose.organization_id_child
HTH,
Regards,
Rajen.
P.S: Please mark response as Helpful/Correct (Answered) if it resolves or helps to resolve your issue. Thks.

Similar Messages

  • New employee organization hierarchy version in HRMS doubles dashboard totals in OBIEE

    Hi,
    On creation of a new version of the Employee Organization hierarchy, some of the OBIEE dashboards & analyses that were oracle seeded function show ...
    Total Employee headcount  =   total employee headcount from hierarchy ver 1 + total emp headcount hierarchy ver 2
    Which is incorrect and misleading in the reports. (Similar issues for FTE..... )
    Firstly, is this normal ----- or has the versioning been implemented incorrectly, or is there missing aggregation at the Ebusiness, BI rpd or dashboard level?
    Secondly, what is the best solution to display the relevant hierarchy based on the report dates?
    If there is further aggregation needed, how can this be added without needing to update it every time a new employee organization hierarchy version is copied?
    Thanks,

    Hi,
    You need to create the drill down report also using selection steps. I tried the drill down was working fine.
    Thanks

  • Query for Cost Code in oracle HRMS

    Hello Exports,
    i am new in oacle hrms,
    So Can you please tell how to fetch cost code in oracle hrms r12 ( i need sql query for cost code )
    Thanks

    try the following (assignment costing as at today):
    select ppx.full_name
    ,ppx.employee_number
    ,pax.assignment_number
    ,pax.primary_flag
    ,pcax.proportion
    ,pcak.segment1
    ,pcak.segment2
    ,pcak.segment3
    ,pcak.segment4
    from per_assignments_x pax
    ,per_people_x ppx
    ,pay_cost_allocations_x pcax
    ,pay_cost_allocation_keyflex pcak
    where ppx.person_id = pax.person_id
    and pax.assignment_id = pcax.assignment_id
    and pcak.cost_allocation_keyflex_id = pcax.cost_allocation_keyflex_id

  • "Organization Unit" in Oracle HRMS

    What is siginificance of "Organization Unit" in Oracle HRMS in Any context. Does it have impact any HR Modules?
    Thanks

    we was working on a some custom report XML Publisher report.
    After some patching on system, all reports gives error like "your Operating unit should be set" i dont have exact error trace.
    I did not find any solution in reference of HRMS.
    I have made a organization and classify as "Operating Unit" and then set "HR Operating Unit" Profile with this organizaton name.
    After that i did not get this error.
    After doing this corrective action i was having questions in my mind that " What is imprtance of Operating unit in HRMS" .?
    Thanks

  • Display organization hierarchy Oracle HR in columns

    Dear gurus,
    I need to display organization hierarchy Oracle HR in columns not in rows. like this
    NAME1 NAME2 NAME3 NAME4
    Directorate of Finance Accounting Sub Dir Financial Acc Div Exp Acc Dept
    Directorate of Finance Accounting Sub Dir Financial Acc Div Revenue Dept
    Directorate of Finance Business Cont Sub Dir Budget Div HO Budget Dept
    Is there any ever do this ? I hope somebody could give me the queries
    rdgs,

    within a custom plsql function you can concatenate the organizations to construct the line as required.

  • ORDER BY IN HIERARCHIAL QUERY

    Cosider the following record set from the emp table.
    empno ename mgr
    7839 KING     
    7566 SCOTT 7839
    7566 BLAKE 7839
    7782 CLARK 7839
    If I use the following hierarchial query to populate a tree in Oracle forms
    I will get the result as shown below.
    Query
    =====
    select -1, level, ename, null, ename
    from emp
    where empno in (7839,7566,7698,7782)
    start with ename = 'KING'
    connect by mgr = prior empno;
    Result
    ======
    KING
    JONES
    BLAKE
    CLARK
    Here is my problem. Though diffrent employees can work under a manager,
    we have some internal rules that assigns an order to each employee who
    works under a manager. This helps us in identifying who should take
    charge in the absence of a manager.
    I have added one column to the emp table, in order to store the order in
    which the employee reports to the manager.
    Now the record set becomes
    empno ename mgr emp_order
    7839 KING     0
    7566 SCOTT 7839 1
    7566 BLAKE 7839 3
    7782 CLARK 7839 2
    Now I want the forms tree to be displayed as shown below.
    KING
    JONES
    CLARK
    BLAKE
    (In short, I want the records in a particular level to be displayed
    according to a pre-defined order, rather than getting them displayed
    randomly).
    Which query can I use for this purpose ?
    Please help....
    Shibu

    Hi Guys,
    Thanks a lot for your suggestions.
    It really works great in SQL Plus.
    I am familiar with Oracle Forms and I know how to use it if I want to build a tree in Forms.
    Here is my requirement. I want to build the application using Oracle Portal. I know that there is something called 'Hierarchy' available in Portal. I don't know up to what extend it gives flexibility in programatically populating the tree.
    Here is the scenario. I will use the hierarchial query with CONNECT SIBLINGS BY clause to populate the a tree which will show me employees in a department hierarchially.
    Eg:
    KING
    SCOTT
    BLAKE
    SMITH
    Now I like to show the projects assigned to each employee, which itself can be considered as another hierarchy.
    Eg of Projects hierarchy.
    Projects
    Development
    Oracle Applications
    HRMS
    Support
    Intranet Applications
    Suppose SCOTT is working in HRMS project, the tree should show as,
    KING
    SCOTT
    Projects
    Development
    Oracle Applications
    HRMS
    BLAKE
    SMITH
    I can color code the node which will distinguish between an employee and his assignments.
    Is there a way to achieve it in Oracle Portal using the 'Hierarchy' or what may be the best way to go (Applet etc...) ???
    Thanks in advance for your help.
    Shibu

  • Oracle HRMS delivered reports

    Hi,
    Are there are any standard reports (regarding employee,assignment details etc..) available as seeded in Oracle? The only ones I could see are the EEO reporting.
    Thanks
    Usha.

    Usha,
    I am hesitant to specify potential conflicts and impact since I don't know the particular details of your setups and configuration. You can set up numerous organization hierarchies to meet your reporting needs, as outlined in the reading below.
    However, the references for the areas of integration you mentioned in your posting are:
    Oracle HRMS Implementation Guide [B14466-01]
    Define Organization Hierarchies (Optional)
    An organization can belong to any number of hierarchies, but it can only appear once in any hierarchy.
    Enable Position Control on Organizations (Optional)
    Designate an organization hierarchy as the primary position control hierarchy. Any versions you create of this hierarchy are also position controlled.
    Oracle HRMS Enterprise and Workforce Management Guide (Global) [B14467-01]
    See Organization Hierarchies
    Oracle Projects Implementation Guide Release 11i [B12389-04]
    See Dening Organization Hierarchies
    Regards,
    Greg

  • Sql statement for Organization Hierarchy

    Good day,
    Just wondering if there's a script/sql statement that would generate the Organization Hierarchy (similar to Organization Hierarchy Editor) in Oracle HRMS EBS 11.5.10
    Thanks
    Elmer

    Just wondering if there's a script/sql statement that would generate the Organization Hierarchy (similar to Organization Hierarchy Editor) in Oracle HRMS EBS 11.5.10Please see if (How To Extract HR Organization Hierarchies by SQL? [ID 463359.1]) helps.
    Thanks,
    Hussein

  • The organization hierarchy export function of OIM

    I'd like to export the complete organization hierarchy which has been built in our test env using the deployment manager. But when I execute the export operation, I confront the following error:
    ERROR AJPRequestHandler-RMICallHandler-37 com.nexaweb.server.util.RequestUtil - RequestUtil.parsePostData
    java.io.IOException: parse form data in RequestUtil.java error
         at com.nexaweb.server.util.RequestUtil.parsePostData(RequestUtil.java:278)
         at com.nexaweb.server.util.RequestUtil.readFormData(RequestUtil.java:228)
         at com.nexaweb.server.servlet.NexawebServletRequestWrapper23.handleParameters(NexawebServletRequestWrapper23.java:524)
         at com.nexaweb.server.servlet.NexawebServletRequestWrapper23.<init>(NexawebServletRequestWrapper23.java:79)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.nexaweb.server.servlet.ConnectionFactory.getServletRequestWrapper(ConnectionFactory.java:231)
         at com.nexaweb.server.NexawebServer.doGet(NexawebServer.java:333)
         at com.nexaweb.server.admin.ServerAdmin.callNexawebServer(ServerAdmin.java:378)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.nexaweb.loader.xMethodInvoker.runInThread(xMethodInvoker.java:69)
         at com.nexaweb.server.api.admin.ServerAdminProxy.callNexawebServer(ServerAdminProxy.java:551)
         at com.nexaweb.redirect.RedirectServlet.doGet(RedirectServlet.java:18)
         at com.nexaweb.redirect.RedirectServlet.doPost(RedirectServlet.java:28)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Does anyone confront the similar problem?
    BTW: We have about 3500 records in organization hierarchy.

    Go into Firefox then when its open press these keys: CTRL + SHIFT + B , you will get a window that opens that looks like this: [http://imageshack.us/m/62/1155/33333333333333333333333d.png *CLICK HERE*] , then at the top of the window you will see Import & Backup , click on that and then you can export your bookmarks.

  • How to define branches of a bank in oracle hrms

    Hi
    Im new to oracle hrms and i have a question regarding on how to reflect the different branches of a bank in oracle hrms.Is it through defining an organization for each branch ?Please advice
    Thank you
    regards

    For Which Localization are you working?
    If it is UK - Define Banks against Lookup GB_BANKS and branch locations against Lookup GB_COUNTRY.

  • ORA-01436 CONNECT by loop in user data Oracle HRMS - How do I prevent this?

    I am getting from time to time an error when users are performing tasks in Oracle HRMS that comes back as ORA-01436 CONNECT by loop in user data.
    This issue is caused when there exists a loop in the Supervisor hierarchy.
    For ex: Emp A reports to Emp B and Emp B reports to A
    OR
    Emp A reports to B and B reports to C and C reports to A.
    It can be any of the above or if there are more approvers then there can be a
    bigger loop.
    This is described on Oracle Metalink Doc ID: 275819.1
    This happens to us regularly; someone puts the manager of an employee as the subordinate of the 1st employee - of course this is not logically possible!
    My question is how do i prevent this in the HRMS Manager tool or the Self Service functionality - I want the user to be informed and prevented from creating these infinite loops in the first place ...any ideas?

    Hi,
    We suffer same the kind of issue but as you might have seen there is no immediate answer from Oracle about implementing a check within the Application forms/SS. In the end we wrote a report to hunt to locate loops in employee supervisor chain and report any circular references it finds. This report is scheduled to run every day and the customer reviews the output and then fixes the loops. Not ideal but we've not had chance to investigate a custom trigger say on the per_all_assignments_f table.

  • Emergency Contacts in Oracle HRMS

    Hi,
    We are in process of extracting data from Oracle HRMS and send it to ADP.
    We have to pull Emergency contacts details for a person.
    I can see the table per_contact_relationships, which stores the person_id, contact_person_id, contact_type.
    But where do I see the relationship for that person?
    Suppose if I have person_id as 123, and contact_person_id as 789, and contact_type = 'EMRG',
    I want the relationship between these two persons, like Spouse, Child, Daughter etc.
    Which table stores these relationships?
    Please clarify...
    Thank you,
    Edited by: user7995362 on May 29, 2011 10:20 PM

    Hi
    CONTACT_TYPE column of table per_contact_relationships stores the Relationship between employee and contact.In your example 'EMRG' is Relationship between employee and contact.
    If you query for Spouse then you will see the contact type='S' for spouse.
    HTH
    Gaurav

  • Job, Position, Grade setup in Oracle HRMS R12

    Hi All,
    I have created three Flexfield for Job, Position, Grade in HRMS R12. Then i created business group Test ABC Organization.
    The Job, Position and Grade Felexfield is working good using Work Structure. Now i want to add these Flexfield in Assignment window in of People.
    Please help me to find out this solution.
    Your help would highly appreciated
    Thanks.

    HI
    please seee this
    http://docs.oracle.com/cd/A60725_05/html/comnls/us/per/iw04c06.htm
    http://docs.oracle.com/cd/E18727_01/doc.121/e13509/T2096T2100.htm
    http://docs.oracle.com/cd/A60725_05/html/comnls/us/per/flexax.htm
    http://oracle.anilpassi.com/forms-personalization-in-oracle-hrms.html
    ;) AppsmAstI ;)
    Sharing Is Caring

  • Project Organization Hierarchy

    Hi,
    Please some one explain the Business purpose of defining Project Organization Hierarchy. Why we need to define Project & expenditure Organization Hierarchy
    As per the user guide "An organization hierarchy illustrates the relationships between your organizations.When you define a hierarchy, you tell Oracle Projects which organizations are subordinate to which other organizations"
    What is use of informing "Oracle Projects which organizations are subordinate to which other organizations".
    If it is for reporting how it is help in the reporting? is the report rollup information in the top organizaiton?
    Thanks
    Govind

    Hi
    The organizations hierarchy is used in two places.
    A) When defining burden schedule for costing or billing, you can enter burden rate (multiplier) on any level of parent organization in the hierarchy. Then run Compile. The system allocates the multiplier value to all organizations which are subordinates of the organization which hold the multiplier.
    B) You can select any parent organization in the hierarchy and add to it the classification - Projects Invoice Collection Organization. The run the process to create Transaction Types in AR for that parent org. When generating invoices for a project and transferring them to AR, the system go up the hierarchy from the project owning organization till the first parent with that classification. The associate the appropriate transaction type to the invoice when imported to AR. This functionality depend on implementation options - non centralized invoicing.
    I think that standard Reporting within Oracle Projects does not roll up along the organization hierarchy. However, it may be rolling up in Projects Inteligence or OBIA.
    Dina

  • Hierarchial query problem

    Hi,
    We are trying to convert some old sql code to using Hierarchical queries, but am finding that the connect by expression is causing some errors for us. I have tried to follow the managedEmployees example from the web site but am not getting the parameters set correctly and keep getting the error below. I have attached our old code as well as the new code using Toplink. Please let me know if you see any issues with this.
    Also, we have wrapped the Expression and ReadAllQuery classes with our own classes which is why we're not invoking those directly in the code below.
    Thanks for the help,
    Mark
    Old SQL
              DataExpression where = new DataExpression().get("organizationId").notNull();
              String extraSQL = new String("");
              extraSQL += " START WITH organization_id = " + orgId + " ";
              extraSQL += " CONNECT BY PRIOR organization_id = parent_id ";
              where.appendSQL(extraSQL);
    Hierarchical query using Toplink
              DataReadAllQuery raq = new DataReadAllQuery(Organization.class);
    //          Specify a START WITH expression
              DataExpression startExpr = new DataExpression().get("organizationId").equal(orgId);
    //          Specifies a CONNECT BY expression
              DataExpression connectBy = new DataExpression().get("organizationId").equal(new DataExpression().get("parentId"));
    //          Specifies an ORDER SIBLINGS BY vector
              Vector order = new Vector();
              raq.setHierarchicalQueryClause(startExpr, connectBy, order);
              return QueryEngine.readAll(raq);
    Error
    TopLink Warning]: 2005.08.04 06:28:19.765--ServerSession(16237341)--Exception [TOPLINK-6073] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.QueryException
    Exception Description: Malformed expression in query. Attempting to print an object reference into an SQL statement for query key [
    Relation operator =
    Query Key organizationId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}
    Query Key parentId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}].
    Query: ReadAllQuery(mil.usmc.mol.organization.Organization)
    Aug 4, 2005 6:28:19 PM mil.usmc.mol.persistence.QueryEngine executeQuery
    SEVERE: Error performing query. Nested exception is:
    Exception Description: Malformed expression in query. Attempting to print an object reference into an SQL statement for query key [
    Relation operator =
    Query Key organizationId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}
    Query Key parentId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}].
    Query: ReadAllQuery(mil.usmc.mol.organization.Organization)

    I've modified it to call the toplink classes directly, but still get the same error..
              ReadAllQuery raq = new ReadAllQuery(Organization.class);
              ExpressionBuilder expressionBuilder = raq.getExpressionBuilder();
              Expression startExpr = expressionBuilder.get("organizationId").equal(orgId);
              Expression connectBy = expressionBuilder.get("organizationId").equal(expressionBuilder.get("parentId"));
              Vector order = new Vector();
              raq.setHierarchicalQueryClause(startExpr, connectBy, order);
              SessionManager manager = SessionManager.getManager();
              Session session = manager.getSession("DEFAULT");
    UnitOfWork uow = session.acquireUnitOfWork();
              return (Collection) uow.executeQuery(raq);
    [TopLink Info]: 2005.08.05 11:09:32.090--ServerSession(16237341)--TopLink, version: Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)
    [TopLink Info]: 2005.08.05 11:09:34.200--ServerSession(16237341)--DEFAULT login successful
    [TopLink Warning]: 2005.08.05 11:09:34.262--UnitOfWork(20039836)--Exception [TOPLINK-6073] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.QueryException
    Exception Description: Malformed expression in query. Attempting to print an object reference into an SQL statement for query key [
    Relation operator =
    Query Key organizationId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}
    Query Key parentId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}].
    Query: ReadAllQuery(mil.usmc.mol.organization.Organization)
    Local Exception Stack:
    Exception [TOPLINK-6073] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.QueryException
    Exception Description: Malformed expression in query. Attempting to print an object reference into an SQL statement for query key [
    Relation operator =
    Query Key organizationId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}
    Query Key parentId
    Base mil.usmc.mol.organization.Organization{DatabaseTable(t0)=DatabaseTable(ORGANIZATIONS)}].
    Query: ReadAllQuery(mil.usmc.mol.organization.Organization)

Maybe you are looking for