Refresh a query, by assigning macro to a object

Hi,
I am trying to use an object on a worksheet to refresh a query on another worksheet. I am not quite sure how we do it.
I looked at the thread, BEx query refresh macro
But, i do not how to use it. please provide suggestions as to how to proceed?
Thanks,
raj

reposting for suggestions, did not solve my problem yet.
so far what i know is, i have to assign macro to the object but, do i need record the refresh query or do i need to call the standard funtion,
"Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
End Sub"
But, how do i call or assign this as a macro to the object
peter knoer, can you provide suggestions?
Thanks,
raja.

Similar Messages

  • Error message while refreshing a query

    Hi All,
    I get a error message when i try to refresh a query, the message is "Can only refresh this query against server running 2.0 or higher". Can anyone tell me what exactly this means??
    Thanks in advance
    Kelly

    Hi Kelly,
    Hope you are running the query from Bex. Try running the query in RSRT and check for any error message. Also check for any short dumps in ST22.
    Bye
    Dinesh

  • System error when I refresh a query/WB

    Hi All,
            When I refresh a query/workbook getting following error message and can not proceed further..
    <b>Abort System Error in program SAPLRRS2 and form INITFL_ASSIGN-01</b>
    We are using BW 3.5 and BEX reports.
    I'd appreciate if you could help me on this
    Thanks
    BI Consultant

    What variables are you using in your query? This error essentially occurs when the variable values are not correctly transferred resulting in a high volume data selection. Do you have any mandatory variables in the query? Are they getting filled the first tiem round?

  • Disable Query name assignment to documents in BI7

    Hi gurus,
    When i attach a document to InfoProvider data in query BI 7, the name of the query is assigned to the document.
    So i can't find the document in another query with the same axes.
    How I can disable the assignment of the query name to assign the document only on axes?
    Thanks,
    Franck

    Ok. i try to explain this detail.
    You can have a seperate documentation for Infocube & for  query.
    For Infocube : Select the Infocube & then define the documentation as RSA1 -> Go to -> Documents
    For Queries : each query will have its own documentation and that can be defined in Query properties
    in this way,you can have the Infoprovider documentation independent of the query
    Hope this is clear now.
    Sreeman

  • Please select a valid InfoObject appears while refreshing a query

    One of the users is trying to refresh a query (showing a hierrachy). While refreshing the user gets the following message: "Please select a valid InfoObject". I just talked to the user and she is saying it appears from time to time. Does any of you had such problem? What is wrong?

    Hello Jesper,
    We got the same problem after upgrade. We have applyed the note you talked about in your post. It fixes the issue.
    Thank you.
    Best Regards,
    Pierre.

  • Prevent Excel from recalculating when refreshing a query within a workbook

    Hello,
    I have a BEx workbook with 4 queries and a significant number of Excel formulas retrieving and rearranging query data.
    **The issue**:
    When Excel>Tool>Options>Calculation is set to "Automatic" (as it should be in normal situations), refreshing anyone query takes about 2 hours.
    When Excel>Tool>Options>Calculation is set to "Manual", refreshing anyone query takes about 2 minutes.
    Therefore I conclude that BEx does not prevent Excel from recalculating during a query refresh and this cause unacceptable delays.
    **Question**
    Is there any way to prevent to temporarily prevent Excel from recalculating during a query refresh ?
    Thank you.
    Louis

    I have a star schema, ie 5 FACT tables and 7 dimension tables, All fact tables share the same dimension tables, some FACT tables share 3 dimesnsions, while other share 5 dimensions.  
    I did adopt the best practices, and as recommended in the book, I tried to resolve them using Context, as it is the recommended option to Alias in a star schema setting.  The contexts are resolved, but I still have loops.  I also cleared the Multiple SQL Statement for each context option, but no luck.  I need to get this resoved ASAP,
    I checked all the context and they look fine, however when I again go to detect context it asks me to add the context which is already present.  It give me an option to overwrite?  Besides, I also get some Alias options.  However I was told and it was mentioned in the book that Alias is not a good option to resolve loops but context is when you have a STAR SCHEMA.
    Please suggest idea.
    AP

  • Refresh BEx-Query with variant

    Dear all,
    i have a question about refreshing Queries with variants.
    To refresh a BEx-Query (BW3.5) in a Workbook with VBA is no problem.
    For example:
    Run "SAPBEX.XLA!SAPBEXrefresh", False, myRange
    But is there a possibilty to refresh a BEx-Query with a variant (also with VBA)?
    My target is to create a VBA-Tool:
    1 which user can select a single Query and the available variant.
    2 Then push a VBA-Button
    3 After the selection no Variable-Screen will pop-up
       and the refreshing is completed.
    Thanks all

    Hi Ashok,
    refreshing Queries automatically on Workbook open is standard...
    What i need is to refresh a Query with variant (saved variable-values for a query e.g. the name of the variant is "ZMYVARIABLES").
    The user should not select an existing variant (ZMYVARIABLES)
    manually with Shift+F5 (Get Variant) on the Query-Variable POPUP-Screen.
    What i need is a codefragment which implement that all.
    Pseudo code:
    Sub RefreshQuery(QueryID As String, Variantname As String)
    End Sub
    Thanks,
    Erol

  • Trouble on refresh BO Query

    Hi,
    I have a  model in spreedsheet, that contains BO queries (not web intelligence reports), that use Live Office Connections. These refresh whenever I change de value of a cell, the value of one of them has a formula. For example:
    cell A1---> 2010
    cell A2--->=A1-1
    The problem is in the results in the BO queries. The value of the cell A2 change but not refresh de query. Previously, I configurated de properties of the BO Query, on tab "Request", I have linked the value cell.
    I have an other question, what do you recommend? a bo query  on spreedsheet use live office connections or web intelligence use live office connection?
    Any idea what's the problem? and how can I solved it?
    Thanks

    Hi,
    Try to use the grid component to verify what exactly shows up when in both the cells in runtime. This way, you will see what actually is happening in spreadsheet.
    Your second question: I would say that use the Web Intelligence query whenever you expect data from a formatted kind of report. The other option may be more useful in case for raw data.
    Regards,
    Gaurav

  • How to refresh a query in Portal?

    Hi Friends!
    I have a query (bex) which is published in portal.
    I need refresh the query but I dont see any button for this.  How can I do it?
    note: I need refresh only the query, not all the web page .
    Thanks!!

    closed

  • Refreshing ADF Query Component after changing some property of a criteria

    Hi All
    Use Case : Refreshing ADF Query Component after changing some property of a criteria attribute.
    I have a query panel with 2 query criteria i.e. FirstName and DepartmentId where in DepartmentId is a drop down. The scenario is like when change the value of DepartmentId to 'Finance' with code value of '100' then my criteria attribute 'Firstaname' should be invisibe(queriable=false).
    Approach: Have overriden the queryOperationListener of adfquery as " queryOperationListener ="#{backingBeanScope.backing_queryLstener.processQueryOperation}" "
    My backing bean method goes as below :
    public void processQueryOperation(QueryOperationEvent queryOperationEvent) {
    // Add event code here...
    if( queryOperationEvent.getOperation().equals(queryOperationEvent.getOperation().CRITERION_UPDATE) ){
    DCBindingContainer bindings = (DCBindingContainer)this.getBindings();
    DCIteratorBinding iter =bindings.findIteratorBinding("EmployeeView1Iterator");
    ViewObjectImpl voimpl = (ViewObjectImpl)iter.getViewObject();
    ViewCriteria vc = voimpl.getViewCriteriaManager().getViewCriteria("EmployeeViewCriteriaDemo");
    Row currRow = vc.first();
    System.out.println("Department :"+currRow.getAttribute("DepartmentId"));
    if( (Integer)currRow.getAttribute("DepartmentId") ==100 ){
    AttributeDef[] attrs = voimpl.getAttributeDefs();
    int attrIndex = voimpl.getAttributeIndexOf("FirstName");
    ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl) attrs[attrIndex];
    attrDef.setQueriable(false);
    // AdfFacesContext.getCurrentInstance().addPartialTarget(getQryId1()); //here i need to refresh the query component which is not happening
    // refreshQueryComponent(getQryId1());
    Everything is happening as expected but the query panel s not get refreshed.When i refresh the whole link/page then i can see the change.
    Please suggest.
    Thanks in adv.
    -Sanjeeb

    Hi,
    can's say anything about the first part of the question as more insight to the implementation would be required. However, have a look at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/83-bidi-synchronization-tree-form-401841.pdf, which may be what you are looking for
    To the second part: You can programmaticallly refresh the tree component from a managed bean. So instead of using the declarative PPR option (or ChangeEventPolicy set to PPR on the iterator binding) you can wire the submit button to the managed bean, perform your validation and if it fails don't refresh teh tree
    The call is
    AdfFacesContext.getCurrentInstance().addPartialTarget(the_tree_instance)
    Frank

  • In Office for Mac 2011 After creating a Button how do I change its shape without triggering its assigned macro?

    In Office for Mac 2011, after creating a button how do I change its shape without triggering its assigned macro?

    For questions about Microsoft's tools, it would be best to ask in the Microsoft Support Forums. They would likely have more experience than people here.

  • Assign Macro - has a path added

    Pic 1
    Normaly is has file name and the macro name. But office 64bit added this without question !
    Some times the time is added too ?
    Pic 2
    I wrote a little program that erases the orional buttons, places new 1's and adds the macro....
    The string I write to the macro is OK, but if I look what is there, the path is added again !
    Thanks Bill.
    Now give me the solution..
    And i'm not alowed to send you pictures, so good luck.
    Please...

    Pic 1 + 2
    If you right-click on a button (form control) in the Excel sheet you can go to the assign macro dialog and there is something like this :
    'FileName.xlsm'!MacroName
    If you insert this string with VBA the path of the file is added !
    So just add the macroname if the FileName is the active file.
    .OnAction = "MacroName"
    But that does not explain why when going from office 32 bit to 64 bit all the buttons get a path added.
    Unexpected feature ?
    And the next.
    During the changing of 500 excel files, changing the macro back to what it was, got this one :
    Run-time error '-2147417848 (80010108)':
    Automation error
    The object invoked has disconnected from its clients.
    At random files, this dialog appeared. But a delay got rid of it.
    If Application.Wait(Now + TimeValue("0:00:02")) Then
    End If
    You can only CTRL-V in a code window ! Nice ?

  • How do you search through configured Alternate Extensions to correct error message : The phone number or extension has already been assigned to some other object.

    When configuring a new Unity Voicemail Account I receive this message : The phone number or extension has already been assigned to some other object. I understand that this means that the 10 digit number I am trying to configure as the alternate extension for this user is already configured for another object with Unity.
    I need to search by the 10 digit number and determine where it is configured so I can change it and map to the correct end user.
    I have attempted to to search Users via DTMF Access ID using the 10 digit number with nothing being returned via that search.
    How do I Search all of the copnfigured Alternate Extensions within our Unity Server?

    A subscriber info dump is likely the fastest way.  If you're curious regarding other methods, you can also use the Data Link Explorer (CUDLE) tool which is in the Cisco Unity Tools Depot.  All extensions for all objects are referenced in the "DTMFAccessId" table.  The View menu has a Query Builder which you can use to compile a SQL query that searches for a digit string.  It's best to search for both the 10 digit string as well as an abbreviated string as Unity sees them essentially the same and they are usually should be associated with a single subscriber.  Once you find a match, you can use the "ParentObjectId" value associated with the DTMF access ID to look for a matching owner in the "GlobalSubscriber" table.  The ParentObjectId should match the SubscriberObjectId for a subscriber (assuming the DTMF access ID is assigned to a subscriber).  This is the same thing as looking at SQL; however, you are not directly accessing the DB so this is generally considered the safest way to browse and get a feel for where things are.
    Hailey

  • Account requries an assignment to a  co-object

    Dear
    When posting a material through txn MB1B with movt type 453 it shows an error
    Account requries an assignment to a  co-object
    Tell me where we assign the co object
    Regards
    sanjay

    There is no account assigbment for this material type hence you are getting this error.
    You need to take help from MM for this error.
    i suggest you to open query in MM forum.
    Regards
    TAJUDDIN

  • F110 AutoPayment KI 248 Account Requires an assignment to a CO object

    Hi Guru,
    I have found a problem that when run F110 proposal, several accounts shows the following error message in job log. I have searched other webpage on the same problem but it doesn't work.
    Tried solution: OKB9 assign cost center to the account. KA02 assgin default cost center to the account. But all the above can't solve the problem.
    The error message is:
    Account 658215 requires an assignment to a CO object  KI 248
    I found the account 658215 was for revaluation gain/loss. But it is confusing that the open item for vendors are all posted in local currency. No foreign currency is used in auto payment also.
    I tested the same vendor in QA system but it gave me no errors. Only in PRD it has the error message on proposal.
    Could you please help to throw some light on the problem?
    Emma

    Hi,
    Kindly check the cost element 658215 (i.e) what cost element category assigned, since you said in QA it has been successfully posted, you can compare the same.
    Also, try to simulate the document in PRD through FB01 for the GL account 658215 and assign the cost center manually and check whether the same error is appearing. If not, then your assinment in OKB9 is wrong or the cost center is deactivate or block.
    Let me know if the issue is solved.
    Thanks and Regards
    Gopinath

Maybe you are looking for