Inserting queries in a role

Hi Gurus,
i need to assign queries to a role so that users having this role will be able to get the queries in their menu when they log into the system. How can I do it?
Partha

Steps 1)PFCG -->create ROLE
2)SU01 -->assign ROLE to user
3)RSECADMIN -->create authorization object,assign activities of 0TCT*
Note - RSECADMIN uses 0TCT* objects
basis ADMIN should have S_RSEC object to be assigned in order for him to use 0TCT* objects
Roles - Query
PFCG - create Role
Authorization tab -change authorization data
S_GUI = *
S_TCODE = RRMX
S_USER_AGR
ACTVT = 2,3 and ACT_GROUP = *
S_USER_TCD = RRMX
Profiles to be given to developer
SAP_ALL
SAP_NEW
0BI_ALL is the new object which gives all authorizations to users.
More info-
Re: How to add a Role?
Hope it Helps
Chetan
@CP..

Similar Messages

  • How to remove Queries in menu roles?

    Hi,
    I am removing unneccessary quries added in menu roles!
    How to remove those queries from the roles?
    Raj

    Hi,
       Open your role in PFCG with edit mode -> you can see list of reports assigned here, right click on delete which is not required.

  • Error when creating the queries with BI Roles.

    Hello,
    Business Requirement :
    We need to see the BI query reports to show up in User Menu.
    Action Taken :
    I tried to add the BI queries to BI Role on Menu tab with BW report ID/name by clicking other button. But still not showing up in User Menu.
    Anything else I should check? Please advise.

    Hi Pranav,
    The way in which Sap has customized BEx is it won't show the roles which doesn't have Queries.
    The roles tab of Bex shows only show the roles which user is assigned, among the assigned roles only the roles which has queries will be displayed.
    Hope this helps,
    Thanks,
    Rakesh.T

  • How to decide inserting Queries into Workbooks

    Hi,
    I have a few doubts..pls clarify my doubts
    1. How to decide inserting Queries into workbooks (How many number of Queries will be inserting into workbooks??)
    2. Shall i use single sheet (or) Multiple sheets
    3. We are using Hierarchy...So, How to insert a Query( How to decide which row/coulmn the Query can be placed??)
    4. How to suppress Zeros and # permanently (For temporarily, i went to cell context menu--All Characteristics-Suppress zero column/Row..)
    But looking for permanent solution..
    Please Suggest me ...
    Thanks..
    Help will be greatly appreciated..
    Thanks.........

    Hi venkat,
    1.how may queries in a workbook will depend on the reporting requirement.
    2. single or multiple sheet - it is advisable to insert one query in each sheet to avoid confusion.
    3. If you are using hierarchies then it is not advisable to use then in worrkbooks, since the values in the cells would keep changing depending on the hierarchy and the level it is expanded etc.
    4. To supress zeros you can also do a setting in spro -- > SAP netweaver --> SAP Business information warehouse --> Report-relevant settings --> presenting the numeric value in the Business explorer
    Standard settings
    Under certain circumstances numeric values and texts for currencies, or units, in the Business Explorer cannot be determined uniquely. In such cases predefined texts are displayed instead of the numeric values, and currencies, or units:
    If a Division by zero arises when calculating a numeric value then this text is output.
    If a numeric value cannot be determined then this text is output (does not exist).
    If a numeric value is not calculated due to numeric overlapping then this text is output.
    If a numeric value is made up of several currencies, or units, then this text is output instead of the currency or unit (mixed currencies).
    If a user does not have authorization to display a particular numeric value for a cell in the executed query, then this text is output in the cell instead (no authorization).
    If a calculated numeric value is made up of different currencies, or units, then the numeric value can or cannot be output. If you choose mixed values then the numeric value is output. If mixed values is not active then the text is output that you entered under "mixed currencies".
    Activities
    1. Determine the texts that are to be output in the Business Explorer instead of numeric values.
    2. Decide whether numeric values, that are made up of different currencies, or units, should be output.
    If the above explanation was helpful, please assign reward points.
    Regards
    Venkata Devaraj

  • How to insert entities for a role and retrofit single trigger from DB

    Hi,
    before Oracle Designer replacement I would like to clarify these 2 issues:
    - how to insert entities for a role?
    - how to retrofit just a single trigger from database?
    Could somebody give a step by step advice, how to do these 2 things? Thanks!

    > um.. i don't think you could use 'create table'
    inside a pl/sql procedure.
    You are wrong. You can create table inside a PL/SQL using execute immediate. But, this is not a good practise. I think you should reconsider the logic and then use such programming code. Please read the Oracle documentation regarding execute immediate.
    Regards.
    Satyaki De.

  • Queries added to role in PFCG don't show up under role folder in BEX

    Hello Guruu2019s
    Currently I am experiencing a very strange problem regarding the visibility of queries in the role menu of BEX. Please find below some investigation already done:
    Just to avoid any authorization questions/assumptions,  I have a user with SAP_NEW and SAP_ALL. He also has 2 roles (R1 and R2, no other roles) in which reports are entered using: PFCG -> +OTHER -> SAP BW Query URL.
    In his SAP user menu all reports from both roles show up and are executable.
    When this user open BEX Analyzer and goes to u2018Openu2019 -> u2018Open Queryu2019 and then go to u2018Rolesu2019 only R1 and its contents is visible.
    The roles however are identical and contain only the following authorization objects (apart from menu entries):
    S_USER_TCD: RRMX
    S_TCODE: RRMX
    The only difference between them is that the R1 has been created some time ago while the R2 is new.
    I expect that people will tell me that S_USR_AGR is required but this isnu2019t the case since he is able to see one of the two mentioned roles (R1) and its contents in SAP BI due to SAP_ALL and SAP_NEW.
    When I copy R1 to R3 and add it to the user he is also able to see this R3 in the Bex analyzer. However, when I remove all reports from R3 and add some myself in PFCG these new entries do not show up in Bex analyzer, even though I re-added the report(s) I removed earlier in the exact same way.
    The same for the original R1, when I add new entries they arenu2019t visible although the u2018oldu2019 ones are.
    When I check the only table I know that holds SAP menu entries all links show up, this also explains why in his SAP user menu he sees all links. Does anyone know how (which tables) the BEX Analyzer gets the appropriate roles and role entries when a user wants to open a query?
    What can be the issue here; to me it feels like something has changed in the system that prevents BEX to read all roles properly?

    Hi Casper,
    there is a known issue at the moment whereby workbooks/queries and roles are no longer
    visable due to the following.....
    The settings in SSM_CUST defines a compress mechanism for the user menu
    known as "Redundancy avoidance" and described in notes 357877 and 357693
    Redundancy avoidance deletes easy access menu entries for doubled
    transaction codes whenever SSM_CUST contains
    1. an entry CONDENSE_MENU with PATH = 'YES' and
    2. either an entry DELETE_DOUBLE_TCODE with PATH = 'YES' or no entry
    DELETE_DOUBLE_TCODES, at all.
    If you don't want doubled transaction codes to be deleted, then simply
    add an entry DELETE_DOUBLE_TCODES with PATH = 'NO' into table SSM_CUST.
    Please enter
    DELETE_DOUBLE_TCODES with PATH = 'NO' into table SSM_CUST
    and retest this issue...
    I hope this helps
    best regards
    Orla.

  • Bulk assignment from Queries to a role

    Hey folks,
    we would like to transport more than 100 queries (not Workbooks) - from an Excel-list.
    Unfortunantely, it is not possible to filter queries in Transport Connenction, compared to Workbooks.
    Therefore we created a temp-Role, assigned all Queries to this role, selected that role in the transport connecntion and we had our 100 queries selected by selecting only the temprole - this is much faster.
    As we´d like to improve this, I would like to know, what is the fastest way, to assign 100 reports to a temp-role? Any suggestions on that?
    Best regards,
    Christian Röttgers

    Any suggestions?

  • Listing Queries/Workbooks in Roles

    Hi!  Is there a way to list queries/workbooks by role?
    Thanks in advance!
    Marnie

    Hi,
    When you log on to the BEx by workbook or query and when you press the role button, you should be able to see all the workbooks and queries by role.
    You can also check the listing in PFCG. Give the role name and all the workbooks and queries attached to that role can be found in the menu area.
    Cheers,
    Kedar

  • Stored procedure for exec. multiple insert queries

    Hello everybody,
    I am running on
    select banner from v$version;
    Output:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    I am a new to oracle and I need some help.
    I have to populate a table on monthly basis, for which I am required to run 20 queries.
    All queries retrieve data from the same table in another schema.
    I need to schedule a SP in order to be able to run all these queries.
    Till now, I have built separate SPs for the queries Proc_1, Proc_2, Proc_3, ..., Proc_20 and a final big SP (*main_sp*) which calls these SPs.
    Being that I have to change the date value for every month (I am doing it manually every single month), for every single query,
    I was wondering if there is a way to include all these queries in a single stored procedure.
    I am reading here execute parallel queries
    but I do not want to create 20 jobs.
    I found this topic, which seems to be interesting too, but I have never done this before:
    Executing multiple SQL scripts in a batch
    Moreover, how can I manage to insert the value of date only once (e.g in the main_sp) and every queries gets this value automatically.
    P.S.
    All queries retrieve data from the same table in another schema and fill in with data the same table in actual schema.
    insert into destin_tbl
    select from source_tbl@dbb_link
    Here is how my actual work looks like:
    First, I have built 20 sp, for each and every query:
    CREATE OR REPLACE PROCEDURE "SP_1" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_1;
    = = = = = =
    CREATE OR REPLACE PROCEDURE "SP_2" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_2;
    CREATE OR REPLACE PROCEDURE "SP_20" (
    START_DATE out DATE,
    IS
    BEGIN
    START_DATE := SYSDATE;
    insert /*+ append nologging parallel(x,4)*/into destin_tbl x
    select /*+ parallel(a,4)*/ field_1, field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= 20101201 and a.date_key < 20100101 -- full month (december 2010) here
    and other conditions
    commit;
    END SP_20;
    I change the values for the date_key field every month I need to insert data, before I run the main_sp:
    CREATE OR REPLACE PROCEDURE "main_sp" (
    START_DATE out DATE
    IS
    BEGIN
    sp_1(START_DATE);
    sp_2(START_DATE);
    sp_3(START_DATE);
    sp_20(START_DATE);
    END main_sp;
    /

    You would need to pass a parameter to the main procedure and to all of the sub procedures. I would do it somethign like this. The main procedure takes a single date parameter the way I have structured it here, any date in the month you are interested in will do
    PROCEDURE main_sp(p_date IN DATE)
       l_st_dt  VARCHAR2(8);
       l_end_dt VARCHAR2(8);
    BEGIN
       l_st_dt := TO_CHAR(TRUNC(p_date, 'Mon'), 'yyyymmdd');
       l_end_dt := TO_CHAR(LAST_DAY(p_date) + 1, 'yyyymmdd');
       sp_1 (l_st_dt, l_end_dt);
       sp_2 (l_st_dt, l_end_dt);
    END;Then your individual procedures would look something like:
    PROCEDURE SP_1 (p_st_dt  IN VARCHAR2,
                    p_end_dt IN VARCHAR2) IS
    BEGIN
       insert /*+ append nologging parallel(x,4)*/into destin_tbl x
       select /*+ parallel(a,4)*/ field_1, field_2, field_3
       from source_tbl@dbb_link a
       where a.date_key >= p_st_dt and a.date_key < p_end_dt -- full month (december 2010) here
         and other conditions
       commit;
    END;
    Regarding the queries...they do not change only in the conditions statement, but also in the retrieve.
    I have 2 constant fields, whose value changes based on conditions (e.g. query_1 retrieves data regarding diesel car >speed => constant_field_1 = 'Diesel|_Car_Speed' ... query_2 retrieves data related to motorbike unleaded speed >=> constant_field_1 = 'MotorB_UL_Speed'.
    These makes the grouping of these queries impossible.Without seeing actual queries, it is impossible to say, but my guess would be that the 20 queries could be reduced to a single query, or at least less than 20. Something like:
    insert into destin_tbl x
    select CASE WHEN condition that indicates car THEN 'Diesel|_Car_Speed'
                WHEN condition that indicates motor bike THEN 'MotorB_UL_Speed'
                WHEN other conditions THEN other field1 values END
           field_2, field_3
    from source_tbl@dbb_link a
    where a.date_key >= p_st_dt and
          a.date_key < p_end_dt
      and other conditionsThe conditions for the CASE statement could be pulled out of the where caluses for the individual queries.
    John
    Edited by: John Spencer on Jan 24, 2011 9:37 AM

  • Unable to perform update/insert queries on ACCESS db

    Hi,
    I've configured my odbc (Access driver). I'm using user dsn. The dsn created is "Fitnet". Below are the source code.
    I am able to execute SELECT queries by using statment.executequery , but when I try to execute an update or insert query using statment.executeUpdate I get an exeption from the driver "Tow few parameters expected 3 "
    What is wrong , do I nead to configure any thing sprciasl on my ODBC ??
    Please raplay also to [email protected]
    or [email protected]
    Thanks Shahar.
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    String url = "jdbc:odbc:Fitnet";
    Connection con= DriverManager.getConnection(url,"","");

    HI
    I have a class called main maneger that performes the query the code is :
    public void ExecuteUpdateQuery(Query query) {
    try {
    log.writeDebugMessage("Before executing query");
    log.writeDebugMessage("Executing : " + query.getQuery());
    stmt.executeUpdate(query.getQuery());
    log.writeDebugMessage("After executing query");
    } catch(SQLException e) {
    System.out.println(e.getSQLState() +" " + e.getMessage());
    log.writeException(e);
    The querie itself is (this is a constractore that creates the query :
    public AddTraineeQuery(Trainee Trainee) {
    DateFormat dF = DateFormat.getDateInstance();
    query = "INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (" +
    Trainee.getUserId() + ',' +
    '"' + Trainee.getUserPassword()+ '"' +',' +
    '"' + Trainee.getUserAddress() + '"' + ',' +
    '"' + Trainee.getUserName() + '"' + ',' +
    Trainee.getUserPhoneNumber() + ',' +
    Trainee.getUserGender() + ',' +
    Trainee.getTraineeSessionTime() + ',' +
    Trainee.getTraineeTrainingPurpose() + ',' +
    Trainee.getTraineeHealthStatus() + ',' + '"' +
    dF.format(Trainee.getUserStartDate()).toString() + '"' + ',' + '"' +
    dF.format(Trainee.getUserBirthDay()) .toString() + '"' + ')';
    When I look at the log output I see :
    INSERT INTO Trainee(Trainee_Id , Trainee_password , Trainee_Address, Trainee_Name , Trainee_Phone , Trainee_Gender , Trainee_SessionTime , Trainee_Purpose , Trainee_HealthStatus , Trainee_StartDate , Trainee_Birthday) VALUES (6,"333","hhhh","rafi",048231821,true,63,4,true,"Feb 22, 2002","Feb 22, 2002")
    and I get the eror
    [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4.
    P.S when I copy and the query from the log into access db it works
    Thanks

  • Get list of queries in a role

    Hi,
    Is it possible to get a list of all the queries which are assigned to a specific role?
    I have a role and i want to generate a list of the queries in it via ABAP.
    Regards,
    Karen

    Hi
    I sugest you load the role via trx PVCG.
    then get in to debug mode and track where does the reports/querys comes from.
    Reg's
    Edan

  • Transaction for overview of Queries published in Roles via Query designer

    Hi Guru's,
    in Query designer I have the possibility to publish Queries in roles.
    I have the problem that some Queries have been published twice or more in different folders, so I want to clean it. But I don't know how to delete the Queries via BEx Analyzer as they are there again as soon as I log in again.
    Isn't there any transaction in Backend that I can use to structure my Queries in roles?
    Thanks in advance!

    One way to delete unneeded duplicates....
    Go to Query designer, in development
    Instead of loading the query you want to delete, find it in the folder/role
    Click on the "Trash Can" icon
    Then we have 2 more options to consider....
    - Delete object ...will TOTALLY delete it in the development system.... caution with this one, unless you really do want it to permanently go-away.
    - Delete only the object reference from the Role/Favorites... will delete the one instance in the folder, but leaves it everywhere else, useful when deleting a duplicate report in the folder
    After choosing one of the 2 options above, then click on the 'continue' button.
    "Refresh" to check what was done in development = Menu / Refresh
    When done... transport the role to Q and Production.
    Similar process if the query is located inside of web template and there are multiple instances of the same web template in the roles/folders that need to be cleaned up in the web application designer.

  • Inserting Queries(3.1 version)

    Hi,
    I want to insert 4 queries into workbook ,
    i dont want to insert full query just wanted to insert one value field from all the queries in header .
    is that possible , if yes please tell me how to do it in 3.1 version
    i would appriciate your help
    Thanks,
    GAL

    Sounds like BI stuff to me, please post in the appropriate forum, not ABAP general.
    Thread locked.
    Thomas

  • Assign queries to authorization role via PFCG maintenace

    Hi,
    I would like to assign several queries to existing authorization roles.
    Therefore I am using the transaction PFCG > maintain the menu > add "other" SAP BW Query URL and fill in the name as well as object description.
    However, the new query will not be shown in the BEx Analyzer in the role folder.
    What do I have to administrate that the query will be shown in the role menu (BEx Analyzer)?
    Thanks!

    Dear Arvind,
    thanks for your reply.
    As an authorization administrator for SAP BI I do have the authorization for S_USER_AGR already.
    I am just testing in our development system.
    However, the query will not appear in the BEx Analyzer while selecting "Open Query" and search in "Roles".
    As far as I know queries could provided to authorization roles via BEx Analyzer.
    But does no possibility exists to maintain the authorization role via PFCG?
    Regards, Christian

  • Hiding of queries for perticular roles in POWL in SRM7.0

    Hi Experts,
    We have a requirement to hide the certain queries in POWL for perticular roles. I have maintained the entries for the roles through transaction POWL_QUERYR but we are not able to see the desired results.
    Also tried by running the report POWL_D01 but this report will delete the queries based on the users.  Our requirement is to show or hide certain queries to all the users with a perticular role.
    Kindly advice.
    Thanks and Regards
    Vishal

    Hi Lavanya,
    Thanks for the reply.
    We are following the below approach for hiding the tabs "Team Shopping Carts", Invoice/Credit Memo" and Confirmation Team Shopping Carts".
    - Defined a new application id Z_SAPSRM_E_CHECK_STATUS.
    - Maintained the entry in POWL_TYPER with the application Z_SAPSRM_E_CHECK_STATUS and type for confirmation and shopping cart along with the role
    - Maintained the entry in POWL_QUERY with the application Z_SAPSRM_E_CHECK_STATUS, role and activated the activate check box
    - Assigned the application id to the role authorizations "authorizations for Personal Object Work List (POWL) iViews"
    When I run the report POWL_D02, I can see that for the application Z_SAPSRM_E_CHECK_STATUS the queries shopping carts abd confirmations are active.
    But when I run the report POWL_D01 with the above application id I get the result that no queries found.
    Please let me know if the approach that we are following above is correct. or do we need to maintain some more things to accomplish this.
    We are defining are our own application id's because we need to hide queries for many transactions, so in our defined application id we will include the queries that needs to be displayed and will assign those application id in the roles after carrying out the above steps.
    Thanks and Regards
    Vishal

Maybe you are looking for

  • Siebel 8.1 SWSE installation problem on Linux

    Hi All, I'm trying to install Siebel 8.1 [21039] on Linux (Redhat 4 with update 5) . I have done my gateway server, enterprise server and siebel server successfully. Then I installed the OHS 10.1.3 and Siebel Web Server Extension as the web server, b

  • CUE 8.5.1 no initialization wizard after restore factory default

    I am also able to get to the CME GUI as well. From the help menu of CUE 8.5.1: When logging in to the system for the first time, use the Initialization Wizard to configure your system. The Initialization Wizard is a software tool that has a series of

  • Multiple Oracle Homes

    Hi everybody, I have Oracle 9i installed on my Windows machine. I installed Oracle Developer Suite, but could not login due to TNS errors. I have a little idea of what the problem is. We need to edit TNSNAMES.ORA file so that it could resolve the ser

  • Problems with audio on iMovie 10 conversions.

    I  just converted my videos from iMovie 7 to iMovie 10.  Now all of the audio on these videos has loud high pitched beeping sounds.  How can I fix this?

  • ITunes Match colapse in step 2

    When I add new songs to itunes and update itunes match the process freeze in step 2 when almost check all songs except 1 or 2