Initial values in query using multidimensional authorizations

Hi,
so far reading here through the topics helped solving my issues, but know I have a problem with displaying the initial values in a query using multidimensional authorizations. We use BI 7 and have to user the authorization check from BW 3.5 (rsr).
Following situation:
- We have a two infoobjects "CLUST" and "P_CLUST" referencing to the infoobject "M_COSTELM" and using the same hierarchies.
- The user should either see a specific value of CLUST and all values of P_CLUST or a specific value of P_CLUST and all values of CLUST in the reports. The values of CLUST and P_CLUST he's allowed to see are the same.
- The role is declared as following:
CLUST: * + P_CLUST [] + auth.object for CLUST
PCLUST: * + CLUST [] + auth.object for PCLUST
- Only one of those two infoobjects has to be set with a value in the query.
Using the role as above and running a query, the rights management is working fine and the user only see's what he's allowed to.
But when the user open's the query he see's the whole hierarchie in the inital values on the left and not only those nodes and leafs he should see.
For example:
Hierarchie "costelm_hier"
ALL_NODES
- FIRST NODE
   - FN_LEAF 1
   - FN_LEAF 2
- SECOND NODE
  - SN_LEAF 1
  - SN_LEAF 2
The user is allowed to see the FIRST_NODE and it's leafs in CLUST and P_CLUST.
When he now open's a query with CLUST as the input-ready infoobject, in the initial values he see's the whole hierarchie and not only the FIRST_NODE with it's leafs.
When then browsing through the tree and selecting the FIRST_NODE, in the query, the restrictions are working fine. He can see the FIRST_NODE in the infoobject CLUST and every values in P_CLUST. Also vice versa.
As it's more user-friendly I only want the user to see the nodes and leafs he's has in his role.
I also tried using an exit variable with the function 'RSSB_GET_AUTHS_FILTERED', but without success.
Hope u understand me so far!?
Thanks for your support!

How do I ask a question on the forums?
SQL and PL/SQL FAQ

