002 relationship between Org units - Failing

Hi All,
I am trying to maintain relationship 002 between two org units via function module - RH_RELATION_MAINTAIN.
This function module is failing to do so. (SY-SUBRC not equal to 0) .
Can you suggest me if there are any prerequisite that is needed to maintain this relation between two Org units ?
What could be the possible reason for failing.
Thanks,
Nitu Kumari

CALL FUNCTION 'RH_RELATION_MAINTAIN'
      EXPORTING
        act_fcode           = 'INSE'
        act_plvar           = '01'
        act_otype           = 'O'
        act_objid           = v_current_org_id
        act_rsign           = 'A'
        act_relat           = '002'
        act_sclas           = 'O'
        act_sobid           = v_new_org_id
        act_begda           = v_effective_date
      EXCEPTIONS
        maintainance_failed = 1
        OTHERS              = 2.
Sy-SUBRC is not equal to 0 after this FM is called.

Similar Messages

  • How we will create relationship with org unit and task catalog

    HI Experts
    How we can create relationship between Org unit and Task Catalog in Organisation management once we grouped all the tasks in one group.
    For Example we have one org unit under that we have 3 depts those will consider as org units only.under 3 depts we have professor,Lecturer,Reader as jobs and positions also.If we create Professor tasks in task catalog which all the tasks will be assigned to positions as well.
    If it is Org unit and Task catalog how we can create relationship.
    Thanks
    Rajji

    Hi,
    Please try.
      DATA: lt_hrp1001 TYPE STANDARD TABLE OF P1001.
      DATA: lw_hrp1001        TYPE p1001.
      lw_hrp1001-mandt = sy-mandt.
      lw_hrp1001-plvar = parent_pos-plvar.
      lw_hrp1001-otype = parent_pos-otype.
      lw_hrp1001-objid = other_pos.
      lw_hrp1001-istat = parent_pos-istat.
      lw_hrp1001-begda = sy-datum.
      lw_hrp1001-endda = lc_endda.
      lw_hrp1001-infty = '1001'.
      lw_hrp1001-aedtm = sy-datum.
      lw_hrp1001-uname = sy-uname.
      lw_hrp1001-rsign = codes.
      lw_hrp1001-relat = relats.
      lw_hrp1001-sclas = lc_sclas.
      lw_hrp1001-sobid = cord_pos.
      append lw_hrp1001 to lt_hrp1001.
          CALL FUNCTION 'RH_INSERT_INFTY'
            EXPORTING
              fcode               = 'INSE'
              vtask               = 'S'
              commit_flg          = 'X'
            TABLES
              innnn               = lt_hrp1001
            EXCEPTIONS
              no_authorization    = 1
              error_during_insert = 2
              repid_form_initial  = 3
              corr_exit           = 4
              begda_greater_endda = 5
              OTHERS              = 6.
    Hope this helps.
    regards,
    Xiang Li

  • Employee relationship to org unit contains a wrong email id replica from HR

    We have an issue with HR employee replication from ECC to CRM.
    Employee1 and its assignment to Organization is replicated to CRM from ECC system through the standard process.
    Than for that employee, a relationship is created as u201Dis employee ofu201D for the same organization. Till here every thing is working fine.
    But when we open the relationship, it contains an email id which is of another, employee2 and no way related to this employee1.
    And in General data address tab of employee1 it contains the correct mail id of employee1.
    Now the problem is whenever a mail is triggered to the employee1,it goes to the email id of employee2 as this is present in the relationship of employee1.When trying to click on change button, it is showing the warning message that u201Demployee is changeable only in the HR systemu201D.
    When I run PFAL in ECC and BD87 in CRM again it is not updating.
    Could any body help me how to remove this second email id.
    Regards,
    Prasad
    Edited by: prasad voruganti on May 30, 2011 10:14 AM

    Hi,
    Since your HR Active Replication is ON, you cannot change it in CRM unless you deactive this settings, whic I dont think appropriate.
    However, you mentioned that in relationship tab you find a different email id of employee 2. It is worthwhile, to check the master data again for that employee in HR system, whether some fields might be wrongly updated.
    Or you can re-enter the email-id in HR system and run the PFAL.
    Let me know if this helps.
    Regards,
    Madde

  • OM - Moving Org Unit don't change relat 002 between my Position

    Hi,
    I have a problem with my OM system,
    I have five org unit (A B C D E) everyone with one position head of own organizational unit, a b c d e.
    this is my hierarchy
    A
    (a)
         B
          (b)
              C
               (c)  
         D
          (d)
              E
               (e)
    I have this relat in HRP1001
    Org Unit     Positions
    A 002 B     a 002 b
    A 002 D     a 002 d
    B 002 C     b 002 c
    D 002 E     d 002 e
    I'm moving (with ppome transaction) org unit C with its position c, under org unit D.
    A
    (a)
         B
          (b)             
         D
          (d)
              E
               (e)
              C
               (c)
    After the moving in HRP1001, relationship between org unit has changed B 002 C (is delimited) D 002 C (is new).
    But, I don't have relationship between Position d and c (d 002 c), and relationship between position b and c (b 002 c ) is still valid!!!
    Org Unit     Positions
    A 002 B     a 002 b
    A 002 D     a 002 d
    D 002 C     b 002 c d 002 c
    D 002 E     d 002 e
    Could someone help me?
    regards
    Fede

    Hi Frederica,
    if I understand your problem correctly, I'm afraid there is a major design flaw in your OM.
    You have an Org-hierrchy with leader positions assigned to each orgunit and the "normal"positions also assigned to those orgunits. This is absolutely sufficient for the system to know, who is reporting to whom and standard reports, evaluation paths, structural auth., workflows all can be set up to work with this correctly. And this is best practise.
    BUT you also seem to be using a position hierarchy in parallel. A position hierarchy is really only meant to be a quick and chaep alternative for an Org hierarchy, if you don't want to create orgunits. There is no new information in there. It's completely redundant. And your problem is proof for why this redundancy is damaging: you get inconsitencies.
    I"ve seen this before. Whilst their might be good resons for it (I"ve never seen one), thsi is usually done by consultants, who don't understand orgmanegement or do understand that what they are doing is wrong, but rather have teh customer do double manual work with almost guaranteed inconsistencies than make an effort to properly understand struc. authorisations, reports or workflows. If you have no clue about OM, the extra position hierarchy can make some things easier.
    So, my recommendation is:
    1) check our, where the position hierarchy is used for reporting, workflow, authorisations or other things in your system
    2) replace this by the org hierarchy
    3) delete the position hierrchy (i.e. the 002 relationships between positions)

  • Org unit - Orgunit relationship

    Hi Experts,
    I have uploaded org unit to org unit relationship through BDC using PO13 transaction code and relationship type A0003 but somehow in ppom_old i am not able to view the relationship between org unit to org unit.
    Kindly suggest.
    Regards,
    J

    As mentioned by Dilek, t-code pp02 can be used to maintain any OM Object (but you have to specify the Object Type).
    Some other t-codes are specific to Object Types
    po03 Maintain Job
    po10 Maintain Organizational Unit
    po13 Maintain Position
    po14 Maintain Task
    and if you replace poXX by pqXX, you'll get the Measure for the same Object type.
    Just for fun, I typed in other t-codes starting with po and got
    po01 Maintain Work Centre
    po02 Maintain Development Plan
    po04 Maintain Business event type
    etc...

  • Org Unit with more than one Chief Position

    Hi,
    we have implemented MSS via the portal using a one-to-one relationship between Org Units and Chief Positions, and we would now like to have multiple Chief positions attached to one Org Unit.
    As far as I can tell from the SAP documentation, this should be straightforward, but the results we are getting do not seem correct.
    I have an Org Unit that has position 1 and position 2 assigned to it with relationship A/B 012 denoting that they are Chief Positions.
    User 1 is holder of position 1 and user 2 is holder of position 2. 
    Both users have the same security roles.
    The views used on the portal are configured using the MSS Object and Data Provider functionality, using the standard ORGEH view, evaluation path for root objects SAP_MANG and evaluation path objects SBES.  The checkbox 'Excl. Managers' is ticked.
    The problem is this - both users can see all the subordinate employees in the Org Unit when they log on to MSS but user 1 can also see user 2 in his list of employees, which is not correct as user 1 and user 2 are both chiefs.  User 2 cannot see user 1 in his list of employees, which we would expect.
    The only logic we can see for user 1 being able to see user 2's details is that user 1 must be somehow defined as the 'superior' Chief Position, but we have not defined this as far as we know.
    Any ideas as to why this is happening for us?
    Many thanks,
    Fran.

    Hi Fran,
    Sounds like you have set up the reporting structures and MSS properly.  I do question why two chiefs for one org unit.  As you stated, both can see all employees and so both can approve time, give pay increases, etc. without the approval of the other.  If this is want you want, then you have set it up properly.  Usually, one has to approve the actions of the other, thus, is in a superior relationship.  This can be handled by having a higher level new org unit with the higher person as chief and the lower stay as head of the lower org unit which reports to it. 
    As you have it now, both individuals have the same rights and access.  They should both be excluded from iViews if you checked the "Excl. Managers" box.  Since, you just recently made one a manager, have you checked for any date dependencies?  If the Chief #1 is selecting a view for "Current Year", for example, he would be able to see all persons who reported to him for this year, which includes Chief #2.  There are no 'superior chief' designations (except by structure), so without being able to view your configuration, my suggestion is to check all dates for the assignments and relationships vs. dates of the view.

  • Missing position and Org Unit relationship in PO13

    Hello SAP Pundits,
    I created a Position 1234 with transaction PPOM with Org Unit A and Job code X with start date 01/01/2009
    Now I hire an employee XYZ with this position X from start date 01/01/2009.
    When I go and see position X in PO13 it shows following relationships
    1)     Position 1234 - Org Unit A from 01/01/2009 to 31/12/9999
    2)     Position 1234 u2013 Job Code X from 01/01/2009 to 31/12/9999
    3)     Position 1234 u2013 Person XYZ from 01/01/2009 to 31/12/9999
    Perfect till now.
    Now if I change the Org Unit of the Position 1234 from A to B from date 01/04/2009 using PO13.
    A new record is created in IT0001 with start date 01/04/2009 and previous record is delimited.
    But now if I check the relationships in PO13 for position 1234 I donu2019t see the new record for Position 1234 and Org Unit B.
    However the previous relationship between position 1234 and Org Unit A is delimited till 31/03/2009.
    Why am I not able to see the assignment of Positon 1234 with new Org Unit B? Any reason why I am getting such an error?
    Thanks in advance.
    Regards,
    Ajay Hosur

    When you have changed the Position 1234 to org Unit  B from 01.04.2009 then the previous relationship will not show in po13, it goes into History which you can see in Complete Position Description..
    goto pp01 and select that position and create relationship with Org Unit B... am not sure why in Infotype 0001, previous record get delimited and new record got created..

  • Org Unit and Cost Center not displaying in 0001 with A012 relationship

    Hi Guru's,
    Kindly help me in this regard ,
    Whenever i hire a person to a position which has an A012 relationship (Chief Position) then Org Units and Cost centres are not getting displayed in IT0001 .
    But when i hire a person in the same org unit with A003 relationship ; both Org units and Costcentres are getting displayed
    I have used an LSMW for uploading relationships and objects and i have also run integration reports for the same but still i am not able to display org unit and cost centre in it0001 when i hire a person with A012 relationship .
    Kindly Help

    both great advice, also, check this link:
    http://help.sap.com/saphelp_45b/helpdata/en/14/d22fe48435d111950d0060b03c6b76/content.htm
    within this information there are various reports to run, which help recon OM and PA integration.  it will help you find your data problem and then fix the data for you if you follow step by step.
    best regards,
    michael

  • HR Report to display headcount up to 10 levels of Org Units

    Hi Experts,
    Can you please give steps for the following requirement.Is there any standards available.Please explain the procedure to create report.
    Points will be awarded fot the suitable solutions.
    The report shouldl query SAP for the number of employees based on the personnel area and sub area.  The main reporting is based on the sub area.  If the employee is in the India Pers Area the total number of employees from each sub area will have to be deducted from the headcount for that sub area and added to the India area for headcount totaling.   For each of the areas/subareas we need to gather the total number of Active Employees, Temp Employees and Contractors.  This information can be gathered from the employee group.
    i/p filed                         available table
    Key Date
    Employment Status     PA0000
    Personnel Area                PA0001
    Personnel Sub Area     PA0001
    Employee Group               PA0001
    Employee Subgroup     PA0001
    C stands for column C2 c3 c4 will be filled by users after running report.
             c1       c2     c3 c4             c5     c6     
    SEIM     70                    9     4          Pers Sub  Area - FIN
    NGUYEN     25                    0     1          Pers Sub Area - MKT
    LUHR     120                    3     4          Pers Sub Area - SLS
    DREW     532                    78     2          Pers Sub Area u2013 OPS
    CHOMA     35                    2     6          Pers Sub Area u2013 ODLP
    LIPPS     3                    0     0          Pers Sub Area - GAA
    INDIA     79                    0     0          Pers Area - IND
    TOTAL     864                    92     17     0     
    Thanks and Regards,
    Raj

    If you want to read the org unit hierarchy from the org structure, tables HRP1001 and HRP1000 should
    have all the information you need. HRP1001 hold the relationships between the org structure objects
    and HRP1000 holds information about each object. 
    If you don't want to do the selects yourself, there is a very useful function module called
    RH_STRUC_GET which does the same sort of thing ie reads the relationships between org structure objects
    using whatever evaluation path you pass in in parameter ACT_WEGID..

  • Create Dotted line reporting and direct reporting btwn org unit to org unit

    Hi,
    Currently I am working on matrix reporting structure. My requirement is to identify the dotted line reporting as well as direct reporting between org units to org units and where the relationships are storing and which tables.
    Can somebody please help me in this process.
    Thanks,
    kamalesh
    91-9913532050

    Transaction code is ppms for matrix
    Dimension 1- 50005733-A , and what evaluation path?
    Dimension 2-50005837-C, 50005856-D what eavluation path?
    relationship ?
    B position is reporting to A and D org unit,C org unit reporting to Reg head BR these are direct relationship in existing org structure.
    Requirements:
    1.Cleint needs C and D wants to reports A in dotted line relationships.
    2.cleint needs dotted line reports C and A and direct reports of A,Cand D.

  • Permitting a Manager of one org unit access to another org unit

    Hi,
    I have a problem with the use of relationships between the position and org units.
    If a manager has an A012 relationship to org unit 123, but should be able to view & approve leave for employees from another org unit 456.
    Is it possible to have a different relationship to org unit 456? To provide access to employees who are not part of the managers direct reporting structure.
    Thanks in advance
    Sujeet

    1. Create a separate relationship for the special access.
    2. You might need to add the new relationship to evaluation path
    3. If you are using MSS and need to display this, that evaluation path needs to be updated
    4. Structural authorization profile needs to be updated
    5. Role needs to be updated. Context senstive authorization needs to be activated and PA authorization + structure abc, PA authorization + structure xyz needs to be added to the role
    Hope it help.

  • How to Assigning Qualification to an Org unit?

    Guyz,
    I am trying to assing a common qualification to an entire organization so that all the employees are covered with the required Qualfiication at a single go.
    Please let me know the process and related configuration.
    Regards
    G

    Hi Gopi,
    You can certainly create a new relationship between the Org.Unit objects (O) and Quelification objects (Q), but this customization will not resolve your request.
    That is because the system only resolve the inheritance of qualifications between functions objects (C) and positions (S), but no between org. units and positions.
    The right steps are assign the quelification to the functions of the positions you have in the organizational unit you want to update.
    If you have no created enough functions or not use it at all, you can make a batch input via transaction PP02 to assign qualifications to positions in a massive process.
    Hope this can help you.

  • Table for link with BP and Org Unit

    Hi experts
    i'd like to know what is the table where there is inside the link beetween BP and Org Unit.
    I know that the table HRP1001 links users to Org Unit but i cannot find the BP
    regards
    andrea

    Hi
    you can always find the link between Org unit O and its related BP in table HRP1001.
    Key in Org unit ID in the table selection parameter OBJID and execute. It will list postions (S) assigned to the Org ID and its BP number. Look at the relation B207(subtype) which will show O-BP assigment. It will be the last entry in the output list.
    R/Reddy.

  • PSA and Org unit

    Dear All,
    We are in deciding phase of Personnel Subarea and org unit, I need to understand the difference between Org unit and PSA while designing.
    Regards,
    Kumar

    hai
    there is not much to do with your org structure
    but when creating the personnel areas ans personnel structure we have to take care so that when in later parts the data handling should be easy.
    it also depends upon the legal structure of the geographies.
    like if u take karnataka and tamilnadu.
    may be through out the structure and bussiness process of the company is same.
    when considering the taxation of the government  it is different  ex  proffessionsl tax.
    if u keep these two personnel sub areas seperately(kar,tam)  under PA india
    the configueration will be easy.
    and also the data retrievel will be easy
    regards
    nalla

  • Retrieving Positions for Specific Org Units

    Hi All,
    I have a headcount report to develop. It will run for one personnel area at a time. So for the period run, I have to list out all the org units under the personnel area as well as the sub org units. For each of the org units I have to separate positions under them into two group - total of positions with holders and non-holders.
    I am using the function RH_STRUC_GET by passing org unit to retrieve positions. May I know which result table to read in order to get positions and how to segregate them into 'With Holders' and 'Non-Holders'?
    And also how to get the relation ship between org units because I need to display that in the report also.
    Thank you in advance
    Regards,
    Lily

    Hi..
    Existing Organizational Units (Report RHXEXI00)
    Staff Functions for Organizational Units (Report RHXSTAB0)
    Organizational Structure with Persons (Report RHXSTR02)
    Periods for Unoccupied Positions (Report RHFILLPOS)
    Existing Positions (Report RHXEXI03)
    Staff Assignments (Report RHSBES00)
    Position Description (Report RHXDESC1)
    Staff Functions for Positions (Report RHXSTAB1)
    Vacant Positions (Report RHVOPOS0)
    Obsolete Positions (Report RHVOPOS1)
    Complete Position Description (Report RHXSCRP1)
    Reporting Structure without Persons (Report RHSTR05)
    Reporting Structure with Persons (Report RHSTR04)
    Activity Profile of Positions (Report RHXSTR07)
    Activity Profile of Positions with Persons (Report RHXSTR08)
    Existing Objects (Report RHEXIST0)
    Structure Display/Maintenance (RHSTRU00)
    Reporting on an Infotype (Report RHINFAW0)
    Starting an HR Report (Report RHPNPSUB)

Maybe you are looking for