Can we use Result from another query in Webi using Bex uery universe?

Hi,
Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
Has anyone run into the same issue and if this is possible and what should be the solution?
Thanks in advance!
Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

In that situation:
Create two queries : Oracle and BW query.
@ Report:
As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
Hope it helps you.
Thank You!!

Similar Messages

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Unicode String Issue while Using Results from Another Query

    Hi All,
    In a webi report i have 2 queries say Sales Out and Investment. I need to have only those chains which are in Investement in Sales Out.
    So in Sales Out query i am using the option Results from another Query. The Chain values are in Unicode format.
    Though in universe i have Set Parameter Unicode_String ='Yes', this does not get applied when using option Results from another Query.
    Is there any solution to resolve this problem.
    Thanks
    Madhura

    leonhardtk wrote:
    I need to take values from the column of one table that meets certain critera, and create inserts into another table that includes this data.
    For example...
    {code}
    select emp_last_name from emp where emp_first_name like 'B%';
    Duncan
    Fitzgerald
    Johnson
    Smith
    {code}
    I then want to insert these values into another table:
    {code}
    insert into My_table values (
    sequence.nextval,99,99,[last_name]);
    {code}
    In the example above, I need it to insert a new row into My_table for where the "last_name" is each of the names from the select statement above (Duncan, Fitzgerald,Johnson,Smith).
    Based on other similar forum questions it looks like I should be doing something like:
    {code}
    INSERT INTO MY_TABLE
    (SELECT sequence.nextval,
                    99,
                    99,
                   (select EMP_LAST_NAME
                    FROM EMP
                    WHERE EMP_FIRST_NAME LIKE 'B%')
    {code}
    But this (obviously) doesn't work!
    Appreciate any assistance on this!
    KSL.
    Hi,
    Created this test data
    create table plch_test (name varchar2(50));
    insert into plch_test values('AKSHAY');
    insert into plch_test values('RAHUL');
    insert into plch_test values('APARNA');
    output
    1    AKSHAY
    2    RAHUL
    3    APARNA
    created another destnation table(in your case "my table")
    create table plch_test_1 (id number,name varchar2(50));
    created another sequence to generate employee ids
    create sequence test_seq;
    Now populated the desination table
    insert into plch_test_1(select test_seq.nextval,name from plch_test);
    verify the destination table
    select * from plch_test_1
    1    AKSHAY
    2    RAHUL
    3    APARNA
    Hope this helps
    Regards,
    Achyut Kotekal

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • Query on results from another query

    Post Author: Duncan1980
    CA Forum: Crystal Reports
    Is it possible to query on the results from another query.  I have a query that produces a list of document numbers.  I want to use the output from that query as the filter criteria in a another query in the same Universe. 
    The output from the first query can be as much as 2000, so it would be very time consuming to cut and paste these into a filter.
    Both reports are built, but can not figure out how to link the first report output to the filtering criteria on the second report.  I
    I am using business objects XI release 2 web intelligence 11.5.3.417 enterprise.

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • Results from another Query - not available

    HI,
    My environment is Business Objects XI 3.1 SP2 Edge series , i have  below quereis with web Intelligence Reports
    1. not available  the functions/options  Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    2. not getting list of Values for pronpt until i refresh values for prompt?
    Please suggest me is there any fix packs available for the same to availle that functionality.
    Best Regards,
    Reddeppa K

    not getting list of Values for pronpt until i refresh values for prompt?
    There is option called  "Automatic refresh before use"  for the object properties available in the universe designer.
    Please check the box for the object you are using for populating the list of values and export the universe.
    not available the functions/options Results from another Query(Any) or Results from another Query(ALL) at Query Level.
    There is a limitation for the query on query functionality that the both the queries can-not be from the OLAP universe.
    I guess the query which needs to be filtered should be built on universe from the relational data base.
    Regards,
    Rohit

  • Combine query, result from another query on SAP BI query Universe?

    Hello all,
    We are using SAP BI queries as datasource for our universes. Is the combined query option disabled for webi reports written on such universes?
    result from another query - is this option active for such webi reports? I see both these options greyed out so wanted to check.
    One last thing what is really difference between subquery and results from another query? subquery - you can use filters from that one data provider only right? or can you use a different data provider/report in sub query?
    Thanks a lot for all the replies.

    Hi,
    in BO 3.1 Combined query and result from another query options are not available in webi report on OLAP Universes  (SAP BW Universe.)
    Thanks,
    Amit

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • WHERE using results from another querie

    Hi,
    Example:
    <cfquery name="QUERY 1" datasource="MyDatabase">
    SELECT Table1ID, A, B, C
    FROM Table1
    WHERE A = #Form.A#
    <cfoutput query="QUERY1">#A#<br></cfoutput>
    It returns:
    3
    4
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT Table2ID, A, Z, Y
    FROM Table2
    WHERE A IN (3,4)
    <cfoutput query="QUERY
    2">#Table2ID#</br></cfoutput>
    It returns:
    a
    b
    c
    d
    e
    f
    But if I make QUERY2 as:
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT Table2ID, A, Z, Y
    FROM Table2
    WHERE A IN (#QUERY1.A#)
    it returns only:
    a
    b
    c
    The values a,b,c are the Table2ID's where A=3
    The values d,e,f are the Table2ID'a where A=4
    How can I make return all values?
    Hope you understand.
    Thanks
    Manel

    Think about what you are doing for a second. You are
    selecting multiple rows of data with your first query. Then you are
    using a cfloop to loop through each row returned from that first
    query to perform another query that uses the value returned in the
    A column. The problem is that you are executing your second query
    once for each row returned by your first query, and you really
    aren't saving that result anywhere, since each iteration of the
    loop causes your cfselect to overwrite your previous results. You
    can create a list variable and populate it with the results from
    your first query, but I have to ask, unless you need the results
    from your first query for something else, why don't you just join
    the two tables and use on equery?
    Based on what you have, something like this?
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT T2.ID, T2.A, T2.Z, T2.Y
    FROM Table2 T2
    INNER JOIN Table1 T1 ON T2.A = T1.A
    WHERE T1.A = #Form.A#
    </cfquery>
    Phil

  • Rookie...can't return results from JDBC query?

    I am trying to get my web service to return results to the client from my JDBC query. They "try/catch statements sem to be in the way. I can't return anything within them or outside of them. Can someone tell me how I could get my results to return to where I want them to?
    At present, all this does is return the value "Dummy" to my client. Shouldn't the value be reset by the results of the query coming in?
    package hello;
    import java.sql.*;
    public class HelloImpl implements HelloIF {
    String s2 = "Dummy";
    public String sayHello(String s) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch( Exception e ) {
    System.out.println("Failed to load driver.");
    try {
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:liggy11/fisher@dligman:1521:dligman");
    Statement stmt = conn.createStatement();
    String query = "SELECT end_phrase FROM rap_lines WHERE start_phrase = '" + s + "'";
    ResultSet rs = stmt.executeQuery(query) ;
    while (rs.next()) {
    s2 = rs.getString("end_phrase");
    System.out.println("Got another row. s2 is now [" + s2 + "]");
    catch( Exception e ) {
    e.printStackTrace();
    return new String(s2);

    liggy11,
    I believe the smart-ass forum is the most appropriate
    place for replies such as yours. Excuse me while I
    get with some honeys....
    Peace in the middle east,
    mrcheeks.
    I'm Sorry Miss Jackson!

  • Filter by "Result from another query" option not available in Webi

    Hi all
    I am trying to filter one query by zipcode based on the results of a previously run query in the same report. However this option is not available on the drop down when I drag zipcode into the filter pane. I am restricted to the options: Constant, Value(s) from a list, Prompt or Object.
    I have "use subqueries enabled" within my universe and the data is held in an RMDBS (i.e. it is not an OLAP universe) so I expected this functionallity to be available.
    I am using XI 3.2 and Java version 1.6.0.15, i.e. up to date.
    Any help would be greatly appreciated.
    Thanks
    Sharon

    Sharon,
    Here is one method to achieve your objective, however, it involves the use of Merge Dimensions.  Here goes:
    In the Edit Query mode, build two queries, where the first query has all the objects, to include Zip code, and the second query has the zip code, filtered for the one at hand.  (you probably have done this portion already)
    In the Edit Report mode, think of your data set as Query1 (all the data objects you want) and Query2 (zip code and filtered on that zip code) and thus you'll have Query1.zip and Query2.zip.  If you build a grid containing all the data you want from Query1, then simply add Query2.zip to that grid, voila, the grid will be "filtered" due to the "merge" that occurs under the wire.  The 'problem' here is that you have two columns that are repetitive and there is no inherent way to "hide" a column in WebI other than masking the column with white on white (font/borders) or some folks sometimes apply Alterters to achieve the same.
    Best of luck in moving forward with your task.
    Thanks,
    John

  • Problem in BW query can read a variable from another query

    dear all
    now I create three queries
    the name are queryA queryB queryC
    there is a variable VAR_1 on queryB
    there is a variable VAR_2 on queryC
    webtemplate is only one and all queries belong to webtemplate
    VAR_1 is DATE
    VAR_2 is MONTH
    in inputscreen user will input VAR_1
    can we read VAR_1 and then VAR_2 = VAR_1+0(6)
    I created souce on CMOD but can't read VAR_1
    the code as below
    case i_vnam.
    when 'VAR_2'
    read table i_t_var_range into s_var_range
    with key vnam = 'VAR_1'.
    l_date = s_var_range-low.
    l_s_range-low = l_date+0(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endcase.
    PLS HELP ME

    Hi,
    As vijay said you try ...
    Let me explain:
    Create another variable var_3
    on queryB which is of type 'customer exit' and you write the code for this var_3 (date) in CMOD just to store this value in some ztable.
    create a ztable with fields of type
    1. sy-datum(system date)
    2.sy-uzeit (syatem time)
    3. sy-datum (for storing the value of var_1).
    make first two fields as key.
    Now for queryC create var_2 type 'customer exit'.
    Now for this variable in CMOD , get the value of third field from ztable for the last entry in the ztable.Write the logic for caluculating month and populate var_2.
    Hope its clear..
    Shylaja.

  • Using "Object from this query" as a filter parameter

    Hi Folks,
    I am looking to find a solution to a requirement where I need to filter data in a report based on the current year. I do not want to use the BEx functionality for filtering and want to leverage the BObj query filters. My idea was to create a "variable" in the BObj query to get the current year and hopefully use that as a filter parameter for 'Object in this query". But The options "Object in this query" and "Result from another query" are greyed out. I am using BObj 4.0 patch 12.
    Do any of you have suggestions on how to accomplish this.
    Regards,
    Doniv

    Hi,
    prerequisite to using the operators you mention is to have 2 dataproviders queries first.
    However, it might be that those kind of operators aren't implemented for the current BICS interface, same goes with Unions, OR operator.
    I know you can do this with Relational UNX, but BEX direct access has shortcomings in the query panel.
    might be worth to try this again if you can get your hands on FP03 ramp up.  things change again , for the better, there.
    Regards,
    H

  • Using data from another View

    Is it possible to create a new Grid in the same analysis where calculated/Grand Totals columns/rows may be used?
    I understand there is a feature use results from another analysis but wonder if it can be used in the same. Thanks.
    Adi

    Hi,
    Say you have a report for retrieving Sales by Products for a company and showing up grand total of sales for all products too in the same report. So, how about a case where you would like to see each product's contribution to the whole sales numbers? For this, a new column could be something like
    Measures.Sales*1.0/SUM(Measures.Sales)
    Here Measures.Sales is the sales for each product and SUM(Measures.Sales) is nothing but the total sales ie grand total.
    Hope this helps.
    Thank you,
    Dhar

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

Maybe you are looking for