How to display employee lower hierarchy.

Hi all,
    I am trying to generate a report of manager's lower hierarchy, As to get all the employee who are working under particular manager. But, I want to get his under working employee's under working
employee and so on..,
   I think we have to use loop for this, But how many times shall we run that loop.
Some employee may not have his under working employee and some one may have, but how to get each and every ones record in lower hierarchy.
  I am getting his next under working employee by using this code.
Loop at itab_pernr.
   SELECT  OBJID
    FROM HRP1001
    INTO EMP_SUB1
   WHERE SOBID EQ ITAB_PERNR-PLANS
     AND OTYPE EQ 'S'
     AND PLVAR EQ '01'
     AND RSIGN EQ 'A'
     AND RELAT EQ '002'
     AND ENDDA GE P_ENDDA.
WRITE:/ EMP_SUB1-PLANS.
   ENDSELECT.
Endloop.
But, How to get his under working employee and so on...
Example:
Manager     |  His under employee | His under employee  | His under employee | .............
|--||--
|..............
Surender     | Mohan                    |  Rupa                      | Nandu                       |..............
Surender     | Mohan                    |  Hrish                      |                                 |..............
Surender     | Chandu                   |  Jane                       | Tom                         |..............
Nalli            | Santhi                     |  Priya                      |                                 |..............
Kishore       | Monoj                     |                                |                                 |..............
Anna          | Roy                         |  Pradeep                  | Nandu                      |..............
Anna          | Roy                         |  Krishna                   |                                |..............
Hope you may got some good idea by looking to the example output.
Can any one suggest me.
Thanks and Regards,
Surender.
Edited by: Surender Batlanki on Mar 11, 2008 1:42 PM

Use FM : RH_STRUC_GET and pass the parameters
accordingly ...
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype      = subst_str-otype  <-- pass the otype
          act_objid      = subst_str-objid <-- pass the objid
          act_wegid      = 'SAP_TAGT' <-- enter Evaluation Path
        TABLES
          result_tab     = lt_agents
        EXCEPTIONS
          no_plvar_found = 1
          no_entry_found = 2
          OTHERS         = 3.
Edited by: Srinivas Gurram Reddy on Mar 11, 2008 6:20 PM

