Query Refresh Question

If the user wants to change the value of varables after executing the query for a diff set of variable values ...hw wud s/he do that?
Close & Reopen the query ...???
If  the variables r in the filter n if the values are changed in the report for that variable - filter ..it doesn't work....
Refreshing the query wudn't prompt for variable inputs...right ?
How to refresh the query when I am on report?

Guys,
<b><u><b>
Refer</b></u></b>
<b>Below is the query template for YTD report:</b>
<b>Filter – Characteristic Restrictions</b>
None
<b>Filter - Default values</b>
Posting Period
Controlling Area
Cost Center
Fiscal Year
<b>
Rows/Columns – Free Chars</b>
Fiscal Year
Posting Period
<b>Rows/Columns - Columns</b>
0Amount – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Single user entry posting period variable )
0YTD – ( Res to Fiscal year – Res to Single user entry fiscal year variable & Res to Posting Period – Res to Value Range ( 1 - Single user entry posting period variable ) )
<b>Rows/Columns – Rows</b>
Cost Center
Controlling Area
When I execute the query & enter the variable values for Fiscal year ( say 2007 ), Posting Period ( say 7 ) - it shows correct data.
Issue : On report when I change the filter of posting period to say 6 it shows only YTD values blanking out 0AMOUNT values for posting period 6 .
<b>
"When I do change variable it doesn't work accordingly "...what happens?
It doesn't show data for 0amount.</b>
Message was edited by:
        Jr Roberto

