Org Unit Code

Hi,
I am using FM CRM_ORGMAN_ORGOBJECTS_FIND_3 to return the orgunit for a user. This returns the OBJID of the orgunit, but what I really need is the code of the actual orgunit. Is there another function module available that might do this for me (possibly using the OBJID)?
Thanks,
Bernard

Hi Bernard,
You can directly fetch it from table HRP1000, pass the objid you get from the FM CRM_ORGMAN_ORGOBJECTS_FIND_3 to HRP1000, the field SHORT gives you the code of the org unit.
Hope this helps.
Regards,
Karthik.

Similar Messages

  • Inheritance for the AAP Plans from a high level Org Unit code

    Hello,
    Did anyone know how I can create Inheritance for AAP Plans from High level Org Unit ? We have a lot of reorgs and we would like to turn on this fuctionality if it possible.
    Thank you in advance.

    Hello,
    Did anyone know how I can create Inheritance for AAP Plans from High level Org Unit ? We have a lot of reorgs and we would like to turn on this fuctionality if it possible.
    Thank you in advance.

  • Position to inherit company code and cost centre from Org Unit

    Hi Team,
    I have entered the company code and controlling area in my root Org. Unit.  All the sub-ordinate org units that I've created have inherited this company code and controlling area, however none of the positions I've created have inherited them.  What do I have to do to get my positions to inherit this information from their org unit.
    Regards,
    Jeanette

    Hi,
    Check table T7SS0, there are three switches
    PPOM     INHIC     X     'X': PPOM: Obligatory Inheritance of Company Code
    PPOM      INHIH     X     'X': PPOM: Obligatory Inheritance of Contr. Area
    PPOM     INHS     X     Inheritance of acc. ***. features by positions
    So just check these switches that they are set in this table, and I hope your problem should resolve
    Regards,
    guds

  • Creating countries - Move Org unit its positions to another country code

    Hi Gurus,
    The client used a single production server for all the countries under its one country grouping(10) for different countries (US, Malaysia, Sinagapore, China, India, UK).
    We have only one country code for all the OM.
    One Organizational unit needs to move to another country(39), of which all positions, jobs, and the employees assigned to it also needs to move with the Org unit to new country. We are going to change the PA PSAs as well to new country groupings
    Is it possible, and if possible how to do it?
    thanks in advance....

    Hi Kumar,
    As already stated by you change the PA and PSA's accordingly as per the new country groupings as PA's should be assigned to company code within the same country grouping.
    In my knowledge I dont think you need to change anything with the Org Unit as OM objects don't refer to any country groupings as such. If you are using the account assignment infotype ( IT 1008) then you will have to change the Company code to your new company code as your new company code will have different country grouping ( 39).
    Your FI CO objects like Cost centers can be changed to new cost centers as per your requirement from the date you move your Org Units or Positions to new country groupings.
    We can also wait for other expert comments.
    cheers
    Ajay

  • Org unit layer code in R/3 system

    Hi Gurus,
    Need your help to find the below objects pls help me out,
    1 Legal Entity
    2 Org unit layer code
    3 Org unit layer name
    4 Project manager user ID
    5 Project manager name
    Looking forward for ur reply gurus,
    Thanks in advance
    Regards,
    Shiv

    Hi Madhu,
    I work in the Dev sys, pls do let me know how to get the Org unit layer code.
    Regards,
    Shiv

  • Function that return Company Code given an Org Unit ID

    Hi folks,
    As per subject, is there any such function?
    I seem unable to find. Straightforward way is just select bukrs from hrp1008 using the Org Unit OBJID. However, that table only stores direct assignment. I.e. many Org Unit actually have the company code inherited from parent OU. So if my OU doesn't have account assignment, must go to its parent OU to find, if parent OU doesn't have, again must go up and search. And so on..
    If there's already such function, I don't want to re-invent the wheel.
    Thanks!
    Regards,
    Olyvia

    I know it's an old topic, but the answer could be helpful for others:
    use RH_STRUC_GET as suggested, standard WEGID OMACC_U will return the objects maintained in 1008 (including BUKRS, WERKS, BTRTL).

  • Location code on org.units

    Hi group,
    One of our clients need to register a code for location on their org.units. 14 characters, alphanumeric. Table of values to exsist behind the field.  Can you suggest any fields or infotypes we could use for this without making our own?  I checked into HRP1002, but we need more control than this gives us.
    Any hints appreciated.
    Kirsten

    There is one attributes infotype 1222 but itu2019s a bit complex to work with. I have never used it but it is worth exploring. There is no IMG path for customization but you can access the table through transaction OOATTRCUST.
    I think you can define a range of values, default values and so on. Not sure, how the users will perceive this. The last resort is obviously a custom infotype.
    Hope this helps.
    Donnie

  • How to find company code and its org unit?

    Hi All,
    For a given company code, i need to find its org unit. Please let me know the info type table or any FM.
    Thanks,
    SKJ

    Hi Ravi,
    Yes, i just came to know about that. I clicked on account assignment features button in PPOS_OLD and specified pers area, pers sub area and company code and found that an entry was created in HRP1008 for the company code with org unit.
    Thank you very much.
    SKJ

  • Org unit date in adhoc query

    Hi
    I have created a TEM query in SQ02, based on infoset \SAPQUERY\HR_TEM_E (logical database PCH),  in which I am outputting object name and date (P1000), and org unit (P8004).
    The output on the org unit name corresponds to the most current version of the org unit, but my requirement is for it to match to the date that the course object exists, i.e. historical.
    Would anyone know a way to code this field, or whether there is a functional solution to this?
    Please do let me know.
    Anyone?
    Edited by: minttea on Aug 10, 2010 3:52 PM

    Hi..
    Pls check below code to fetch the tesxt of historical org unit. hope it will help.
    *//Internal table declaration.
    DATA : lt_00  TYPE STANDARD TABLE OF pa0000,
           lt_psn TYPE STANDARD TABLE OF zhrpositions,
           lt_ret TYPE STANDARD TABLE OF bapiret2,
           lt_01  TYPE STANDARD TABLE OF pa0001,
           lw_01  TYPE pa0001,
           lw_psn TYPE zhrpositions,
           lt_comps  LIKE zstr_hr_comps,
           lt_return LIKE bapiret2.
    Thanks,
    kl
    Edited by: Narayana on Aug 10, 2010 10:50 AM

  • How to extract Org.unit Hierarches in BI 7.0

    Hi experts,
    I am developing HCM BI reports, right now I am into Org management and Personnel Administration,
    I am new to HCM.
    my doubts are clarified in existing discussions in the forum.
    queries:
    1) how to create hierarchies of Org. units in BI 7.0 give me steps.
    2) I am not able to load data into standard info cubes(0PA_C01 and 0PAOS_C01).
    Any procedure I have to fallow for these cubes to load data.
    thanks in advance
    Vijay

    1) how to create hierarchies of Org. units in BI 7.0 give me steps.
       U just have to load hierarchies created in ECC... The standard datasource that loads 0ORGUNIT   
       hierarchy is 0ORGUNIT_HR01_HIER... Assign this datasource to 0ORGUNIT (transfer rules) and
       create infopackage (in 'Hierarchy selection' tab, if u click 'available Hierarchies from OLTP' button, it
       will give u all available hierarchies (technical name ORGEH) for 0ORGUNIT)
       To check existing orgunits in ECC
          Use tcode PPOSE
          Expand 'Organizational Unit' Node
          Click on 'Structure Search'
    2) I am not able to load data into standard info cubes(0PA_C01 and 0PAOS_C01).
          These infocubes has many fields like Gender,Nationality,Language,Age in Years,Country 
          key,County Code,Region (State, Province, County),Postal Code etc..
          All these fields are populated through routines (reads master data of 0EMPLOYEE) and a start 
          routine.
          So, u have to be careful when u install standard content, make sure u install routines for above 
          objects mapping in transfer rules. Also make sure the "Start Routine" installed properly
          In ECC, also check data exists in infotypes PA0000 & PA0302 (for 0PA_C01) and HRP1000, 
          HRP1001, HRP1007 & PA0007 (0PAOS_C01)

  • Org Unit reporting under OM

    Hello All,
    I always get this request from most of my end users about running a report/creating an ad hoc query that will list the Employee details of the parent Org and subsequent child Orgs (O) untill the last one available. Everytime I put the Parent Org Unit no. in my input values and then select the (Reporting to or Incorporates) relationship, it returns with the PERNR details of the direct reports only. Where as I want the PERNRs and other details of these PERNRS for all employees who are in the child Orgs reporting to the Parent Org. (all IT0001 details) . I end up manually keying in the Org no. for all the child orgs in the report to get these details. This is cumbersome since few of our Org unit has at least 6 levels of reporting.Is there a easier way or standard report available to run these kind of queries ?
    Your help will be appreciated.

    Hi,
    Use t code s_ahr_61016533
    1. in object type give O (org Unit)
    2. Object ID = your parent Org Unit
    3. in structure parameters tab for EVALUATION PATH give O_S_P or O_S_P_O
    4. In PA reporting use RPLICO10
    Execute it and you might get what you want.
    cheers
    Ajay

  • 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..

  • Missing Org unit from position ID

    Hi Gurus,
    Could you please provide additional information which I have missed out that would help resolve the issue.
    Problem Statement:
    Position ID XXX originally belongs to O XXXXXXXX [Sample Org 1].  When HR Recruitment administrator performed action to move structure reporting to another O YYYYYYYY [Sample Org 2], the record went missing as the action done was CHANGE instead of COPY.  This had caused two ex-staff showed no Cost Center & Org Unit. Now, user is trying to reinstate S XXX to O XXXXXXXX [Sample Org 1] but is prompted with an error message - Company code cannot be determined for cost center 52222.
    Action Taken:
    1. Checked S 5111111 and found that it is currently under O YYYYYYYY and currently occupied by P 123456 (validity period is from 01.11.2010 to 30.04.2011)
    2. Checked  account assignment of S 5111111 to confirm the company where it is assigned to. It reflects that position inherited attributes O YYYYYYYY [Sample Org 2] to which the position is currently under
    3. Checked account assignment of O YYYYYYYY it only contains the controlling area which is TTTT. I then checked IT0001 of the current employee who is holding the position and company code reflecting is CCC.
    4. Checked account assignment of O XXXXXXXX where they want to reinstate the position and it only contains the controlling area which is TTTT and master cost center is 52222. I checked one employee under the said Org to verify to which company it is currently under and found that it is the same, CAT. At this point, I do not see any issues as to why it is not allowing them to create A003 rel to O XXXXXXXX .
    Note: I was not able to replicate the error since it is working fine in dev given the same scenario.
    Findings:
    The only thing that I can see is on the validity date. If they are to reinstate the position to where it has been originally assigned which is under O XXXXXXXX [Sample Org 1], it should not overlap with current record since there is somebody occupying the post. If it does overlap then it will automatically delete the existing record.
    In addition, I have managed to check transaction S_AHR_61016528 (B011 eval path) and found validity period of cost center to O XXXXXXXX is 01.04.2002. If user is trying to establish A003 rel for S 5111111 and validity period used is 01.01.1997. Would that matter why user is getting the said error. I have tested and was able to create rel successfully.
    Would appreciate if you guys could share how else the position can be reinstated to the old org unit.
    Thank you.

    Hi Gurus,
    Could you please provide additional information which I have missed out that would help resolve the issue.
    Problem Statement:
    Position ID XXX originally belongs to O XXXXXXXX [Sample Org 1].  When HR Recruitment administrator performed action to move structure reporting to another O YYYYYYYY [Sample Org 2], the record went missing as the action done was CHANGE instead of COPY.  This had caused two ex-staff showed no Cost Center & Org Unit. Now, user is trying to reinstate S XXX to O XXXXXXXX [Sample Org 1] but is prompted with an error message - Company code cannot be determined for cost center 52222.
    Action Taken:
    1. Checked S 5111111 and found that it is currently under O YYYYYYYY and currently occupied by P 123456 (validity period is from 01.11.2010 to 30.04.2011)
    2. Checked  account assignment of S 5111111 to confirm the company where it is assigned to. It reflects that position inherited attributes O YYYYYYYY [Sample Org 2] to which the position is currently under
    3. Checked account assignment of O YYYYYYYY it only contains the controlling area which is TTTT. I then checked IT0001 of the current employee who is holding the position and company code reflecting is CCC.
    4. Checked account assignment of O XXXXXXXX where they want to reinstate the position and it only contains the controlling area which is TTTT and master cost center is 52222. I checked one employee under the said Org to verify to which company it is currently under and found that it is the same, CAT. At this point, I do not see any issues as to why it is not allowing them to create A003 rel to O XXXXXXXX .
    Note: I was not able to replicate the error since it is working fine in dev given the same scenario.
    Findings:
    The only thing that I can see is on the validity date. If they are to reinstate the position to where it has been originally assigned which is under O XXXXXXXX [Sample Org 1], it should not overlap with current record since there is somebody occupying the post. If it does overlap then it will automatically delete the existing record.
    In addition, I have managed to check transaction S_AHR_61016528 (B011 eval path) and found validity period of cost center to O XXXXXXXX is 01.04.2002. If user is trying to establish A003 rel for S 5111111 and validity period used is 01.01.1997. Would that matter why user is getting the said error. I have tested and was able to create rel successfully.
    Would appreciate if you guys could share how else the position can be reinstated to the old org unit.
    Thank you.

  • Org unit from managers desktop

    Hi All,
    I've created a report and it's been attached with the managers desktop.Now when I call this report from managers desktop, I want to read the Organization unit in my report before doing anything. I'm using PNP logical databse.With PCH logical database I could read the org unit but with PNP I can't read until I reach to GET PERNR statement. I can't use PCH logical databse as the requirement is to run the report based on employee number selection within that org unit.
    It works fine even with PNP also but the customer wants to have cutomized screen to go back and forth years to see the report and while executing this custom funtionality , it's not picking the correct org unit.So I want to store the org unit the very first time when I'm calling the report and then I'll pass the same stored org unit for further functionality.
    If anyone has idea how to grab this org unit , pls let me know. Will award points.
    Thanks
    Alok

    Alok,
    That is how I coded the Org.stru logic in my code  ( FYI - I used  LDB PNP ) ..
    SELECT-OPTIONS: pnpobjid FOR PERNR-orgeh NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pnpobjid-LOW . "OUTPUT.
      CALL FUNCTION 'RP_PNP_ORGSTRUCTURE'
        EXPORTING
          begda  = SY-DATUM
          endda  = SY-DATUM
          plvar  = '01'
        TABLES
          pobjid = pnpobjid.
    Loop at P_obj.
    And in HRp1000    OBJID = p_OBJ-LOW
    endloop .
    Hope this will help !
    Good luck !
    Saquib Khan

  • HR report/tranzaction on current and past org unit, position, job

    Hi,
    Does anyone know the code of the standard report / tranzaction to show the current and the past org unit, position and job for an employee?
    Thank you
    Adriana

    Hi Adriana!
    Please try using Headcount Changes report  S_L9C_94000095.
    Regards!
    Woody.

Maybe you are looking for