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.

Similar Messages

  • Finding out logged in Org Unit?

    If a user is assigned to multiple org units within a single business role, he/she is given the option to select among the org units when Web UI is launched. After selecting, in the subsequent screens, how to find out dynamically which particular Org Unit he/she logged in through?
    I appreciate your time. Thanks.

    Hi Amar
    to get the Business role or profile using user name, pls use the class CL_CRM_UI_PROFILE_DETERM and use the method DETERMINE_PROFILE_VIA_ORG_MGMT.
    to determin the logged in role and its organiztion unit proceed as follows
    1) Get the user orgunit and roles list using the above said class - methoid which returns table
    2) once you got the result get the Business role the user is currently loged in by using the parameter id CRMT_UI_PROFILE it will return the current business role.
    3) now read the table in point 1 with this busineess role where u will get the orgunit.
    more over there is no static method  for the class  CL_CRM_UI_PROFILE_DETERM  so either you have to create the instance for this class or simply copy the code in the method  DETERMINE_PROFILE_VIA_ORG_MGMT and use the same code some where else in the other class method.
    Hope this resolves your issue.
    Thanks & Regards
    Raj

  • How to find out the main org units in the system

    Hi,
    I want to find out the all main org units in the system. It means that i have to know all the parent org units not the sub org units.
    Can you please let me know .
    Regards
    Rajesh

    Hi,
    As I understood about your query, go to PA30, select the position field, select the structure search tab, go to find(Ctrl+F), select the object type S-position, give the position no, then it will give position place and root org, unit of the position and it will expand the structure.
    Regards
    Devi

  • How to find the all the org units of chief org unit

    Hi All,
    i have one cheif org unit which belongs to IT. i Just need to take all the org units into one internal table upto last org unit.
    ex: 500000 is the chief org unit then we check that belongs to taht
    550000 and 560000
    and agian 550000 is having or units
    556000 and 557000 ....
    now requirement is now i input on 500000 on selection--screen and i need to get
    550000
    556000
    557000
    560000
    I used evaluation path as o-o and used call function 'HRCM_ORGSTRUC_INFO_TABLE_GET'.
    but able to get only the just next level org units.ie. 550000 and 560000 Not others ..So is there any way where we can find all the org units that comes under the MAIN ORG UNIT 5000000.
    waiting for your valuable inputs...
    Regards
    sas

    Hi
    Use the FM: RH_STRUC_GET with the evaluation path : ORGEH.
    If you are still not able to get the required results,then go to Tcode: OOAW and find the suitable evalution path for your requirement.
    Hope definetely u will get the results.
    Regards,
    Sreeram
    Edited by: Sreeram Kumar Madisetty on Apr 22, 2009 8:25 AM

  • How to find users logged in system

    Hi ,
    1.is there a way to find out how many users are cuttently logged in the system
    2. is it possible to find what all activities they did , other than execution of calc scripts or rule files.
    3.can we get any log file or genrate a report to find out who all were logged in the system at a particular time.
    Thanks in advance

    thanks a lot , but i am using oracle rdbms and its not easy to view all the activities per user as the size of the data is huge , is there any way to view the records of the table or can you give a more specific command
    what i want is to view all the activities done by a particular user on data , and there is no table by the name audit log but there is one by the name HSP_AUDIT_RECORD , i hope this is the one you are referring too.
    and thanks again

  • How to find user log-out time ?

    Using SM05 i am able to extract the user login time(that too for active users).
    How should i get the logout time ?
    Tables like USR02 , USR41 give login time for active users only.
    When i try to log tables USR02 etc. , i cannot make a difference if it is the login time or logout time.

    <b>User administration</b>
    USR01               User master
    <b>USR02               Logon data</b>
    USR03               User address data
    USR04               User master authorizations
    USR11               User Master Texts for Profiles (USR10)
    UST12               User master: Authorizations
    USR12               User master authorization values
    USR13               Short Texts for Authorizations
    USR40               Prohibited passwords
    TOBJ               Objects
    TOBC               Authorization Object Classes
    TPRPROF          Profile Name for Activity Group
    DEVACCESS          Table for development user
    Regards,
    Rajesh Banka
    Reward points if helpful

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

  • User Assigned to Org.unit

    Hi all...
    I have list of user ..i want to find these users assigned to org.unit ?
    i need the list in production.. so i can't write the code...
    how can i find? any view or direct table which will list these stuff..
    thanks...

    Hello,
    Use HRP1001 table:
    SELECT objid FROM hrp1001 WHERE sobid = 'user ID' AND plvar = 'active PLVAR'
    SELECT sobid FROM hrp1001 WHERE objid = objid
    SELECT sobid FROM hrp1001 WHERE otype = 'S' AND objid = sobid AND sclas = 'O'.
    Regards.
    Laurent.

  • 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

  • Unassign users from a Org unit and reassign to another org unit

    Hello Friends,
    There are users in my org who are already assinged to a org unit through USERS_GEN transaction (from SU01 users) and are creating shopping carts for the past four months without any issue.
    Now there is a requirement to assign few of the users to another org unit.
    I have created that org unit but not sure how to reassign it to a new org unit.
    I am new to SRM. Any help will be appreciated.

    Hi Dihsa,
    Thanks for the fast reply.
    In that link it has been mentioned that users can be unassigned from a org unit through USERS_GEN txn or drag and drop.
    I already unassigned a user by clicking on delete assignment in PPOSA_BBP. While I am trying to reassign the user through USERS_GEN to new org unit, I am getting the error: Central Person for this user already exists with E BBPU_MESSAGES 042 &.
    After going through some of the threads I realized that I should not do like that for deleting a assignment.
    Also I found one thread which is telling that ....new org unit has to be selected and then by clicking on the Assign button --> Incorporates..Postion.. a user can be reassigned.
    Is it a right way to do that.... I don know how to unassign using USERS_GEN txn.
    Also it would be great if you could help me to resolve the above error.
    Please guide me.

  • HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT

    HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT
    Regards,
    Kumar

    HAI..
    External number assignment
    If you want the user to assign the numbers, enter "EX" in the 'NR' field. The number ranges are then indicated by the letters "EX".
    Number assignment for plan version 10 / object type S: Subgroup 10S

  • How to monitor user logs,security logs,trace file,and performance monitori

    Hi guys,
    pls tel me how to monitor user logs,security logs,trace file,and performance monitoring.
    thanks
    regards
    kamal

    Hi,
    you can have a look in the Netweaver administration :
    http://<portal>:<port>/nwa
    Go to monitoring, Java system reports, etc..., you will find what you want.
    Fabien.

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • font color="green" How to Find Users Tips (FAQs) on iChat /font

    Hi,
    Some of the more regular Visitors to this Forum may have noticed that above the Topic List is a "Recent Tips" area that has the most recently Updated Users Tips.
    There more, (you may wonder where FAQ 1 is for example).
    One way to find them is to use the Search feature just above your Profile and My Post an Setting Links in the box on the right.
    Many of the Former FAQS and Users tips have had the Search tag kichat added to them.
    Using this and changing the date option to All How to Find Users Tips (FAQs) on iChat">brings up 16 Links in this Example Search
    One of the Level 4 Posters, Red Dwarf, once spent some time going through the whole of the Users Tips Library and posting them in to two formats.
    This link is to the iChat section within his 'by Forum/application' listing.
    There is another 'By Author' Version
    The Whole Users Tips Library is here. IT has a header item that tells you who can post/Suggest new Contributions with a link to that additional forum.
    I hope you find this useful.
    10:06 PM Tuesday; April 14, 2009

    The Section above the topic List in this Forums contains Recent Users Tip section and ifo about Perian 1.1.3 has been added recently.
    (In relation to this post's date)
    8:54 PM Wednesday; May 6, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How to find user group from tcode

    Hi Experts,
    I have custom tcode from this i found report name as AQIDSYSTQV000001SD_RR_03======
    I am unable to find Queryname in SQ01 from this.
    When i saw some of the forums i  understood that IDSYST is the user group for my query but i am unable to trace such user group in SQ01.
    Please guide me how to find user group for my report
    Thanks&Regards,
    narasimha.

    Hi ,
    I found in table AQGQSTRUC but i didnt find the specified query
    Previously 401 client is there but at present it is not there .How can you justify it that it is 401 client.
    As 401 client data is moved to someother client is it the problem why i am not able to find query??
    Thanks&Regards,
    narasimha.
    Edited by: narasimha02 on Dec 7, 2010 9:54 AM

Maybe you are looking for

  • Rewrite value in BKPF when FI document posting

    Hello! I need your advice. I have task - Сlear field XREF2_HD in table BKPF when FI document is posting  (FB01, for excemple). I`m using BTE 1120 "Substitute header and items", belong you can see FM code which i use: FUNCTION ZSAMPLE_PROCESS_00001120

  • 20" Cinema display with USB and firewire ports not working

    I have a new 20" display and was wondering why my USB and fire wire ports at the back are not working. I have an external drive that is powered hooked up to the fire wire port and a no powered piano keyboard to a usb port. Any help please

  • Error Message: Service not found

    Hi there, I'm using Adobe LiveCycle Workbench ES3 to create some processes. Since today I'm receiving the following error message while executing the process: ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundException: Dienst: SQLSpecialStr

  • Issues with parallel processing in Logical Database PCH and PNP

    Has anyone encountered issues when executing programs in parallel  that utilizes the logical database PCH or PNP? Our scenario is the following: We having have 55 concurrent jobs that execute a program that use the logical database PCH at a given tim

  • User exit  for a query

    Hi Experts, I have to design a query wherein the user has to compare the forecast and the actual figures.Forecasting is done on weekly basis for next 12 months. Now in my selections i have period before forecast is frozen : say if user enters 6 month