IExpense Supervisor Hierarchy

Hello all!
Does anyone know of an existing report or some SQL that they have to view how the Supervisor hierarchy is setup for the iExpense approval workflow? (View Employees>More>Supervisor)
We have had several issues where there ends up being a loop in the hierarchy but we have know way to currently find it except to go through each employee one by one and see who their supervisor is. If we could run a report to show this, it would help tremendously! We are also running into this issue with the requisition approval process as it uses the same employee/supervisor hierarchy.
Thanks!
Janel

This query should give you who is the manager.
select per.person_id
     ,per.business_group_id
     ,per.full_name
     ,pera.business_group_id
     ,pera.organization_id
     ,pera.position_id
     ,pera.d_position_id
     ,pera.job_id
     ,pera.d_job_id
     ,pera.supervisor_id
     ,(select per2.full_name from per_people_v per2 where per2.person_id = pera.supervisor_id) Manager_name
     from PER_PEOPLE_v per
               ,per_Assignments_v pera
               where per.person_id = pera.person_id
let me know if this works.
[email protected]

Similar Messages

  • Query for HRMS supervisor hierarchy

    I need to list all people in a given person's supervisor hierarchy. The following query returns me a person's direct manager and whether or not that person is an officer. I've tried using connect by to return all supervisors in the person's hierarchy but cannot get it working thus far. Any idea what I am doing wrong with the connect by?
    SELECT papf.employee_number,
    papf.person_id,
    papf.full_name,
    ppg.segment1 officer_flag,
    NVL(spapf.full_name,'NONE') supervisor_name,
    spapf.person_id,
    spapf.email_address
    FROM per_all_people_f papf,
    per_all_assignments_f paaf,
    pay_people_groups ppg,
    per_all_people_f spapf
    WHERE papf.person_id = :person_id
    AND papf.person_id = paaf.person_id
    AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND SYSDATE BETWEEN spapf.effective_start_date(+) AND spapf.effective_end_date(+)
    AND apps.xxx_person_type.is_employee(SYSDATE, papf.person_id) = 'TRUE'
    AND paaf.assignment_type in ('E','C')
    AND paaf.supervisor_id = spapf.person_id ( + )
    AND paaf.people_group_id = ppg.people_group_id
    AND paaf.primary_flag = 'Y'
    --order by to_number(employee_number)
    --CONNECT BY PRIOR paaf.supervisor_id = spapf.person_id
    ;

    Thanks for the response.
    I tried the following using a variety of employee numbers in the hierarchy, sysdate and level < 100. I got ORA-01436: CONNECT BY loop in user data and it seemed to think the reference to per_all_assignments_f to be the issue, but not sure.
    What am I doing wrong?
    SELECT papf.employee_number,
    papf.person_id,
    papf.full_name,
    ppg.segment1 officer_flag, --executive flag for officers (Y is officer, N is not)
    NVL(spapf.full_name,'NONE') supervisor_name,
    spapf.person_id supv_person_id
    FROM per_all_people_f papf,
    per_all_people_f spapf,
    per_all_assignments_f paaf,
    pay_people_groups ppg
    WHERE papf.person_id = paaf.person_id
    AND :p_eff_date BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND :p_eff_date BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND :p_eff_date BETWEEN spapf.effective_start_date(+) AND spapf.effective_end_date(+)
    AND xxx_person_type.is_employee(:p_eff_date, papf.person_id) = 'TRUE'
    AND paaf.assignment_type in ('E','C')
    AND paaf.supervisor_id = spapf.person_id (+)
    AND paaf.people_group_id = ppg.people_group_id
    AND paaf.primary_flag = 'Y'
    START WITH papf.employee_number = :p_emp_num --emp num of employee or top level supervisor?
    CONNECT BY PRIOR spapf.employee_number = papf.employee_number AND LEVEL < :p_level
    ORDER BY 1 DESC
    ;

  • Query for Supervisor Hierarchy for top most manager

    Hi,
    I have requirement where I have to start from one employee and move up to top-most supervisor of that employee:
    For example starting from Employee ABC and moving to supervisor3 through supervisor hierarachy.
    Employee ABC
    Supervisor1*
    Supervisor2*
    Supervisor3*
    Can anyone help me in constructing such query.
    Regards,
    Salman Ahmad

    The linked query is to find a loop in the Supervisor hierarchy top down.
    The SQL here will display the current supervisor hierarchy for a specified subordinate bottom to top.
    select level, rpad(' ',level*2)||paa.person_id, pap.first_name, pap.last_name
    from per_all_assignments_f paa
    join per_all_people_f pap
    on paa.person_id = pap.person_id
    and sysdate between pap.effective_start_date and pap.effective_end_date
    where sysdate between paa.effective_start_date and paa.effective_end_date
    start with paa.person_id = :PersonID
    connect by paa.person_id = prior paa.supervisor_id
    and sysdate between prior paa.effective_start_date and prior paa.effective_end_date;

  • Where can you build/maintain the Supervisor Hierarchy table in HRMS?

    I am using SSHR for LOA and I receive the error "Unable to build the Supervisor Hierarchy, no person record exists with the person id 1109 as of sysdate." Obviously, a person in the hierarchy is terminated but where is the supervisor hierarchy table so I can change the person that is terminated? The terminated person with the assignment ID has a person type of ex-employee. So that works. But, I don't know if they have been cleared from the hierarchy table.
    Can anyone help?

    user11990615 wrote:
    I am using SSHR for LOA and I receive the error "Unable to build the Supervisor Hierarchy, no person record exists with the person id 1109 as of sysdate." Obviously, a person in the hierarchy is terminated but where is the supervisor hierarchy table so I can change the person that is terminated? The terminated person with the assignment ID has a person type of ex-employee. So that works. Bud.t, I don't know if they have been cleared from the hierarchy table.
    Can anyone help?As mentioned by the previous replies, there is no supervisor table in Oracle. The relationship is stored in the assignment table.
    If you have a specific problem ID, you can use the following SQL to give you the employee number, assignment number and effective dates of the current and future assignments that have this person assigned as a supervisor. (Note I have not tested the code, so there may be typing mistakes)
    select ppf.employee_number, assignment_number, paf.effective_start_date, paf.effective_end_date
    from per_all_people_f ppf
    , per_all_assignments_f paf
    where ppf.person_id = paf.person_id
    and paf.supervisor_id = 1109
    and paf.effective_end_date > sysdate
    You will then need to use your knowledge to determine the date that each of the assignment records should be corrected.
    Regards,
    Andy.

  • Conversion of Supervisor Hierarchy

    Has anyone programmatically loaded the Supervisor Hierarchy during the conversion of a legacy system to Oracle 11i?

    We did this when we implemented HR onto an existing Financials system. We used a nominal start date for the assignments (and supervisors relationships) to start from.
    You can see how we did it at http://www.patrickhaston.co.uk/eBusiness/LoadingAssignmentsIntoOracleHR.html.
    Patrick.

  • Supervisor Hierarchy Diagram from Oracle other than Employee Directory

    Hi,
    Can some one guide me if Oracle provide diagrammatic description of Supervisor hierarchy the way it provides for Org Hierarchy.
    Will be looking forward for the response. We are on 11.5.10.2 version
    Thanks,
    Nitin Singh

    Dear Nitin,
    As far as Oracle HCM is concerned, there is no diagramatic representation for "Supervisor Hierarchy" as u can see the same for Position and Oraganization..
    The only way to find is backend .. check with your techies for the same..
    Regards
    Guru K

  • List all employees that report to a Supervisor Hierarchy

    Hi
    I am trying to write a report in discoverer which lists "All reports" for a Manager.e.g. a Director of a Company will have direct reports and then the direct reports will have people reporting to them and so on all the way down the hierarchy tree.
    I can do the direct reports quite easily by including Supervisor name in the report .
    I am not having much joy with trying to report on the people that reports to the direct reports and so on.
    Any advise would be appreciated .
    Many Thanks in Advance
    Edited by: user650649 on 30-Nov-2010 03:47

    I have used Oracle's Hierarchical Query functionality in custom Discoverer Folders to provide hierarchical reports such as this. You can Google on "Oracle Hierarchical Query" and get very good information including basic examples of how to use this. Reply to this if you need additional help as I think I can quickly create the SQL and I can probably use it in the future.

  • Position Hierarchy - Employee Supervisor Change

    Hello,
    We have few of our Operating Units setup with Position Hierarchy Approval method for Purchasing documents. We want to change this to Employee-Supervisor Relationship due to change in some of the global policies.
    Would like to know what are the implications & what are the things to be taken care.
    Thanks,
    Shilpa

    You will find that emp. Supervisor hierarchy (ESH) is simpler to setup and understand. But it has less functionality.
    e.g. In PBH (position based hierarchy), you can submit PO's using different paths if necessary. But in ESH, the po always will go to the supervisor and his supervisor etc.
    To implement your change
    1) Go to the define employees screen (in the purchasing module if you use Shared HR or in the HRMS module if you use full HRMS). Enter the supervisor name for all employees that will submit /approve PO.
    2) Purchasing > setup > organizations > financial options > Human resources tab > uncheck "Use approval hierarchies" checkbox
    3) You can end-date existing hierarchies.
    4) You don't have to run Fill employee hierarchy program anymore.
    5) When a person leaves or there is a reorg, make sure you update the supervisor name for the employees.
    6) You need to continue to maintain approval groups and assignments as before.
    Hope this answers your question,
    Sandeep Gandhi

  • APPROVALS IN POSITION HIERARCHY IN HRSS

    Buddies,
    Assume:
    A and B are the two managers having same designations (Manager purchase)
    C and D are the two employee have same designation (purchase supervisor)
    Purchase supervisor are reporting to purchase manager.
    We are using positon hierarchy for approvals in HRSS
    leave of absence requests generated by C and D will go to only manager or will be going to both manager. What will be the approval process when their are more than one persons at same desigation.
    Please help

    You can create approval group as you want. But looks like even though you are using Position Hierarchy positions are not single incumbent. So if you send approval to position id or person occupying the position that would not be correct. So I think you may have to use supervisor hierarchy as well in this case to send the approval to the appropriate person.
    Let us know the detailed requirements.

  • How to use AME to define Compensation Workbench Manager Hierarchy?

    Hi,
    I have set up the CWB to allow HR managers to allocate all the compensation using AME Hierarchy in R12. However, after running the CWB Participant Process using the manager login, there is no employee attached to this manager.
    For e.g. a company has 2 compensation managers that determine all the compensation within the company including himself and upper level manager.
    My question:
    How to setup the CWB to use AME hierarchy to allow the 2 compensation managers to view all the employee in the worksheet?
    Regards,
    ShiauChin

    Even i am facing the same issue.
    if i use supervisor hierarchy for the plan. the worksheet is listing the plan and people.
    If i use AME transaction, plan is not attaching to the worksheet. I am working with Oracle SR to find the issue.
    If you find any solution for this problem please share at [email protected]
    thanks in advance
    Srinivas B

  • Hierarchy used in "People in Hierarchy" screen (Manager Actions)

    Hi All
    Which hierarchy is used in "People in Hierarchy" screen (Manager Actions)
    I tried the following.
    Create a position hierarchy and created a security profile as follows
    View Employees - Restricted
    View CWK - Restricted
    View Applicants - Restricted
    View Contacts - Restricted
    View Candidates - All
    Organization Tab
    Security Type: View All Organizations (no security) -- not adding any thing
    Positions
    Position Hierarchy : Test Position Hierarchy (Name of hierarchy)
    Radio button checked for "Use the User's assignment(s) as the top position.
    Checked boxed checked for "Include Top Position"
    Rest of the tabs are blank.
    Attached this profile to the responsibility Manager Self Service through which I am accessing Manager Actions Function.
    When I go to Manager Actions screen I found that both supervisory AND position hierarchy are applied. If a person is in position hierarchy and supervisory hierarchy only then it will get displayed there.
    Is it possible that I can use only position hierarchy at that place.
    I am on Apps R11i, Family Pack K,
    Thanks
    Gaurav

    Hi Gaurav,
    It depends on the responsibilities assigned to employee. That means
    If an employee has
    "Manager Self Service" with profile "Position Hierarchy" and "HRMS Manager" with profile "Supervisor Hierarchy", then both will be applied.
    So, check and make sure that only one security profile is available at any point of time.

  • Purchasing hierarchy

    Hello ,
    again i have a couple of questions about purchasing position hierarchy please.
    one: how can i force the purchasing buyer to enter purchase orders that are above a specific amount all the time,; say that all purchase orders must be equal or more to 100$?Give me details please..
    two: can i skip a level in the middle of the approval hierarchy levels for purchase orders that are in the amount range say 100$ to 200 $? if possible how can i do it? please provide me with details..
    i need to solve this matter urgently..
    Please help me.

    Vikram,
    1) When you define the Employee in HR, you need to assign a Supervior (under Assignments). That forms the Employee-Supervisor hierarchy automatically. Also ensure to define Job flexfields in HR, and assign a Job to each Employee.
    2) In PO module - Financial Options setup form - select that you are using Employee-Supervisor hierarchy for that Operating Unit. Also define Approval Groups (approval authority in terms of dollar value, account segments range, item category etc), and assign these groups to the Jobs.
    These two setups should suffice for using Emp/Sup forwarding method for purchasing documents. System would derive an employee's approval limits based on his job and check if he can approve a given PO/Requisition (of course, the Document Types setup determines whether you allow the document owner can approve it). If he cannot, then it would look for his Supervisor and his approval limits. It goes on until it finds a suitable approver, or exhausts the entire hierarchy.
    Chandu Tadanki | Manager
    Oracle Support Services
    Oracle India Private Limited | #3, Bannerghatta Road | Bangalore, India 560029
    .

  • Position Hierarchy Vs Organization Hierarchy

    Hi
    Our organization is position driven organization. I want to know what are the main advantages and disadvantages for Position Hierarchy and Organization Hierarchy.
    Because on top the hierarchies we will create security profiles.
    Can I have any document where I can find the comparison between both of these hierarchies.
    Thanks
    Gaurav

    No, the supervisor hierarchy is constructed simply by specifying supervisors on assignments.
    Added complexity can be added to the supervisor hierarchy in a multi assignment environment; you can then specify a 'supevisory assignment' as well but that is rare.
    It sounds like you will be invariable be drawn into using Positions. Having a 1-1 relationship between positions and employees is not unusual but be warned it can be extremely time consuming to maintain. I have been to organizations where position maintenance is virtually a full time job for a member of staff.
    If you are using Appraisals, definitely make use of the supervisor hierarchy, it is hard enough to implement correctly as it is without making it harder and trying to use the position hierarchy.
    You should be able to use the supervisor hierarchy for the OTL and iRec approval processes too but I'm happy to defer to other experts on the forum for those.

  • View all appraisal irrespective of their status/hierarchy

    Hi
    i want to provide functionality to a user for viewing all appraisals irrespective of appraisal status and irrespective of emp/supervisor hierarchy.Can any body help me how to achieve this
    Regards

    Hi Joe,
    One of the things you can do is to configure a report (using Reporting Services) displaying the checkout projects and the report can be configured on the home page. Also, if needed the report can be filtered based on the user accessing the home page.
    Another option would be to create/customize a webpart to display this information
    Paul

  • SSHR - APPROVAL CHAIN IS OPEN, APPROVAL LIST SHOWS ALL SUPERVISORS

    Hi,
    In SSHR,I'm trying to raise any Approval Based Request like leave of Absence, Appraisal etc.. in approvers list shows
    all Supervisor list.
    We are using Seeded Workflow with Customized menu, Responsibility. We have the same issue with seeded responsibility also.
    The Approval Chain is open and its keep on adding the Approver List based on
    supervisor Chain.
    We haven't defined "Supervisor Hierarchy "
    Pl suggest

    You may need to configure AME and redefine the default approver rule. I believe the default rule 'out of the box' is approval up 10 levels of the supervisor hierarchy. If you change that action to the action that matches up to approval up 1 level of the supervisor hierarchy, I think you'll be where you want to be.

