Query Analyzer - issue in variables

Hello,
In query analyzer, I have a requirement for 3 keyfigures.
1 -> Current Month budget
2 -> Next Month budget
3 -> Cummulated Yr to Month budget
for eg. I fI am in month 02.2006
column 1-> budget for 02.2006
column 2-> budget for 03.2006
column 3-> budget for 04.2005 - 01.2006
for column1, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH.
for column2, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH, and specified +1 as variable offset.
for column3, I have created a new selection and included budget qty and 0calmonth and restricted it to 0I_CMY01 or 0CYTCM.
the output is that column1 show the rigth current month figures.
column2 is blank
cloumn3 shows the same figure as column1.
is there any activation that needs to be done so that these variables work.
thanks in advance

Hi,
<i>for column3, I have created a new selection and included budget qty and 0calmonth and restricted it to 0I_CMY01 or 0CYTCM.</i>
0I_CMY01 gives what????
0CYTLM
This variable denotes an interval from month 1 of the current calendar year to the month before the current calendar month.
<i>for column2, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH, and specified +1 as variable offset.</i>
pl check data in infoProvider for 03.2006...i think data is not there for 03.2006..thats y u r getting blank.
regards

Similar Messages

  • Query Performance Issue - Max time spent on DB read

    Hi Experts,
    We have a big query which is having two levels and it is pulling data from 10 underlying cubes which have different sales organizations in each. Due to design of the query and amount of data in cubes the maximum time is being spent on DB read. Now we have checked the trace of the query execution and we have seen that the system goes and check , say a Cube A even when it does not contain data for the sales org that is requested by the user. Please note that we have mandatory selection for Sales org on the Level 1 query.
    In order to resolve this issue we have maintained entry of SALESORG in the RRKMULTIPROVHINT table, but on running the trace again we are seeing that for Level 2 query the system is still querying the cubes which do not contain the data for the sales org requested by the user there by increasing the run time of the query many folds. Can you please help us out if you have faced similar issue?
    Regards,
    Prashant Shah

    I think your Query data selection is expecting data from all the cubes. You have to analyze right from the Query definition and the variables selection to know further.
    Please put "H" for your MP in RSDIPROP t-code and choose H in Query read mode in RSRT-->Properties.

  • Problem about printing special character in bex query analyzer

    Hi,
    in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
    So i got result.
    But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
    But i want some special character like X instead of this big values.
    So how can i do this?
    With the help of if and else it can be done.
    But how can we print special character in report.
    Please help me
    Thank you in advance

    hi,
    You cannot show X in a formula result. You can highlight the row using exception.
    Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
    Then you can use the three formula variable to write a formula so that it shows the difference:
    date1 -- formula variable
    date2 -- formula variable
    charx -- formula variable.
    the formula will be
    Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
    this would return the X value if any of the dates are empty otherwise their difference.
    regards.
    Arvind.

  • Report running very slow compared to Query Analyzer - high TimeDataRetrieval

    Hi,
    I have a report in SQL Reporting Services 2005 which calls a stored proc and the report takes a very long time to run and sometimes returns zero records. But when i run the stored proc in query analyzer it takes about 4 seconds!!
    I have checked the execution log on the RS using the below sql:
    Code Snippet
    use ReportServer
    Select * from ExecutionLog with (nolock) order by TimeStart DESC
    It shows that i have a large amount of time for the dataretrieval (601309ms, about 10mins) and does not return any records most likely because of a query timeout:
    TimeDataRetrieval  TimeProcessing  TimeRendering Source Status         ByteCount RowCount
      601309                      2227                     3                         1            rsSuccess 4916           0
    The weird thing is that when i run it in query analyzer, i get about 400 records in 4 seconds !!
    I dont understand what RS is doing to take up so much time like this to retrieve data.
    The report is very simple - it basically returns the records straight out into a table.
    The only thing I somewhat suspected was a parameter data type conflict between RS and SQL, specifically dates. I have a start and end date parameter in the report - i tried specifying this as date and string to see if it made any difference but it didn't.
    Any help would be greatly appreciated.

    Hi Mark,
    I didn't say it was an issue of parameter sniffing, and I didn't point you towards the good article about that <s>. I asked you whether you had read the article, described to you earlier in the thread.
    What I said was that it might be an issue of appropriate and dynamic query optimization, versus a cached query plan.  Parameter sniffing is only one of many ways that SQL Server tries to figure out how to optimize a query.  I thought the article did a good job of discussing some of what goes on during this process, and that by absorbing that you could think of ways to handle the wider issue that would be appropriate to your code.  I also pointed you to a thread in which I discussed this in more detail.
    While there are truly many issues with the date controls in the default parameter interface and how they behave, I don't think that what you're experiencing with the date format is implicated in the performance issue.  I guess it *might* be if (say) there is a non-default param value in your proc but your report parameter allows nulls. 
    Let's say the report server database has a different date default than your production database in your system. I have never sat down and tested this scenario and I guess it might cause problems, So we'll look at that first. 
    Whether the date format is at fault is really easy to prove one way or the other, and once proven can be pretty easy to fix:
    Create a test parameter that is of string type.  SQL Server is really good about dynamic conversion of string dates to date types as you probably know.
    place values (formatted however you want) into this version of the parameter instead of your date control parameter.  Use valid dates, in both formats.
    Does your performance change?
    Do you get the right results but bad performance with US format date strings versus right results with good performance with AU date values?
    Do you get the WRONG results with US format date strings, or with AU date strings?
    Try additional permutations involving casting/converting in your proc.
    FWIW, go ahead in the Query Analyzer and put the SAME values you see in the log into your tests there (in US format, I mean).  Do you get the CORRECT results?  Does performance change?  Hold this thought and see below.
    Another thing you can do is look at the query plan as presented by the Query Analyzer when you present the arguments different ways.  See #7 above -- try presenting the date in different formats.  Does the plan show the same path and the same indexes in use each time, or are some not possible because of the way the date has to be converted?  When this happens, the issue is usually that the conversion must be done for each line compared in the filter.  You can fix this really easily in most cases by cast/convert in the procedure so that your SELECT line is only doing that work once. 
    If the plans are different, and perhaps the indexes used are different and you *can't* fix it by fixing the date before the SELECT, do you need to add an index, or perhaps rebuild one?
    Moving on from the date format, as I said before it may be really important NOT to go by your interactive Query Analyzer performance because what you do there may not be used by SQL Server in determining a query plan to cache and re-use.  In case you haven't read the other discussion that I pointed you to at (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1827775&SiteID=1), think about using RECOMPILE or other options that will force a more dynamic investigation of the query.
     >L<

  • Crystal Reports with BEx Query using Custom Exit Variable

    Hi,
    We have BW BEx Query using Customer User Exit variable to derive  the Fiscal Week for Last Year (called it VAR2) based on another user input variable Current Fiscal Week (called it VAR1).
    VAR2 is derived from VAR1 in CMOD via some codings and thus it DOES NOT have the "Variable is Ready for Input" flag ticked in the BEx. VAR1 is user input variable, so it has "Variable is Ready for Input" flag ticked in the BEx.
    When we create a Crystal Reports with the BEx Query using variable VAR2, and when we run it we got an error message saying "Failed to execute query; '[]<java.lang.UnsupportedOperationException: No Selection State Support!ZP_MI_LYPUBWEEK>'. Redesign your query or contact the data source maintainer to solve the problem".  (note: ZP_MI_LYPUBWEEK is VAR2 in this case).
    Could anyone please assist? Surely, CR supports BEx customer user exit variables like the above, right?. I also refer to the forum below as it seems to have a similar issue (except mine with an error message), but it does not provide a solution in it.
    Crystal Reports with BEx Query using Custom Exit Variable
    Thanks,
    Andy

    Hi Vibhav,
    We have the SAP Crystal Reports for Enterprise XI4.0 Version 14.0.0. Not sure if SP0 or other SP, got to check with Basis Team later.
    We tried that "mandatory" option and did not work either.
    Anyway, SAP has now come back again saying it is something they will fix it in next release/version. We got a phone call from them and a reply below to our OSS.
    23.08.2011 - 08:20:49 CET - Info for Customer by SAP  
    I have raised this issue on the Idea#s Place as an enhancement request
    on the below link:
    https://cw.sdn.sap.com/cw/ideas/5586
    This ER contains the information of including the customer exit
    variables in the report without checking the #input for ready# option.
    This ER can be considered for being implemented in the future
    versions. You can refer to SAP Note: 1515837 - How To: Enhancement
    Request Process - "Idea Place" for more information regarding the Idea
    Place.
    Cheers,
    Andy

  • Open View not seen in the 7.0 Query Analyzer

    Hello ,
    I am not able to see open view in the 7.0 Query Analyzer, but that seen in the 3.x Designer
    Are we missing something here, or its the GUI issue
    When we click on Open, I have only 2 options
    Open Query....
    Open Workbook...
    I could locate my view through the open Query & then naviagting it from the Dialog box, but thats does not seem a good way of locating views.
    Any help on this
    Regards
    Lalan

    Hi Lalan,
    The Query View is not missing and it's not a GUI issue.It's by design.
    With 7.x BEx Analyzer,the Query View can be opened only through Open->Open Query dialog
    where you have to select the "Type" as "Query View".It will list the available query views in the open dialog.Select the query view you want to open and click "Open".
    This is the way to open the query view with 7.x Analyzer.
    Rgds,
    Murali

  • When using BW Bex query analyzer users cannot change reporting queries ....

    Issue: When using BW Bex query analyzer users cannot change reporting queries. Any attempt to change queries results in errors.
    Error: BEx Query Designer: Run-time error '-2147221499 (80040005) Fatal Error - Terminating
    Impact: Business reporting is currently being negatively impacted because users cannot modify queries, cannot change filters for fiscal period and fiscal year.
    OS / MS Office Suite being used: Vista & Office 2007
    Backend System: BW 2.0B
    Frontend System: Being a large organization, we have a controlled environment wherein all users will have the following applications installed by default:
    1. SAP Client Base 7.10
    2. SAP BW 3.5 Patch 4
    3. SAP BI 7.10 Patch 900
    4. SAP GUI 7.10 Patch 12
    Does anyone has any idea as to why we are getting this error? Is it a Vista issue? Is it a front-end issue?

    Just a thought - did you guys apply any Microsoft security patches before this started happening - we had a similar issue in other SAP application due to MS security update. Raise an OSS with SAP

  • 40357-invalid string in example record query not issued

    hello experts,
    i am using forms 10g.in query mode i face that error 40357-invalid string in example record query not issued.
    i used these code in key-next-item trigger
    PROCEDURE KN_FOR_QUERY IS
    BEGIN
    IF :global.navigation = 'D' AND :global.mode = 'M'
    THEN
    IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
    THEN
    :global.temp_div_code:= :po_m.po_div_code;
    :global.temp_po_num := :po_m.po_num;
    :global.temp_po_ex_work := :PUR_DELV_D.DELV_EX_WORK;
    :global.temp_modi_num:= :po_m.po_modi_num;
    IF GET_BLOCK_PROPERTY(:SYSTEM.CURSOR_BLOCK,QUERY_HITS)=0
    THEN     
    -- message('1---'||:SYSTEM.CURSOR_BLOCK);
    -- message('2---'||:SYSTEM.CURSOR_BLOCK);
    GO_BLOCK(:SYSTEM.CURSOR_BLOCK);
    CLEAR_BLOCK(no_validate);
    EXECUTE_QUERY;
    -- ELSE
         -- NEXT_ITEM;
    END IF;
    -- ELSE
    -- mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered For Query...');
    END IF;
    ELSIF :global.navigation = 'D' and :global.mode = 'Q'
    THEN
    IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
    THEN
    MESS('Press Execute query button');
    go_item('tools.execute_query');
    ELSE
    mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered For Query...');
    END IF;
    ELSIF :global.navigation = 'D' and :global.mode = 'A'
    THEN
    IF NAME_IN(:SYSTEM.CURSOR_ITEM) IS NOT NULL
    THEN
    NEXT_ITEM;
    ELSE
    mess(GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM,PROMPT_TEXT)||' Must Be Entered...');
    END IF;
    END IF;
    END;
    Thanks
    Ravi

    Hi Ravi
    u may need to debug to find out where and when the error exist pls note the following
    Error Message: FRM-40357: Invalid string in example record. Query not issued.Error Cause:In query mode, you entered an invalid ALPHA or CHAR value in the example record.
    Action:Correct the entry and retry the query. Level: >25
    Type: Errorpls verifying that u r entering 1 char for global variable to be assigned so any number between 2single coat is considered a character not s number .
    Amatu Allah

  • Need tcode for Query analyzer

    hi i want to test query in query analyzer befor using in programe.
    i need tcode for query analyzer.
    thanks in advanced.

    hi,,
    SE30 - gives you a run time analysis and points out the issues more at design time.
    ST05 - Is the most useful if you want to track time taken for execution of each of the sections.
    SM50 - Will give you a work process overview, not sure at a program level how can it help you.
    Some times you will have to use a combination of SE30 and ST05.
    I would like to use St05 personally.
    rgds
    anver
    if hlped mark points

  • Is there query analyzer in SAP

    i want to test Query in query analyzer so how can i test in query analyzer.
    thanks .

    hi,
    SE30 - gives you a run time analysis and points out the issues more at design time.
    ST05 - Is the most useful if you want to track time taken for execution of each of the sections.
    SM50 - Will give you a work process overview, not sure at a program level how can it help you.
    Some times you will have to use a combination of SE30 and ST05.
    I would like to use St05 personally.
    Rgds
    Anver

  • Web Template with Query Views not showing Variable Screen

    Hi, I have a Web Template using 3 Query Views based on a single query.  The Query has 2 mandatory variables (CALMONTH and VERSION).  When I execute the Web Template it does not prompt with the Variable Screen, and presents the report with the Variables that were in place when the view was saved/created.  I'd like the Variables to appear.
    1. Is this the correct behavior? 
    2. Is there any documentation that might describe this behavior.
    3. Should I just copy the query and create 3 queries instead?
    Note: I did a search in SDN and found lots of similar threads, but nothing exact.  Also, I know about forcing the variable screen, but I thought I shouldn't have to do this.
    Thanks!

    k forget the view, when you run the main query... do you get a pop up for variable screen,. yes or no?
    if you dont then try to run another query and see if you get the variable screen as well. if you dont then its a bug. if you do then something is wrong in your query and its having an issue, but if you do get the screen on your query then it is a setting in your web template not in your query.
    you can also try to run the query in RSRT backend ...

  • Prin,t an interval in Query Analyzer (popup and report)

    Hello,
    I have a cube where a month represents a year... I explain this: for the key figures of March 2007 (200703) we have the sum of the key figures of the years (between 200604 and 200703). the problem is that when I ask the month for the user (in a popup), I want him just to put a month (the last month of the period) and when he validates i want him to see the interval and not just the value insered.. do you have any ideas to do that?
    Furthermore, when I have the column in the query analyzer i have created a caracteristic variable so we can see the first month of the interval but i would to print the entire intervall (200604 - 200703 instead of 200604). Do you know how can I do that?
    Thanks a lot,
    Reragrds,
    Julien

    Hi.
    The best way is to add 2 attributes to your IO: one is only chars and second is numeric.
    Question "how to fill them" depends on which system you use: 3.5 or 7.
    In BI 7, in transformations set "rule type" for these objects "formula" and use formulas LEFT and RIGHT
    For example the value is AAA123. For char IO use LEFT(3, YOURINFOOBJ) - result will be AAA
    For numeric IO use RIGHT(3,YOURINFOOBJ). result will be 123.
    Then in BEx add 2 this attributes to your query.
    In BW 3.5 the formulas will be the same but insert them into update rules.
    Regards.

  • How to create a Matrix table using this data in SQL Query Analyzer

    Hello all,
    I have a problem while I am trying to represent my Sql Table namely table1 in Matrix form
    my table Format is
    city1 city2 Distance--------------------------------------------------------
    Mumbai Delhi 100
    Delhi Banaras 50
    Mumbai Rajasthan 70
    Banaras haryana 40
    Mumbai Mumbai 0
    784 entries
    there are 784 cities each having link to other
    Now i want my output as
    Mumbai Delhi Banaras haryana
    Mumbai 0 100 -- --
    Delhi 100 0 50 --
    Banaras
    haryana
    respective distance from one city to other should be shown
    final Matrix would be 784*784
    I am using SQL Query Analyser for this
    Please help me in this regard

    I'm pretty much certain that you don't want to do this in pure SQL. So that means that you want to do it with a reporting tool. I'm not familiar with SQL Query Analyzer, but if it is in fact a reporting tool you'll want to consult its documentation looking for the terms "pivot" or perhaps "cross tab."

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

  • Why 0FISCVARNT is not shown in Query Analyzer?

    I have a cube, when I look at its dimensions from RSA1->Info provider under Time Dimension,
    I see Fiscal Year, Fiscal year Variant and Fiscal Year Period.
    But when I go to Query Analyzer and develop a query on it, under Dimensions Fiscal Year Variant is missing, why?

    Hi,
    Are you creating query on info cube or multiprovider? Have you included info cube in multiprovider and identified the fiscal year variant in the multiprovider or not? If you are creating query directly on Info cube it is not possible that you won't see it.
    Please check if you are creating queriy on proper info provider.
    Regards,
    Kams