Similar Messages

  • Need column showing 'Y' or 'N' values in query using Union

    Hello Folks,
    My 1st table is customer table with name, lastname, age, party id , custom id
    2nd table is department table with party id , dupeflag
    3rd table is sales table with custom id , indicator
    I need to combine them and get a new column which has certain conditions.
    Requirement:
    Need name, lastname, age, party id , custom id , NewIndicator
    and below conditions should be folllowed.
    dupe flag indiactaor flag New Colum to have (say NewIndicator)
    0,1,2 Y Y
    3 Y N
    0,1,2 N N
    3 N N
    I need to do a union to get all the values
    select a.party_id from customer a join department b
    on a.party_id=b.party_id
    UNION ALL
    select a.custom_id from customer c join sales d
    on c.custom_id=d.custom_id
    But now how do i build the case statement to fulfil my new column setting conditions.. I'm confused with case statemnent..
    Please help ASAP..
    Thanks..

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to  get formated value from query

    i get value from query use the follow method
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_UNFORMATTED);
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_FORMATTED);
    the first method retrun a value '1666.0',
    the second method return a value null
    but i want to get the value '1,666'.
    who can tell me how can get the formated value?

    Ahu,
    An implementation of DataAccess is not required to support all DataMap constants. For example, the OLAP-based Query object does not support DataMap.DATA_FORMATTED. To find out which DataMaps are supported for a particular implementation, you can call the DataDirector's getSupportedDataMap method.
    If you have an Crosstab instance, there is a way to get the formatted cell value, based upon the formatting rules associated with the Crosstab. Get the GridViewFormatManager reference from the Crosstab, and call its formatDataValue method to return a String representation of the formatted data value.
    Hope this helps,
    djb

  • Query to set initial values

    Hi all,
    Is it possible to use queries to set initial values or change existing values?  For example, we are adding in a new sales employee that will be our sales rep for customers in a certain area.  Would it be possible to run a query that would set the Sales Employee field in the BP Master Data as this new sales rep if the customer is in that area?  If yes, what is the general process for using queries to set values in this manner (we have other things we would like to use this for as well, if its possible)?
    Thanks for the help

    Hi Todd,
    The best way to tackle this is probably to use a query to extract the business partners you wish to update and then use the Data Transfer Workbench to update the Business Partners in question.
    You could also add a Formatted Search to the Business Partner screen so all new Business Partners default to the correct Sales Person based upon territory/address or whatever criteria you like.
    Cheers,
    Sean

  • Set initial value based on query

    Is it possible to set the initial value of a field based on a query. Kindly advice.
    Regards,
    Careen

    Hi,
    Yes. You can create a VO for your query and map that to the field on your page. Then execute the VO in PR method.
    Or if the field is not based on VO, you can execute your query in PR method using PreparedStatement. Then get the handle of the field and set its value to the value returned in resultSet of the query.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to specify an initial value for a sequence? (using DPL)

    I've been trying to come up with a piece of code that would initialize the sequences defined within the annotations in my persistent classes, with no success. According to the documentation I could find, I figured that the following method would work:
    public void initSequence(String sequenceName, String svalue) {
         SequenceConfig sequenceConfig = null;     
         try {
         sequenceConfig = m_store.getSequenceConfig(sequenceName);
         sequenceConfig.setInitialValue(Long.parseLong(svalue));
    m_store.setSequenceConfig(sequenceName, sequenceConfig);
         System.out.println("Successfully initialized sequence: " + sequenceName);
         } catch (IllegalStateException e) {
    // ignore; the sequence had already been opened
    } (where m_store is an EntityStore instance)
    Before this method gets called, all my primary and secondary indices get created as in:
    m_linkIndex = m_store.getPrimaryIndex(Integer.class, Class1.class);
    etc.
    And my classes look like the following:
    @Entity
    public class Class1 {
         @SecondaryKey(relate=MANY_TO_ONE)
         private String m_contentUrl;
         private String m_creatorId;
         @PrimaryKey(sequence="linkID")
         private int m_key;
    etc.
    Problem: when I execute the 'initSequence' method with proper parameters (e.g. 'linkID', '10000000'), it has no apparent effect on the values the sequence uses. In fact, the sequence starts at number 1 :-(.
    Could somebody explain what is that I am doing wrong? (assuming the software is not buggy). I am using version
    3.3.69. Thanks in advance!

    Sorry, you're right.
    Before this method gets called, all my primary and secondary indices get created as in:Perhaps the problem is that you're configuring the sequence after you open the index. The sequence (and database) configuration must occur before opening the index.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • Using Form to pass value to query parameters in the selct part of query

    I created a form in Access 2007 to pass 2 values to an Access query.  I am doing this to create delimited output (very large) with the parameters included in the selected data. The select works and is something like this:
    SELECT "^"+!FORM!EXPORT2DAT!PREF_VALUE+"_"+Replace(UCase([column_1])," ","_")+"^|" AS OUTPUT_column1, "^"+!FORM!EXPORT2DAT!COMPANY_VALUE+[COLUMN_3]+"
    ([COMPANY_VALUE])"+"^|" AS OUTPUT_column2,....................
    The form has text boxes for the values I want to pass PREF_VALUE and COMPANY_VALUE to the query parameters, and an execute button to open the query when clicked.
    However when I enter the values and click the execute button, I still get the parameter boxes for the 2 parameters. 1 for this: !FORM!EXPORT2DAT!PREF_VALUE, and FORM!EXPORT2DAT!COMPANY_VALUE. I thought I was filling in with the form text box values.
    Can I use the form's text boxes to pass values to concatenated using(+) columns in the select part of the query as I'm doing above?
    Thanks in advance for your response.

    I have never seen a select statement like that! 
    For query criteria I would use this --
       [FORMS]![EXPORT2DAT]![PREF_VALUE]
                   and              [FORMS]![EXPORT2DAT]![COMPANY_VALUE]
    Build a little, test a little

  • What is the use of initial value in a database table?

    Hi can anyone help me in knowing what is the use of initial value which is present besides primary key while creating a table?

    Initial Value:
    Indicator that NOT NULL is forced for this field
    Use
    Select this flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.
    Please note that fields in the database for which the this flag is not set can also be filled with initial values.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.
    Restrictions and notes:
    The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.
    If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.
    If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well.
    hope it helps,
    Saipriya

  • Use of initial values check box in tables

    Hi,
    what is of use of initial values check box(after the primary key check box)  in tables.
    Regards,
    Suresh

    The flag indicates whether field inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field. I.e. type n(2) is '00'.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.

  • Initial Value in Enter Query Mode

    Hi Everyone,
    If you ever need to set a "visual" default (or initial) value for an item in Enter-Query mode, here is one solution to accomplish this:
    Create a WHEN-NEW-ITEM-INSTANCE trigger at the block level where the item is located. Make sure it can fire in Enter-Query mode.
    WHEN-NEW-ITEM-INSTANCE
    If :system.mode = 'ENTER-QUERY' AND :system.cursor_item = <YourItemName> AND <YourItemName> IS NULL Then
        <YourItemName> := <TheInitialValue>;
    End If;You may wish to play with the "Keep Cursor Position" property of the item should you want the cursor to go back to the item position it was when the item was left.

    It seems that your solution described solves my problem expressed 2 months ago....
    I'll try it out....
    Thanks......
    Sim

  • Set initial value using SQL

    Hi,
    How do I set the 'initial value' property of a default value using an SQL statement?
    Any help appreciated,
    Rob

    Hi Kevin,
    you are right. It is sometimes confusing for the users, but it is - as you said - like setting the initial value, of course you can do some more complexity there.
    One big problem is. If you want to set the initial values in a detail record of a master-detail relatioship depending on the master-record, you CAN'T use it. If you change the master record to a record which doesn't have a detail, the WHEN-CREATE-RECORD trigger fires before the master-record really changes. That means, the detail will be initialized with data from the old master-record (the one you were in, before changing the master record). Stupid thing.
    I never tried the WHEN-DATABASE-RECORD trigger, I even don't know how it works. I think I have to check what it is doing.
    Regards,
    Torsten

  • Setting null values vs Default or initial values in the Database?

    i am working on a system and i have set any field that might optional as Allow Null,, but this is causing me a lot of troubles especially when i am querying the data or perfoming some calculations from the database. So is it valid if i changed all the Allow null field to have initial values an restricting null values to be inserted into them, so example, to set the initial values for an integer to be 0 and string to be empty?

    Hi,
    You can implement business logic on db side or on app side.
    Advantage and disadvantage of implementation business logic on DB side.
    Advantages:
    1.Don't require app server software version changes/compilations (Java, C, C++, C#...)
    2.Stored procedures are stored directly in the db.
    3.DBA can manage and optimize the stored procedures in flexible way; it'll be transparent for app server because the same remaining interface.
    4.Avoidance of network traffic - the stored procedures can run directly within DB engine.
    5.Encapsulation of business logic as API in the database.
    6.Reports can be implemented like PL/SQL functions that return table data type. The functions can be called from application side - sort of API.
    Disadvantages:
    1.DB vendor specific, but when dealing with the same databases (for example Oracle) it's not relevant.
    2.Require DB skills to write the procedures correctly: it will require time for a pure java/c/c++/c# programmer to understand the DB code and to write it in optimal (from db point of view) way.
    3.If it's too complex business logic - the db side implementation can become too complex.
    To overcome issue with null(s) please use NVL function.
    Example:
    drop table  TEST_TABLE;
    create table TEST_TABLE(parameter varchar2(20), val number(10, 2));
    insert into TEST_TABLE values ('A', 23.245);
    insert into TEST_TABLE values ('B', null);
    insert into TEST_TABLE values ('C', 123);
    insert into TEST_TABLE values ('D', null);
    select avg(nvl(val, 0)) from TEST_TABLE;Hope this will help.
    Best Regards,
    http://dba-star.blogspot.com/

  • The validity interval has the initial value as lower limit

    Hi Friends,
    When i was executing a query on Multiprovider,
    got an error like
    "The validity interval has the initial value as lower limit"
                 Actually The multiprovder has been built on two infocubes 0CFM_C10 & 0CFM_C11, in those 0CFM_C10 contains the non-cumulative values.
                Even i've checked the query also in query designere it is saying like the query is correct, in that query we are using Key Date...
    please help me onthis, awaiting for your answers
    thanks in advance

    Hi you can try using inial at the update rules

  • # instead of initial value in reports

    Hi,
    I'm trying to solve the following problem: When I create a report in Query Analyzer, in some columns, instead of the initial value(spaces) for some fields, there is the  # sign.
    Do you know from where does this issue come from? Is there an option inside the query analyzer to suppress this?
    Thanks in advance,
    George Ardeleanu

    Hi George,
    This is the default property of reports in BW. You see # instead of blank values in the data targets.
    Are you using WAD (Web Application Designer) in your scenario. If yes, there is a solution to remove these #es from the report output. You just need to add a small html script in the html tab of the WAD.
    Regards,
    Yogesh

Maybe you are looking for

  • I only have 16 gb iphone but 64 gb ipad - how can i use extra storage on icloud for all my music on itunes

    My Iphone 4 has only  16 GB storage (used 13,5 GB)  but my  ipad has 64 GB  -  I have bought ekstra 15 GB  storage on icloud but I can'nt seem to use it for all my downloaded/bought music . how can i use the extra storage on icloud for all my music o

  • Error -36 when trying to delete from external HD

    Hi there, As obviously many people before me, I've just experienced the Error Code -36 problem. I'm using an external WD 2tb USB hard drive, formatted to NTFS. It has always worked perfectly using Paragon NTFS (got 10.0.2 installed atm). Today I trie

  • HDMI audio is not working on my Satellite P50-A-14G

    Hello, my pc is a SATELLITE P50-A-14G, and I'm writing this because when I conect the HDMI to my pc, the audio doesn't work. I've tried almost everything, but it doesn't seem to recognize the HDMI as sound player. Image is good, but sounds keep playi

  • Customer Statement email determination

    I need to flag/identify from the customer master record if a cucstomer statement will be printed or emailed.  I have a customized print process based on F.27 program.  I will have a set of customers that have the SAPScript form printed via the spool

  • What formula, if any

    I have a column of numbers. They are target numbers for any given month. I would like to have a cell calculate the total of the column but dynamically based on todays date. So each time I open the document the total will be relevant to the day I open