CIC0 - get actual org unit of user

Hi,
Does anybody knows how to get actual org unit of agent in CIC0, which he has choosen when logging to CIC0?
CIC_GET_ORG_UNIT reads only first of all user's assignments, and I need the one that he has choosen
Regards

Hi Radek, how are you?
Hi normally use that one, and I had no problems. It returns to me the actual org unit of choosen profile, at CIC0.
That function reads internal table CIC_OBJECTS, which was multiple entries. This multiple entries are the hierarchical upper level's of the choosen profile at organization model, like the position, org unit, etc. Since it returns the first 'O' (org unit) entry, it will return to you always the first upper org unit of choosen profile.
Can you re-check?
Kind regards,
Garcia
Edited by: Bruno Garcia on Jul 26, 2010 2:53 PM

Similar Messages

  • How to get subordinate org units for a given org unit within specific dates

    hi,
    How to get subordinate org units for a given org unit within specific dates

    Use the following Func module ..
    HRWPC_RFC_STRUCTURE_GET
    *--Get the sub org.unts for the given selection.
        CALL FUNCTION 'HRWPC_RFC_STRUCTURE_GET'
          EXPORTING
            ROOT           = root_org   <-- Give the Org unit 
            EVPATH         = 'O-O_DOWN'
            BEGDA          = s_date-low
            ENDDA          = s_date-high
          TABLES
            T_OBJEC        = t_objec
            T_STRUC        = t_struc
          EXCEPTIONS
            NOTHING_FOUND  = 1
            INTERNAL_ERROR = 2
            OTHERS         = 3.
        IF SY-SUBRC <> 0.
          MESSAGE i000 WITH 'No Sub Orgunits for ' s_objid-low.
        else.
    *--Prepare final sub org.units tabl.
          loop at t_objec.
            if t_objec-objid ne s_objid-low.
              it_orgunit = t_objec-objid.
              it_orgunit-begda   = t_objec-begda.
              it_orgunit-endda   = t_objec-endda.
              APPEND it_orgunit.
            endif.
          endloop.
        endif.

  • Getting CRM Org unit by the R/3 sales org/office/group

    Hello everyone,
    We have a need to get CRM Org unit ID by R/3 sales org/office/group as maintained in
    transaction PPOMA_CRM.
    Does anyone knows a function/table that gives this mapping ?
    Thanks,
       Nitzan.

    Hi Nitzan,
    Try it with this static methods of class CL_CRM_ORGMAN_SERVICES:
    -- From  CRM ID to R3 ID
    MAP_HROBJECT_TO_R3_SALES_GRP
    MAP_HROBJECT_TO_R3_SALES_OFF
    MAP_HROBJECT_TO_R3_SALES_ORG
    -- From R3 ID to CRM ID
    MAP_R3_SALES_GRP_TO_HROBJECT
    MAP_R3_SALES_OFF_TO_HROBJECT
    MAP_R3_SALES_ORG_TO_HROBJECT
    Kind regards,
    Garcia

  • ORG Unit and User groups

    Hi,
    I need the function modules that can :
    1) Fn. mod. to give all user groups to which a user belongs
    2) Fn. mod. to give all Org. Units to which a user belongs
    Full marks.....
    Regards,
    Gaurav.

    hi,
    call function 'HRCM_ORGUNIT_EMPLOYEE_LIST_GET'
    exporting
    plvar = p_plvar
    otype = 'O '
    objid = s_orgeh-low
    begda = p_effdt
    endda = p_effdt
    * PATH_ID = 'O-S-P'
    tables
    pernr_table = i_pernr
    exceptions
    path_error = 1
    root_error = 2
    no_employees_found = 3
    others = 4
    Regards
    Reshma

  • Requisitioner Org-unit or User

    Hi,
    How can I allocate a user to the attribute 'Requisitioner'? I have no problems in allocating a organization Unit, but when it comes to a User, I can't allocate this as 'Requisitioner'?
    Example: I go to the attribute 'Requisitioner', and branch to the field 'value', allocate the organization O 50000015. The result is, that all the users that are allocatet to this organization appears, when I make 'shop on behalf'.
    Which value shall I allocate in the field 'value' on the attribute 'Requisitioner', if I only want ONE user to make 'shop on behalf' of???
    Br. Kim

    Hi,
       If you only want the user to be able ot shop/order on behalf of an individual then you set the REQUESTER attribute to US<userid> ex. AEMPLOYEE.
    BR,
    Disha.
    Pls reward points for useful answers.

  • How to find Org unit User has selected

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    As soon as you make the profile selection,IC sets the profile and org unit in the session.
    You can read them using
    Data: lv_prof     type ref to if_ic_profile,
                    pname       type        string,
                    orgunit     type        crmt_ic_org_unit.
    lv_prof = cl_ic_profile_service=>get_instance( ).
    pname = lv_prof->get_profile( ).
    org_unit = cl_crm_ic_services=>get_org_unit(  ).
    Thanks,
    Thirumala.

  • How to find users logged on Org Unit

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    In case anyone is still looking for this solution, here is how:
      data: lr_usett type ref to cl_crm_ui_user_cb.
      lr_usett = cl_crm_ui_user_cb=>get_instance( ).
      call method lr_usett->get_org_object
        importing
          ev_org_objid   = lv_objid
          ev_org_objtype = lv_otype.

  • CRM employee (business partner) & org unit extraction question

    Hi all,
    I have a question regarding extracting business partner and org unit in CRM. Basically user wants to report on employee level and org unit level.
    When I looked at the org unit hierarchy datasource (0BBP_ORGUNIT_HR01_HIER), it does not include the employee. I also tried the DS 0BP_UNAME_ORGUNIT_ATTR, but that does not give me the org unit of an employee.
    Any hint is highly appreciated.
    Best regards,
    Ben

    HI
    Try this DS  0CRM_POSITION_ATTR,here u will get the org.unit,but u need to add the users (employees) in the data source.
    Sridath..

  • 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

  • Table for Org unit information

    Hi All,
    Is there a table or FM, through which we can get the Org unit name by giving the org unit ID?
    It is there in table HRP1000 with the fields SHORT and STEXT. But it is taking hell lot of time to give the output. Is there any other table or FM for this?
    Please advise.
    Thanks,
    SS

    hi SS
    many FM are available for your requireemnt
    1.BBP_OUTPUT_GET_COMPANY_ADDRESS  - i/p bp of your company code o/p you will get address of company
    2.BP_CENTRALPERSON_GET - input your user name and you may get central person name.
    br
    muthu

  • Manager of org.unit

    hi,
    i have pernr and i wont to now if this pernr is manager of org.unit
    what is the best way to do that?
    i reward

    Hi Ricardo,
    U can use one of these functions depending on ur input...
    HRCM_ORGUNIT_MANAGER_GET - use this if you have the org unit id and want to get the manager for that org unit
    HRCM_GET_ORGUNITS_FOR_MANAGER
    IF you have the manager's pernr-  then get his user id from IT0105 table and use that user id to get the org units under the manager. Cross check if org unit u have is in that list
    hope this helps...

  • Need FM for Org Mannagement, Employees from lower org units

    hi,
    I have a person/manager suppose in Org Unit 'A' from whome I need to find out employeees belonging to org units at lower level to 'A'.
    Now I also have to check that I should get employees of the lower org units till I get a org unit with manger position if manager position is available stop otherwise need to keep searching the lower level org units.
    I am in search of any function module available for such requirement.
    Please reply me if anyone has any idea on this.
    Its urgent.
    thanks and regards,
    Akash.

    BBPU_GET_USERS_OF_ORGUNIT
    Use this FM to get users below an ORG UNIT.
    BBPU_GET_MANAGER_FLAG
    Use this to get manager flag.
    Revert to me for any doubts.
    Regards
    Vishal

  • Sales Org to the User

    Hello Everyone
    I would like to know how I get the Sales Org to a User.
    At the moment I get with the FM CRM_ORGMAN_DIR_ASSIGNMENTS_GET the Org Unit.
    Is there a way to get the Sales Organisation with the Org Unit or the get right away the
    Sales Org with the Username?
    Many thanks,
    Isabel

    Hi,
    I copied these lines from CL_ACO_HR_OBJECT->READ_ORG_UNITS_FOR_USER()
        CALL FUNCTION 'RH_STRUC_GET'
          EXPORTING
            act_otype        = 'BP'
            act_objid        = lv_bupa_number
            act_wegid        = lv_evaluation_path
            authority_check  = space
            text_buffer_fill = 'X'
          TABLES
            result_objec     = rt_result_objec
          EXCEPTIONS
            no_plvar_found   = 1
            no_entry_found   = 2
            OTHERS           = 3.
      ENDIF.
    * get org. unit for user
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          act_otype        = 'US'
          act_objid        = iv_user_id
          act_wegid        = lv_evaluation_path
          authority_check  = space
          text_buffer_fill = 'X'
        TABLES
          result_objec     = lt_result_objec
        EXCEPTIONS
          no_plvar_found   = 1
          no_entry_found   = 2
          OTHERS           = 3.
    First one gets org unit by business partner, second by user. RH_STRUC_GET can do nearly everything.
    cheers Carsten

  • Logs of ORG UNIT

    Hi ,
    How to check logs of ORG UNIT like assignment of roles, removal of roles and validity changes to ORG UNIT ???

    We have prod system in which role assignment is indirect.. Like roles are assigned to ORG UNIT and POSITION
    We dont assign roles user based..
    Structure is like this..
    ORG UNIT ---> Positions -
    > Users
    Under ORG unit , there would be several POSITIONS and under POSITION there would be several users..
    Some one has removed roles from ORG UNIT and all users under this ORG UNIT lost access....
    We need to find out who did it ....

  • How to get the Organizational Unit One level up

    Hi
    Does any one know any function module to get the org unit one level up by giving the current Organizational unit as input. Please reply very urgent.

    Hello Nirmal
    I am usually using the following function module to read to OM:
    *   SAP_SORG
    * OrgStructure with assigned orgunits)
        REFRESH: lt_struc.
        CALL FUNCTION 'RHPH_STRUCTURE_READ'
          EXPORTING
            plvar             = '01'            " active Planvar.
            otype             = 'O'             " OrgUnit
            objid             = l_wa_cb1-objid  " Toplevel-Node
            wegid             = 'SAP_SORG'
            begda             = iw_begda
            endda             = iw_endda
            pup_info          = 'X'
            with_stext        = 'X'
            tdepth            = 0               " alle Sub-Levels
          TABLES
            stru_tab          = lt_struc
          EXCEPTIONS
            catalogue_problem = 1
            root_not_found    = 2
            wegid_not_found   = 3.
    The parameter <b>WEGID</b> is the crucial on which determines the objects that are read from the OM. In your case you will need <b>WEGID = 'A002'</b> (reports (line) to).
    To understand the <i>evaluation path</i> (WEGID) better have a look at transaction <b>PPST</b>.
    Regards
      Uwe

Maybe you are looking for