RH_STRUC_GET

hi,
using this function module i want to find the number of pernrs having d-p relationship.
then with this FM how can we find pernrs with relation ship D-E-P.
how to use P up and down.

Can u PLZ explain what is D-P and D-E-P ?

Similar Messages

  • Error in FM RH_STRUC_GET

    Hi all,
    I have an error FM RH_STRUC_GET,
    I have entry in Pa0001,
    pernr 81328
    start date 02.05.2008 ,enddate 31.12.9999
    position :20050130   MANAGER
               MANAGER SUPPORT
    org unit: 00022828   SDH
               SDH Consulti
    But when i run STRUC_GET
    using parameters
    ACT_OTYPE                       P
    ACT_OBJID                       81328
    ACT_WEGID                       P-S-O
    ACT_INT_FLAG
    ACT_PLVAR
    ACT_BEGDA                       22.05.2008
    ACT_ENDDA                       22.05.2008
    ACT_TDEPTH                         10
    ACT_TFLAG                       X
    ACT_VFLAG                       X
    AUTHORITY_CHECK                 X
    TEXT_BUFFER_FILL
    BUFFER_MODE
    The below error shows..
    Runtime:        17.907 Microseconds
    Exception       NO_ENTRY_FOUND
    Message ID:          5W                         Message number:           170
    Message:
    Structure 01 P 81328 P-S-O: No agent found.
    If the relationship is there in HRP1001, will get the same result in STRUC_GET ....what wrong whith the FM??
    regards
    Jose

    It should work exactly as transaction PPSS (apart from the buffer)
    RH_STRUC_GET uses the HR-buffer and PPSS retrieves the data directly from the HR tables.
    You can synchronise the HR-Buffer with SWU_OBUF.
    If you can find no differences, then look at how you populate the parameters, Person  81328 shouldn't this be Person 00081328, for instance
    Kind regards, Rob Dielemans

  • Disable authorization check RH_STRUC_GET

    hi,
    is there a possibility to use FM
    RH_STRUC_GET and to disable authorization check similar to  'HR_READ_INFOTYPE_AUTHC_DISABLE' for fm HR_READ_INFOTYPE?
    thanks for help

    stupid question - solved by myself.

  • Is there a place where I can find all the field values for RH_STRUC_GET

    Hello Gurus,
    I there a place or maybe some documentation that will explain or give the different values for the FM RH_STRUC_GET fields ?
    Thank you,
    JZ

    Hi Jorge
    In this link you have an example .
    RH_STRUC_GET Performance
    Now when I needed that for crm I used to a class
    'CL_CRM_PPM_UM_TOOLKIT.
    In sdn you can find examples about used the FM or class

  • How to find Job relationship using the Function Module  RH_STRUC_GET

    Hi Experts,
    I am getting O-S-P relation ship using for an org unit using the function module RH_STRUC_GET.
    Further If I want the job relation ship, how it can be found out.
    Thanks in Advance,
    Irfan

    Hello Irfan,
    Have a look at the table T778A for evaluation path you require and pass this to the function module.
    Regards,
    Manoj.

  • Working of 'RH_STRUC_GET'

    Hello,
    I have a following Org structure
    O (Org1)
    |_ S
    |   |_ P (P1)
    |
    |_ S
    |   |_ P (P2)
    |
    |_ O (Org2)
        |_ S
            |_ P (P3)
    I want to get P1 and P2
    I am using RH_STRUC_GET function module to retrieve the same.
    This is how I am passing the parameters
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype      = 'O'
          act_objid      = Org1
          act_wegid      = 'O-S-P'
          act_plvar      = '01'
          act_begda      = sy-datum
          act_endda      = sy-datum
          act_tdepth     = 3
        TABLES
          result_tab     = it_sw
          result_objec   = it_objec
          result_struc   = it_struc
        EXCEPTIONS
          no_plvar_found = 1
          no_entry_found = 2
          OTHERS         = 3.
    This way the FM returns P1, P2 and P3, but I want only P1 and P2.
    Why is it happening so?
    Are the depth and evaluation path I mentioned correct?
    How is the level considered. Since I am passing Org1, is that org unit considered as level 1? Or is it that the level 1starts from Org2?
    Where can I get the documentation for the function module 'RH_STRUC_GET'?
    Please help me out.
    Thanks & Regards,
    Reena
    Edited by: Reena Kandula on Aug 18, 2009 2:16 PM
    Edited by: Reena Kandula on Aug 18, 2009 2:21 PM

    Reena,
    The values you have passed in 'RH_STRUC_GET' are correct.
    You wont be able to get 'P3' if you give 'Depth' as 3.
    Level 1 starts from Org1.
    In your structure Org1- level 1,
                                S  - level 2,
                                P1 - level 3,
                                Org2 - level 2,
                                P3 - level 4 (won't be displayed).
    You can check this structure level in table RESULT_STRUC , check the 2nd column which contains level number.
    Regards,
    Thyagu.

  • Funtion RH_STRUC_GET

    Dear all,
    I have a question about the function RH_STRUC_GET.
    CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
      act_otype = 'P'
      act_objid = employee number
      act_wegid = 'B025'
      act_plvar = '01'
      act_begda = '1900/01/01'
      act_endda = '2010/01/01'
      act_tflag = space
      act_vflag = 'X'
      authortiy_check = space
    what i want to get is the begda in the result_object,
    i can get a record from the result_object,but the begda
    and endda is blank,and actually the record in the table
    HRP1001,its begda and endda is not blank,
    can anybody help me ?
    thank you very much

    Hello,
    Please try Function Module HR_EHS00_READ_HRP1001.
    Regards
    Sabu.

  • Delimited objects displayed in RH_STRUC_GET

    Hi,
      I am calling RH_STRUC_GET for a org unit ad trying to get all org units under it.
    The issue is its getting even delimited org units even though I have specified today's date as begda and endda. I assumed the begda and endda were to display org units active in between this date.
    Is this a bug? Has anybody encountered it before?
    Prakash

    Yes - we see the same behaviour.  I raised a ticket in OSS for it, and they claim it is 'as designed'.  To me it is definetely a bug, or at best very unwanted behaviour.  It really messes up the users - as the FM is used eg. when they should pick positions during hiring.
    It would be good if more people would raise issues with SAP on this.  Maybe some of us will get through.  My experience with OSS is that the quality of the answeer is very dependent on who picks up your ticket.
    /Kirsten

  • Append 'RH_STRUC_GET' FM result

    Does anyone knows, how to append 2 result from the FM 'RH_STRUC_GET' ??
    Thanks for your help
    quentin

    Quentin
    You can either call the FM in a loop and build internal table with the FM output table contents.
    Alternatively you can try using FM RH_STRUC_GET_MULTIPLE_ROOTS by putting your objects in table parameter root_objects.
    Let me know whether this solves your problem.

  • RH_STRUC_GET get different result

    All experts,
        As i use this FM to get OM structure,  the evalation path it 'MSSDIREC'.  it can ge resutl,  but , i use two logon ID to check this, it gets different result,  how to do this?

    My parameters is like this:
    CALL FUNCTION 'RH_STRUC_GET'
                EXPORTING
                    ACT_OTYPE  = 'O'
                    ACT_OBJID  = it_org-sobid               "50006642
                    ACT_WEGID  = 'MSSDIREC'              "evalation path
                    ACT_PLVAR  = '01'
                    ACT_BEGDA  = lv_date1 "wa_begda  M1        "21.10.2009
                    ACT_ENDDA  = lv_date1 "wa_endda              "21.10.2009
                TABLES
                    RESULT_TAB  =  lt_d_result_tab
                EXCEPTIONS
                    NO_PLVAR_FOUND  =  1
                    NO_ENTRY_FOUND  =  2.
    I use two Logon ID to test this FM, but it get two different result.
    i want to know why there is different result in different ID,
    Edited by: Kevin Leung on Oct 21, 2009 9:40 AM

  • RH_STRUC_GET STRUC

    Hi,
    the function RH_STRUC_GET returns an structure of type struc wich contains 2 date pairs:
    (VBEGDA, VENDDA) and (SBEGDA, SENDDA).
    Does anyone know which dates do they correspond with?
    I suppose that VBEGDA and VENDDA corresponds with the dates of the link between an object and its predecessor, but i don't know it for sure and i don't know what are SBEGDA and SENDDA.
    Can anyone help me?
    I have tried to read the RH_STRUC_GET code but i don't speak german and this makes it difficult to understand the comments in the code.

    i have answered myself making several tests with PPOME transaction

  • Rh_struc_get  authorization

    Hi,
         rh_struc_get function module is failing for a user.Its working fine for other users.
        Its a authorization problem.
       i am using evalution paths like a008,etc.
       Any specific HR authorizations to be given for this??
       please provide any details or links that are helpful.
    Thanks in advance for the help.
    Nuthan.

    to check if an authorization check failed use transaction su53 to see if this is the case.
    Also rh_struc_get uses the HR buffer, so if you use it after changes are made you probably don't see anything, using swu_obuf will clear this problem.
    Kind regards, Rob Dielemans

  • RH_STRUC_GET time out

    Hi everyone !
    I still have a big problem with the RH_STRUC_GET FM.
    When i use it with an evaluation path that contain a lot of object.
    Is anyone has an idea how to bypass the Time out??
    Quentin

    Hi,
    You might have to consider running the FM for each part of the evaluation path successively... and gather all the information to output them into the file.
    Other possibilities :
    - raise the timeout (but it will stress the SAP server more)
    - "play" with some index on HRP1001...
    Best regards,
    Guillaume

  • RH_STRUC_GET change version 4.6 to 6.0 lose of data

    Hi,
    i'm using this function module "RH_STRUC_GET", and i found an error with the same parameters in the 4.6 and 6.0 version and the same data in the tables, the function import a table with 58 results in 4.6 version  and 57 in the 6.0 version. the evaluation paths is the same too, i don't understand nothng, can you help me please?? thanx a lot.

    i yet do this but the results are differents, in the 4.6 version i have 58 results and in the 6.0 version i have 57 results, for the same parameters.
    Edited by: Leticia Gutierrez on Jul 10, 2009 6:18 PM

  • RH_STRUC_GET (HR ABAP)

    Hi All,
    I am using the fuinction module RH_STRUC_GET in a custom function module.
    When i enter an object id which does not exist it should raise an exception. But when i execute the FM it does not raise the exception , but gives an error
    'Structure 01 k 234536 B011: No agent found'     (Here 234536 is the ID which does not exist)
    CALL FUNCTION 'RH_STRUC_GET'
          EXPORTING
            act_otype    = w_otype
            act_objid    = w_obj_id
            act_wegid    = c_b011
            act_plvar    = c_01
            act_begda    = w_curr_dt
            act_endda    = w_curr_dt
          TABLES
            result_tab   = w_result_tab
            result_objec = w_result_objec
            result_struc = w_result_struc.
        IF sy-subrc <> 0.
        RAISE no_entry_found.
        ENDIF.
    I also tried using like this
       MESSAGE e170(5w) WITH c_01 w_otype
                              w_obj_id  c_b011
                              RAISING no_entry_found.
    But i still get it as an error. I want to get the exception instead
    Thanks in advance.

    Hi
    Have you defined the exception in the function module definition. No_ENTrY_FOUND should be defined as a exception and then it can be raised.
    handle it like this:
    CALL FUNCTION 'STRING_SPLIT'
         EXCEPTIONS
              NOT_FOUND = 7.
    IF SY-SUBRC = 7.
      WRITE / 'There is a problem.'.
    ELSE.
    ENDIF.
    Reward points, if helpful

  • 'RH_STRUC_GET' having issues after upgrade

    Hi Wokflow experts,
    I have a program tha uses the FM 'RH_STRUC_GET' to get users from work centers. The FM interface is as below. It was working fine in SAP enterprise, but in ECC 6.0 this FM has stopped returning any values. It returns the exception Structure 01 A 50000100 WF_ORGUS: No agent found.
    CALL FUNCTION 'RH_STRUC_GET'
             EXPORTING
                  ACT_OTYPE      = OTYPE
                  ACT_OBJID      = OBJID
                  ACT_WEGID      = 'WF_ORGUS'
                  AUTHORITY_CHECK      = ' '
    Can anyone suggest a solution to this problem.
    Regards,
    Kartik N.

    Hi Kartik,
    Check the values you are passing to the FM. Also fetch the output of table RESULT_TAB and see if you are getting values.
    CALL FUNCTION 'RH_STRUC_GET'
                    EXPORTING
                      ACT_OTYPE              = <enter value>
                      ACT_OBJID              = <enter value>
                      ACT_WEGID              = <enter value>
                      AUTHORITY_CHECK        = 'X'
                   TABLES
                     RESULT_TAB              = result_tab
                   EXCEPTIONS
                      no_plvar_found = 01
                      no_entry_found = 02
                      OTHERS         = 99.
    Try passing the following values and check.
    Regards,
    Saumya

Maybe you are looking for

  • Read table data and fetch file from path specified in table column

    Hi, I have a situation where file path information is stored in database table along with other columns - I need to read data from SQL Server table row by row, go to the path identified by the record, check for existance of the file - if the file is

  • Have I got the right tools?

    Hi all, I need to acquire/buy the following tools for a lot of my network related activities. I need: 1) A tool that checks for cable splits/breaks, DHCP functionality and troubleshoot basic network problems and last but not least should be very port

  • Spry and Quicktime ActiveX Issue

    I adapted the Spry photo Gallery example to load Quicktimes movies from a list of links. Works great in Firefox/Safari... but in Internet Explorer it seems to knock the ActiveX control out. Any thoughts on this? Take a look... http://pymm.com/reel.ht

  • Fully filling of applet in frame.

    Hi I want to fill a frame fully with the applet embedded in it. 1.Applet code import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import javax.swing.JApplet; import javax.swing.JPanel; import netscape.ja

  • Is using only 'date taken' date an option I missed

    Where do the absurd dates come from?  As far as I'm concerned the only 'must have' date for a photo is the date it's taken.  It may also be nice for some to know when they modified it or imported into there library. What I find is that I see to what