Similar Messages

  • How to Displaying Employee Photo in ESS Who's Who via Reverse Proxy?

    Dear Gurus,
    I have a bit of problem to displaying employee's photo in ESS Who's Who via Reverse Proxy.
    In my landscape, end-users are only able to reach the Reverse Proxy server, not the actual SAP server itself.
    In Who's Who, when displaying the employee's info, the URI for the photo is generated using the actual SAP server name.
    Illustration:
    - the URI we expect: https://portal.domain.com/sap/bc/contentserver?.....
    - the URI we get: http://r3server.domain.com/sap/bc/contentserver?....
    Does anyone know where/how I can set the URL (hostname and protocol part) to refer to my reverse proxy?
    Or is it because SAP is using an absolute path rather than the relative one?
    How do we go about it?
    Thanks in advance.

    Dear Barinbhai,
    How are you? We are fine at here!!!
    Following URL generated thru Portal
    System generated : http://p30app06.ril.com:8000/sap/bc/contentserver/430?get&pVersion=0046&contRep=7N&docId=4D2155EB6C32545BE10000000A42163F&accessMode=r&authId=CN%3DQ10&expiration=20110215052004&secKey=MIIBkwYJKoZIhvcNAQcCoIIBhDCCAYACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAV8wggFbAgEBMBMwDjEMMAoGA1UEAxMDUTEwAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTAyMTQwNTIwMDRaMCMGCSqGSIb3DQEJBDEWBBTJCER2r9%2BifbQPOtCqJdAoJ99NTzCBpgYFKw4DAhswgZwCQQCJ%2FPuWmHE5m%2Bd1vtX464doAJIsN2SmIpBAUe7jLGtmAD7F6ElSWOtC6uMuXUPisyKr3lRQ6IOC1ZhVPsnnXJsZAhUAtGAwyGWTqdJdd7nwrXKA7T%2B3GVcCQBUQxMBImvHdAsIyF3DmBtPwHcPpyCyBbJ737ivcuw2qjdJeGttSqR8GGuPn0DmzF36%2BUSnLRxZVNPn6nUbnPx0ELjAsAhR7G1vGjngjoll50RhWKcDlBTvVKgIUZ1NlQXMe61LXcqsTGsz7r28Kzh0%3D
    Photo opening directly on following URL:::
    Desired URL : http://ess.ril.com/sap/bc/contentserver/430?get&pVersion=0046&contRep=7N&docId=4D2155EB6C32545BE10000000A42163F&accessMode=r&authId=CN%3DQ10&expiration=20110215052004&secKey=MIIBkwYJKoZIhvcNAQcCoIIBhDCCAYACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAV8wggFbAgEBMBMwDjEMMAoGA1UEAxMDUTEwAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTAyMTQwNTIwMDRaMCMGCSqGSIb3DQEJBDEWBBTJCER2r9%2BifbQPOtCqJdAoJ99NTzCBpgYFKw4DAhswgZwCQQCJ%2FPuWmHE5m%2Bd1vtX464doAJIsN2SmIpBAUe7jLGtmAD7F6ElSWOtC6uMuXUPisyKr3lRQ6IOC1ZhVPsnnXJsZAhUAtGAwyGWTqdJdd7nwrXKA7T%2B3GVcCQBUQxMBImvHdAsIyF3DmBtPwHcPpyCyBbJ737ivcuw2qjdJeGttSqR8GGuPn0DmzF36%2BUSnLRxZVNPn6nUbnPx0ELjAsAhR7G1vGjngjoll50RhWKcDlBTvVKgIUZ1NlQXMe61LXcqsTGsz7r28Kzh0%3D
    Pls sugget..
    Hitesh Khatri
    SAP -HR
    RIL - Navi Mumbai....

  • How to display employee photo in pdf through WebDynpro OR ABAP print Progr?

    hi,
    I have uploaded employee photos using TCODE OAOH. Now all the employee photos are stored in Archive link.
    Now my requirement is i have get the employee photo and display it in PDF using PDF forms and  webdynpro OR using ABAP print program.
    I am able to get the employee photo from SAP archive link using ABAP code. After this i have to upload this to MIME reository. From MIME repository i have to display it in PDF forms from WEbDynpro.
    I tried with ABAP print program, directly calling the PDF form in program and display the employee data with Employee Photo. With my program i am able to see only employee data. But it's not displaying employee Photo.
    Plz any helps to display employee photo in PDF forms using either webdynpro OR ABAP printprogram.
    If ur reply is related to WebDynpro, pla tel me how to upload photo to MIME repository From Archive Link.
    Since all the employee photos are uploaded into Archive link using Tcode OAOH. From this i have to get the employee photo and upload it to MIME repository and i have to display it in PDF forms.
    Any help are appreciated.......
    Regards,
    Shankar.

    Hi Sankar,
    1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
    2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
        data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg'  .
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url     = url
        importing
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Thanks,
    Rajkumar.S

  • How to display employee no in group tree without separator and decimals

    Post Author: makk07
    CA Forum: Formula
    Hi Everyone,   In my database the employee number is stored as follows:8,367.0029,785.00140,742.00   And in the report I have a group based on formula to display employee name and employee number. My formula is as follows:{@Full Name} & ' - ' & {table.EMPLOYEE NO}and in the group tree you will see it asjohn,smith - 140,742.00 but I want to display it as follows:john,smith - 140742, and I am using crystal XI   Please anybody suggest how to achieve that.Thanks in advance

    Post Author: SKodidine
    CA Forum: Formula
    Change your formula to:
    {@Full Name} & ' - ' & totext({table.EMPLOYEE NO},0,'','')

  • How to display employee department head?(urgent pls)

    Hello Everybody,
    I have to write a function. here i am passing person_id(employee) as a parameter to function.
    it has to display employee department head person_id.( for example if employee belongs to Department B. Department B is child of Department A. i mean to say that i need to find out head(person_id) of department A)
    i try to find out till employee organization_id by using per_all_people_f and per_all_assignments_f tables.
    please some one respond. it is bit urgent.
    Thanks in advance.

    Thanks Subhasish for your reply.
    subhasish really i need your help here. i am developing custom work flow. In that i have to use function. here i have to give employee name has a paramer, then function has to return his division head id(manager).
    my requirement is when an employee applied for mobil connection, the request has to go to division head(manager) of that employee. here we have there levels 1.Division(First level)2.Department(second level) 3.base(third level).
    the employee may related to any level, the request has to go to division head(manager).
    here i am using this query
    select hou.organization_id, pse.organization_id_parent ;
    from hr_all_organization_units hou, per_org_structure_elements_v pse
    where hou.organization_id= pse.organization_id_child
    and hou.organization_id in (select organization_id from per_all_assignments_f
    where person_id in
    ( select person_id from per_all_people_f
    where first_name='Thoms'));
    and i come to know that i have to use fnd_lookup_types and fnd_lookup_values tables. where has i failed to return the division head_id.
    kindly give some solution.
    Thanks.

  • How to display an expanded hierarchy in report?

    Hi,
    i'm working with BI 7.0. How do I display a completly expanded Hierarchy in my report. At present I see the hierarchy but the nodes need to be manually expanded in the report.
    pls help,
    SD

    In Query designer under properties of your characteristics there is a separate tab called "hierarchy"; only If hierarchy is active for your characteristic you can change the properties for the hierarchy. If not you will see a message like "no avalaible hierarchy for this characteristics".
    If it is active it will be changeable. For autoopen your hierarchy you should select the point "expand till step" and define here till which step you want autoopen your hierarchy.
    Regards
    Engin

  • How to display 3 level hierarchy alv report using SALV

    Hi ,
          I need to display a Hierarchy ALV report with 3 level.I thought of trying CL_SALV_HIERSEQ_TABLE but i am able to display only two level report.
          How can i display the 3 - level heirarchy report using SALV. I don't want to use SALV_TREE.
          Regards,
          Aditya Tanguturi.

    Hi Aditya,
    Please check this thread
    Is it possible to display more than 2 levels us... | SCN
    Thanks !
    Amit

  • How to display Employee Attendance Data in Crosstab Format?

    Hi all,
    I have the data in sql server 2005 like below, which saves the employee in date and in time and entry type 
    How can i create a cross tab query for the above records in sql server 2005. and i need the record in the below format:
    where 1, 2, 3 are indate days, and below is intime, out time and the difference of hours per employee...
    How can i achieve it as i have to make report for it... need sql query or stored procedure for the format required.
    Thanks in adv.

    One could argue that the crosstab is best produced in the presentation layer and that SQL Server should only return the raw data. But if you like to hurt yourself...
    First you need an unpivoting query to put starttime, endtime and length in a single row. Since all columns in a row needs to have the same data type, this requires some care.
    We take this CTE:
    WITH CTE AS (
      SELECT t.EmpID, u.n, datepart(day, t.starttime) AS day
             substring(convert(char(23),
                CASE u.n WHEN 1 THEN t.starttime
                         WHEN 2 THEN t.endtime
                         WHEN 3 THEN dateadd(ss, datediff(ss, t.starttime, t.endtime), '19000101')
                END, 108), 11, 5)
      FROM   tbl
      CROSS  JOIN (SELECT n = 1 UNION ALL SELECT 2 UNION ALL SELECT 3)
      WHERE  t.starttime >= @month + '01'
        AND  t.starttime <  dateadd(month, 1, @month + '01')
    I assume here that @month is on the form YYYYMM.
    Before I go on, I like to point out that something you need to consider is what output you want if there are multiple entries the same day. And even worse, what output do you want if the intervals are overlapping? To keep this post down in complexity, I
    will ignore this situation, but I like to stress that unless you have the appropriate triggers and constraints in place, you will have that sort of data in a real production scenarion. Bad data knows how to creep in.
    With the CTE above, we can now pivot the data per day. It is kind of boring to write:
    SELECT EmpID,
           MIN (CASE day WHEN 1 THEN data END) AS [1],
           MIN (CASE day WHEN 2 THEN data END) AS [2],
           MIN (CASE day WHEN 31 THEN data END) AS [31]
    FROM   CTE
    GROUP  BY EmpID, n
    ORDER  BY EmpID, n
    Note: all code here is untested. If you want a tested solution, you need to supply the CREATE TABLE statements for your table and sample data as INSERT statements.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to display a Hierarchy node for level 2 without parent and description

    Hi,
    How to display a node at level two at the query the first node is CLASS where hierarchy is maintained and the second node is
    subclass where hierarchy is not maintained, Now I want to display the subclass in the row where it has to display its child node in one column & text in the other.

    Hi,
    I dont think this would be feasible to display in different columns.
    -Vikram

  • How do you switch the display of a Hierarchy to be collasped?

    I need to display a hierarchy in a web app, I need it to default to collapsed rather then expanded.   I am unable to find anything in the query designer properties to control this setting.  The one solution I've tried in the Web Template is to add the command SET_DRILL_STATE to the action before rendering property.   But I'm getting an Error which I don't understand.   E180    Illegal Parameter value -666 of Parameter DRILL_STATE of Object command:SET_DRILL_STATE:
    Does anyone know what I'm doing wrong or how to switch the initial display of a hierarchy?
    Message was edited by:
            David Willett
    Message was edited by:
            David Willett

    Hello,
    If I change the expand to level property to 1, the hierarchy will display down to just the first level.  What I really need is to have the hierarchy not show.  I believe the 00 indicates the default setting for the hierarchy. 
    What I need to display is the Key figures with Characteristic Hierarchy below them in the rows.  Ideally the hierarchy is not displayed initial but just the carrot next to each key figure. 
      Key Figures   
    >Net Revenue  $ 0.03 $ (1.39) (98.02) % $ 0.03
    >CS Salaries Allocated  $ 0.00 $ (1.44) (100.00) % $ 0.00
         > TOTAL FIRM LEGAL VIE  $ 0.00 $ (1.44) (100.00) % $ 0.00
         > TOTAL ATR  $ 0.00 0.00 0 0.00
         > TOTAL TAX  $ 0.00 0.00 0 0.00
         > TOTAL FAS  $ 0.00 0.000 0.00
    Thank you for your help with this.

  • How to display S.no adjacent to employees table help plsss

    In a form in tabular format Emp details are displayed
    Adjacent to the table i want to put a Sno display item showing
    1 for 1st employee
    2 for 2nd employee ......
    I thought i could like create a global variable in a package specification in a program unit and assign it to 1
    Package pack1 is
    v_num number :=1;
    end;
    and then write a PRE_ITEM trigger for a Sno item in the object navigator
    In the trigger
    how to display the value inside v_cnt;
    I tried creating a sequence
    create sequence v_seq;
    but the sequence really wont help me as
    it would keep on incrementing
    so how can i display the value inside the v_cnt in a item
    Is it possible not to use a trigger and still achieve this

    BEDE,
    what will the :system.cursor_record show in a tabular block of 10 rows and what the rownum will sho instead (even if you change the where clause or the ordre by) :
    - the :system.cursor_record will show the number of the fetch.
    1-10 rows : 1
    11-20 rows : 2 etc ...
    - the rownum order by field :
    rownum - field
    1- A
    2- B
    3 - C etc..
    - the rownum order by field desc :
    rownum - field
    1 -C
    2 - B
    3 - A etc..
    - the rownum where clause filed != 'B':
    rownum - field
    1 - A
    2 - C
    3 - D etc..
    So Sqlstar_student, just choose the method regarding your needs.
    Regards
    JeanYves

  • While hiring, how to display subtype to the employees

    Hi,
    can any one help me out.....
    how to display the subtype 002 (temporary addresses )  to the infotype 0006 while hiring employees?
    Thanks & Regards
    Padmasree

    Hi,
    You might have defined your action type (Table T529A)). For that action, you might have defined an infogroup. Go to that infogroup (Table V_T588D) and select your User group. For example, if your Infogroup is 10 and User group is 01, entry should be in the following manner:
    User Group              No            Operation   Infotype                   Infotype Text    Subtype
    01                 03     INS     0006            Addresses           002
    This should work.
    Regards,
    Suhasini

  • How to display 'Alpha numeric values' in lower character?

    Hi,
    We have 'Alpha numeric value' in one column and i need to display alphabets in lower character.
    I tried but throwing error.
    SQL> select * from a439487.ora_dev_inventory;
    HOST_NM HA INV_DT
    SMMK94 - 21-AUG-08
    SQL> select to_lower(HOST_NM) from a439487.ora_dev_inventory;
    select to_lower(HOST_NM) from a439487.ora_dev_inventory
    ERROR at line 1:
    ORA-00904: "TO_LOWER": invalid identifier
    I want 'HOST_NM' to be displayed in lower value.
    I need o/p like 'smmk94'.
    Any idea?

    Where did you find the TO_LOWER function? Can you
    show us?I would guess it was just an assumption based on the fact we have to_char, to_date, to_number...
    ;)

  • 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

  • OBIEE Multiple Employee Organisation Hierarchy Version update - duplicating workforce totals

    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,

    For my solution it was done through a button with 2 commands.  These commands are SET_HIERARCHY and then SET_AXIS_HIERARCHY.  These 2 commands seem to be necessary as the SET_HIERARCHY simply sets the level of where the hierarchy is expanded to and the SET_AXIS_HIERARCHY enables the display of the expanded hierarchy on the axis you choose, usually  in the rows.
    SET_HIERARCHY:
    Data Binding
    Characteristic: Organisation Unit
    Command-Specific Parameters
    Active: On
       Heirarchy Identifier
    Name of Hierarchy: ORGEH (ORGEH)
    Version: 01
    Key Date: 0DAT
    Initial Drill Level: 16 (Note: this is the maximum level anticipated in Organisation Unit, so fully expanded)
    SET_AXIS_HIERARCHY
    Data Binding
    Axis: ROWS
    Command-Specific Parameters
    Active: On
    Description: Default
    Initial Drill Level: 1 (Note: this is the level of the characterisitic Organisation Unit from the query Rows axis, not the hierarchy level)
    Hope this helps.
    Regards,
    Joe

Maybe you are looking for

  • Social networking share widgets for iWeb... any solutions?

    I've been trying in vain for sometime to get one of the social networking share widgets (ShareThis, AddThis, TellaFriend) to work in iWeb 08 and am hoping someone might be able to help. With all i am pasting the code provided by these services into t

  • ITunes Stops Working when I Sync

    Does anyone have a clue for me? I've had no problems syncing my phone until a couple of days ago. Now when I try to sync it causes iTunes to stop working and gives me a message that the problem will be solved if I get the lastest version of iTunes. O

  • Set Font Attributes for Slide Show Captions

    PSE v.6 - When creating a slide show, I can select to "Include photo captions as text" when adding slides. The font of the included text is basic with no effects (I want it to have a drop shadow). Is there a way to set the default text attributes (co

  • No drag&drop features in HTML5

    Hi community Do you know if the drag&drop feature that I know from the Silverlight version of C4C (may release) is available in the HTML5 version. It could be used for adding employees or products to objects like opportunities or leads. Right now it

  • Is it possible to find my stolen ipad2?

    My Ipad2 was a company gift from 'Nippon Express' to celebrate their 50th year anneversery. It has a unique inscription on the back too. Can I find It?