Via Code : Creating Org. Unit and Position and assignment of User ID to Position

Hello,
I am looking for code which will create Org. Unit and creates Position in it. Also the User IDs should be assigned to the Position via code.
I do this via PPOC but would like to automate this process.
Will appreciate your kind help.
Thank you!
Naina..

Dear Naina,
SAP has given the multiple option to create the units ( Org. Unit, Position, Job, cost center, etc). The best ways to use tcode-pp01 (Maintain object)
Plan version- current Plan
Object type-Org unit or Position or Job or other as per requirement
infotype name- select object
Time period :- 11.03.2014 to 31.12.9999
then create- fill the required & save
Example:- Creation of organisation unit
Tcode-pp01
Plan version- current Plan
Object type-Org unit
Time period :- 11.03.2014 to 31.12.9999
infotype name-  Object (select)
then create (F5)
Object Abbration:- HR Department
save
After, system ask
Relationship type -A002
Type of related object- organisation unit (default)
ID of related :- Give the eight digit number
In the similar way, we can create other units.
All the best!
Regards,
Rakesh

Similar Messages

  • I have created org units wrongly in om, how to delete these org units ?

    plz can anyone help me.

    Hi,
    go to PPOME transaction code select org unit right click and delete.
    you can try this report RHRHDL00 but you need to delete or delimit existing relationship first.
    Regards

  • HRMD_ABA - create org unit and matching BP automatically

    HRMD_ABA05 IDOC creates org unit but not with BP  as expected.               
    Note 550055 has been read.
    The settings in t77s0 seem to be OK. Maybe I go something wrong ?
    report HRALXSYNC can be run  and it will  create the BP from the ORG Unit.
    So why doesnt the orginal create via IDOC result in BP as expected/documented.
    ABAP STACK is 7.10 sp4
    Any tips on what to check appreciated.
    Cheers
    Phil

    Hi Kai
    Into Master data->Bussines partner->Integration Business partner-Organizational managment, there set up follow parameters:
    HRALX     OPROL     BUP004     Business Partner Role (Organizational Unit).
    ORGEH     PROLE     BUP004     Role of organizational unit in business partner
    Try with both parameters, it is if you activate HR-CRM integration.

  • Org Unit to PA and PSA Inheritence issue

    Hi,
    I am trying to create an Org Unit with effective from today or a future date. When I do this, PA and PSA is not getting inherited for the newly created Org Unit.
    But when I create an Org Unit with effective from past date, this issue is not there and works fine perfectly.
    Note: The issue is there in the Development Client as of now. But there is no issue in quality. There was a recent patch that gets updated in Dev system. Not sure whether patch is an issue.
    Cheers
    Vijay

    Sorry... I have reposted this in the right place...
    Thanks

  • Unable to create org unit using RH_INSERT_INFTY

    All,
    We are using internal number range to create Org Units in the SAP System. However, there are some org objects present in a legacy SAP system that we need to upload to the new ECC system and create relationships for them .
    Following is my code for the RH_INSERT_INFTY function module :
    w1000-mandt = sy-mandt.
    w1000-plvar = '01'.
    w1000-otype = 'O'.
    w1000-OBJID = ''.
    w1000-infty = '1000'.
    w1000-ISTAT = '1'.
    w1000-begda = '20090101'.
    w1000-endda = '99991231'.
    w1000-langu = 'E'.
    w1000-short = 'HR_AST5'.
    w1000-stext = 'HR Assistant 5'.
    append w1000 to i1000.
    CALL FUNCTION 'RH_INSERT_INFTY'
      EXPORTING
       FCODE                     = 'INSE'
        VTASK                     = 'S'
       ORDER_FLG                 = 'X'
       COMMIT_FLG                = 'X'
      TABLES
        INNNN                     = i1000
    IF SY-SUBRC <> 0.
    ENDIF.
    I am however unable to create the org units as i get an error saying "Creation of object ID 00000000 is not allowed".
    I know im getting this error because im leaving the objid field blank, but I figured since  it is internal number range, i would have to give this as blank .
    Could somebody please help me figure out how to load these Organizational Objects and their Relationships ?
    Thanks,
    Amit

    Hi Amit
    try to use 'D' as a value of VTASK
    or use FM
    call function 'RH_OBJECT_CREATE'
        exporting
          langu                     = l_langu
          plvar                     = plvar
          otype                     = c_otype
        EXT_NUMBER                = '00000000'              "???
        SHORT                     = ' '
          stext                     = stext
          begda                     = begda
          endda                     = endda
          ostat                     = l_istat
          vtask                     = 'B'
        GUID                      =
        KEEP_LUPD                 = ' '
       importing
          objid                     = objid
       exceptions
          text_required             = 1
          invalid_otype             = 2
          invalid_date              = 3
          error_during_insert       = 4
          error_ext_number          = 5
          undefined                 = 6
          others                    = 7.
    In this FM u dont need to pass the Object ID and call function
    *---if the above steps are succesful update the database
      call function 'RH_UPDATE_DATABASE'
        exporting
          vtask              = vtask
      BUFFER_UPD         = ' '
      ORDER_FLG          = 'X'
      COMMIT_FLG         = 'X'
      CLEAR_BUFFER       = 'X'
      KEEP_LUPD          =
      WORKF_ACTV         = 'X'
       exceptions
         corr_exit          = 1
         others             = 2  .
    as VTASK 'B' will create the entry in buffer and it will only commit to database after the secondFM
    or u can try with 'D' as VTASK
    Hope this will resolve ur issue
    Regards
    Guds

  • Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Hi there
    You would need to purchase a seat for each user.
    What you currently have is 1 seat = 1 user.
    Kind regards
    Bev

  • Nakisa Org Chart 2.1 - excluding org units from extract and saving chart

    Hi,
    Is it possible to exclude specific org units from the org chart that is extracted to Nakisa? These (and all subordinate) org units should not be included in the chart which is to be published on the intranet.
    Also, what is the easiest way to create a file (e.g. PDF, PowerPoint) of all org units and positions in the structure? I've looked into using the ChartBook functionality but this did not seem to work too well, and there was no option to Save or Print the chart.
    We have Nakisa OrgChart 2.1 SP1 running on SAP CE. This is with a staged extract out of SAP ERP which is hosted on Windows and SQL.
    Thanks.

    Thanks Stephen and Luke.
    I will look into your comments re: excluding org units from the directory searches etc when next at the customer site.
    As for the Chartbook issue - the customer is looking to create a file (e.g. HTML, PDF) of the entire org structure which they can then make available on the intranet. (They currently only have license for a couple of HR users so ESS access is not an option right now). We have looked at using the standard Print/Export options as well as the Chartbook and neither seems to work particularly well....the customer keeps referring back to how easy it is to create a HTML file using OrgPublisher....
    What is the recommended and best approach for creating a file which can be published on a company's intranet? (There are about 1000 positions/employees in total so not a huge file).
    Hopefully v3.0 is a whole lot easier to use
    Thanks, Ron

  • Creating org unit under group???

    We are running SAP CRM 7.0. 
    I am fairly new to SAP and CRM in general.
    I was trying to create a BP (Business Partner).  I would of thought a group entailed a major division such as say "FORD MOTOR COMPANY" and within that all the organzations for FORD such as all the sites imagine the following:
    FORD MOTOR COMPANY
       - FORD DETROIT
       - FORD LOS ANGELES
    Etc.
    However when I create a "Group" in transaction BP and save it I can see this as a group.  Now when I create an "Organization" how do I Relate this organization back to the major group?  I see a groupping drop down in transaction BP but that does not list the Group Ford that I just created.  How can I Relate this organization to the group?
    Finally my second question is can we create a group within another group say something to this effect:
    FORD MOTOR COMPANY (Group Level 1)
       - FORD AMERICA (Group Level 2)
            -Ford Detroit (org unit)
            -Ford California (org unit)
       -FORD GERMANY (Group Level 2)
            -Ford Bremen
       -FORD BRAZIL (Group Level 2)
            -Ford Rio De Janerio
    How can I establish this structure if I cannot relate these?  Please I am new to CRM so if you can provide detailed information...
    Thanks so much!

    Hi SD,
    Functional units are reprseneted in OM.Please check allowed relationship per object type.tcode OOIT..Org units and Position relationship can be assimilated using this.
    please check T778T,T777E(Table  T777E contains all the relationships permitted between organizational objects)
    Table  T7791 contains information about which SAP organizational object types should be linked with positions, which with jobs and which with organizational units.
    objects and relationships are building blocks of OM(1000 and 1001)
    please refer to the below link for more details
    https://cw.sdn.sap.com/cw/docs/DOC-39190
    Hope this helps.
    No Worries
    KG

  • 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

  • Creating org,unit

    Hi All,
            Can any plz let me know that while creating organization unit  in Easy Access screen whether we normally use Expert mode or Simple maintenance mode ?
                       Is it up to us to decide which mode to use ?

    depends
    let me tell u a scenario
    ur at the cliets place if u are useing export mode u need to knwo the org unit no , departent no , job number and u shd relate them
    where in simple maintainence i think this much risk will not be there

  • Employee resposnsibles Org unit Determination  (Employee is assigned to Org Unit)

    Hi ,
    We want to determine Org unit based on employee responsible but not on basis of USER.
    Employee responsible will be assigned to a particular position in Organization .
    We want to determine Organization unit where Employee is assigned .
    When in transaction Partner Function employee responsible is selected then Organization unit to which employee is assigned should get determined.
    When employee resposnsible is changed Org unit (Service ) should change .
    Please suggest solution.
    Thanks & Regards,
    Anup Reche

    Hi
    first u need to do the filter settings in object BUPA_MAIN to stop the employee replication to R3.
    When u create the no. ranges in r3 u can remove the filter so that the process will continue.
    Regards
    Manohar

  • SAP IDM position based security with user in multiple positions

    Hi,
    In case of Higher Duties, we have a scenario where a user can have multiple positions with access to the business roles of both the positions.
    The design is to have one business role assigned to one position so that the user can have all the access he requires.
    In case of higher duties, we see an exception.
    Has anyone implemented such a scenario?
    Inputs/advices are much valued.
    Thanks
    Chaitanya

    Hi Chaitanya,
    Is it possible to assign more than one position to an employee in HCM?
    If so, there is many ways of dealing with that from IDM side, I don't know precisely your business requirement, what you need to maintain and what should be dynamic, but i can suggest you to :
    1. Translate every position you receive from HR to a Business role and assign as many Business roles you want to the same user.
    From HCM you will receive :
    Employee :
    - Z_POSITION_ID1 :1
    - Z_POSITION_ID2 : 2
    In IDM
    Employee
    - Member of BR1
    - Member of BR2
    2. If you have a lot of attributes related to HR position on user (link user-position) to maintain , then create a custom Object in IDM (entrytype Z_POSITION).
    You wil be able to manage relations much easier than a simple relation (One-to-one attribute)
    Otherwise, It worth to look over this blog for general design of HCM integration :
    How to optimize identities’ lifecycle management in your information system using SAP HR events?
    Fadoua

  • 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

  • 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

  • Reg  Creation Position and Otg Unit

    Hi
    Am creating org and positions using FM  'RH_OBJECT_CREATE'      and its creating org unit and position ,but when i see in PP01 tcode   i can see position  very well  but for org unit  it will show  only otype and objid and it not show green arrow for object   infotype..
    but intresting thing is when i go se37 and  try to create org unit  it create nicely and i can see green arrow in pp01  tcode too,
    Dont know whats wrong in prog 
    the code is like,
    CALL FUNCTION 'RH_OBJECT_CREATE'
      EXPORTING
       LANGU                     = SY-LANGU
        PLVAR                     = '01'
        OTYPE                     =  wa-otype
      EXT_NUMBER                = '20000019'
       EXT_NUMBER                =  wa-seark
       SHORT                     =  wa-short
        STEXT                     = wa-stext
       BEGDA                     = wa-begda
       ENDDA                     =  wa-endda
       OSTAT                     = '1'
       VTASK                     = 'D'
      GUID                      =
      KEEP_LUPD                 = ' '
    IMPORTING
       OBJID                     = wa_id
    EXCEPTIONS
       TEXT_REQUIRED             = 1
       INVALID_OTYPE             = 2
       INVALID_DATE              = 3
       ERROR_DURING_INSERT       = 4
       ERROR_EXT_NUMBER          = 5
       UNDEFINED                 = 6
       OTHERS                    = 7
    IF SY-SUBRC EQ 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    write :/ wa_id.
    ENDIF.
    endif.
    Pls help me for the same
    point will be there for sure.
    Regards
    Meeta

    Hi Meeta,
    I have the same problem....Whats the wrong with the program.....
    Whats the solution u got for it....

