How to find both direct and indirect responsibilites attached to user

Hi All,
I have a requirement to write a sql to list all direct and indirect responsibilities attached to a particular user.
Please help me.
Thanks,
Raghav.

Hi;
Pelase see below which could be helpful for your issue:
responsibilty -to find any users assigned
to find any users assigned to a responsibilty
Regard
Helios

Similar Messages

  • Which Function Module can find all direct and indirect subordinate.

    Hi,
        I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.

    use RH_STRUC_GET
    ~Suresh

  • Help on Direct and Indirect Exchange Rate formula

    Dear Experts,
    As per subject, can anyone write the formula of how both "direct" and "indirect" exchange rate calculation works in SAP B1?
    Warmest Regards,
    Chinho

    Hi Chinho,
    Direct: X units of local currency (LC) = 1 unit of foreign currency (FC)
    Indirect: 1 unit of LC = X units of FC
    Therefore, considert his example:
    LC = EUR
    FC = GBP
    GBP Rate is set as 1.23
    Document total = GBP 10.00
    GBP 10.00 = EUR 12.30 when using the 'Direct Method' (1.23 EUR = 1 GBP)
    GBP 10.00 = EUR 8.13 when using the 'Indirect Method' (1 EUR = 1.23 GBP)
    All the best,
    Kerstin

  • SQL that provides direct and Indirect reports

    SELECT DISTINCT J.EMPLID ,J.EMPL_RCD ,A.NAME ,J.BUSINESS_UNIT ,J.JOBCODE ,JC.DESCR ,J.DEPTID ,D.DESCR
    ,J.SUPERVISOR_ID ,J.REPORTS_TO ,J.LOCATION ,J.COMPANY ,J.PAYGROUP ,J.GP_PAYGROUP ,ED.WORKGROUP ,ED.TASKGROUP
    ,J.POSITION_NBR ,L.BUILDING, WG.INCL_ML_BRK_FLG
    FROM PS_JOBCODE_TBL JC , PS_JOB J , PS_TL_EMPL_DATA ED, PS_TL_GROUP_DTL F ,PS_TL_GRP_SECURITY S
    ,PS_PERSON_NAME A , PS_DEPT_TBL D, PS_LOCATION_TBL L, PS_TL_WRKGRP_TBL WG
    WHERE S.GROUP_ID = F.GROUP_ID
    AND F.EMPLID = J.EMPLID
    AND F.EMPL_RCD = J.EMPL_RCD
    AND F.EMPLID = A.EMPLID
    AND F.EMPLID = ED.EMPLID
    AND F.EMPL_RCD = ED.EMPL_RCD
    AND S.ROWSECCLASS = 'DPALL'
    AND J.EFFDT = ( SELECT MAX(J1.EFFDT) FROM PS_JOB J1
    WHERE J1.EMPLID = J.EMPLID
    AND J1.EMPL_RCD = J.EMPL_RCD
    AND J1.EFFDT <= '22-MAY-2012')
    AND J.EFFSEQ = ( SELECT MAX(J2.EFFSEQ) FROM PS_JOB J2
    WHERE J2.EMPLID = J.EMPLID
    AND J2.EMPL_RCD = J.EMPL_RCD
    AND J2.EFFDT = J.EFFDT )
    AND ED.EFFDT = ( SELECT MAX(ED1.EFFDT) FROM PS_TL_EMPL_DATA ED1
    WHERE ED1.EMPLID = ED.EMPLID
    AND ED1.EMPL_RCD = ED.EMPL_RCD
    AND ED1.EFFDT <= '22-MAY-2012')
    AND JC.SETID = J.SETID_JOBCODE
    AND JC.JOBCODE = J.JOBCODE
    AND JC.EFFDT = ( SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1
    WHERE JC1.SETID = J.SETID_JOBCODE
    AND JC1.JOBCODE = J.JOBCODE
    AND JC1.EFFDT <= '22-MAY-2012')
    AND D.SETID = J.SETID_DEPT
    AND D.DEPTID = J.DEPTID
    AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_DEPT_TBL D1
    WHERE D1.SETID = J.SETID_DEPT
    AND D1.DEPTID = J.DEPTID
    AND D1.EFFDT <= '22-MAY-2012')
    AND L.SETID = J.SETID_LOCATION
    AND L.LOCATION = J.LOCATION
    AND L.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LOCATION_TBL
    WHERE SETID = L.SETID
    AND LOCATION = L.LOCATION
    AND EFFDT <= '22-MAY-2012')
    AND J.SUPERVISOR_ID LIKE '76634%'
    AND A.EMPLID <> '76634'
    AND ED.WORKGROUP = WG.WORKGROUP
    AND WG.EFFDT = (SELECT MAX(WG1.EFFDT) FROM PS_TL_WRKGRP_TBL WG1
    WHERE WG.WORKGROUP = WG1.WORKGROUP
    AND WG1.EFFDT <= '22-MAY-2012'
    AND J.EMPL_STATUS IN ('A','L','P','S')
    AND J.EFFDT <= '20-MAY-2012');
    Above SQL provides me the list of employees (only direct reports) who report to EMPLID 76634. Now I want to modify this SQL so that It will also provide me the list of employees from a lower level (indirect reports).
    For example, if employees 1, 2 report to 76634. And 3,4 report to 1. And 5,6 report to 2. I want to modify the above SQL such that it will retrieve both direct and indirect reports for 76634 i.e 1,2,3,4,5 and 6.
    As of now above SQL will retrieve only 1,2. Any thoughts?

    SQLServer uses a recursive query for this.
    Just typing "SQLServer recursive query" in a search engine will provide you with tons of examples, but I will redirect you to the source MSDN,
    http://msdn.microsoft.com/en-us/library/ms175972%28SQL.90%29.aspx
    Look for the following example
    D. Using a recursive common table expression to display multiple levels of recursion
    The following example shows the hierarchical list of managers and the employees who report to them.
    USE AdventureWorks;
    GO
    WITH DirectReports(ManagerID, EmployeeID, EmployeeLevel) AS
    SELECT ManagerID, EmployeeID, 0 AS EmployeeLevel
    FROM HumanResources.Employee
    WHERE ManagerID IS NULL
    UNION ALL
    SELECT e.ManagerID, e.EmployeeID, EmployeeLevel + 1
    FROM HumanResources.Employee e
    INNER JOIN DirectReports d
    ON e.ManagerID = d.EmployeeID
    SELECT ManagerID, EmployeeID, EmployeeLevel
    FROM DirectReports ;
    GO

  • Finding direct and indirect dependency

    Hi,
    I have table say SAPECC, which is used in one of the procedure as given below :
    create or procedure test121
    as
    begin
    insert into sapecc2
    select * from sapecc;
    end;
    And SAPECC2 is used in another procedure as given below :
    create or procedure test122
    as
    begin
    insert into sapecc3
    select * from sapecc2;
    end;
    Now if I want to get what are the direct and indirect dependency for SAPECC, how can we get that? Say I want to see TEST121 procedure and SAPECC2 table are the 1st level dependency for SAPECC and TEST122 procedure and SAPECC3 table are the 2st level dependency for SAPECC.
    Regards,
    Koushik

    Hi Koushik,
    There are no dependencies as you describe them between the sapeccX tables.
    SQL> select level
              ,name
              ,type
              ,referenced_name
              ,referenced_type
          from user_dependencies
    start with referenced_name like 'SAPECC%'
    connect by prior referenced_name = name
    LEVEL NAME         TYPE         REFERENCED_N REFERENCED_T
        1 TEST121      PROCEDURE    SAPECC       TABLE      
        1 TEST121      PROCEDURE    SAPECC2      TABLE      
        1 TEST122      PROCEDURE    SAPECC2      TABLE      
        1 TEST122      PROCEDURE    SAPECC3      TABLE      
    4 rows selected.I don't know about 11g and PL/Scope maybe you can get something from there.
    As a final resort you can play with user_source:
    select *
      from user_source
    where name like 'TEST%';Regards
    Peter

  • Direct and Indirect

    Hi:
    can someone tell me whats the difference between direct and Indirect reports in SRM-BW.
    whats the functionality of them.
    how to figure out them
    where to find them, any T-codes, tables will of great help.
    it would be great if some one can tell the relation between R/3 PO and a SRM PO
    Thanks
    kedar

    Hi,
    If I understood Your question about direct and indirect reporting in SRM-BW.
    Direct reporting it is a SAP RemoteCube in BW. RemoteCube is and InfoProvider. This is a special RemoteCube that allows You to define queries with direct access to transaction data in other SAP systems. RemoteCubes are defined on the basis on an InfoSource with flexible updating, and assume the characteriscics and key figures of the InfoSource.
    Indirect reporting is like standard BW reporting with master data, transactional data, attributes and hierarchies.
    All BI content You may find in transaction RSA6 on SRM side.
    There is not many difference between SRM and R/3 PO's. On both side you may create PO from SC, PO with direct or indirect material etc.
    Please look into service.sap.com/instguides -> SRM -> Plan-Driven Procurement and Self-Service Procurement
    Regards,
    Marcin

  • What r the direct and indirect taxes

    hi gurus,
    can any one pls give me what r the direct and indirect taxes.
    Thanks in advance,
    RAVI
    Moderator: Please, respect SDN rules. As it's not your first warning, upon next violation your user will be banned

    Hi,
    the Tax tht we Pay directly to Govt is Direct tax and tax tht we pay indirectly is Indirect tax. Ex. Income tax on  salaries is direct tax and Sales Tax on Products is a indirect Tax.
    Hope you got clarify on the Both type of Taxes.
    Thanks
    Goutam
    Edited by: Goutam78 on May 27, 2011 3:07 PM

  • Calculating DIrect and indirect reports for managers

    Hi,
    I have a flattened manager hierarchy. I want to calculate the direct and indirect reports for every manager. how can i do this.
    Thanks
    Edited by: user599926 on Apr 18, 2010 4:01 PM

    I've never worked with Access as a database, before.  But, if this were SQL (and it might work), then, yes, a LEFT OUTER JOIN would do the trick.
    SELECT ta.Lastname, ta.Firstname, ta.EmpID, ta.MgrEmpID, ta.Email, ta.Location
    FROM TableA ta LEFT OUTER JOIN TableA tb ON tb.MgrEmpID = ta.EmpID
    ORDER BY ta.Lastname, ta.Firstname, tb.Lastname, tb.FIrstname
    Or something like that.
    ^_^

  • How to find the source and target systems of an imported Transport Request?

    Hello,
    How to find the source and target systems of an imported Transport Request?
    chinna.

    Hi Chinna,
    In your landscape the TMS must have configured.Let assume that you have four six systems in the land scape.
    DEV->DEV1->QUA->PRD and other two systems (TR1 ,TR2)are at different domain amd both are connected to QUA and the requests are forwarded from there.Here normally the flow willl be from DEV to DEV1, then DEV1 to QUA and QUA to PRD.For other two systems (TR1 ,TR2 )the source system will always be QUA.
    Regards
    Ashok

  • How To Find Opening Stock And Value For a Material

    Hi Experts,
    How To Find Opening Stock And Value For a Material  in Given Dates
    Moderator Message: Search.
    Edited by: kishan P on Sep 15, 2010 4:05 PM

    Thanks For Answering.....
    But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates.

  • How to populate both key and text in drop down list in dialog prog screen

    Hi, Can anyone please advice how to display both key and text in the drop down list in dialog prog screen. I tried with below code. keys and texts are getting populated in values table but only text is appearing when click on drop down. need to display both key and text in the drop down. Thanks in advance.
    TABLES: ZRPP_MODELS, ZRPP_FFLSTRATEGY.
    TYPE-POOLS : VRM.
    DATA : field_id TYPE VRM_ID ,
           values   TYPE VRM_VALUES,
           value    LIKE LINE OF values.
    FORM fill_model_list .
      select MODEL MODEL_DESC from ZRPP_MODELS into value.
        APPEND value TO VALUES.
      endselect.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = 'ZRPP_MODELS-MODEL'
          values = values.
    ENDFORM.

    You need to concatenate KEY & VALUES
      wa_values-key = '1'.
      wa_values-text = '1 - One'.
      append wa_values to i_values.
      wa_values-key = '2'.
      wa_values-text = '2 - Two'.
      append wa_values to i_values.
      wa_values-key = '3'.
      wa_values-text = '3 - Three'.
      append wa_values to i_values.
      call function 'VRM_SET_VALUES'
        exporting
          id              = 'LIST_BOX'
          values          = i_values
        exceptions
          id_illegal_name = 1
          others          = 2.

  • How to print  both normal and bold data in a single line

    Hi ,
    I have requirement wherin the data need to be displayed in a single line.
    FAX:              Z8525_text.
    where FAX needs to be in bold and Z8525_text is a standard text and it shoould not be bold , both of this needs to be displayed in
    a single line.
    Can you let me know how to print  both normal and bold data in a single line one of which is coming fro standard text.
    Regards,
    Senthil

    Hi Senthil,
    If you are using smartforms, have a character format created for BOLD and apply it to the text you want to highlight. The remaining text of the line could be applied with a Character format which is not highlighted.
    Try and revert in case you need further assistance

  • How to find the Date and Time of Modification of Column in aTable?

    Hi all,
    Do  you know how to find the Date and Time of Addition of Column to a Particular Table?.
    I know however, How to find the modification time of the Table. Using the below Query :
    Select Object_Name, to_Char(Last_DDL_TIME, 'DD-Mon-YYYY HH24:MI:SS') Last_DDL from User_Objects where Object_Type = 'TABLE';
    Object_Name
    Last_DDL
    Employee
    20-Aug-2013 09:23:03
    I wanted to know the Creation or Modification Date and Timestamp of all columns of Employee Table?. Is it possible at all. If possible, How to get it?.
    Regards,
    Bhaskar M

    I agree with you on that. Since its a development enviornment I can remove the column but that not my point here.
    My whole purpose it to know whether we get the Column's Creation or Modification DateTime.

  • How to find the job and job status from RSPCM

    hi all,
    suppose we got an error and in rspcm the process was failed.i want to know the status of that particular job.and if any i want to stop that job in SM37.
    plz tell me how to find the job and job ststus from RSPCM...and how to stop that job in SM37
    thanks,
    jack

    Hi Jack,
    RSPCM: T.Code
    This transaction is used to monitor the process chains
    First:
    here you need to add the process chains into the sheet
    Second:
    Then you can monitor the process chains in this transaction code
    Like you can see the :  status ,proces chain ,Last run date ,Last run time ,Log ID
    Status : Green when sucessful,Yellow when running & Red when you get errors
    Now when yoy click on any of the process chain in RSPCM you will go to the LOG VIEW as you see in RSPC transaction
    SM37:T.code
    This transaction is used for Job Overview
    you can see many options in SM37
    like Released,active,cancelled,finished,etc
    Just select the ACTIVE  jobs and also pass STAR in JOB ID & USER ID
    here you can only see the active jobs
    Goto Step in toolbar
    select the program displayed
    then chose option GOTO - Variant in main menu bar
    in the variant you can see the job belong to which Process chain
    if you want to cancel this job come back to SM37 Display screen
    Select the Job and select the JOB DETAILS tab in Tool Bar
    Collect the WIP ( Work Permit ID)
    Go to SM50 T.code and find the WIP
    in Main Menu Bar you find the option Cancel with Core choose this it will cancel the Job
    Regards
    Hari

  • How to find the Project and wbs Element System Status

    Hi all,
      How to find the Project and wbs Element System Status.
      We can find the system status in the CJ20n transaction but I want the table and field name where it is stored.
    Regards
    Raghavendra

    Hi,
    try table <b>jest</b> with key = prps-objnr
    Andreas

