Getting the role of the user running the report?

Hello,
I'm doing a report with Answers and need to recover the role of the user running the report. Is it possible?
Thanks

You can use any of the below Session Variables, click the Fx and enter the below
VALUEOF(NQ_SESSION.displayname) - Displays the Full Name of the User that is logged in and running the report for that session
VALUEOF(NQ_SESSION.user_alias) - Display's Alias Name of the User that is logged in and running the report for that session
For the role, I don't think there is a Session Variable.
Cheers!
Royston
Edited by: Royston Goveia on May 24, 2012 12:50 AM

Similar Messages

  • Get the role of a user in portal 6.0

    Hello,
    I need to get the role of a user in portal 6.0. I want to do this in one of the templates to dynamiclly size our tabs due to the fact some roles have more tabs then others.
    travis

    You have to use the Identity Server SDK's to do this ..
    create SSOToken and AMStore Connection object. Using that you can get the AMUser object and do getRolesDNs to the roles the user is assigned to or from AMStoreConnection you can do a getTopLevelContainers to get the orgs, roles etc assigned for the signed in user ..
    take a look at the identity server samples it should be in
    /install_dir/SUNWam/samples/sdk
    HTH ..

  • Function module to get the roles assigned to user

    Hi to all experts,
    I need a fm to retrieve the roles assigned to user .
    if a pass sy-uname as importing parameter i should to get all the roles assigned to that particular user

    hai,
    please try this.
    /VIRSA/RE_BAPI_CREATE_ROLE- Create Roles
    /VIRSA/ROLE_ASSIGN_CUA_NH
    /VIRSA/RE_BAPI_ROLE_TO_USERS
    ASSIGN_USERS_HIERARCHY - User Assignment to Role - this is a Normal FM
    try this bapis this may work
    BAPI_USER_LOCK
    - BAPI_USER_PROFILES_ASSIGN
    - BAPI_USER_LOCPROFILES_ASSIGN
    - BAPI_USER_LOCACTGROUPS_ASSIGN
    - BAPI_USER_CHANGE
    - BAPI_USER_UNLOCK

  • What roles are required to run the export import?

    Hi,
    I want some info on roles are required to run the export import.
    I have done the following in sys user:
    GRANT EXP_FULL_DATABASE TO IMP_TEST
    GRANT IMP_FULL_DATABASE TO IMP_TEST
    But Doing the above command the IMP_TEST will get all priviles (also the system tables)
    Is there any mechanism to restrict the user to export and import only the tables not anything?
    Thanks and Regadrs

    Hi!
    If you create a user like this
    CREATE USER imp_test identified by password;then the user will be able to import or export only its own schema. If you grant the exp_full_database and imp_full_database roles to this user like you did then the use will be able to export or import the hole database (with SYS schema). But as far as I know you can't set any more restrictions to the user.
    yours sincerely
    Florian W.

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • Unable to open  the "role"  workset in User Administration

    Hi,
      I have installed Enterprise Portal 6.0 SP9 on Web AS 6.40. But when I goto the "role" workset of User Administration I get "page cannot be displayed".
    So help required.
    Regards.

    Hi Pavanmeet,
    I got the same problem. Try to upgrade to SP17
    and it's solved. Otherwise you can use Firefox for this special site. No good solution - I must admit - but it's displayable with Firefox.
    regards

  • Can the same NDS statement be used by other users running the same program?

    Say you have an NDS statement running in an application. We have users all over the country running this package off of the same database. If an NDS statement gets stored in the Library Cache than would other users running the same package use that NDS statement or would their processes spawn another yet identical NDS statement?

    There is no difference in the caching of dynamic or not statements. If statement is already in cache and it's session environment is similar to current session one then statement will be soft-parsed.

  • To identify the user running the job at runtime

    Hi All,
    My requirement is to develop a program which need to send mail only if a particular user runs the job.
    I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime.
    Please suggest me the possible ways of identifying the user running the job at runtime.
    Thanks in advance!!!
    Regards,
    Dinesh.

    "I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at runtime."
    This is not true if your program/form/method is called inside the ABAP report which is executing in the batch job step. There, the active SY-UNAME is the user entered in SM36 as the job step user. It is not the user who planned/scheduled the job.
    It is unclear from your description where your program is actually running. Is it another (ABAP) step belonging to the same job or is it actually some routine called within the same job step that you are checking or is it a program totally unrelated to the batch job in question (in that case, check out the other answers about TBTCO/TBTCP)
    - Alex

  • Getting "Error Establishing Socket " error while running the application

    Hi,
    Can Any one help me as I getting the following error while inserting data into database for after some rows and will insert for some rows then again some error . I googled but but didnt get any proper solution.
    Soultion what I got it is
    1) turn off windows firewall.
    2) change server TCP/IP settings.
    3) It will give probelm with windows XP SP 2
    I tried all but didnt able to solve that.
    I am using Java 1.5, MSSQL server 2000,and eclipse 3.2,windows XP SP2
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at com.aztecsoft.quality.DatabaseConnectionQLTYSRV.getCon(DatabaseConnectionQLTYSRV.java:25)
    at com.aztecsoft.quality.DatabaseQuery.getDaytoCountRow(DatabaseQuery.java:147)
    at com.aztecsoft.quality.ProjectTrackerUtil.getNetworkDays(ProjectTrackerUtil.java:73)
    at com.aztecsoft.quality.ProjectPlan.calODurationinDays(ProjectPlan.java:81)
    at com.aztecsoft.quality.ProjectPlan.projectSummary(ProjectPlan.java:25)
    at com.aztecsoft.quality.ProjectPlan.main(ProjectPlan.java:126)
    Thanks in advance.

    Hi this is gopi,Hyd.Is your Problem "Getting "Error Establishing Socket " error while running the application" solved if so can you reply me i am waiting for this answer

  • Hi I replaced my hard drive on macbook and I want to install mac osx10.5 with the CD that came with the macbook. When I run the CD after a while I get the page showing language options for 2 second then a gray screen appears and nothing happens

    Hi I replaced my hard drive on macbook and I want to install mac osx10.5 with the CD that came with the macbook. When I run the CD after a while I get the page showing language options for 2 second then a gray screen appears and nothing happens. I partitioned my hard drive and I tried installing Microsoft windows and that worked just fine.  But I do not understand why it wont install mac os x 10.5?????  PLEASE HELP ME.  Thanks  Hamid

    Try a new post in the 10.5 Installation forum.
    DALE

  • How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amo

    How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0

    Hi,
    Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
    Regards,
    Pawan

  • Is there any command in SQL or in form6i to view the role of current user?

    Hi Friends,
    Is there any command in SQL or in form6i to view the role of current user?
    Please reply me on urgently basis.
    Shahzad

    select * from SYS.dba_role_privs where grantee=<USERNAME>
    Ensure that you have select privs on above system view.
    Cheers........ Bob

  • In 11i CRM add the role 'csi normal user error

    Hi,
    i am trying to add the role 'csi normal user' , for that i have some procedure below
    To add this role to a user, you need CRM HTML Administration responsibility:
    1. In the Navigator, click the CRM HTML Administration responsibility.
    2. Under “Setup : Users : Registration”, click User Maintenance
    3. Enter full or partial username and click Go.
    4. Select the applicable username from the list
    5. Click Roles
    6. Select the CSI Normal User role from the left pane.
    7. Click Move to put it in the right pane.
    8. Click Update.
    i have already added crm html administrator to myself,i have sysadmin privilege,i have crm html administrator under that i have user maintanence
    if i click that its showing error that i dont have privilege to view that page
    error says i dont have the privilege
    Please let me know ,

    Hi,
    Have a look at the following documents.
    Note: 261174.1 - Insufficient Privileges to Access the User Maintenance Page
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=261174.1
    Note: 232373.1 - Insufficient Privileges when Accessing User Maintenance
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=232373.1
    Note: 299795.1 - Error In Granting Any Roles To A User - "Error granting role"
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=299795.1
    Note: 299186.1 - Administration Privilege Is Required To Access This Page
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=299186.1
    Regards,
    Hussein

  • I just bought my macbook pro yesterday, i wonder why it gets real hot, i am just running the safari!!

    i wonder why macbook pro gets real hot, i am just running the safari!!, is it normal? how can i check whether this heat is normanl?

    That's not where it should be
    Perhaps technically, but I rarely use my MBP anywhere else, and even when playing something like Portal 2 or Bioshock 2, it never gets more than uncomfortably warm near the hinge.  I just make sure that part's not resting on my knees.
    I know someone's going to come along and give me all kinds of good reasons why I shouldn't be doing that, as it seems to happen every time I admit to this.  But when my practical experience over ten years of using Mac laptops tells me it's not a problem, then I tend not to listen.

  • Issue with the ROLES in Precalculation of WebTemplate in Reporting Agent.

    HI BWers,
    I am having trouble in understanding the functionality of ROLES and USERS in the Reporting Agent.
    My goal is to pre-calculate WebTemplate,so the users can get the data results based on their ROLES.
    -> When I select ROLES under Authorizations in Reporting Agent; my understanding was it will just pre-calculate the WebTemplate based on Roles. But, when I look at the job details its doing for the Users. I opted for   ROLES because I have 10-Roles and 100-Users, so the job runs for only Roles.
    -> I don't want to select the Users, as it will take longer time and uses lot of system resources.
    Can I just run for ROLES, for that under Authorizations in Reporting Agent do I need to select Precalculate User-Specifically and Select ROLES or just selecting ROLES will do. I tried both, just selecting ROLES is not working and selecting Precalculate User-Specifically & ROLES is not yielding the required results.
    Could you please throw some light on it, I am on BW 3.5 & SP15.
    Any help will be highly appreciated.
    Regards,
    swordfish.

    Hi,
    If you choose the Precalculate by User option, all the data and HTML pages for the Reporting Agent setting are precalculated for each of the selected users in a single job. This applies in both the cases: Roles or users. When you specify a role after selecting the option 'Precalculate by User', the precalculation will be done for all the users assigned to that role and not the role.
    Roles/Users is just 2 different ways of giving the user restriction. If you specify the roles, the system will precalculate for all the users assigned to the role. If you have few users for whom you want the precalculation to be done, then you can specify the user IDs. If you have many users assigned to a particular role for whom you want the precalculation to be done, then you can specify the role.
    Regards,
    Shilpa

Maybe you are looking for