Maybe you are looking for

  • Skype Subscription Cancelled - How can I renew to ...

    I received the below email from Skype. Action required - your subscription is expiring in 1 days as your recurring payment has failed Your subscription will expire in 1 days on May 14, 2013. Unfortunately, your payment failed or could not be processe

  • How to use a query in Web template

    Hello i have really a very silly question. How can i use a Query that is already defined by BEX into a Web template so that i can set up simple properties like changing colours of Row as well as avoid Tab pages. I logged into a Web template. Can any

  • IPHoto 11 continually hangs

    I am becoming very frustrated with iPhoto 11.  First, I hope the development team reads this and can fix it. Every time I try and drag a photo to a slide show the cursor turns into a wheel and just starts spinning.  Then after waiting for 20 seconds

  • ITunes keeps deleting my library on closure (NOT VAIO)

    Let me start off by saying, iTunes honestly blows. Really wish I could sync my phone without the use of this garbage software... Now that that's out of the way. I'm running 64-bit itunes 10.4.xx and import my music file only to have it delete everyth

  • File sync when switching sites in Dreamweaver CC

    Hi; I work with multiple sites and often switch back and forth throughout the workday. The problem is that one of my sites has 1000's of files,  so when I switch to it, Dreamweaver becomes unavailable for several minutes while it checks files.  There