HR ABAP Posiition Holder Org Unit value going dump

Hi Experts,
I am working now HR ABAP. My issue is,  I am using standard Program RHXPEP01. This Program is nothing but. Profile Match up Position/Holder.
Once i execute this program and enter the  value of Org. Unit Value is 60010128. Then after 15mints it will be going dump.
The error message is going to many iterations are going on.
If I execute 60010129 it is working fine. This Org Units are avilable in Production.
Can you plz help me on this.
Thank You
Sri

Hi ,
Please check this thread might be helpful.
Runtime Errors STORAGE_PARAMETERS_WRONG_SET
Regards,
Siraj.

Similar Messages

  • Initialize Org Units on PNPCE Org Structure selection

    Hi All
    In the selection screen of programs where PNP or PNPCE logical database is used, the Org Units can be selected from the Org Structure.
    Can anyone tell me how to initialize Org Units values into the org structure screen

    Hi..
    I hope this may help you...
    select-options: s_orgeh for p0001-orgeh.
    *--  pre-populate top-level org units to process
      s_orgeh-sign = 'I'.
      s_orgeh-option = 'EQ'.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
    Thank you

  • Org unit data not being sent on Leaver records ?

    Hi
    We are holding org unit data on the org assignment in UKP, but is not getting sent in IDOC to GE5
    What could be the reason?
    Little urgent
    Please help
    Warm Regards
    Geeta

    Timecard data will goto HXT tables only in case you have the OTL Rules Evaluation preference set to Yes for the user.
    OTL to BEE Process transfers time to Batch Element Entry, and then to Oracle Human Resources or Oracle Payroll.
    For employees with the OTL Rules Evaluation preference set to Yes, this process
    does not transfer time directly to BEE. It transfers to the professional forms
    Timecard window, where you can review the batch, make corrections, and enter
    exceptions. Then use the OTLR processes to transfer to BEE.

  • How to pass R/3 Sales org unit to CRM Sales order ?

    Hi,
    We are creating CRM sales order using FM ' <b>CRMXIF_ORDER_SAVE'</b>.
       We want to pass Sales Org. unit as '1101' ,but not getting updated in CRMD_ORDER tcode after SO gets created suxusfully.But Distribution Channel and Division are getting updated.
       But we are able to get the same if we give Sales Org. unit value as 'O 50000026',
    and not by giving '1101'.
       Also we need this R/3 Sales Org. unit value dynamically using SELECT statement also.
       Pls let me know if anybody is aware of a solution for this..

    Hi Nagesh,
    Thanks for your reply.
    If we pass R/3
    wa_orgman-sales_org     =  '1101'
    wa_orgman-sales_office = '1101',
    wa_orgman-sales_group = '105' ,
    wa_orgman-dis_channel   = '01'.
    wa_orgman-division      = '11'.
    in the function module ,   sales order is getting created with errors saying Organizational Unit does not exist.
    But If we give  ,
      wa_orgman-sales_org     =  'O 50000026'.
      wa_orgman-sales_office  =  'O 50000075'.
      wa_orgman-sales_group  =  'O 50000080'.
      wa_orgman-dis_channel   = '01'.
      wa_orgman-division      = '11'.
    we could able to create order without errors.
    For R/3 sales org ,the corresponding CRM sales unit is 'O 50000026'.
    We want to pass R/3 sales org values instead of CRM sales values.
    And this R/3 sales org values have to be selected dynamically from a table.
    Pls help  us to solve this issue.
    Regards,
    Siva

  • Any report to see what are the users assigned to an org-unit ?

    Hi All,
    Is there any standard report available to see what are the users assigned to a particular org-unit?
    I'm looking for complete list of users assigned to a particular org-unit both directly and indirectly/
    Thank you so much in advance !!
    Cheers,
    Gyan.

    Hi,
    None of them actually helped.
    Trx PC00 is not available in 4.0 sytem. And from the table mentioned i don't see the org-unit value. Could you please elaborate on this.
    Thanks,
    Gyan.

  • Leaver Employee Org Unit Assignment..

    Dear All,
    In our current system when some employee leaves the company while performing the leaving action we make the postion assigned to the employee as default position while we leave the org unit value the way it was..
    We are not sure what should be the best practice. Should the org unit be also made to contain the default position.. If answer is yes then will there be any impact on retro in case we have to run the payroll of the employee even thought he /she has left the company..
    Regards.
    Vidya..

    Hi Vidya,
    Upon Termination, the standard SAP functionality is to default Position to 99999999 and Org Unit to the Existing one....
    Has no much impact.
    However, in a Scenario where you want to default the Org Unit to 00000000, you may do the following...
    1. Maintain a dummy org unit in Table T527X with Org Unit ID as '00000000' (Just to ensure that this value is available in the Table and in future, no error should show up)
    2. Create Dynamic Action as follows:
    0000  06   02   *    ***Defaulting Org Unit to 00000000 on Termination**
    0000  06   04   P   T001P-MOLGA='10' ** Enter your Country Grouping here
    0000  06   06   P   SY-TCODE='PA40'
    0000  06   08   P   P0000-MASSN='TERMINATION ACTION'
    0000  06   10   I    COP,0001,,,(P0000-BEGDA),(P0000-ENDDA)
    0000  06   12  W   P0001-ORGEH='00000000'
    3. Edit the Infogroup for TERMINATION and delete the entry for 0001.
    Good Luck !!!
    Kumarpal Jain.

  • PPOME - Org.Unit (Acount assignment) goes into DUMP

    Hello Gurus,
    ive got a Big issue, concerning SAP HR module.
    When we start the TC: PPOME we select org.unit from the structure.
    It is beeing showed normaly, but only when we select Acount assignment it goes straight into DUMP,
    saying:
    Runtime Errors         STORAGE_PARAMETERS_WRONG_SET
    What can you do?                                                                 
        Note which actions and input led to the error.   
        For further help in handling the problem, contact your SAP administrator     
        You can use the ABAP dump analysis transaction ST22 to view and manage       
        termination messages, in particular for long term reference.                 
        In the system profile, set the parameters                                    
        -abap/heap_area_dia and                                                      
        -abap/heap_area_nondia                                                       
        to a maximum of 189714480. To be on the safe side, reduce the value by 10,000,
        000.                                                                         
        Then restart the SAP system.       
    These corrections are not needed since the system for every other purpose (SD, MM, FI) is working, only for HR module during acount assignment is going into DUMP.
    Any advice why this happens to some of the Org.Units?
    Regards,
    Laurynas Prikockis

    Hi ,
    Please check this thread might be helpful.
    Runtime Errors STORAGE_PARAMETERS_WRONG_SET
    Regards,
    Siraj.

  • Critical abap hr req - How to find the previous org unit of the employee?

    Hi Experts ,
    I need small inputs from your end...
    I need to find the employee org unit based on the latest one.....
    i just want to know if an employe is Transfered from the org unit .....we can check it from the ORG unit.
    My requirement is to now capture only the org unit of IT folks not for the employees who are transfered to NON-IT department.....
    sop if an empployee 5000 org unit belongs to IT of employee 1000 and NOW he transfered out of IT with current 6000 org unit then how can we read that 5000 ?
    now i am using PCH logical data base...
    Based on evaluation path(Pers-0)  i will pick up the pernr 1000.
    now when i check the org unit it is 6000 with end da 12/31/9999.
    then i loop
    select * from pa0001 into itab where pernr = objec--objid and otype = 'P'.
    enselect.
    loop at itab where pernr = objec-objid.
    Here in the loop what is the logic we need to write to pick up the previous org unit please suggest
    endloop.
    Regards
    sas

    >
    Faisal Altaf wrote:
    > Hi,
    >
    > Please Test the following Sample Code hope it will solve out your problem,
    >
    >
    TABLES: pa0001.
    >
    > DATA: it_pa0001 LIKE STANDARD TABLE OF pa0001 WITH HEADER LINE,
    >       begda TYPE begda.
    >
    > SELECT SINGLE begda FROM pa0001 INTO begda
    >   WHERE pernr = '00000001'
    >     AND endda = '99991231'.
    >
    > begda = begda - 1.
    >
    > SELECT * FROM pa0001
    >   INTO CORRESPONDING FIELDS OF TABLE it_pa0001
    >   WHERE pernr = '00000001'
    >     AND endda = begda.
    >
    > Please Reply if any Issue,
    >
    > Best Regards,
    > Faisal
    Hy Faisal...what is the begda value there?
    Regards
    sas

  • ABAP HR - Org Unit

    Hi Experts,
    I have some 20 org units and each one has 1 manager and 15 employees. Now i want to find the Terminated employees. If I check with each PERNR means it takes lot of time. So Is there  any way to find the terminated employees?
    In other words, Based on Manager PERNR is it possible to find How many employees are terminated By this Manager?
    Expecting your valuable reply,
    Your helps wil be Highly Appreciated.

    If you want a report that will display terminated employees, then I think best bet would be to use PNP and read status of the employee = terminated/withdrawn.
    If you want to make it faster then do a select statement on PA0000 into an internal table and then loop through that table.
    If you want a report where you can give manager's pernr and find out how many (or a list of) employees terminated by this manager then you can use PCH LDB. Or again select statements on HRP1000 and HRP1001.

  • For an Org Unit, how do we get all Reporting Org units (Also employees reporting to the sub org unit) & Employees ?

    Hi Experts,
    I have a very common requirement in SAP HCM ABAP development.
    For an Org Unit, how do we get all Reporting Org units(Also employees reporting to the sub org unit) & Employees ?
    I have tried using RH_STRUC_GET_MULTIPLE_ROOTS and RHPH_STRUCTURE_READ, but the evaluation path is insufficient to get all objects under it. I tried with both O-S-P and O-O-S-P evaluation paths and as per some constraints, I can’t create a customized evaluation path for a reason.
    I am using PNPCE database for user selection screen and user would be advising the Org unit. I even referred the standard transaction ‘S_AHR_61016495’ which is using PCH logical database.
    I would really appreciate if anyone could provide a solution for this. (Rewards guranteed )
    Kindly help.
    Thank you.
    Regards,
    Mahesh Konade

    Hi Alexandre,
    Although I could not respond in time, thank you so much for your prompt reply.
    I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
    Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
    The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
    Thank you so much for the help.
    Regards,
    Mahesh Konade

  • Display of total ansal for each org unit using the sdepth (depth level)

    Hi all,
         We have a requirment in which we will be getting all the active employees related to a perticular org unit then  For every PERNR,we need to  find (as of run date) the org ID on PA0001- ORGEH and total the dollars at the org unit ID level started at the org unit defined on field ORGID and only as far down as defined on selection screen field SDEPTH.
           Example: $10k under Dept D, $9k under Dept C, $8k under Dept B and $7k under Dept A. If field SDEPTH was set to blank, each department would be assigned the above stated budget amount. If SDEPTH was set to 3, the budget would stop at the third level down the org chain (assuming A is the org unit defined in field ORGID, org unit C would be the third org down the chain). The total budget at level C would incorporate any dollars calculated from employees that fall below this org unit in the structure. In this example, the total for org unit C would be $19k, B would remain at 8k and A at 7k.
        We are making use of the FM :  RH_STRUC_GET  to get all pernr numbers related to a perticular org unit and sub level units separately and also RP_ANSAL_FROM_WAGETYPES for getting ansal based on the wahge types (multiple wage types can be provided by the user on the selection screen) .
    Please let me know how can i achive the requirement.
    Regards,
    Zareena.
    Edited by: zareena molla on May 20, 2008 7:14 AM

    Thanks Dan.
    Appreciate if you can help on the below points as well.
    1. As part of divestiture/transfer postings: The system is reversing some Previous Year(PY) equity accounts into themselves. How can we get the system to eliminate them by posting to COI Clearing account. Basically, we dont want the PY accounts to be touched?
    For the Retained earnings - PY account, the system is actually posting to COI clearing account.
    These PY accounts are part of some scopes for equitization.
    Is there any link between the "balance carry forward" - list of items table and the divestiture postings?
    Does the system check this table while posting/reversing the equity(PY) accounts?
    2. I want to understand the sequence in which the system posts the documents at the old parent and new parent (group) level.
    The same activity number is there  for Total Divestiture, total transfer documents posted at new parent level and total divestiture document posted at old parent level.
    Does the system follow bottom up approach? Thereby creating total divestiture document at old parent level.
    Followed by documents at upper level (new parent level)
    Also , at the upper level(new parent level), does it post documents in the way they are shown in the log? (We havent changed the default sequence maintained in UCWB - COI settings). so it will post first consolidation doc, followed by total divestiture, followed by total transfer docs at the new parent level?
    Is this the reason for the double value being posted at new parent for equity holding data?
    Will studying the statistical items (corresponding to eliminated equity holding items) be relevant here to understand why at upper level there is double the value being posted by system?
    Thanks.

  • Teamviewer - All positions in Org Unit display depth between EP5 and EP6

    We are in the process of upgrading our HR Portal from Version 5 to Version 6 (SP14) and have encountered an issue with the Team viewer functionality.
    In our EP5 system when the user selects the dropdown option for 'All positions in org unit' it is picking up our Configuration limiting it to showing only 3 structure levels and when an attempt is made to display lower levels the expander changes but no more levels are shown (e.g. Expander icon changes but does not render the lower level).
    In our EP6 system when the user selects the dropdown option for 'All positions in org unit' it is ignoring the same Configuration and lets the user select down to the bottom of the organisation. This will obviously have serious performance implications and so must be corrected if we are to implement this upgrade.
    To test the situation we deployed the following par files from our EP5 system to our EP6 system and found that we achieved the required result of only allowing the configured levels to be shown:
    com.sap,pct.hcm.objectanddatprovider.par
    com.sap,pct.hcm.orgmanagementeventing.par
    com.sap,pct.hcm.teamviewer.par
    This points to an issue between these files from the EP5 version to the EP6 version.
    Has anyone else experienced an issue with how the EP6 teamviewer handles the 'All positions in Org Unit' selection, and if so can you let me know any solution you have to it?
    (Note: This selection used Eval Path MDTSBESX)
    Message was edited by: Steve Caffrey

    Hello Sandeep,
    Unfortunately the only standard functionality is to change the rankings of the positions within transaction ppome. Therefore you have the buttons 'Move up in rank' and 'Move down in rank' in the overview area of the ppome. As you know if the field PRIOX in the table hrp1001 is empty, the transaction sorts the positions by OBJID. So perhaps you could create a abap program to change this standard functionality to insert values into field PRIOX for the corresponding relationship in HRP1001 that you want to sort.
    Best Regards
    Christine

  • WF error sending notification to org unit

    Hi All,
    I'm facing an amazing issue :
    I use my WF to send notification. The recipient can be a single user or an org unit(object O, in this case all people belonging to this org unit receive the notification in theur SBWP). It was running very fine before but newly my WF goes on error if the recipient is an org unit. I checked my structure, there is no issue, people are well assigned and have their users defined in the system.
    Could you please tell me what's the root cause of this issue? Is there a configuration of WF or rules I should verify?
    Many Thanks

    here is the last news, My WF runs correctly for another org unit. I went to the detailed log(transaction SWi2_freq) and found that for the container of my task(sending notification to the org unit ) some values of the structure "_Workitem" are diffrents :
    Field "callbackFM" which value is SWP_CALLBACK_WI_DONE for both WFs
    Field "return value" :
    the WF which ran correctly : 0000
    the WF which went on error : 1001
    So I guess that this FM causes the error, but I can't find this FM with transaction SE37
    How to reach it?
    Have you faced this error before?
    A colleague audited the OM structure, he confirmed that it's well set up, and the error is not due to wrong assignements or invalid dates.

  • Fm to get employee under manager of all org unit

    hi,
    i have requirement that i need list of all employee under particular manager i know abt HRWPC_PNP_MANAGED_EMPLOYEES but i don't know how to use it is thr any fm reg it .
    thanks in advance

    Hi Rajan,
    Below is the sample code for your reference...
    REPORT zrnd.
    *database tables used
    TABLES:pa0001, "Infotype 0001 (Org. Assignment)
    hrp1001, "Infotype 1001
    pa0002. "Infotype 0002 (Personal Data)
    *internal tables declaration
    **----internal tables for holding
    DATA:t1001 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1002 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1003 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1004 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1222 LIKE p1222 OCCURS 0 WITH HEADER LINE,
         t0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
         t0002 TYPE p0002 OCCURS 0 WITH HEADER LINE.
      DATA: w1222 TYPE hrp1222 .
      DATA : z1222 TYPE hrt1222 OCCURS 0 WITH HEADER LINE.
      DATA: res TYPE swhactor OCCURS 0.
      DATA: wa_res TYPE swhactor.
      Data : f_code type ABTNR,
            p_code type ABTNR,
            f_text type VTEXT,
            p_text type VTEXT,
            s_pernr type Pa0001-PERNR,
            s_name type  pa0001-ename.
    *variable declaration
    **---0 to capture the id of the object "may be orgunit, position, persion.
    DATA: g_sobid1 LIKE p1001-objid,
          g_sobid2 LIKE p1001-objid,
          g_sobid3 LIKE p1001-objid,
    *      *--to capture the personnel number
          g_pernr LIKE pa0002-pernr.
    Constants : c_function type c value 'F',
                   c_Proces   type c value 'P'.
    *selection screen paramters
    **----enter a valid personnel number
    PARAMETERS:p_pernr LIKE pa0002-pernr.
    *start of selection
    START-OF-SELECTION.
    *Get the Position for entered Personnel number
    *----RH_READ_INFTY function module is used for the OM infotypes ..starting with HRP
      CALL FUNCTION 'RH_READ_INFTY'
        EXPORTING
          plvar                = '01'
          otype                = 'P'
          objid                = p_pernr
          infty                = '1001'
          subty                = 'B008'
          begda                = sy-datum
          endda                = sy-datum
        TABLES
          innnn                = t1001
        EXCEPTIONS
          all_infty_with_subty = 1
          nothing_found        = 2
          no_objects           = 3
          wrong_condition      = 4
          wrong_parameters     = 5
          OTHERS               = 6.
      IF sy-subrc = 0.
    *    MESSAGE  'this number is not maintained in hrp1001' TYPE 'I'.
      ENDIF.
    *Get the latest record reading T1001 with following values
      SORT t1001 BY begda DESCENDING .
      READ TABLE t1001 WITH KEY objid = p_pernr "personnel number
      otype = 'P' "Person
      rsign = 'B' "hirarchy top down
      relat = '008' "Holder
      sclas = 'S'. "Position
      IF NOT t1001[] IS INITIAL.
        g_sobid1 = t1001-sobid. "ID of Related Object
    *Get Org unit for the position obtained from above
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'S'
            objid                = g_sobid1
            infty                = '1001'
            subty                = 'A003'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1002
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
        IF sy-subrc = 0.
        ENDIF.
      ENDIF.
      SORT t1002 BY begda DESCENDING .
      READ TABLE t1002 WITH KEY objid = g_sobid1
      otype = 'S' "Position
      rsign = 'A' "bottom up
      relat = '003' "Belongs to
      sclas = 'O'. "org unit
      IF NOT t1002[] IS INITIAL.
        g_sobid2 = t1002-sobid.
    *Get position for the Org unit (Manager)
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'O'
            objid                = g_sobid2
            infty                = '1001'
            subty                = 'B012'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1003
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
      ENDIF.
      SORT t1003 BY objid.
      READ TABLE t1003 WITH KEY objid = g_sobid2
      otype = 'O' "org unit
      rsign = 'B' "hirarchy top down
      relat = '012' "Manages
      sclas = 'S'. "Position
      IF NOT t1003[] IS INITIAL.
        g_sobid3 = t1003-sobid.
    *Get Personnel number for the Manager
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'S'
            objid                = g_sobid3
            infty                = '1001'
            subty                = 'A008'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1004
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
    *    if sy-subrc <> 0.
    *       MESSAGE  'this number is not maintained in hrp1001' TYPE 'I'.
    *      endif.
      ENDIF.
      READ TABLE t1004 WITH KEY objid = g_sobid3
      otype = 'S' "Position
      rsign = 'A' "bottom up
      relat = '008' "Holder
      sclas = 'P'. "Person
      IF NOT t1004[] IS INITIAL.
        g_pernr = t1004-sobid+0(8).
    **--Get name of Manager(Supervisor)
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            pernr           = g_pernr
            infty           = '0001'
          TABLES
            infty_tab       = t0001
          EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
        SORT t0001 BY pernr begda.
        READ TABLE t0001 INDEX 1.
        IF NOT t0001[] IS INITIAL.
           write  t0001-pernr to s_pernr.
           write  t0001-ename to s_name.
         ENDIF.
        Perform get_function_code using  g_sobid2  .
      ENDIF.
    PERFORM display_results.
    *&      Form  get_function_code
    *       text
    *      -->G_SOBID1   text
    FORM get_function_code USING org_unit.
      PERFORM get_obj USING org_unit.
      PERFORM get_ab USING w1222-tabnr.
      PERFORM get_text tables z1222.
      IF z1222-attrib IS INITIAL.
        CALL FUNCTION 'RH_STRUC_GET'
          EXPORTING
            act_otype              = 'O'
            act_objid              = org_unit
            act_wegid              = 'A002'
    *   ACT_INT_FLAG           =
    *   ACT_PLVAR              = ' '
           act_begda              = sy-datum
           act_endda              = sy-datum
           act_tdepth             = 0
           act_tflag              = 'X'
           act_vflag              = 'X'
           authority_check        = 'X'
    *   TEXT_BUFFER_FILL       =
    *   BUFFER_MODE            =
    * IMPORTING
    *   ACT_PLVAR              =
         TABLES
           result_tab             = res
    *   RESULT_OBJEC           =
    *   RESULT_STRUC           =
         EXCEPTIONS
          no_plvar_found         = 1
          no_entry_found         = 2
          OTHERS                 = 3
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        LOOP AT res INTO wa_res.
          PERFORM get_obj  USING  wa_res-objid.
          PERFORM get_ab   USING w1222-tabnr.
          PERFORM get_text tables z1222.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "GET_TEXT
    *&      Form  GET_OBJ
    *       text
    *      -->P_OB  text
    *      -->P_OJ  text
    FORM get_obj  USING p_oj.
      SELECT SINGLE * FROM hrp1222 INTO w1222 WHERE otype = 'O'
                                               AND objid = p_oj.
    ENDFORM.                    " GET_OBJ
    *&      Form  GET_AB
    *       text
    *      -->P_TAB  text
    FORM get_ab  USING  p_tab.
      SELECT  * FROM hrt1222 INTO table z1222 WHERE tabnr = p_tab.
    ENDFORM.                    " GET_AB
    *&      Form  GET_TEXT
    *       text
    *      -->P_Z1222_LOW  text
    FORM get_text  tables p_txt STRUCTURE hrt1222.
    loop at p_txt.
    if p_txt-low+0(1) = c_function.
        write p_txt-low to f_code.
      SELECT single vtext FROM zfunctiont INTO f_text  WHERE abtnr = p_txt-low.
        ELSEIf p_txt-low+0(1) = c_Proces.
          write p_txt-low to P_code.
         SELECT single vtext FROM ZPROCESST INTO   p_text  WHERE abtnr = p_txt-low.
          endif.
    endloop.
    ENDFORM.                    " GET_TEXT
    form display_results.
      write :/ s_pernr,
              30 s_name.
      WRITE :/ f_code,
              30  f_text.
      WRITE :/ p_code,
              30  p_text.
      ULINE.
    endform.
    Thanks,
    Chidanand

  • Org unit employees time depend

    Hello Experts,
    I need a help how to build DSO which gives all the employees in org unit & what the position for each employee between 2 dates
    Thanks

    Hi Alexandre,
    Although I could not respond in time, thank you so much for your prompt reply.
    I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
    Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
    The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
    Thank you so much for the help.
    Regards,
    Mahesh Konade

Maybe you are looking for