Multiprovider query logic!

Hi,
we have a sales cube as well as delivery cube! We want to have a single report having the information of both the cubes!
so i had created Multicube and upon it, designed a query!
Even then i am not getting the info of both cubes!
My question is: whether Multicube is a data provider of the union of the cubes it involves in it definition or is a intersection of the data of  the cubes that were in the definition?
Pls clarify me
Thanks,
Ravi

check the difference between infoset and multi - to better understand the union and join
http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm

Similar Messages

  • Issue in multiprovider/query data

    Hi all,
    I'm seeing an issue with my data in multiprovider/query which I cannot understand.
    I have a multiprovider with a cube. I'm able to see data in the cube with a certain restriction but when I put the same restriction in the multiprovider I'm not able to see the data. I have a query with the same restriction as well and there too the results are not showing.
    I have checked the assignment in the multiprovider and it is correctly assigned i.e. from the cube from where I want the data.
    When I tried to display data in the multiprovider without any key figures selected then the data shows up correctly. Why is this happening and what can I do to fix this?
    Thanks

    Hi,
    First check report data by using  0infoprov iobj in multi provider  and restrict with cube  . check either you are getting same data or not as cube including kfg's.
    able to see data in the cube with a certain restriction : what type of restriction's applied if possible give detail.
    Thanks.

  • Assistance in writing Query / Query Logic.

    I have a peculiar requirement to fetch data.
    Table Structure ( Sample ... although real table has more fields)
    Order ( orderid varchar2(30), custid varchar2(30), status varchar2(1), createdon datetime )
    Sample Data:
    OrderID CustID AccID Status createdon
    123 111 Y 20-Jan-2012 01:29:22
    124 111 100 Y 22-Jan-2012 01:23:02
    125 111 100 N 23-Jan-2012 02:34:24
    126 111 100 N 28-Jan-2012 04:23:22
    127 111 100 N 29-Jan-2012 07:32:26
    123Cancel 111 100 N 31-Jan-2012 03:27:29
    I want to write 2 Queries.
    a. input is OrderId, Need to find out how many order's present with status = 'N' after that orderid provided.
    b. input is OrderId, Need to find out what is the previous order with status = 'Y'
    Note: There can be 100's of orders and Status would be Y on first come first serve basis... if one does not have status = 'Y' ie it is 'N' the following order's will never turn to final status = 'Y'.
    There are millions of records in the table.
    Your help for writing this query / logic would be highly appreciated. Am intending to do thru single query.
    Best Regards
    MH Doshi

    select count(*) from order
    where createdon >( select created from order where order_id = &order_id);
    and status = 'N';
    select * from (select a.*, rownum rn from (select order_id from order
    where status = 'Y'
    and createdon<(seelect createdon from order where order_id = &order_id)
    order by createdon)) where rn=1

  • Problem in Query Logic

    Hello,
    m having a query logic problem..
    i am getting 2 id's ... from which i want to select that particular id which has a maximum date.... this i wanted to search in another table ...
    any idea ,...??

    Aijaz Mallick wrote:
    Hello,
    m having a query logic problem..
    i am getting 2 id's ... from which i want to select that particular id which has a maximum date.... this i wanted to search in another table ...
    any idea ,...??Do you mean something like this?
    SQL> ed
    Wrote file afiedt.buf
      1  with table1 as (select 1 as id, to_date('03/04/2010','DD/MM/YYYY') as start_date from dual union all
      2                  select 2, to_date('05/04/2010','DD/MM/YYYY') from dual union all
      3                  select 3, to_date('04/04/2010','DD/MM/YYYY') from dual)
      4      ,table2 as (select 1 as id, 'Fred' as emp_name from dual union all
      5                  select 2, 'Bob' from dual union all
      6                  select 3, 'Jim' from dual)
      7  --
      8  -- END OF EXAMPLE DATA
      9  --
    10  select emp_name
    11  from   table2
    12  where  id = (select id
    13               from (select id, row_number() over (order by start_date desc) as rn
    14                     from   table1
    15                    )
    16               where rn = 1
    17*             )
    SQL> /
    EMP_
    Bob
    SQL>

  • MDX Query Failed to execute when universe created on MultiProvider Query

    Hi All,
    I am running the WebI report created on the universe which is built on Query.
    The data flow model in our system for this query is:
    Data Store Object> Infoset-> multiProvider--->Query.
    When I drag only on Dimension object in the Webi Report without any Prompts the report works fine.
    But when I add any other Dimension or any Prompt in the WebI Query it gives me following error:
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[4EGM09GXGU939C3RJH2G9DOQY] }  ON COLUMNS , NON EMPTY CROSSJOIN( [Z_WM_IS01___F1].[LEVEL01].MEMBERS, [Z_WM_IS01___F12].[LEVEL01].MEMBERS ) DIMENSION PROPERTIES [Z_WM_IS01___F12].[2Z_WM_IS01___F12], [Z_WM_IS01___F1].[2Z_WM_IS01___F1] ON ROWS FROM [ZWM_M02/Z_ZWM_M02_Q001]  failed to execute with the error Unknown error. (WIS 10901)
    But if i create the Universe on Query which is built on DSO then WebI is working fine.
    Is there any restrictions on using Query on multiprovider?
    Or do I have to make any configuration at BO server?
    How do I configure logging for WebI and Designer to check the Log records?
    Do I have to change anything related to any MDX Parser in BO Server?
    We are using folowing versions:
    SAP BI 7.0 and BOXIR3.1
    Request to pls help me to solve this problem.

    Thanks Ravi for ur inputs.
    The report is working fine now.
    There was the problem with the Mandatory prompts defined in SAP BI  Query on which universe was developed.
    U should have only those Prompts as mandatory in SAp BI Query which are Universe level prompt, if some mandatory prompts defined as Class level promts in universe then the MDX Query generated based on WEBI report will not Execute.

  • Multiprovider Query Problem

    Hi Gurus,
    The scenario is that there are 2 inficubes, one with order data and other with delivery data. The cube with order data has the requested delivery date and the delivery cube has the actual delivery date. The problem is that I have a query on a multiprovider (on top of the 2 cubes). So when I output the query data by the sales order number, the result is fine, but when I drill down on any of the dates mentioned above ( they are free characteristics in the query), the result splits up into 2 records. For Eg.
    Sales Order     Req Del Date  Act Del Date  Order Qty  Shipped Qty
    12345               03/03/08         -                    5                 -
                                   -           06/03/08            -                5
    What can I do to get the result in one row?
    I will reward points for any help.
    Thanks

    This is the behavior of the multiprovider, since the actual goods issue date is not part of the orders cube, then it will create a second record. There are a couple solutions you could get around to this:
    1. You could merge the data in one DSO before you actually load it to the data target. To do this, you could update fields you need to the orders ods from the delivery ods.
    2. You could create an infoset between the two cubes if you are in 7.0, otherwise, you could create infoset using the underlying ods and create a query from the infoset: performance wise this is not recommended.
    3. If you want to solve the issue report level, there is what is called constant selection and you can make the actual goods issue date as a constant selection and you can get one line.
    /people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection
    I would recommend the last option,
    thanks.
    Wond

  • SAP QUERY -logical data base ADA

    I have created a SAP Query with logical data base ADA,I have selected four tables in it.Do i need to link these tables if yes..where and how?The report is for fields in asset master data.
    .But i get below error when i try to genaret the output :
    Fields from parallel tables within a line
    Line: 01
    Field: Asset description
    (ANLT-TXT50, table ANLT)
    Field: License plate no. of vehichle
    (ANLZ-KFZKZ, table ANLZ)
    i get such similar five messages but they are warning..when i execute with warning however i get the fields with description but not with Value.Ex:i get asset description and not Asset number as required.

    You don't have to link them, they ar linked that is the power of a logical data base
    To get the text in your report you need the key fields
    Like
    (Lanque Key)
    company code
    asset number
    Asset sub number
    Go to info sets and look to the standard ones like /SAPQUERY/AM01

  • Infoset query logical database and transparent table

    Hi!
    We have an infoset with the data source logical database=PNP.
    We get some fields from the infotype 0768, P0768-PERNR, P0768-BEGDA, etc.
    Now we need add another table to make a join within infotype 0768 and table T5F99SE.
    For instance, in infotype 0768 I have one record with the fields PERNR and BEGDA and in the T5F99SE I have 3 records related to the unique record of infotype 0768, the fields of the table are PERNR, BEGDA, ACTDT and ADDAT .
    The fields values in the example can be:
    Infotype 0768: PERNR=00101800, BEGDA=20110401, DICOT=20, BACHE=1200
    Table T5F99SE:  record 1 PERNR=00101800, BEGDA=20110401, ACTDT=20110401, ADDAT=PB    E
                             record 2 PERNR=00101800, BEGDA=20110101, ACTDT=20110405, ADDAT=PC    E01
                             record 3 PERNR=00101800, BEGDA=20110401, ACTDT=20110409, ADDAT=PA    E
    The result we want get with infoset query is
    PERNR    BEGDA   DICOT  BACHE   ADDAT
    00101800 20110101 20        1200       PB    E
    00101800 20110101 20        1200       PC    E01
    00101800 20110101 20        1200       PA    E
    I would like to get the fields of the infotype and some fields of the table T5F99SE.
    Is possible do this action with ABAP modifying an infoset that already exists adding the fields of the transparent table?
    What should I do?
    Kind regards,
    Julian.

    My guess is that it would not be possible to include a transparent table into the LDBs PNP and PNPCE. Would need input from a technical expert there.
    However, instead of using the LDB, why don't you explore just using a direct table join? You may need to join PA0000, PA0001, PA0002 along with PA0768 and your other tables. An infoset can then be created on this table join.
    To go to the mode where you can create the table join, in your infoset transactions, choose 'Table join' instead of 'LDB'.

  • Add field in a query (logical data base)

    Hi,
    I want to add a field in a query .
    The data source of  its infoset is logical database .
    When i tried to drag and drop the field, the alv grid turned to alv list.
    Can you help me.
    thanks,
    Meriem.

    Hi Merim,
    As KAMESH mention,
    you can add  additional fields in your infoset and put the logic for that field in your infoset program and assign the same field in your existing group within infoset.
    once you assign the infoset and generate the infoset then your field will be reflected  in sap Query .
    you can add additional field in your output.
    Regards,
    Prasenjit Mishra

  • Problem in Multiprovider Query

    Hi Experts,
                I had developed an query on Multiprovider, which is on MM & PP Cube. In the Query Designer,i had created some new selection with  two characteristics restriction ( MOvement Type & Trans/Ev Type) and with a key figure.In the restriction part first i have'nt restricted any "#" value.when I run the query i'm not able to see any value as an output.But If I restrict with "#"..I'm able to see values only to #.
    But there are Characteristics values for the restriction value.
    Please help me to over come this problem.
    Regards,
    SPS

    SPS,
    First I would ask you to validate your multiprovider , are you sure that the joins are right ?
    One way to check the same is to have data from all concerned objects in one query and this should include the field(s) of union ( which you have specified in the identification part )
    If you get the data in one single row without any mismatches , then your design is right and you can go ahead with trouble shooting the query.
    Arun
    Assign points if useful

  • Urgent-Multiprovider Query

    Hi Experts,
    I have a Multiprovider on Purchasing Cube(0PUR_C01),General Ledger ODS(0FI_GL_O02)and Material Movement Cube.(YCPS_MOVE).
    Issue 1
    Currently the query is restricted by Company Code,when we do that the 0Vendor and 0Batch information from Material Movement cube is not being displayed.
    Issue 2
    When not restricting the query, i do get the 0Vendor and 0Batch info on the report.But the keyfigures(all of them from GL ODS ) are shown as parsed.
    This is how my output looks like currently.
    Ex:
    Plant  PO     Material  Vendor  Batch    GR Debit quantity  GR quantity GR variance
    03      6605     12          69        3007
             #             100Kg                 100KG       30.31 USD   
    Is there any solution to get the keyfigures into the same row.If so please pass on the solution.
    Thanks in advance.

    Hi Anil Kumar,
    Thanks for the suggestion.Points duly assigned.But now i have another situation,i have used infoset on GL ODS and MM Cube.
    in situations with item having multiple batches or Vendors,and in such situation i am getting same KFvalue in every row and the total of this obviously wrong.Is there any solution to get only one record for keyfigure value or correct the total.
    Example:
    Plant  FiscYr/Period    PO    Item  Material   Batch    Vendor   GRVariance  
    0353     001/2006       4500    10     104         19207    1007        -$3935
    0353     001/2006       4500    10     104         19208    1007        -$3935
    0353    001/2006        4500    10     104        19208     1008         -$3935
    The KF GR Variance is from GL ODS,is there any solution that i can have only one value or get the correct total for that particualt column.
    Please advice.
    Thanks in advance

  • Multiprovider query selection screen

    HI,
    I have a query built on multiprovider. Multiprovider has two underlying infocubes.
    At selection screen user wants to input only one field , say field 'A'. Field 'A' exists in one infocube only
    . when I restrict query on selection screen with  field A , only the records of one infocube is displayed.
    What should I do to get records of other infocube also?
    Regards,
    Rahul Sindhwani

    Hi,
    When there is no field at 2nd cube then how you get from.
    You need to check exactly what you need.
    If you enter selection on a field which is form two cubes then only you will get data from two cubes other wise you get data from one cube only.
    to test it use t code - LISTCUBE and check the results with same selections(A).
    you may get data from 1 cube only.
    Thanks

  • No data in Multiprovider Query

    Hi,
    I have a query defined on a Multiprovider. When i execute the query, i do not get any data. I checked both ODs on which this Multiprovider is built. Both the ODS have data. What could be the reason.
    Thanks.

    Hi George,
    I was refering to the selections and identification in your MP. If you go to your MP definition, you will be able to see the buttons for Identification and Selection on the Characteristic and Key Figure tabs. These are very important when it comes to viewing the data delivered by the multiprovider.
    You can try transaction LISTCUBE wiht your MultiProvider and try to use the same selection conditions that you used in the query and see if you can get some data.
    Hope this helps...

  • Date selection in query : logic needed!

    Hi,
    we have one calendar day depending on which the query result is displayed!
    Now the requirement is such that when user enters one date the query has to generate the result for the multiple date ranges including the one which he has entered.
    example: if user has entered 15/9/2007 then query should not only display the result of the date 15/9/2007 but also the results of  -5 to +2 ( means 10/9,11/9,12/9,13/9 and 14/9 plus 16/9 and 17/9 )
    simlarly other ranges like -8 to + 7 and so on
    How to define this in query?
    Thanks,
    Ravi

    Hello ,
    I need to make a graph conveying the information of the deliveries by comparing the goods issue date and promised date !
    report also requires how many deliveries were on time, how many were late and how many were early!
    for this requirement, i had thought of making a date selection field which is promised date and make furthur more date ranges selections by query it self so that late deliveries and early deliveries also covered in these date ranges.
    -5 to + 2 is that one range which is on time delivery range
    if the delivery is more eally than the -5 days then it is early delivery. even in ealry delivery i want to make how early it is.
    and suppose the delivery has crossed the promised date 2 days more then it is late delivery.
    all has to be acheived by single date selection and there after the logic which takes care of all the date ranges i had explained.
    i am looking for that logic which i am not finding
    Hope this is clear now
    Thanks,
    Ravi

  • JPA/Toplink changes the query logic

    Hi,
    Iam currently using JPA with Toplink implementation , i guess that toplink has its own way of optimizing the provided JPA query ; on another words , toplink sometimes changes the way you are using joins and exists statement to what looks optimized , but unfor. this caused me troubles tracking a query that should work on a certain way but its not cause the generated query by Toplink ( can be captured on the log ) does not represent the same logic , is this a known issue or do i have to write my JPA query on a way on which can be translated correctly by toplink , i know i should provide the query it self , but the model structure is too complex.
    Thanks in advance

    Hello,
    JPQL does not directly translate to SQL, so there might be some differences in what you may be expecting due to JPA requirements on the results that are returned. If there is a problem with specific queries, please let us know and file a bug if it is not behaving the way it should. A workaround would be to use a native SQL query directly.
    Best Regards,
    Chris

Maybe you are looking for

  • Time Capsule 2TB interoperability with existing home network

    Can I still use Time Machine backing up to my 2B Time capsule if it is LAN wired to a Netgear router? I am using my Netgear router as the primary and wireless device.  I have my TimeCapsule Wired via a lan port.  I mostly want to use the time capsule

  • How to upload data into a database from a csv file in a jsp app?

    I can write a HTML form to let users to post a csv file and store it in the web server, then how could I process the file to load the data into a View Obj or an Entity Obj without manually parsing the csv files? Any jsp or java code samples that will

  • Custom page size

    <p>Hi,</p><p> </p><p>I get this exception when try to switch report's paper size to "Custom":</p><p>Could not Modify Paper Size.<br />  Caused by: <br />  Caused by: <br />  Caused by: <br />  Plug-in Vendor: Business Objects<br />  Plug-in Name: Cry

  • How to delete server side cookie

    Hy ppl. i would like to know how i can get rid of server side cookies which date is in the past? I've trie it with call method cl_bsp_server_side_cookie=>DELETE_SERVER_COOKIE but the there was no result

  • Video to Flash Intro

    I made a 10 second video that I would like to put on my webpage as a flash intro but I don't know anything about flash. Is there an alternative or an easy way to do this?