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.

Similar Messages

  • How to list all calendars that are shared to a specific user?

    Hi,
    Using Exchange Management Shell/Powershell, I want to list all calendars that are shared to a specific user 'myuser'. 
    I have tried different approaches; list all calendars for all users and then figure out which ones are shared to 'myuser', list all mailboxfolders for 'myuser' with path 'calendar' and sort out the shared ones, ... No luck so far.
    Anybody?
    babu

    Hi
    If you try this command:
    Get-MailboxPermission MyUser

  • PowerShell - List all users that have access to a particular SPLIstItem

    Hi there,
    In PowerShell - how to list all users that have access to a particular SPLIstItem?
    Thanks so much in advance.

    Hi frob,
    According to your description, my understanding is that you want to list all users who have access to a particular SharePoint list item via PowerShell.
    You can use the following PowerShell command:
    $web = Get-SPWeb http://sp/sites/First
    $list=$web.Lists["listV2"]
    $item=$list.Items | where {$_['ID'] -eq 1}
    $item | Select -ExpandProperty RoleAssignments |Select {$_.Member.DisplayName}, {$_.Member.LoginName}, RoleDefinitionBindings
    In the above command, you need to change the web URL to your site's URL, change “listV2” to the name of your list, and change the ‘1’ to the ID of the list item.
    The result looks like:
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Script: Lists All Indexes that Benefit from a Rebuild

    Hi,
    I have some problems in MyOracleSupport to get the "Script: Lists All Indexes that Benefit from a Rebuild". 122008.1 says me, that it is out of date and I should use "NOTE:989186.1". But when I click on the Link I only get failure that he can't find the site.
    I using Firefox 3, maybe this is a problem?! Maybe someone can post the script?
    greetings from Germany

    When I go to the original document in metalink and then click on the NOTE:989093.1 link, I get to that note.
    Using
    Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
    Seems like a local problem at your site.
    By the way, if you search a little after index rebuild here, you may get an idea that you probably just don't need that script :-) I recommend especially postings from Jonathan Lewis & Richard Foote about that topic.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • DW5 - How to list all pages that link to a specific page?

    Hi all, I'm using DW5 and need to completely remove a specific page. How can I get DW to check through the whole site and make a list of all other pages that link directly to the page I want to remove?
    I'm sure it must be simple, but can't seem to get the result I need. Can someone spare a few minutes to spell it out for me please?

    I would do a Find on the page name...source code...in the entire local site...and be given a list of pages that include that page name. Then you can go into the Results window, where they are listed, and by double-clicking go directly to each reference.
    You may also save a copy of the report in XML... (the save icon is a small floppy disk image on the left border of the Results Panel.
    Beth

  • How to list all documents that has linked a image file?

    Hi everyone,
    I'd like to know if there's a way to find all linked file to a file: i have a logo image that a lot of inDesign files have linked to it and i'd like to find all those inDesign files.
    I know that Bridge CS6 can list all linked files of a .indd file but i'd like the opposite
    Regards,
    Snowblood13x

    You might be able to do it via scripting. If you have to search an entire volume it would be impractical, but something like this AppleScript would open all of the ID files inside of a chosen folder and its sub folders. Once the ID file is open it could check for a specific link and if it exists leave the file open otherwise close:
    global mylinkname
    --change YourLinkNameHere to the logo link's name
    set mylinkname to "YourLinkNameHere"
    tell application "Finder"
        activate
        set the thisFolder to (choose folder with prompt "Choose a folder. The extension of all files inside will be hidden.")
        my ProcessFolder(thisFolder)
        tell application "Adobe InDesign CS6"
            activate
            display dialog "Done"
        end tell
    end tell
    on ProcessFolder(thisFolder)
        set theseItems to list folder thisFolder without invisibles
        repeat with i from 1 to count of theseItems
            set thisItem to alias ((thisFolder as text) & (item i of theseItems))
            set the iteminfo to info for thisItem
            if folder of the iteminfo is true then
                ProcessFolder(thisItem)
            else
                ProcessItem(thisItem)
            end if
        end repeat
    end ProcessFolder
    on ProcessItem(thisalias)
        tell application "Finder"
            if creator type of file thisalias is "InDn" and kind of file thisalias is not "InCopy® Lock File" then
                tell application "Adobe InDesign CS6"
                    activate
                    --set user interaction level of script preferences to never interact
                    open thisalias
                    set llist to name of every link of active document
                    if mylinkname is not in llist then
                        tell active document
                            close
                        end tell
                    end if
                    --set user interaction level of script preferences to interact with all
                end tell
            end if
        end tell
    end ProcessItem

  • Create a Crystal Report listing all the crystal reports in CMS

    How do I create a Crystal Report listing out all the Crystal reports in a specific folder in CMS?

    Hi Mauren,
    You can each report at a time with in the folder of the CMC.
    Multiple reports cannot be done and feature is not avaialable.
    Thanks,
    Naveen.

  • How to list all  tables that belongs to the current user?

    hi all
    "select tblowner,tblname from tables where tblowner in (select user from dual);"
    I want a list of all tables that belongs to the current user. I use the SQL above, but given "no rows selectd",but if
    I replace the subquery with literal,like
    "select tblowner,tblname from tables where tblowner = 'JFMDB');".
    I got the list. why?
    Thnk u very much!

    This looks like a bug that was fixed in 7.0.5.13 and onwards. I can reproduce what you are seeing in 7.0.5.10.0 (Linux x86-64 / Access control enabled instance from root install) but not 7.0.5.13.0 (Linux x86-64 / Access control enabled instance from root install).
    Unfortunately I don't have a bug number to pass on. I can't see anything relevant listed in the Release Notes and I haven't found a likely candidate in our internal listings. This may well have been one that was fixed "in passing" when RnD were working on something similar.

  • List all Published Crystal Reports and the BW Query they are created upon

    Hello All
    I am wanting to create a list of all Crystal Reports files that have been published to BW and report the the Crystal Reports Name and the BW Query (datasource) name.
    At the moment I am opening up each report in crystal and via database expert determining which BW query is used. I have about 120 reports I need to do this for and I would really appreciate if there is an easy way to extract this data.
    Even if I am just provided with table names where this linkage is stored would be great as I can then create the report myself.
    The Format of the report is really simple
    Crystal Report (Doc. Name)................Crystal Report Data Source Name (BW query)
    I hope someone can help.
    Thanks
    Phillip

    hi,
    the information is available in transaction /crystal/rptadmin.
    another option is to use the query tool to ask the system database.
    Ingo

  • How can I list all folders that contain files with a specific file extension? I want a list that shows the parent folders of all files with a .nef extension.

    not the total path to the folder containing the files but rather just a parent folder one level up of the files.
    So file.nef that's in folder 1 that's in folder 2 that's in folder 3... I just want to list folder 1, not 2 or 3 (unless they contain files themselves in their level)

    find $HOME -iname '*.nef' 2>/dev/null | awk -F '/'   'seen[$(NF-1)]++ == 0 { print $(NF-1) }'
    This will print just one occurrence of directory
    The 'find' command files ALL *.nef files under your home directory (aka Folder)
    The 2>/dev/null throws away any error messages from things like "permissions denied" on a protected file or directory
    The 'awk' command extracts the parent directory and keeps track of whether it has displayed that directory before
    -F '/' tells awk to split fields using the / character
    NF is an awk variable that contains the number of fields in the current record
    NF-1 specifies the parent directory field, as in the last field is the file name and minus one if the parent directory
    $(NF-1) extracts the parent directory
    seen[] is a context addressable array variable (I choose the name 'seen'). That means I can use text strings as lookup keys.  The array is dynamic, so the first time I reference an element, if it doesn't exist, it is created with a nul value.
    seen[$(NF-1)] accesses the array element associated with the parent directory.
    seen[$(NF-1)]++ The ++ increments the element stored in the array associated with the parent directory key AFTER the value has been fetched for processing.  That is to say the original value is preserved (short term) and the value in the array is incremented by 1 for the next time it is accessed.
    the == 0 compares the fetched value (which occurred before it was incremented) against 0.  The first time a unique parent directory is used to access the array, a new element will be created and its value will be returned as 0 for the seen[$(NF-1)] == 0 comparison.
    On the first usage of a unique parent directory the comparison will be TRUE, so the { print $(NF-1) } action will be performed.
    After the first use of a unique parent directory name, the seen[$(NF-1)] access will return a value greater than 0, so the comparison will be FALSE and thus the { print $(NF-1)] } action will NOT be performed.
    Thus we get just one unique parent directory name no matter how many *.nef files are found.  Of course you get only one unique name, even if there are several same named sub-directories but in different paths
    You could put this into an Automator workflow using the "Run Shell Script" actions.

  • Return the managers and Employees that reports to a manager

    Hello Everyone,
    I need your help in the following query using connect by:
    I have 2 tabels
    Tabel_1
    Department hierarchy
    department_id parent_department_id has_manager
    1 NULL X
    2 1
    3 1 X
    4 2 X
    5 4
    tabel_2
    emp_id department_id is_manager
    1 1 X
    2 1
    3 1
    4 2
    5 2
    6 4 X
    7 4
    8 4
    9 3 X
    10 5 X
    now in my company the concept of direct employees is as follow:
    my direct employees are: the employees in my department + only the manager in the department below me in the hierarchy.
    if the department bellow me has no manager then also these employees in that department reports to me
    then we check the lower department and so on untill we find a manger then this manager reports to me but his employees reports to him so they are not my direct employees
    for the above example should be as follows
    if i want to get the direct employees of emp_id= 1
    then result is
    2
    3
    4
    5
    6
    9
    Best regards
    Ibrahim

    Hi, Ibrahim,
    Welcome to the forum!
    Whenever you have a question, please post CREATE TABLE and INSERT statements for your sample data. Since this is your first post, I'll do it for you:
    CREATE TABLE     department
    (       department_id          NUMBER     PRIMARY KEY
    ,     parent_department_id     NUMBER
    ,     has_manager          VARCHAR2 (1)
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (1,            NULL,               'X');
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (2,            1,               NULL);
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (3,            1,               'X');
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (4,            2,               'X');
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (5,            4,               NULL);
    CREATE TABLE     emp
    (       emp_id          NUMBER     PRIMARY KEY
    ,     department_id     NUMBER
    ,     is_manager     VARCHAR2 (1)
    INSERT INTO emp (emp_id, department_id, is_manager)
                 VALUES (1,       1,                 'X');
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (2,       1,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (3,       1,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (4,       2,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (5,       2,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
            VALUES (6,       4,                 'X');
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (7,       4,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (8,       4,                 NULL);
    INSERT INTO emp (emp_id, department_id, is_manager)
             VALUES (9,       3,                 'X');
    INSERT INTO emp (emp_id, department_id, is_manager)
            VALUES (10,      5,                 'X');
    913209 wrote:if the department bellow me has no manager then also these employees in that department reports to me
    then we check the lower department and so on untill we find a manger then this manager reports to me but his employees reports to him so they are not my direct employeesWhat if a department directly below that has no manager? For example, if we add this to the sample data:
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (6,            2,               NULL);
    INSERT INTO department (department_id, parent_department_id, has_manager)
                         VALUES (7,            6,               NULL);Would anyone working in departments 6 or 7 (as well as 1 or 2) be included? I assume so. If that's wrong, then you don't need CONNECT BY: a self-join would be enough.
    Here's one way to do that:
    WITH     my_departments     AS
         SELECT     department_id
         ,     LEVEL          AS lvl
         ,     SYS_CONNECT_BY_PATH (has_manager, '/')     AS manager_path
         FROM     department
         START WITH     department_id     = (
                                         SELECT  department_id
                                   FROM    emp
                                   WHERE   emp_id       = 1     -- Parameter
                                   AND     is_manager  = 'X'
         CONNECT BY     parent_department_id     = PRIOR department_id
    SELECT       e.emp_id
    FROM       my_departments     d
    JOIN       emp               e  ON   d.department_id  = e.department_id
    WHERE       (    REGEXP_LIKE ( d.manager_path
                            , '^/X/*$'
           AND  e.emp_id        != 1          -- Parameter
    OR       (    REGEXP_LIKE ( d.manager_path
                           , '^/X/*X$'
           AND  e.is_manager     = 'X'
    ORDER BY  e.emp_id
    ;Another thing you should do in every thread is say which version of Oracle you're using. The query above will work in Oracle 10.1 and higher.
    The tricky part of thsi query is that we really want to use this CONNECT BY clause:
    ...     CONNECT BY     parent_department_id     = PRIOR department_id
              AND     has_manager          IS NULLbut to go one more level, that is, find not only the nodes above, but also their immediate children. I can't think of a good way to do that which is not more complicated (and probably less efficient) than what I posted above.

  • Listing all datafiles that need restore

    I get this when I try to open the database.
    ERROR at line 1:
    ORA-01113: file 10 needs media recovery
    So I go the RMAN and restore and recover datafile 10.
    Then I'm told when I try to open the database that file 12 need media recovery.
    Is there a way I can list out all the files that need recovery? So that the list would say something like this:
    file 10 needs media recovery
    file 12 needs media recovery
    file 13 needs media recovery

    Hi,
    Following query would help you:
    select* from v$recover_file;
    Regards

  • In need of a report that will list all vendors for all parts in our plant.

    Can anyone tell me if there is a report in SAP that we can use to list all suppliers for a given material? We are operating in SAP ECC6.0 and need a report that will list all vendors that the company has used for a given part. Is there a standard report in SAP that pulls information from purchasing info records?  Woud this be  a custom report?     I have tried using MCE3. 
    Also does anybody know of any SAP consultants that can help us create custom reports

    For the list of vendors for the material - Me03 if source list is maintained
    For list of vendors with info record - Me1m
    For list of vendors with PO - Me2l
    If you can give the correct requirements then your Technical consultant will develop a report in the required format.

  • How to list those employees who do not have a certain pay rate type set up

    Hi,
    I'm trying to create a report that lists all employees who DO NOT have a certain pay rate role type set up.  An employee can have multiple pay rate roles - for example: chargeable miles, non-chargeable miles, subsistence, etc.
    I want to identify all those employees who do not have, say, subsistence yet set up.
    I joined the employee table to the employee rates table. The employee_role_id=20 is the particular rate role value that I am interested in. I want to only list those employees who do not have rate of role type 20 set up. That way I can go and set one up for these employees.  At present, I am using selection criteria where employee_role_id=20. This brings back only those employees that have an employee_role_id of 20 setup. I would like to do the inverse but setting <>20 only screens out those roles with value 20 and displays all of the rest of the pay role values for each employee.
    Any help is appreciated.
    thx!
    Mark

    if you are not sure about the linking i suggest to just show all roles associated to all the employees,
    group by employee
    create true/false formula for the role_ids  where ONLY your 20 role is TRUE per employee
    then exclude all false - that should give you only the employees that are missing that particular role.

  • List of employees hired in a particular period

    Dear Experts,
    I need to generate a report which gives me the complete list of employees that were hired in a particluar period. Say, I enter a period (date range) in the selection screen, i need to get the employees hired during this date range.
    Could I do this using IT0000 or do i have to consider the hire date of the employee.
    any suggestions and help is highly appreciated (points would be rewarded)
    Thanks

    Hi George,
    Welcome to SDN:).
    For this report you better check the hire date of employee from IT 0041.
    But also check with your functional consultant how the system is configured in your case.
    I think there are standard report(FM) to get the employee hire date. Just search in SE37.
    Regards,
    Atish

Maybe you are looking for

  • I get  error message to reapir my itunes i want to find out how do i do that

    somebody help i recently had a problem with my itunes on my computer,I use windows. I restored my Ipod by now i cant syncronise. when I connect my Ipod to the computer i get an error message that the Ipod coud not syncronise because the Sync session

  • Is it a bug in Forms 6i?

    My problem is that quite often my forms application shuts down all of a sudden. There is no specific instance. It can happen any time, may be when the user clicks on some button on the form. The same might work if we restart the machine. The same hap

  • How to execute a servlet on  jakarta-tomcat-4.0.3

    Please let me know how to execute a servlet on  jakarta-tomcat-4.0.3 .I am able to compile it . Regards, Saurabh Singhal

  • Help!!?? Photoshop elements 11 download problem

    After waiting three hours for photoshop elements 11 to download, it got to 99 percent and then a message popped up saying it was unable to complete the download at this time please contact support. I tried ringing adobe but was put on hold for ages.

  • Administer defrag remotely for Oracle lite client database?

    Hi all, My client has installed Oracle Lite version 10.3.0.3. Oracle Lite Database file (ODB) tends to grow too large. Oracle recommends resizing the Oracle Lite database by running Defrag.exe tool. But it has to be installed manually on each handhel