Maybe you are looking for

  • Defining daily work schedules

    Hi all, I am triyng to define work schedules and I have found the following problem. I would like to define my schedules at month level. I mean, I have different schedules for different months. For instance, I've got the same work schedule from Janua

  • Show .hidden files in Terminal by default?

    Terminal on my machine has been setup so that all .invisible files show by default. I.e., when I type: "ls" .ds_stores shows How do I make this the default ls behavior on new systems? I know "ls -a" will produce the same result, but I am curious how

  • Primary DNS server

    Hello, I am trying to setup a local primary dns server that will resolve local server names but at the same time forward request that it doens't have. like i would like it to resolve our internal web address and still pull up google.com. I put in abo

  • USB 9162 VS cDAQ 9174

    Bonjour, J'ai déjà crée deux autres post sur mon problème mais cette fois je m'attaque au produit lui même!!! http://forums.ni.com/t5/Discussions-de-produit-de-NI/Probl%C3%A8me-DAQmx-buffer-convertion/td-p/1187... http://forums.ni.com/t5/Discussions-

  • AU units started failing

    Logic has started to fail lots of AU units which were previously fine - anyone have an idea why? validating Audio Unit MonoPoly by KORG:          AU Validation Tool          Version: 1.6.1a1           Copyright 2003-2007, Apple, Inc. All Rights Reser