Regarding query of infocube additive property

Hi,
We have a scenario in our reports., If OLTP retrives 35 records and at BW side(OLAP) has to show 35 records.,
my question is cube is additive porperty, if all characterstics are same means with different keyfigure value it adds the
information.
So how can we avoid summation and take the value into cube with different records as showing.
Can anyone please let me know on it as its high priority ticket at my project.
                                             Thank you.

Hi,
In your special case, you can do so by including a 'CHAR' in your cube( as Line Item Dimension) whose value should get incremented by 1 for each record updated! (use an ABAP routine for this)
Hence, in such a case you will have a unique key combination (based on DIM iD's) in your fact table and even for all entries being same for other fields, aggregation will not take place. You can see unique records!
-VA
Edited by: Vishwa  Anand on Sep 27, 2010 2:08 PM
Edited by: Vishwa  Anand on Sep 27, 2010 2:09 PM

Similar Messages

  • Error while copy query between infocubes

    I was trying to copy a query between infocubes and ended with error message.
    Query copied from Infocube A to Infocube B. Infocube B has an additional dimension with 2 char's when compared to infocube A.
    Using transaction RSZC, I tried to copy the query, but ended up with following error..
    1.Program error in class COPY_QRY_TO_CUBE method : UNCAUGHT_EXCEPTION
    2.An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
    3.The system tried to insert a data record, even though a data record with the same primary key already exists
    I also tried using function module RSZ_I_COPY_QRY_TO_CUBE, which was of no help. I get the following message with the function module...
    1. Program error in class RS_TESTFRAME_CALL method : UNCAUGHT_EXCEPTION
    2. An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
    3. The system tried to insert a data record, even though a data record with the same primary key already exists
    I have also tried a solution in BW expert by using debugging mode of the above function module, again this was of no help..
    I am BI 7.0 SP09...
    Any ideas, Please....
    Thanks,
    RR
    Message was edited by:
            Ray R

    Hello,
    Are you trying to copy Business Content delivered Queries?
    I had also got this error when copying over all queries from one cube to another. Reason for this message was plain simple - I did not realise that the sender Cube had Business Content Query which we cannot copy over using RSZC as system tries to create another query with suffix as 0****_1. We cannot create query in SAP user namespace. Error message is different then the reason behind it.
    Thanks
    Ravi

  • About Query Data Source Columns property

    Hello everyone,
    I'm new to Oracle Forms version 10.1.0.2.
    When I create a data block based on a table using Data Block Wizard, the block's Query Data Source Columns property is automatically populated with column definition entries corresponding to the columns of the base table.
    I tried making changes to these entries, for example by changing the data types to wrong data types or even deleting them, and I found that those changes had no effect on the block at all. The form was still working as I wanted.
    Please explain what is exactly the role of the block's Query Data Source Columns property.
    Thank you very much.
    p.s: The F1 key help says "The Query Data Source Columns property is valid only when the Query Data Source Type property is set to Table, Sub-query, or Procedure". So, please explain in each context of Query Data Source Type.

    p.s: The F1 key help says "The Query Data Source Columns property is valid only when the Query Data Source Type property is set to Table, Sub-query, or Procedure". So, please explain in each context of Query Data Source Type.
    IMHO those properties are very self-explaining: It is the data source of the block, or in other terms: how it is populated.
    Table means the data block is based on a table and subsequently will be populated by
    select col1, col2, col3 from your_table
    With sub-query the block will be populated with your subquery; forms will issue
    select col1, col2, col3 from (
      -- this is your subquery
      select col1, col2, col3 from tab1, tab2 where [....]
    With Procedure in short you'd have a stored procedure which returns a ref cursor and the block will be populated by the ref cursor.
    As for your question about the name: this actually should matter; the default is NULL which means that there needs to be a column which has the exact name as the item so in the above sample with table the item associated with your_table.col1 should be named col1. If it isn't the property should be named like the column. If this property also doesn't reflect the name this shouldn't work IMO.
    cheers

  • Regarding Query/Where box in oracle forms

    Hi,
    I have a query regarding query/where box in oracle.
    When I enter ":" in one of the field query box pops up and when I enter some query and press F12 to execute query.
    The OK button has to be pressed twice to retrieve the result.
    Can anyone please let me know why this is happening, instead of retreiving results at one go by pressing OK once.
    When does query box pos up? I have to avoid hitting OK button on query box twice.
    Thanks for your advice in advance.
    Thanks,
    KLC
    Edited by: user5411765 on Nov 22, 2010 10:44 PM

    Hi,
    Were you able to get around this problem? I am facing the same and need help! :(
    Regards,
    Arun

  • Setting Query Data Source Arguments Property for Block with TYPE Procedure

    Hi,
    I have a block whose type is 'Procedure', this returns a PL/SQL table.
    I pass an IN OUT variable declared in the Package header and all works well.
    What I need to know is how, if I have ANOTHER argument, how do I set it programatically prior to EXECUTE_QUERY.
    I can see how to set the Name and Value manually at the "Query Data Source Arguments" property but if I need to set it dynamically in the code how would I do it.

    Thanks,
    Worked it out.
    Set the VALUE to the name of a Global variable and populated the variable before executing the procedure.
    Thanks

  • How to use 'query data source Name '  property in a block

    I want to create a block using query and want to show the columns on a form.
    Could you please tell me how can I do this?
    Regards

    Hi!
    Create a new block manually.
    Set the Query Data Source Type Property to FROM clause query.
    In the Query Data Source Name Property write your query like you would
    write it in sql*plus or toad but without a order by clause.
    Set the DML Data Target Type Property to None.
    Create items for the columns in your query.
    May set the where clause and order by property of the block.
    Build the form and execute a query in your new block.
    Regards

  • Need a query based on the property value of the other itemDescriptor

    Hi,
    I have following structed repository(both items in repository)  with itemDesc1 and itemDesc2. Now i have the value  of prop2 (of itemDesc2 ) . Using this i want to write query (using QueryBuilder) to get the value for one of  the property of itemDesc1.
    <item-descriptor name="itemDesc1" >
          <table name="xx" type="auxiliary"  id-column-name="id" >
             <property name="prop" column-name=xx" item-type="itemDesc2" />       
         </table>
    </item-descriptor>
    <item-descriptor name="itemDesc2"   >
                 <table name=yy" type="primary"  id-column-name="id">
             <property name="prop1" column-name="xx" item-type="itemDesc2" />
              <property name="prop2" column-name="xx" item-type="itemDesc2" />
               <property name="prop3" column-name="xx" item-type="itemDesc2" />
         </table>
    </item-descriptor>
    Thanks in advance

    Jack,
    Simplest solution is probably a lookup table containing a list of positions and the salary level associated with each position:
    The formula that retrieves the salaries from the rate table is shown above the Main table (left). Rate Table, to the right, contains the list of positions and the salary associated with each position.
    Regards,
    Barry

  • Regarding Query and Logical database

    Hi All,
      I have one requirement to create a report which gives all selection fields of a query.I got the selection fields defined in the query,but some extra selection fields are coming from logical database,which query uses.These extra fields count is different for different queries using same logical data base.Please suggest me a solution.
    Regards
    Shibin

    Hi Jogeswara,
    Thanks for your inputs.
    But my question is, how can I filter the data which is being fetched by standard logical database. I cannot go inside the std. LDB and change internal tables of it. I tried coding in extras, but I think it works only if we want to add additional fields in output.
    At present, we are considering the option of creating a z LDB where we copy. std. LDB and also add the reqd. table which is not present in LDB.
    Is there any other option?
    Please provide your valuable inputs.
    Regards,
    Imran Kundan.

  • Regarding Query Information

    Hi Friends,
    Pls can any one tell me , where information about all queries will be stored in bi server?
    I had found some tables which will store the query information.
    RSRREPDIR - Directory of all reports
    RSZCOMPDIR - Directory of Reporting Components
    RSZELTDIR-Directory of the Reporting Component Elements
    Apart from above tables can we get data about queries anywhere else.
    Thanks & Regards,
    Ramnaresh .P

    Dear Ramnaresh,
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    RSZRANGE Selection specification for an element
    RSZSELECT Selection properties of an element
    RSZELTDIR Directory of the reporting component elements
    RSZCOMPIC Assignment reuseable component <-> InfoCube
    RSZELTPRIO Priorities with element collisions
    RSZELTPROP Element properties (settings)
    RSZELTATTR Attribute selection per dimension element
    RSZCALC Definition of a formula element
    RSZCEL Query Designer: Directory of Cells
    RSZGLOBV Global Variables in Reporting
    Hope this helps..
    Best Regards,
    VVenkat..

  • Problem with query 0SD_C03_Q009 / Infocube OSD_C003

    Hello,
    I am new to BI and have a question because I implemented the Internal Sales Rep business package in the portal which includes an iView with BI query 0SD_C03_Q009.  This is for NW2004s IDES installation.
    All of the business content, extractors, etc., have been activated and data has been extracted to BI.  However, when the query runs, all the values (i.e. Incoming order value, Billing value, etc.) are zero.  However, if go into the BI Administrators Workbench (RSA1) and right-click on the InfoCube (0SD_C03) and use the display data function, I can see the correct records in the cube with values in the 0NET_VAL_S field.  However, there appears to be two "types" of records -- some with the values populated and others without.  I believe these represent data extracted from 2LIS_11_VAITM and 2LIS_11_VAHDR respectively.  Also, when checking the update rules, I can see that only "No. of docs" is active for 2LIS_11_VAHDR whereas all the other fields, including 0NET_VAL_S is active for 2LIS_11_VAITM.
    For some reason, it appears that the query is only pulling in the "header" records that do not have 0NET_VAL_S populated which is why my results have zero values.
    Can someone explain why the query appears to only be pulling in the "header" records?  Or is there something wrong in my update rules and I should really have more fields active than just the "No. of docs"?  Did I go wrong somewhere in the process of activating the business content, update rules, extractors, etc?

    Sorry that was for another query.
    i referred to
    http://help.sap.com/saphelp_nw70/helpdata/en/b6/287b372018e84ee10000009b38f889/frameset.htm
    But there is not restriction on the query... so if there is data it should come..
    see if any of other query in the given list works....
    http://help.sap.com/saphelp_nw70/helpdata/en/09/a7b339688d2453e10000000a114084/content.htm
    Regards
    Raj
    Edited by: Rajesh J Salecha on Sep 9, 2009 4:21 PM

  • Regarding query builder api

    Hi,
       i am able to create image reference but not able to create image path from dam i am putting like this
       map.put("type", "dam:Asset"); is this correct or is there any other way to getpath of image from dam .please let me know
    code------------
    Map<String, String> map = new HashMap<String, String>();
            map.put("path", "/content/dam");
            map.put("type", "dam:Asset");
            map.put("group.p.or", "true"); // combine this group with OR
            map.put("group.1_fulltext", fulltextSearchTerm);
            map.put("group.1_fulltext.relPath", "jcr:content");
            map.put("group.2_fulltext", fulltextSearchTerm);
            map.put("group.2_fulltext.relPath", "jcr:content/@cq:tags");
           log.info("======mapout======"+map);
            Query query = builder.createQuery(PredicateGroup.create(map),session);
            log.info("======query======"+query);
            SearchResult result = query.getResult();
             // log.info("======result======"+result);
                   // iterating over the results
            for (Hit hit : result.getHits()) {
                String path = hit.getPath();
              // ValueMap props = hit.getProperties();
               response.getWriter().write(path);
               //response.getWriter().write(props);
                 log.info("======result======"+result);

    Regarding this:
    map.put("group.2_fulltext.relPath", "jcr:content/@cq:tags");
    Note that it's "jcr:content/metadata/@cq:tags" for assets, and note that full text searching the cq:tags property is not a good idea, since these are IDs, not the tag titles that you see in the UI and when the titles change or a tag is moved/merged, the IDs are not changed. You want to first search in the tags tree to find matching tags and then search for them, using the tagid predicate.

  • Query regarding query

    Hi All,
    I am developing infoset in query using sq02.
    There i have added one additional field 'gross value' and table as vbak.This gross value is nothing but the total of total value of each material in each line item of sales order after adding taxes.
    I need total amount by adding of all these total values of all line items.
    Can you please tell me how can i achieve this.
    Regards,
    Ashutosh

    ashutosh,
      In Event " Record processing "
    Write the below logic.
      Clear  : grossvalue,
                  v_total.
    Add all line items
    AT END OF  sales order.
        Move  v_toal   to gross value.
    I think you might have  created grossvalue in "extras " tab.
    Don't forget to reward if useful...

  • How to query a infocube?

    Hi All,
    I have a infocube and want to make a self-created UI to let user do queries on that cube, as far as I know if I build UI with Bex tools the operation like drill up/drill down or aggregation is automatically done by OLAP server. so my question is how to realize it by my self? should I write SQL to query infocube and send the result back to UI for display? or can I use some ABAP/java API to do the query?
    thanks for your reply!
    regards,
    Bin

    Hi,
    you can goto LISTCUBE and mark the option "display SQL statement" will show the SQL.
    for a whole self made interface, try to find your hapiness in function modules BAPIs like BAPIREP in se37.
    Other options to extract data are transaction RSCRM_BAPI or function module RSDRI_INFOPROV_READ (or with remote: RSDRI_INFOPROV_READ_RFC)
    hope this helps...
    Olivier.

  • Suggestion regarding query

    Hi,
    I have a requirement to select two columns from 6 million rows which is one database, and go through the result set, take the one of the column value as the criteria and select another column from 10000 rows table.
    I have used two methods to work. Both are working but they are very slow.
    I am using jdbc for this.
    First method:
    Following is the pseudo code for the same
    --Select all rows from the table 1
    while (rs.next())
    String column1= rs.getString(1);
    String Query 2= "Select column2 from table 2 where my_field=column1";
    --prepare the statement1 using query2
    -- execute the statement1 and copy in to rs1
    -- while (rs1.next())
    do something
    Second method:
    In this one instead of querying the database for each row in the first resutl set, used a stored procedure which returns a ref cursor taking the array as the input string.
    create or replace type mylist as table of varchar2(20);
    create or replace type outlist as table of BLOB;
    create or replace package my_pkg
    as
    type rc is ref cursor;
    procedure p(myval_list in mylist, outcur OUT rc);
    end;
    create or replace package body my_pkg
    as
    PROCEDURE get_phonetype(myval_list IN imeilist,orefcur OUT rc )
    AS
    l_data outlist := outlist();
    tmp_profile BLOB;
    BEGIN
    --DBMS_OUTPUT.put_line(myval_list.COUNT);
    FOR i IN myval_list.FIRST .. myval_list.LAST
    LOOP
    BEGIN
    SELECT column1 INTO tmp_profile FROM table1 WHERE
    column2 IN (SELECT column2
    FROM table2
    WHERE (column3< myval_list(i) AND column4 > myval_list(i)));
    --DBMS_OUTPUT.put_line(tmp_phone);
    l_data.extend;
    l_data(i) := tmp_profile;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    END LOOP;
    open outcur for
    select * from TABLE( cast (l_data as outlist));
    END;
    END;
    in the java program:
    --Select all rows from the table 1
    while (rs.next())
    --loop few times to populate the column1 string arrays
    OracleCallableStatement stmt1=(OracleCallableStatement)conn.prepareCall("{call p(?,?)}");
    -- register the out parameter as ORACLETYPES.CURSOR
    --prepare the array descriptor for the array, set the array using column1 values
    -- set the first argument as array
    -- retrieve the result set
    --do something with the result set
    } //end of while
    I thought using the stored procedure would make my process faster, but the second approach deteriated the execution time.
    I could not understand where I did the mistake. FOr the 200000 rows for the first table, first approach executed in 10 minutes and the second was taking more than hours.
    Can some one help me in fine tuning the stored procedure or suggest an alternative best method.
    Regards,
    Syam

    Syam,
    Not knowing your table data or the whole of the queries you're making, this may not be feasible. But could you write this as either a single (albeit complex) query, or perhaps a PL/SQL block that uses a temp table or two, but still does all of the processing in Oracle as queries, not loops?
    From the examples you gave, it looks like putting it into one query would just involve a few table joins. But they look like you abbreviated some more complex processing...

  • Regarding Query Performance.

    Please tell me ..
    How can i check the performance of query using index and without using index?

    Hi,
    As deepak said, query with and without index.
    to get the cost and access path of the query get explain for the query. Read the Oracle docs
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm]
    It is common to all the version from 9i as far as I know.
    do
    SQL> set autotrace on
    SQL> run your query
    you will get the explain plan and cost information in the sql prompt if the statistis_level is set to typical or all
    Regards,
    Vijayaraghavan K
    Edited by: Vijayaraghavan Krishnan on Jan 18, 2010 4:24 PM

Maybe you are looking for