Similar Messages

  • Last query refresh failde due to internal errors ?

    Hi gurus
    we are working on SRM 7.0 with PPS,
    when Bidder tries to open his login page and wants to see the Rfx raised against him, He is getting error message,
    " Last query refresh failed due to internal error"  , some time this is due to another session witht he same query is open , but
    I am getting the same error in the following situation,
    suppose bidder has submittted his response and after submission he is trying to change the response and couldn't submit before the submission dead line then the version of the response will be c1, and which is not interpreted by the system, and so the error is .
    Any help or advice on the issue is highly appreciated.
    Regards
    NITIN
    Edited by: nitinkk on Jan 12, 2012 7:55 AM

    Dear Rahul,
    Thanks for replay,
    I have checked it but the issue comes  with the discribe procedure.
    and we have solved it now.
    Regards
    NITIN

  • VBA and Bex 7- Event to use in VB code BEFORE Query Refresh ?

    Gurus.. is there a Bex Event that I can use to 'intercept' a Refresh Query command to Bex and run some VBA first ? I'm trying to find a way to solve the analysis grid overlap problem when two queries are provided on one Excel worksheet, and navigation takes place.
    I've been able to figure out how to bring the results areas together (by deleting blank rows between them), but I'd like to be able to add a chunk of blank rows between analysis grids before the queries actually refresh.

    Hi Charlie,
    if you're interested:
    I've found a way to move the areas after the refresh - using the callback event.
    The logic is generally:
    - Check where analysis-grid for DP1 ends
    - Leave some empty lines
    - Move the offset of DP2 here.
    - Repeat the same for further DP's.
    There's only one hatch: I've got some trouble to reactivate the BEx-context-menu after this momvement.
    So far I found only the workaround "do another refresh" to solve this issue; that's ok but not 'beautiful'.
    Let me know if you need further input.
    Maybe you've got an idea for my issue:
    I'm looking for a way to execute the a routine only once after refresh - even if there are multiple queries in a workbook.
    The problem is that I do not know the order of the query-refresh or any flag that I could use to identifiy the "last query to be processed in this refresh-run".
    Kind regards,
      Marco

  • How to run a VB macros code on Query refresh?

    Hi BW gurus,
    Please help me out with this task.
    I have a macros as below
    <b>Sub Table_To_Cons()
        'Copy the occupied rows
        Application.DisplayAlerts = False
        TargetSheet = ActiveSheet.Name
        Sheets("Table").Activate
        j = 2
        For i = 21 To 65536
            If Range("F" & i).Value = "" Then
                'MsgBox "The Cell is Empty"
            Else
                f = Range("F" & i).Value
                g = Range("G" & i).Value
                Sheets("Consolidated Data").Range("A" & j).Value = f
                Sheets("Consolidated Data").Range("B" & j).Value = g
                j = j + 1
            End If
        Next
        Sheets("Consolidated Data").Activate
        MsgBox "Finished"
        ' Update Chart
        Sheets("Chart1").Select
        ActiveChart.PlotArea.Select
        ActiveChart.SetSourceData Source:=Sheets("Consolidated Data").Range("A2:B6") _
            , PlotBy:=xlRows
    End Sub</b>
    User are not interested to run the VB macros manually.
    Instead they are asking like this.The macros should run and show the latest result everytime when we refresh the query.
    Can someone help me out how to achieve this.
    Any kind of help is appreciated.
    Thanks in Advance
    Have a nice day
    Regards
    Sam Mathew

    Hi Sam,
    Very interesting that the Properties dialog has changed.  I have no experience with NW2004s.  I will answer your questions based on what I do have experience with; then, we will need to do some testing to check my assumptions.
    Your first question: does this subroutine already exists in a workbook, or do we have to manually type it in?  In the days before Excel 2002, the answer was "yes", the subroutine already exists.  Since Excel 2002, the answer is maybe.  More often than not, "no" ... and you have to type it in.
    But, whether it exists or not, you will find out when I answer yoru second question:  exactly where should I search for it?  Since you have written a macro, you already know about the Visual Basic Editor (VBE).  Since I am not sure how much you know about the VBE, I will explain it as if you know nothing.  Please do not be offended.
    As a general orientation to the Visual Basic Editor (VBE), there are 4 Windows you want to become familiar with:
    1.     the Project Explorer Window;
    2.     the Properties Window;
    3.     the Object Browser Window; and,
    4.     the Code Window.
    You should see the Project Explorer window on the left side of the VBE.  If it is not already visible, make it visible in one of 3 ways:
    i.     use the VBE menu bar and select View >> Project Explorer
    ii.     use shortcut keys Ctrl+R
    iii.     use the VBE Standard toolbar and select the icon for Project Explorer
    In the Project Explorer window you can all of the "Projects" (workbooks and add-ins), that are loaded. 
    In the view of your workbook (the one with the macro) there are at least twol groups of "objects" shown:
    •     Microsoft Excel Objects (these are Worksheets and Workbooks)
    •     Modules (I call these "General Code Modules")
    There are two other possible types of objects:
    +  Forms
    +  Class Modules
    Visual Basic Code is always written in a Code Window.  There are 3 types of code windows:
    i.     Object Code Windows
    ii.     General Code Modules
    iii.     Class Modules
    When you use the Excel macro recorder, it always creates the macro in a General Code Module.  The subroutine SAPBEXonRefresh also will be in a General Code Module. 
    To find it (if it exists), you can start in any code module in your workbook, press Ctrl+F, enter SAPBEXonRefresh, click the radio button to Search in Current Project.
    Now, to test my assumptions ... while you are in the Visual Basic Editor, with the Project Explorer Window open, please look under Microsoft Excel Objects and see if there is an object named "SAPBEXqueries".  If not, stop right there.  I cannot help you.
    If the SAPBEXqueries object is there, let me explain what it is.  This is a worksheet that is VERY hidden.  That means, it is hidden so that it cannot be made visible from Excel.  It can only be made visible from the VBE.  Let's do not now.
    Select the SAPBEXqueries object (double-click), then open the Properties window in the VBE.
    You can open the properties window using:
    +  View Properties Window
    +  press F4
    +  use the standard toolbar and click the Properties icon
    Look at the Visible property.  It should 2 - Very Hidden.  Change it to Visible.  Now switch back to the Excel view.  Look in cell F4.  What do you see in this cell?  It should be:  SAPBEXq0001, or something very similar to that.
    Now (still in Excel) open the GoTo dialog (Edit >> Go To; or, press F5).  This will list all of the Named Ranges in the workbook.  If you are on the SAPBEXqueries worksheet, the GoTo dialog should list a number of Named Ranges starting with SAPBEXq000,,,,,  Do you see this?
    I am very interested to learn what you see when you do these things.  And, I am very willing to answer any questions you have as a result of doing this testing.
    By the way, when you make the SAPBEXqueries worksheet hidden again, be careful.  As soon as you make it hidden (or very hidden), the selection in VBE will change to an object that is NOT hidden.  So, if you are not watching carefully, you might think that you are still on the SAPBEXqueries sheet and that you failed to hide it.  And, pretty soon, if you are not careful, you will have hidden every worksheet in the workbook!
    - Pete

  • Query refresh

    Hi,
    i get the following error when i refresh a workbook which has 6 queries.
    Cannot find the results area for a query, probably all its cells were deleted. please define a new location for the results area.
    and then when i click ok in the window.
    new window pops up: Repair results areas
    enter value.
    this happen only when i refresh all of the workbook i tried refreshing each query in the workbook seperately n i dont get this message can someone please tell me how to solve this.
    thankyou.

    I think you still not solved this problem:
    Query results
    Did you try what suggested by Eugene ?
    Hope it helps!
    Bye,
    Roberto

  • Query refreshing problem

    Hi All ,
                      We got this message when refreshing a detailed query from PA in an existing work book
                                    RFC_ERROR_SYSTEM_FAILURE
                                    error : No roll memory of length 86716416  available for event stack
                       However, if you refresh the query form the server it works fine
                        Any ideas .. for this problem?..
    Regards,
    Aditya

    txs..

  • Query panel questions?

    hi , i am using jdev11g r2, and ADF BC
    i can drag and drop the view criteria on a page as a query with table result, I can make query perfectly.
    my question is if I want to bold the lable of the criteria input fields in the af:query. How to do that, Thanks!
    Rgds!

    you have to use it like
    .label af|query::criterion-label{
    font-weight: bold;
    }and use the .criteria in ur af:query component like
    <af:query styleClass="label">for detailed information on how to use css changes refer
    Re: How to make panelHeader title to be in Red color.

  • Af:query refresh problem

    Hi OTN,
    I am using JDeveloper 1.1.1.3 and ADF Faces with ADF BC Components.I have a search page having af:query component,delete button and a af:table component.While clicking the delete button,It will change the status of selected row and remove from the search result .In my case status is updating in database but not in search grid.It will reflect after clicking the search button of af:query panel.So please point me a solution for programmatically refreshing the af:Query

    Hi Dinil,
    Try this -
    1. Open the View Criteria section in your view object.
    2. On the right top corner, check if Query Execution mode is "Database".
    3. If it is "database", change it to "In Memory".
    Hope it works
    Regards,
    Srinidhi

  • MVA SQL Server Query Assessment question

    Hi Guys
    I was doing a course on MVA, Querying Microsoft SQL Server Quick Start. This question came up in the assessment:
    True or False: You use the INTERSECT operator to combine results from two SELECT statements. Only rows that appear in both results sets are displayed.
    I answered it as TRUE but it marked it wrong.
    Am I not right??
    Thanks

    Hi,
    Choose yourself :-)
    http://technet.microsoft.com/en-us/library/ms188055.aspx
    [Personal Site] [Blog] [Facebook]

  • Bi Query Design Question

    Hi,
                I have a question regarding a query design issue I was faced with today. I was asked to designed a Query, however all the fields required are all defined as characteristics but I would like to display one as a key figure. I would have a characteristic for a row, the column also for a characteristic and have another characteristic displayed instead of the key figured…… Is that possible?
    Thanks for any feedback

    Hi Serge,
    This question would be more appripriate -- and you will get a quicker answer -- in the BI Forums.  Please open your question there.
    Best Regards,
    Matt

  • Oracle 9 Production - Integration refresh: questions

    Hello, I will have to proceed with Oracle 9 database refresh from production server to integration server. 5 biggest schemas must be exported and imported. They constitute 97% space used in a database. This is very big database so I would like to be sure that everything will go smoothly. That is why i want to ask you some questions. Have you got any clues for me before I start with exp/imp? From my side i will tell you that I will have to exp/imp schema by schema because there is small space both on production and integration disk for a dump. First thing I thought are dependencies between schemas that are exported and that which are not, and also between schemas that are exported/imported one by one.
    This is procedure that I plan:
    For every schema that is to be refreshed
    1. Export schema with ROWS=N CONSTRAINTS=Y
    2. EXPORT schema with ROWS=y CONSTRAINTS=N
    3. Import schema from step one
    4. Disable all the foreign key constraints using ALTER TABLE DISABLE CONSTRAINT.
    5. Import schema with rows
    ALTER TABLE ENABLE CONSTRAINT
    With above procedure i think that I will avoid problems with dependencies between schemas exported/imported one by one. But my concern is if there are any dependencies between those schemas and schemas that are not exported. Is there an way to check it before refresh ?
    Are there any details that i forgot to mention and i should be aware of?

    If the issue is disc space, then go via a pipe: create the pipe on the source server with mknod, and use NFS to make the file system containing the pipe visible on the destination server. Then you can start the import reading from the pipe, and start the export writing to the pipe. That way you do the whole job (all the schemas) in one exp/imp run, without staging anything on disc, and no dependency issues.
    Any good?

  • JClient Refresh Question (Am I trying too hard?)

    Environment: Windows 2000, JDeveloper (9.0.3.10.35)
    I have a JClient with a bunch of JTextFields bound to my BC4J app. I perform all of my business logic calculations/validations in the entity objects. I have some entity calculated attributes and these are calculating just fine. However, I also do some more complex calculations and manually set these entity attributes (about 5 of them). These calculations are triggered whenever a user modifies a textfield...
    My problem is that whenever I modify a textfield, the calculations are performed, the entity attributes updated, but they aren't shown/refreshed in the client. Hmmm... Here are some of the things I've been trying:
    - Override sourceChanged() in my view implementation. Ok, I can see "attribute changed" events, but how do I update the Swing textfield?
    - Got a handle to the iterator binding and forced a refresh from entity->view by calling "navigate(null)".
    Calling navigate(null) worked, so I then thought I could add this logic to the sourceChanged() handler but I am not sure about the easiest way to get the iterator binding from the view implementation. Hmmm... I think I'm making this way too hard... Am I missing something totally basic here? Any suggestions would be great? Thank you.
    BTW, the attributes are marked as updateable in both entity and view.

    I've done some more debugging, looking into the areas you referred me to... I think I have stumbled across the "eventing mechanism bug" between EO and VO when subclassing is involved (Re: package in all_objects shows invalid but compiles fine
    ). I failed to mention that I was using a polymorphic rowset because I didn't think it was relevant (shouldn't have assumed...)
    Here's what I've verified:
    When I set an attribute in the entity with no subclassing, notifyRowUpdated() is called in the view object. However, if the entity is a subclass, notifyRowUpdated() isn't called.
    Your first question may be if I have correctly setup the polymorphic rowset behavior. I think so... I've read all the articles/how to's that I've found about polymorphic rowsets in this discussion group. My "abstract" view points to my abstract entity, and then imports all of the subclasses (defined when you click the "subtypes" button in view object properties window). The discriminator is working and BC4J is instantiating the correct subclass, however, the view isn't getting notified when an entity's attribute is modified (ie, notifyRowUpdated() isn't getting called).This info along with the other link gives us enough to reproduce the bug and as mentioned in the other link, it is targeted for fix in our next release.
    The workaround to the "EO/VO eventing bug" was to call executeQuery() to refresh the detail. My problem seems to be in a slightly different context, so I'm not sure exactly what to do. As I had mentioned earlier, calling navigated(null) seemed to refresh the view. Should I pursue this or do you suggest something else? naviated(null) is a fine workaround. JClient bindings simply get the current row from 'the iterator' and displays that so that's effectively a refresh on the control-bindings.
    Would you like a small repro case? Thank you. Let us know if you hit any issues with this workaround.
    Thanks
    Shailesh

  • Update several rows with single query (easy question, I guess)

    Hi all!
    I have table with two columns - name and value.
    I populate it with several sql queries:
    insert into settings (name, value) values ('company_name', 'My Company');
    insert into settings (name, value) values ('company_address', 'Company Address 12');
    insert into settings (name, value) values ('company_city', 'South Park');
    How can update rows with company_name and company_city in single query?
    Thank you in advance!

    How can update rows with company_name and company_city in single query?I guess something like this was meant:
    update settings set value = ??? where name in ('company_name ', 'company_city');But it's still unclear to me what should be used instead of question marks... :)
    Regards.

  • Query View questions

    Hi,
         Can anyone tell me how I can find out what query belongs to a query view?  A table out there? 
    Found the answer to this question: Table RSZWVIEW.
         Also,  if a person has access to the query do they automatically get access to the view?
    Thanks!

    You are correct about the table.  There is a trick for query views.  You must insert an entry into the RSADMIN table in order to start checking for authorizations based on query views, otherwise, it simply uses the query.  There is an OSS note: 601090.  Hope this helps. 
    Thanks,
    Jeff

  • Schedule a Query Refresh

    Hi ,
    In BW 3.1 is there anyway to schedule a job refresh a workbook automatically in the background . Can reporting agent be used to acheive this functionality ? I also would like to access the refreshed query from the document store and send it as an email attachment . I know that 3.1 does not support information breoadcasting , but can it be achieved programmatically ?
    Any document links that provided more details on this would be appreciated .
    Thanks

    This is the point-of entry for reporting agent in general:
    http://help.sap.com/saphelp_nw04/helpdata/en/28/734d3caa70ea6fe10000000a114084/frameset.htm
    For the precalcullation of HTML-reports:
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/frameset.htm

Maybe you are looking for