Can Queries with varients be precalculated ?

Hello All,
How to precalculate a Query or Web templet which has input variable's.
Actually i am following this process for precalculation,
Eg: Query> Publish>BEx Broadcast> new settings> Precalculation settings......
I have a query which requires input variables  which i want to precalculate and when i fill up the required info
and execute it throw's me an erros saying : 'The required entry variables in Query are not filled'....
where as im not able to create varients in Broadcasting...How to do this ?
Need Help....
Regards,
Nisha Jagtap.

Hi Sunmit,
I tried to set VAR 01 and Create, it opens a tab which is empty  there are no options in tha tab, i am not able
to do anything. There is 'Description' also i tried to select the description of the Varient and then creat but this
too is not working , i can see the tab empty.
Regards,
Nisha Jagtap.

Similar Messages

  • How to querie with bind variable in findMode?

    Hallo,
    is it possible to use a querie with bind variable in findMode? And when how is it possible to initialize the bind variable?
    Any help is appreciated.

    Hi,
    bind variables can be linked from teh ADF binding to e.g. a managed bean, the sessionScope or other binding attributes via EL. So when you go into findMode and execute the query, the EL will grab the bindVariable values automatically.
    Frank

  • Multiple queries with 1 connection

    Can I execute multiple queries with one connection?
    //Example -
    <%
    String firstconn;
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    firstconn = "jdbc:mysql://localhost/profile?user=mark&password=mstringham";
    // pass database parameters to JDBC driver
    Connection aConn = DriverManager.getConnection(firstconn);
    // query statement
    Statement firstSQLStatement = aConn.createStatement();
    String firstquery = "UPDATE auth_users SET last_log='" + rightnow + "'WHERE name='" + username + "' ";
    // get result code
    int firstSQLStatus = firstSQLStatement.executeUpdate(firstquery);
    // close connection
    firstSQLStatement.close();
    %>     
    Now, instead of building a new connection for each query, can I use the same connection info for another query?
    if so - how do you do this?
    thanks for any help.
    Mark

    Create multiple statement objects from your connection. It's a good idea to close these in a finally block after you're done with them
    Connection conn = null;
    Statement stmt1 = null;
    Statement stmt2 = null;
    try {
        conn = DriverManager.getConnection();
        stmt1 = conn.createStatement();
        // some sql here
        stmt2 = conn.createStatement();
        // some more sql here
    } finally {
        if ( stmt1 != null ) stmt1.close();
        if ( stmt2 != null ) stmt2.close();

  • Create a VC Model for BEx queries with Cell Editor

    Hello All,
    I am trying to create a VC Model for BEx queries with Cell Editor.
    BW Development Team has created a BEX query with complex restrictions and calculations using Cell Editor feature of BI-BEX.
    The query output in BEx analyzer is correct where all values are being calculated at each Cell level and being displayed.
    But, while creating VC model, system is not displaying the Cells.Thus, no VC Model can be created.
    I have executed below steps:
    1. Created a VC Model for BEx Query - ZQRY_XYZ
    2. Create Iview -> Create a dataService -> Provide a Table from the Output
    In the Column field system is not showing any of the Cells (present in Cell Editor)
    Please help me to solve this issue.
    Thanks,
    Siva

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

  • Creating ABAP queries with t-code SQ01 in SRM

    Hi.
    What tables are available for me to use ABAP queries with t-code in SRM as we currently use this for MM.
    Please can someone tell me if a list of usefull tables for Carts, Approvals, PO are available in SRM as I cannot find these in SE11. We have no BW and need ABAP query for fullfilings any business requirements.
    Thankyou.
    Vijay.

    Please search the documents in transaction BBP_PD. When you click the details it will give you the table details as well.
    Additionally check this thread for details
    good source for tables and reports
    Regards
    Kathirvel

  • Reconcile Inventory BI Content Queries with ECC

    Hi Folks,
    I have a question regarding reconciling Inventory Management BI Content reports based on cube 0IC_C03 with ECC.
    We implemented IM in BI, and now try to reconcile the queries with ECC. Specifically, I have one query, 0IC_C03_Q0008 - Stock in Transit.
    We ran the report by Plant, in BI, it only showed one material with #, but people from ECC side use T-Code MB5T in ECC and saw many materials with Stock in Transit for that Plant; and for the material showed on BI report, the # doesn't match between BI and ECC.
    What is the right way to reconcile the report with ECC? is there any other report/Tcode in ECC we can use?
    Any insight ideas would be much appreciated!
    Thanks,
    Freda

    Hi Freda,
    For me, it is the typical nightmare to try to reconcile the cube to your ECC transactions since the cube summarizes and doesn't include your material documents.
    So, to make it a bit easier to match MB5T or MB51, add an ODS with a material document and Material item key and all of the fields and key figures necessary for reconciliation (I usually look at the datasource's delivered fields and add whatever sounds reasonable to look at).  To fill records in this ODS, only fill them from 2LIS_03_BF, because BX and UM do not contain material documents.
    While I was writting this, I think I realize what is happening in your situation.  If memory serves me correctly, MB5T is Cross-Company SIT, which is not part of the 2LIS_03* datasources.  They only account for Intra-Company (Plant-to-Plant within the same company code) SIT.  For that, there is a White Paper you can have an ABAP'er implement for you.
    Here are two good documents you should read and be familiar with:
    How to .... Report on Cross Company Stock in Transit: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92c0aa90-0201-0010-17b1-bf5b11c71257
    How to .... Handle Inventory Management Scenarios in BW: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Also, when comparing my cube data to ECC/R/3, I use transaction MMBE in the ECC to identify stock quantities and stock in transit (SIT).
    Brian

  • Slow response  on data dictionary queries with optimizer_mode=rule in  10g

    I have two dataabse: DB1 (9i) and DB2 (10g) on windows 2000
    They are two development databases with the same schemas and same tables. The application executes the same commands but with different results and execution plans.
    In DB2 the queries with the most slow response tima are the queries on the data dictionary (for example: all_synonyms).
    These query are very fast with the optimizer_mode=cost and very slow with the optimizer_mode=rule.
    And the the problem is this:
    in DB1 and DB2 the application executes after the connection this command:
    ALTER SESSION SET OPTIMIZER_MODE = 'RULE';
    These are the traces of the session in db1 and db2:
    The queries are created dynamically by the application.
    Is there a solution for this?
    thanks
    Message was edited by:
    user596611

    Here is a simple example of what can happen,
    @>alter session set optimizer_mode=all_rows;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name | Rows  | Cost (%CPU)|
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)|
    |   1 |  FAST DUAL       |      |     1 |     2   (0)|
    @>alter session set optimizer_mode=rule;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name |
    |   0 | SELECT STATEMENT |      |
    |   1 |  FAST DUAL       |      |
    Note
          - rule based optimizer used (consider using cbo)As you can see incomplete explain plans. Therefore it is not advised.
    Adith

  • Report Designer - Summary page based on 3 queries with dynamic hierarchy?

    Dear All,
    I am trying to build a workbook based on 3 queries with a summary page that pulls in the query data into one page.
    Each query is based on one key figure that is split by profit centre hierarchy.
    i.e.
    Turnover
    -Profit Centre Node A
    -Profit Centre Node B
    -Profit Centre Node C
    > Profit Centre C1
    > Profit Centre C2
    The user can dril-down into each query at whatever level of the PC Hierarchy they wish.
    My issue is trying to structure a dynamic summary page that pulls in all rows from the individual queries regardless of the number of profit centre hierarchies contained in each. i.e. The summary could have 5 PCs for queries 1,2 & 3 in one execution, but then 10 for all queries in another execution.
    Question:
    Can report designer be used to make a dynamic summary sheet that will capture all rows from the individual query? or would an excel macro summary be the only way of doing this?

    Hi Ingo,
    After much testing and looking into trace etc. we have got this thing to behave as desired. Basically, following two things,
    - no reference to CR Dynamic Hierarchy variable on report. There were places where this parameter was being refered and causing grief. We tested with brand new report.
    - making sure that on query Cost center restriction is placed in Characteristic Restriction area of Filter tab of query, as oppose to default value area filter tab.
    With above in place, the published report in infoview behave as desired, i.e. proper hierarchy structure in cost center prompt and group tree and only desired nodes showing on report.
    Thank you for all you pointers
    Regards
    IMS

  • Queries with parameters - how do they get migrated?

    We are evaluating this migration to move a client off of access and put them into oracle. We use APEX for other things and like it. So, we tried with 3 tables, one query and one report. The tables moved fine, but the query failed. The log showed:
    Failed to Convert View <name> unexpected end of subtree: Line 0 Column 0.
    I began removing things to determine what was causing it. I finally got it to run when I got rid of the functions like iif, int and val. I think these are causing the issue. But, I still couldn't create the view because of the parameter in the query. Access prompts the user for this value before the query is run, but how would this translate to an Oracle view? And how would the report prompt the user for this value in Apex? Does this convert over automatically?
    If I have to rewrite the queries myself, I will. If I do, will that affect importing reports like this into Apex? Any suggestions?
    Thanks, Chris

    Hi Chris,
    Thanks for the updates.
    Currently the Oracle SQL Developer Migration Workbench translator does not support the parsing of the IIF function. I believe there is a bug already logged against this & a fix will be available in a future release of the Workbench.
    You may find it useful to refer to the following threads discussing alternative handling of queries using the IIF function -
    Access Queries with "IIF" function
    msaccess parser error
    As mentioned in the above postings, one option for you is to use a CASE statement, similar to the following:
    SELECT SUM(case when Table1.Week Between 1 And Ending_Week then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1 ;
    If you wished to use such a query to display the resulting value on an Oracle APEX page, this could be implemented as follows:
    Note: Assuming that you have migrated the database schema to Oracle & have associated your APEX workspace with that schema.
    1. Create a new blank page in your APEX application. Add a new HTML region to your page.
    2. Create a "Select List with Submit" item and in its "List of Values Query" field enter syntax similar to the following:
    select week d, week r
    from table1
    order by 1
    and set the item name to P1_END_WK. Place the item on your HTML region. This item will act as the parameter in your query.
    3. Create a "Display as Text" item and set its Source region to be of type "SQL Query". Paste the following syntax into the items' source value field:
    SELECT SUM(case when Table1.Week Between 1 And :P1_END_WK then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1
    and set the item name to P1_SUM. Place the item on your HTML region. This query will return the result based upon the user's selection of value in the P1_END_WK select list item.
    4. Add a branch to the page, setting it to branch to itself. Basically when the user selects a value from the P1_END_WK select list, this will submit the page. The branch will redirect the page to itself & in turn update the value held in P1_SUM.
    Would this type of implementation work for your application? It's obviously just one option to consider. I hope this helps. If you have any further issues/questions regarding any of the above information or regarding other queries in your MS Access MDB file, please let me know. If you'd like me to take a look at your MDB file, please post your email address so I can contact you directly.
    Regards,
    Hilary
    Message was edited by:
    hfarrell

  • WAD 2 queries with 1 input values taking for only 1 query.

    Hi Gurus,
    Can anyone please tell me. I am working on a report 2 queries in WAD and 1 variable / input screen before running a report & 1 variable screen or filter pane after running a report. So 1.filter pane on top 2. chart (1st query) between 3. Analysis pane (2nd query) at bottom.
    Problem here is when we give input values on variable screen or input screen in WAD it is taking that as an input & applying on 2nd query (analysis pane) where it is not applying on 1st query so 1st query is showing all values & 2nd query is showing values that are given as input & filter pane is showing values that are given as input in variable screen.
    Here affected data providers is checked for both data providers. can anyone please tell me what would be the problem or how can i make input screen effect on both queries.
    Thanks in advance.

    Hi Sudheer,
    Is the same variable being used across both the queries with all settings etc the same? In WAD web template settings, you can uncheck 'Display same Variables for different queries only once [MELT_VARIABLES]' & check if you see the same variable twice. Try entering the same value against both & check if the Chart qry gets affected.
    --Priya
    Edited by: Priya Jacob on Oct 1, 2010 6:22 AM

  • Hi all, how can i do a query precalculated

    Hi all, how can i do a query precalculated step by step please, cause my client want some queries without wait 1 min, cause the query last about 5 min cause it shows like 40 InfoObjects of master data, now, i read about this queries precalculated and can help to execute it in the mourning, and when the client execute the query , it'll be ready to show the data, thanks all, i need this help and any other commentary please let me know, thanks

    You need to create template and in the property of the template Data store, select precalculated. And following that if you are in 3.x you can use a reporting agent in resrep TC to schedule the query gets executed at specific time period, if you are in 7.0 then you can use broadcaster to schedule the time to fill the cache.
    thanks.
    Wond

  • Quering with sysdate function

    hi all ,
    there is a strange thing right here ,
    i set the where clause for my database block to , ( test_date = sysdate )
    then , query caused no records to be retrieved , and i am sure that the table has records with sysdate date .
    why does this happen ?
    even if i queried the table in the isqlplus ,
    select test_date from patients ; -- then queries with sysdate date are retrieved , but if i write
    select test_date from patients where test_date = sysdate . -- there is nothing to be retrieved .?
    help ?
    even i created a new table tt with one column(cc) , and inserted the value sysdate in it ,
    when i select sysdate from dual then it works 27-NOV-12 but
    when i select dd from cc where dd = sysdate then no rows selected
    Edited by: semsem on Nov 27, 2012 11:33 AM

    sysdate contains both date and current time elements, down to seconds. You will never find a match on sysdate, unless you hit the query at exactly the right time that matches some record in your table.
    Set your where clause to:
    ( trunc (test_date) = trunc (sysdate) )
    The "trunc" truncates (removes) the time element from your date values before doing the conditional test.
    when i select sysdate from dual then it works 27-NOV-12Do this in SQL Plus:
    alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';That will enable you to see the true date and time contained in your date datatypes. Here is an example:
    SQL> select sysdate from dual;
    SYSDATE
    27-NOV-12
    SQL> alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    11-27-2012 11:47:37Note in Forms, you can use two datatypes: DATE and DATETIME The both will query a date from the database, but the DATE datatype will remove the time element in the form, so a data change occurs. If you want to see the full date and time from the database column, use DATETIME, and set the Format Mask to something that will display everything.
    Edited by: Steve Cosner on Nov 27, 2012 11:42 AM

  • Scaling factors for queries with cell references

    Hello Experts,
    We have this issue, we have queries which have 2 global structures with the cell references for few of the elements of rows and columns structure.
    we need the scaling factors and currencies of the query which are defined in the rows and columns structure are to be displayed as separate column but with in the cells.
    We have checked for the queries with the 2 structures without cell references are displayed as we need. But for the queries with the cell references on the 2 structures are not displaying the scaling factors as we need in separatly.
    how can we make the query to display the scaling factors along with currencies to be in separate column.
    we have entry selection as currency where we have only one currency can be entered so the we do not have the problem of multiple currencies.
    please find the screen shot how we need the scaling factors to be displayed for the queries with cell references.
    We have scaling factors enabled as 1000 for KFs and for % selections we have scaling factors as 1.
    Thanks,
    Santhosh

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

  • Anybody can help with this SQL?

    The table is simple, only 2 columns:
    create table personpay(
    id integer primary key,
    pay number(8,2) not null);
    So the original talbe looks like this:
    ID PAY
    1 800
    2 400
    3 1200
    4 500
    5 600
    6 1900
    The requirement is to use one single query(no pl/sql) to show something lile the following, in other words, for each ID, the pay is the sum of all before itself and itself. So the query result looks like this:
    ID PAY
    1 800
    2 1200
    3 2400
    4 2900
    5 3500
    6 5400
    Again, just use one sql. No pl/sql. Anybody can help with this? I really appreciate that.
    thanks,

    Eh, people are so "analytically minded" that can't even notice a simple join?
    Counting Ordered Rows
    Let’s start with a basic counting problem. Suppose we are given a list of integers, for example:
    x
    2
    3
    4
    6
    9
    and want to enumerate all of them sequentially like this:
    x      #
    2      1
    3      2
    4      3
    6      4
    9      5
    Enumerating rows in the increasing order is the same as counting how many rows precede a given row.
    SQL enjoys success unparalleled by any rival query language. Not the last reason for such popularity might be credited to its proximity to English . Let examine the informal idea
    Enumerating rows in increasing order is counting how many rows precede a given row.
    carefully. Perhaps the most important is that we referred to the rows in the source table twice: first, to a given row, second, to a preceding row. Therefore, we need to join our number list with itself (fig 1.1).
    Cartesian Product
    Surprisingly, not many basic SQL tutorials, which are so abundant on the web today, mention Cartesian product. Cartesian product is a join operator with no join condition
    select A.*, B.* from A, B
    Figure 1.1: Cartesian product of the set A = {2,3,4,6,9} by itself. Counting all the elements x that are no greater than y produces the sequence number of y in the set A.
    Carrying over this idea into formal SQL query is straightforward. As it is our first query in this book, let’s do it step by step. The Cartesian product itself is
    select t.x x, tt.x y
    from T t, T tt
    Next, the triangle area below the main diagonal is
    select t.x x, tt.x y
    from T t, T tt
    where tt.x <= t.x
    Finally, we need only one column – t.x – which we group the previous result by and count
    select t.x, count(*) seqNum
    from T t, T tt
    where tt.x <= t.x
    group by t.x
    What if we modify the problem slightly and ask for a list of pairs where each number is coupled with its predecessor?
    x      predecessor
    2      
    3      2
    4      3
    6      4
    9      6
    Let me provide a typical mathematician’s answer, first -- it is remarkable in a certain way. Given that we already know how to number list elements successively, it might be tempted to reduce the current problem to the previous one:
    Enumerate all the numbers in the increasing order and match each sequence number seq# with predecessor seq#-1. Next!
    This attitude is, undoubtedly, the most economical way of thinking, although not necessarily producing the most efficient SQL. Therefore, let’s revisit our original approach, as illustrated on fig 1.2.
    Figure 1.2: Cartesian product of the set A = {2,3,4,6,9} by itself. The predecessor of y is the maximal number in a set of x that are less than y. There is no predecessor for y = 2.
    This translates into the following SQL query
    select t.x, max(tt.x) predecessor
    from T t, T tt
    where tt.x < t.x
    group by t.x
    Both solutions are expressed in standard SQL leveraging join and grouping with aggregation. Alternatively, instead of joining and grouping why don’t we calculate the count or max just in place as a correlated scalar subquery:
    select t.x,
    (select count(*) from T tt where tt.x <= t.x) seq#
    from T t
    group by t.x
    The subquery always returns a single value; this is why it is called scalar. The tt.x <= t.x predicate connects it to the outer query; this is why it is called correlated. Arguably, leveraging correlated scalar subqueries is one the most intuitive techniques to write SQL queries.
    How about counting rows that are not necessarily distinct? This is where our method breaks. It is challenging to distinguish duplicate rows by purely logical means, so that various less “pure” counting methods were devised. They all, however, require extending the SQL syntactically, which was the beginning of slipping along the ever increasing language complexity slope.
    Here is how analytic SQL extension counts rows
    select x, rank() over(order by x) seq# from T; -- first problem
    select x, lag() over(order by x) seq# from T; -- second problem
    Many people suggest that it’s not only more efficient, but more intuitive. The idea that “analytics rocks” can be challenged in many ways. The syntactic clarity has its cost: SQL programmer has to remember (or, at least, lookup) the list of analytic functions. The performance argument is not evident, since non-analytical queries are simpler construction from optimizer perspective. A shorter list of physical execution operators implies fewer query transformation rules, and less dramatic combinatorial explosion of the optimizer search space.
    It might even be argued that the syntax could be better. The partition by and order by clauses have similar functionality to the group by and order by clauses in the main query block. Yet one name was reused, and the other had been chosen to have a new name. Unlike other scalar expressions, which can be placed anywhere in SQL query where scalar values are accepted, the analytics clause lives in the scope of the select clause only. I have never been able to suppress an impression that analytic extension could be designed in more natural way.

  • Joining two queries with Visual Composer

    Hallo,
    I was working with visual composer to join two queries with the distinct operator. But on my table view, when i linked it with the distinct operator, i get only the key element customer (customer, customer_ext_key, customer_key). These are the queries that i want join:
    Query 1:
    Customer
    Net Sales
    Query 2:
    Customer
    Billed Quantity
    What i want to see is the following result:
    Customer
    Net Sales
    Billed Quantity
    Can anybody help me with this problem?
    Greeting,
    Murat.

    Hallo,
    I was working with visual composer to join two queries with the distinct operator. But on my table view, when i linked it with the distinct operator, i get only the key element customer (customer, customer_ext_key, customer_key). These are the queries that i want join:
    Query 1:
    Customer
    Net Sales
    Query 2:
    Customer
    Billed Quantity
    What i want to see is the following result:
    Customer
    Net Sales
    Billed Quantity
    Can anybody help me with this problem?
    Greeting,
    Murat.

Maybe you are looking for

  • How to handle pagenation for tree table

    Hi, I implemented af:treeTable but, that table is displaying 20K rows(childerns). When i ckick on the views->Expand All, taking 30min to load the treeTable. Is there any wan to handle this problem or is there any way to pagenate the treeTable? Regard

  • Backup/Restore Missed Some Things

    Had to swap out my iPhone 4 yesterday for a new one. I had been getting the "No SIM..." message multiple times. Before I went to the Apple store, I did a backup of the phone. When I got home with the new one, I did a restore, selecting the backup whi

  • (solved) qgis not building

    Fresh Arch install. I cannot compile the AUR qgis package (https://aur.archlinux.org/packages/qgis/) The pkgbuild specifies: python2-pyqt>=4.10.4dev, which does not appear to be available. (Perhaps I just don't know where to find it.) I attempted the

  • Macbook Pro Heats Up / Fans Go Full Blast when connected to external HDD

    This is something strange that started happening recently. Whenever I connect my 120GB Western Digital Passport, the fans start going fast and it starts heating up (not to a dangerous level). Time Machine is turned off and spotlight is not indexing.

  • Another iMac Temperature thread

    iMac 24" 3.06Ghz C2D w/4GB Ram. This is not the machine in my sig. I've been getting hard freezes and difficulty starting up after these hard freezes. I'm starting to suspect temperature related issues. I get the freezes when pushing the machine hard