Maybe you are looking for

  • Loading font at runtime for TLF in Flex 3.3

    Hey flexers, I have an app that's using the Flex 3.3 SDK.  We pulled the text layout swc from Flex 4 and are using a text flow in our app.  Previous to this we had been using the old TextField. How do I go about loading in a font swf at runtime and g

  • Scom 2012 r2 - report viewer controls are not installed

    Hi  I'm stop on this error when installing the operation console and web console  report viewer controls are not installed  OS : Windows 2008 R2  SCOM Version : SCOM 2012 R2  I installed the install Report Viewer Redistribution 2008 SP1 and install R

  • I am trying to download OS5 onto my iPad 1 but it keeps timing out. Any ideas

    Hi. I cannot get OS5 downloaded onto my iPad 1 as keeps coming up with a time out error when almost complete ? Is this a known problem ?

  • Moving 2 a new HD 4 Time machine

    I have a new larger HD to use on time machine. 1st: What is the best format to erase and set the HD in Disk utilities. 2nd: DO I blind transfer Time Machine file fro the old HD to New or is there a specific way. Please advise JB

  • Multi frames

    I recently downloaded a set of multiframe templates from Adobe Studio Exchange, which I like very much. Problem is, of course, that those frames do not always fit my needs. Is this too complicated, or could you explain to me step-by-step how to do th