Maybe you are looking for

  • Graphics problem with mbp late 2008,nvidia geforce 8600m gt.any help?

    Hi,have graphics problems with my MacBook Pro 17" Late 2008.Every 3-4 days the graphics are not ok and when i want to restart there is only the apple logo but not clear and the cursor seems to be double.Sory my english is not the best.Any help for th

  • S.M.A.R.T. hard drive facility

    My iMac G3 600 has its 40gb drive split between OS9.2 and OS. 10.3.9. When I use Disk Facility on OSX there is no indication of any S.M.A.R.T status, and a utility called MacHelpmate says I have none, rather it returns "Smartctl: Device Read Identity

  • MacBook Pro + Dell 2407 WFP Monitor - Which adaptor?

    i have been searching high and low and can't seem to get a definitive answer to this question: i just purchased the newest macbook pro with the thunderbolt port.  i have a Dell 2407 wfp monitor.  looks like a 2008 model according to the serial #....

  • Concatenate two Columns in OAF

    Dear Friends , I have a OAF Page developed with advanced table , i would like to concatenate first two columns . is there any way that i can achieve this ? Note : I am using a sear without entity Object ( VO based Search ) Please share your thoughts

  • Remote Desktop user rights assignment

    I have a 2012 server that I'm using with Remote Desktop Services. Users connect to this server to work with QuickBooks 2013 Premiere.  The problem is that QuickBooks would not run unless users had administrative rights.  To get around this I made eve