Filtering data to be shown at query level

I am still on BW 3.0. I am developing queries for a cube. Is there a way to restrict characteristics (rows shown for a characteristics) by looking at a master data?  For example,
my characteristics are showing orders, but I have a table which contains orders to be excluded. I do not want to show those orders in queries.
It is difficult for me to implement filtering logic in ods, cubes while loading data because of various incremental loads. I want to do it at query time. If yes, can one point to me any documents. I will be willing to write whatever ABAP code is needed.
Thanks a lot.

Hi zigzagdna,
You can create a variable of type "customer exit" in the query designer and write the abap code in the customer exit for variables, reading the values of the orders that need to be excluded from the table and excluding them.
Check this link for more information about customer exit variables: http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
Hope this helps.
Regards,
Diego

Similar Messages

  • Date to Month Conversion at Query Level.

    Hi,
    I have Net due date in the Info provider.
    At query level i have to create a restricted keyfigure based on Net Due Month.
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    Thanks and Regards,
    MuraliManohar.

    Hi,
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    you can calculate , but as he said you can add in cube ,  may be for cal month you are taking som eother date field.
    in this case write one customer exist code .
    create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
    in routine wriet the code as when that varaible .
    l_s_range - high , low and give then take the month form that date
    like netdue date +0(6)-- gives month and year
          netdue date +0(2)-- gives month
    then rtestrict that variable with your keyfigure.
    Thanks & Regards,
    sathish

  • All master data values not shown in query selections

    Hi
    I have created a query on a BasisCube containing the InfoObject 0FUNC_AREA. I loaded data to 0FUNC_AREA and the cube.
    I then created a query on the cube, in which I want to filter on 0FUNC_AREA. However, when I get the list of available values for 0FUNC_AREA not all the values in the master data is shown. It only shows 25 values out of 105.
    As a default, the data shown is only the cube data, so I removed the tick in the checkbox: Show only InfoCube data. Still the same.
    Then I went to the InfoObject and set the 'Query Def. Filter Value Selection' and 'Query Execution Filter Val. Selectn' equal to 'Values in Master Data'. Still the same.
    Then I deleted the contents of the InfoCube. It still shows the original 25 values.
    The really strange thing is, that when I go into the selection screen for 0FUNC_AREA in the BEx and limit the shown values to one of the values available in the master data but not shown in the list, it shows the text of the functional area in the limit summary window. But still when executing the limitation, it cannot find the value!!!
    The problem is the same in LISTCUBE
    I hope some of you can help we with this.
    Thanks
    /Karsten

    Hi Hari
    1) Reactivated the master data, said it was already active.
    2) Could see a difference between the data contained in cube and the remaining data. Otherwise not.
    I deleted cube and master data and reloaded, the problem still persists. I am beginning to suspect a bug in BW.
    I have to determine whether I am going to live with it (as it isn't critical, just a nuisance) or create an OSS on it.
    Thanks for all the input guys.
    /Karsten

  • Date format conversion in BEX query level

    Hi ,
          We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013.
    we are not having any conversion routines and the date fields are used directly in the query .

    Hi,
    Try the below class file or may be create a method in your controller. It will resolve your problem.
    package com.XXX.DateFormatForSAP;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class FormatSAPDate {
    public static String changeDateFormat(Date sapDate) {
    String formattedDate = null;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    formattedDate = dateFormat.format(sapDate);
    return formattedDate;
    Try this code and let me know.
    Regards
    Mukesh

  • Data at Query level

    Good Afternoon everyone,
    data is loaded correctly in my infocube thru flat file.but wen i create query on this provider n drill down on one of the object i see different data then cube(field is 'assigned to' which actually store the person's name who the ticket is assigned to but in query it is showing some data which look as some date in single quotes.ex- '20080101').wat can be possible reson for this?
    Regards,
    Deepika

    Hi,
    You are trying to see a assignne name but u are getting a date.
    Thats only possible if the mappings are wrong(identifications) in multicube or u are giving different restrictions at the cube level and at the query level.
    The cube is defenately going to contain the values shown in the report for that infoobject.
    Again go through the restrictions and filters in the query.
    Query will show whatever is in the cube based on the restrictions.
    It will not do the conversions as u have said in your case.
    If it is a multicube check for the identifications again in the multicube for this charactritics.
    It is possible that update rules are correct but the identification in the multicube is incorrect and assignne is mapped to some date.
    Thanks
    Ajeet

  • Insert Chinese data in Oracle but cannot be shown when querying

    I use:
    JDK 1.1.8, Oracle 8i, thin driver.
    The OS is HP Unix.
    I successfully insert the Chinese Big5 encoding data into Oracle. But I can't show the Chinese again when I querying.
    Here's my code:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection
    ("jdbc:oracle:thin:@hpdev.wisers.com:1521
    :research", "corp", "corp");
    stmt = con.createStatement();
    String sqlString = new String("insert into filetable values(1,"
    + var1 + "," + var2 + "...)");
    stmt.executeQuery(sqlString);
    Then I show the result by "select * from filetable;". However, the Chinese Big5 encoding data cannot be shown, "+??.." is shown instead. There is no problem when the data is in English.
    I have tried
    byte[] sqlStringBytes = sqlString.getBytes("Big5");
    String newsql = new String(sqlStringBytes,"Big5");
    stmt.executeQuery(newsql);
    but still not successful.
    My NLS_LANG is
    AMERICAN_AMERICA.ZHT16BIG5
    How can I make use of this variable? How can I solve the problem?
    I am very in hurry. The program deadline is coming!! Help please!!
    null

    Your code looks fine ?
    What's your db character set ?
    I successfully insert the Chinese Big5 encoding data into Oracle.How do you know this ? Did you verify with SQL*Plus to see whether the data can be retrieved ?
    What are var1 and var2 ?

  • How to find the date difference in query level?

    Hi All,
      I have to find the difference between Delivery Date and Posting Date in the query level. Canyou please let me know whether it is possible or not?
    Thanks in advance!!
    Regards,
    Ramanathan.R

    Hello,
    If both infoobjects are key figures , then you can do the calculations. Create new formula and do the calculations.
    If infoobjects are characteristics, then also you can perform the calculations but you can do this by creating a formula variable using replacement path.
    Thanks,
    Praveen Tati

  • Conflict between Date values at Infocube & Query Level

    Hi Folks,
    I am stuckup with a strange situation and it is:
    The value of date fields are coming correctly at infoprovider level and when i call the same infoprovider at query level the values are totally different.
    Any suggestions in this regard.
    Thanks

    Hi,
    Are you using the same user for running the query and for checking data in InfoProvider, otherwise there might be personal settings difference.
    Execute your query in RSRT and check the output.
    Regards,
    Durgesh.

  • WEB BEx Analyzer Comments on Query level

    I would like to enable BW users to create comments for some queries an enable other user to read them. System BW 7.01.
    Issues and questions:
    -how to create comment on query level - it's always on data (KYF), Metadata or Master data level
    -I would like to show the document icon - next to the query title (it's relevant for the query)
    -when I create Comments (with the button in the standard template), it's on the data level (combination of KYF) - and when I
    switch to icon display (settings) I get icons in every line. If this would be just at KYF header??
    -where can I edit, delete, ... recorded comments
    Thanks, Tom

    Hi Tom,
    1) If you want to create comments on query level, you need to create metadata documents, object type 'ELEM', object name is the technical name of the query.
    2) Document icons are always shown in the data table. Thus it will be hard to show a document icon for a document on query level. If you are using web templates, you can insert a single document item on metadata documents to display the comment on the query.
    3) Where the document is displayed depends on the document properties. If a characteristic is document property depends on the infoobject setting -> transaction RSD1 -> enter the characteristic -> tab 'general'.
    To see the document properties you can execute the query for example in RSRT (html mode) -> create a new document on any cell. On the bottom you will see the document assignment. Compare this assignment with the cell next to it. If its the same the document will be displayed in both cells. The same can be done for example in java web -> create a new document and switch to the second tab ('BI').
    4) Documents can be edited and deleted in the document browser itself, when you open the document in the executed query or in transaction RSA1 -> documents.
    Best regards,
    Janine

  • Heirarchy Selection at query level

    Hi all
    I have 3 heireachy in Dev,let's say H1,H2,H3
    Where as in QA i have heirarchy's like H1,H2,H3,H4.
    If i want to execute the report on H4 in QA,do i need to keep this heirarhy name in DEV query and then i need run in QA?
    Is it possible to select the heirarchys dynamically..like out of N number of heirachys in run time can i select any one heirarchy out of all???
    Regards
    Srini

    Hi Lavany
    So you mean to say i need to have the same heirachy in dev systems also in r3 side..then only H4 i can able to load in BI side and i can keep that at query level.?
    NOrmally for master data..we are giving in filters as direct input even if that is not exisitng in dev.
    example we have order type z1 z2 in dev   prod z1 z2 z3
    while craeting the query in dev we in query deisnger we are kepping filter is z3 and we are trasnpoting the same to production..so in that case it will work fine...can't we make like that for Heirarchys?

  • Text data is not displaying at Report level for an Infoobject Item name

    Hi All,
    Texts data is maintained at Info object level but text information is not displaying at Report level for an object.  I have set the property at query level as "Text", but at report level it is displaying key values of the object, not displaying texts information.  This problem occured in QA(Quality) system but not replicated in Production system.  I have checked all properties at backend and query level and compared the same between QA and Production system didn't find any difference.
    Please suggest what might be the cause: at report level it is displaying key values instead of the textual information even text data is mainintained at backend.  In production it is displaying textal data for the IO.
    Thanks in advance.

    Hi All,
    Thanks for your valuable information.  I have changed the setting under Advanced tab as "Master data" for Access type for results values, but didn't solved the problem still it showing key information for the IO.
    In Production system the report displaying texts information for the IO, but in QA its displaying key information. The problem exits only in QA, its working fine in DEv and Production.
    As per my understanding might be the issue with Patches will be checking with Basis team on the same.
    Please suggest if you have any alternatives to fix the issue.

  • Obiee 11g : Best practice for filtering data allowed to user

    Hi gurus,
    I have a table of the allowed areas for each user.
    I want to show only the data facts associated with these allowed areas.
    For instance my user scott can see France and Italy data.
    I made a variable session. I put this session variable in a filter.
    It works ok but only one value (the first one i think) is taken in account (for instance, with my solution scott will see only france data).
    I need all the possible values.
    I tried with the row wise parameter of the variable session. But it doesn't work (error obiee).
    I've read things on internet about using stragg or valuelistof but neither worked.
    What would be the best practice to achieve this goal of filtering data with conditions by user stored in database ?
    Thanks in advance, Emmanuel

    Check this link
    http://oraclebizint.wordpress.com/2008/06/30/oracle-bi-ee-1013332-row-level-security-and-row-wise-intialized-session-variables/

  • Query level filter not working in Webi report

    Hi All,
    I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
    Can anyone suggest me why problem is coming?
    Regards,

    Hi,
    Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
    1. Select the universe in the list of universes to open the Query Panel.
    2. Drag the Year object to the Result Objects pane.
    3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
    4. Click Combined Query.
    The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
    5. Click on the second query and remove the Year and Number of Guests objects.
    6. Drag the Reservation Year object to the Result Objects pane.
    7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
    8. Click Run Query.
    Best Regards
    Naveen

  • Infoset resulting multiple results at query level

    Hi,
    I have joined 1 DSO and 1 Infocube in Infoset.. Mapped Plant, Material and Batch
    DSO
    Plant     Material      Batch      Caldate         Qty
    P1          M1          B101          01/02/2014     1000
    P2          M2          B102          05/02/2014     2000
    Infocube
    Plant          Material         Batch     Caldate               %
    P1               M1               B101          02/02/2014          20
    P1               M1               B101          05/01/2014          20
    P2               M2               B102          07/02/2014           15
    I'm considering date only on DSO and ignoring Infocube date. When I execute the report for the month of February, report output is as follows.
    Plant   Material     Batch     DSODate         Qty           %
    P1          M1               B101     01/02/2014          1000          40 (Summing up with January Date)
    P2          M2               B102     05/02/2014          2000          15
    I want data % value to be 20%.
    Is there any possibility to change at query level or join level.
    If we have one line item, data is correct but not the case with multiple line items.
    Kindly do the needful!
    Thanks
    SS

    Hi,
    When you join the two infoproviders in the infoset ignoring infocube date, you are creating as many records for each record in DSO. That means for the first record the infoset creates :
    Plant     Material      Batch      Caldate         Qty     %
    P1          M1          B101          01/02/2014     1000  20   (for first row in infocube)
    P1          M1          B101          01/02/2014     1000   20  (for second row in infocube)
    I also think same as Anshu, you have all the common characteristics, you can as well use a multiprovider.
    regards
    Yasemin...

  • Incorrect data for proportional factor in query based on Planning Book

    hi,
    We have upgraded from APO 3.1 to SCM 5.0.
    Post upgrade, the proportional factor is being displayed incorrectly in the BEX query based on the Planning Book data if we run the query for multiple months.
    for eg,
    if, in the planning book, the proportional factor for months 10.2009 and 11.2009 are as follows :
    Brand  >> Month >> Proportional Factor
    B1 >> 10.2009 >> 70%
    B2 >> 10.2009 >> 30%
    B1 >> 11.2009 >> 80%
    B2 >> 11.2009 >> 20%
    When we execute the query for the above brands for months 10.2009 and 11.2009,
    then, at the total level, the % displayed is 100% and the data at brand level is halved.
    We do not have any exits or formulae operating at the key figure level in the query and hence are unable to figure out why this is happenning...
    Any clue on this ?
    regards,
    Anirudha

    Resolved.

Maybe you are looking for

  • Cannot Interact with Microsoft Word 2008 for Mac after Opening

    After I open Microsoft Word 2008 for Mac, either by opening a .docx file or opening Word from the Applications folder, I am not able to interact with the application whatsoever.  Selecting its icon in the dock does not bring any of its windows to the

  • SAP HR to LDAP Server Integration

    Dear Experts, We are trying to integrate HR data from SAP ECC to an LDAP server using the built in LDAP connector settings in ECC. It is working well with the exception that the KEY field from HR is being populated into one of the spare fields on Act

  • Charged for an In-App Purchase that did not upload to my iPad

    Last night I tried to download a Skyland Lost Islands In-App Purchase for my son - the first time through it did not work.  It took me to the iTunes Store and I entered my password and confirmed my credit card details.  It then opened the iTunes stor

  • Illustrator crash file

    Hi - I remember back in the day...a long time ago, illustrator created a file (some obscure illustrator name) that you would be able to access when illustrator crashed (with some hunting). You could usually find it in the trash or on your desktop som

  • IPod touch restore error 1604

    My iPod touch has been working well for some weeks. When I tried to connect it to my PowerBook yesterday it downloaded a new version of iTunes. Since then it is in restore mode and has an "unknown error 1604". This continues after re-installing iTune