Problem refreshing query when opening workbook in VBA

I have a report menu in a workbook not containing any queries - only the description, technical name and additional information about the reports.
I use Run ("SAPBEX.XLA!SAPBEXreadWorkbook"), <TECHNICAL_NAME> to open the respective workbooks, which works fine.
However, if I try to refresh the query, BEx displays a message saying:
"Can only refresh this query agains a server of release 2.0 or higher: <QUERY DESTINATION RANGE>"
We're using BW 3.5!
After that, BEx is a complete mess:
- Open workbook dialog is from a previous version (without History, Favorites, Roles buttons)
- All workbooks are displayed, but if I try to open one, BEx claims that "The workbook does not exist in the document store". Then why display it, dear SAP programmers?
Now, if I disconnect and reconnect, the query can be refreshed as if I had opened the workbook directly instead of using VBA.
Our users like the idea of a report menu, so any help would be appreciated!

Changed the error handling as follows, dropped the SAPBEXinitConnection function, which is completely redundant:
Sub OpenWBTechName()
On Error GoTo ErrorHandler
    Run ("SAPBEX.XLA!SAPBEXreadWorkbook"), <TECHNAME>
Exit Sub
ErrorHandler:
    If Err.Number = 1004 Then ExtraInfo = "Start BEx Analyzer!"
    res = MsgBox("Sorry, could not open requested report!" & vbCrLf & vbCrLf & ExtraInfo, vbExclamation + vbOKOnly, "Open SAP/BW workbook report: ERROR!")
End Sub

Similar Messages

  • Refresh query when opening workbook is ticked automatically

    Prior to Upgrade, the bex properties settings for "Refresh query when
    opening workbook" was unticked(deactivated) and now after upgrade to BI
    7.0 the bex properties "Refresh query when opening the workbook" is
    ticked(activated).
    Again, This has happened only to a particular strand.
    Can anybody guide me on this. As a result of the above, all the work books are now refreshing automatically. This has affected hunderds of workbooks and we need to restore this back. Please help.

    Hi Dave,
    That is a local workbook setting.  The setting is stored in the workbook on the sheet named SAPBEXqueries (see earlier postings on how to make this worksheet visible).
    If there is only one query in the workbook, then look at at cell U4.  This cell will read TRUE if the setting is check (do refresh on open) and will read FALSE if the setting is not checked (do not refresh on open).
    One way to be sure that this setting is not altered would be to create a subroutine for the Workbook_BeforeClose event.  The user then can make any selection they like, but you will over-ride it when they close the workbook.
    Hope this helps.
    - Pete

  • Problem Refreshing Query Definition on Workbook

    Hi guys ....i have a very strange case.....in 3.5 users can execute workbooks without problems and also can change global and local definition of the query on formulas and keyfigures....but the column header texts are not updated in workbook....i have a description for columns and rows on workbook and another description on definiton of query....i checked the "goto query defintion on refresh" on properties and nothing happens...headers are not refreshed.....
    I hope somebody could help me
    Regards

    Hi,
    Is there any macro written which may be overwriting the column header.
    If this is not the case then you must have saved workbook when it was last edited by editing the column headers. You can change in workbook the heqader column and then see whether the column header is taken from query definition or what you have saved in workbook.
    Regards,
    Niraj

  • How to set input ready query to display mode as default when open workbook?

    Dear All,
    Hi, i have a question here about IP query.
    as my current situation, my workbook included one input ready query, therefore, when i open my workbook which default is Edit mode which mean all value can be edited.
    but, i want it to display mode when open workbook, and i already have a edit button, if i want to edit the value i will use Edit button, so, i wan it as display mode when i first open workbook.
    so, can anyone tell me how to set it as display mode when open workbook which included input ready query?
    Regards
    wenlong
    Thanks a million

    in Data Provide Specfici  commad
    Edit
    Dsiplay
    Filter command
    Assigen Query /Query view
    pls select Edit then save

  • Rich Client keeps refreshing docs when opening them

    Hello,
    I would like to ask a question about the refresh on open with Rich Client. Using FP2.10, I have Rich Client which keeps refreshing documents when opening them. This happens even if the 'refresh on open' option is unchecked. I would like to know if there is another option that is forcing the refresh of my webi doc when opened with WRC.
    this behavior I'm facing is systematic and does not depend on universe, document, objetc or whatsoever.
    It happens when I create a brand new doc using demo universe (eFashion for instance). I use a prompt in the query; then I save the document locally as a .WID file making sure that option 'refresh on open' is uncheck. However when I open this newly created document, the prompt dialog box shows up meanign that the doc was refreshed.
    This behavior is happening wiht only one machine. that' what made me think that it might be related to some configuration within that machine.
    Thanks in advane for any input you might have to resolve this issue.
    Best regads,
    Mohamed

    I have got a question with regards to this thread.
    I understand the new option that has been added u201CDisable Automatic Refresh on Open for all documentsu201D
    In this instancce all reports refresh when opened in WRC and not in Infoview?
    Is this right specific to WRC or Webi in Infoview as well?
    With BO administrator, the report does not refresh as u201CDisable Automatic Refresh on Open for all documentsu201D right is granted by default.
    However, with a non-admin user, the report will refresh.
    If the aforementioned right is  granted to the non-admin user then the auto-refreshes stops.
    Therefore, my query is:
    Is this functionality of refreshing all documents specific to WRC or does it also applies to Webi in Infoview?
    If specific to WRC then is it documented somewhere?
    Thanks
    Steph

  • Error when opening workbook

    Hi
    I'm recently having a problem when opening a workbook in BEx Analyzer.
    This never used to be a problem, however when opneing it now I get following error message:
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in program CL_RSR_FIPT_TRANSFORMATOR and form GET_MAPPING-01
    No information can be found on program CL_RSR_FIPT_TRANSFORMATOR...
    I found that it has something to do with a conversion of a Key Figure using a budget rate, after I remove the conversion everything works fine.
    Notes found on this problem: 930168
    but this note states that support package 8 will solve the problem.
    We are at 16...
    Can someone help me?
    Thnx!
    Kind regards
    Davy
    Edited by: Davy Lambrechts on Jan 5, 2010 4:10 PM

    Hi Murali
    I found that it has something to do with a conversion of a Key Figure using a budget rate, after I remove the conversion everything works fine.
    I tried building a new query from scratch, again the error appaers when using the conversion.
    I executed other queries which also use the same conversion and they run fine.
    kr
    Davy
    ps: font end needs to be patched, but it's a case for the IT team

  • Automatically run query when open webpage

    Hi experts,
    I am newbie in Jdeveloper. I created the webpage following the "Search" tutorial. But now I need to run the query when I open the page, no need to input parameter and click on "Go" button.
    Thanks in advance
    Best Regards
    Hieu

    Hi,
    In controller write the code
    import oracle.apps.fnd.framework.OAApplicationModule;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("callAM");
    In AM create new method
    public void callAM() {
    NewVOImpl vo = getNewVO1();
    vo.executeQuery();
    Thanks
    Jegan

  • Problem when opening Workbook , error "This file is not in a recognizable format".

    Hi Team,
    When i am trying to execute one work book. I am getting above worming message
    Can someone help me about this message and solution to this issue.
    Thanks in advance.
    Regards
    Raju M

    Hi Raju M,
    What is the version of Excel you are using?
    Can you please apply SAP GUI for Windows 7.30 with latest Patch Level and
    BI 7.0 ADDON FOR SAP GUI 7.30 with latest Patch Level and check whether it helps you.
    Also, please refer the following SAP Note:
    147519 - Maintenance strategy / deadlines for SAP GUI
    Thanks & Regards,
    Sapna

  • Problem refreshing CFGRID when exiting window

    I am using CF9 and CFGRID to display records, A user can double-click to edit a particular record, or choose to add a record. The problem I am having is when you exit out of the update or add window (by clicking on the 'X' icon in upper-right of the window), the CFGRID does not refresh. I am able to do the grid refresh if the Submit or Cancel buttons are clicked, but have no idea how to accomplish this if the exit icon is clicked. Does anyone have ideas as to how I might be able to accomplish this?
    Thanks in advance!

    What happens if you do a
    IF :PARAMETER.I IS NOT NULL THEN                    
                   Go_Block('B1');               
                   Execute_Query(no_validate);
    SYNCHRONIZE;
                   Go_Block('B2');
                   Execute_Query(no_validate);
    SYNCHRONIZE;
                   canvas.Open(:PARAMETER.I);                    
    END IF;

  • Problem with fonts when opening a pdf in Illustrator

    Hi all! I'm working on a pdf. I do NOT have the original. So I've found it's easier to open the pages in Illustrator, make edits, and resave as a pdf. The problem is that Illustrator is converting some text to outlines. It is saying I don't have the font, but I do. In fact, on the same page I'll have 4 lines... and some will be converted to outlines and some won't... and they are all the same font. Is there a way to tell Illustrator to NOT convert the font to outlines? I don't mind if it uses a substitute font... it's easy to go in and change the font to the right font. But I don't want the text converted to outlines. Thanks.
    Julie
    PS I'm using CS 4 on a Mac.

    Thanks, Scott. But I'm not sure what you mean by "pretty standard." Are you saying this is, in fact, default behavior in AI 14?
    I'm still at AI 12 (CS2), and "standard" behavior (when the font is not available) is for Illustrator to do a font substitution, not automatically convert the type to outlines.
    Is this, perhaps, what the new 'Missing Glyph Protection' does in AI 14 (as Myle suggested in post #1)?
    If, in fact, this is the new default behavior, I would hope that Illustrator provides a warning (and an option to not proceed) given the highly destructive nature of converting type to outlines.

  • Problem refreshing canvas when multiple windows and canvasses.

    Ok I Have a form that has 2 windows and 2 canvases.
    They both get populated on When new Forms instance trigger with a parameter i pass in from teh previous form.
    On entering the form if the parameter is set (passed in by the form before) it should query the blocks on canvas 1 and display the second canvas/window via a seperate package of "canvas.open" which is a package to open and populate the second canvas which is a tree.
    If this code is fired on a key next item or a button press its fine. but not where it is on when new form instance trigger. The canvas.open simply stops on a synchronize early on. If i remove a sync then the second canvas never appears.
    You can see a commented out pause. If this is included then it all works fine. If i use a synchronize instead of the pause it doesnt even reach the canvas.open (i used messages on status to work this out)
    So my question is how can i get a synchronize to work as i assume this is whats missing?
    Any help much appreciated, Im sorry if i have not explained very well.
    IF :PARAMETER.I IS NOT NULL THEN                    
                   Go_Block('B1');               
                   Execute_Query(no_validate);
                   Go_Block('B2');
                   Execute_Query(no_validate);
    --PAUSE;
                   canvas.Open(:PARAMETER.I);                    
    END IF;          

    What happens if you do a
    IF :PARAMETER.I IS NOT NULL THEN                    
                   Go_Block('B1');               
                   Execute_Query(no_validate);
    SYNCHRONIZE;
                   Go_Block('B2');
                   Execute_Query(no_validate);
    SYNCHRONIZE;
                   canvas.Open(:PARAMETER.I);                    
    END IF;

  • I'm having problems using Firefox when opening up PDF files that are called from jsp.

    I'm trying to open my billing statement in pdf format. When I click on the link, Firefox 4 takes me to the dowload page and starts to download a readPDF.jsp file. How come Firefox is asking for that? When I use IE 7 I get no problems. Please advise on how to get Firefox to open jsp files automatically.

    I have same problem too

  • Problem with desaturation when opened in ACR

    When I open a .jpg image as camera raw (v. 6.2.0.29), then immediately save that image as a .jpg (quality 12) from CS5 (v. 12.0.1x32) without any edits (but as a different file name), the newly saved .jpg is significantly desaturated in color when compared with the original.  This does not occur if I open the .jpg without going through ACR and then immediately save (as a new file name) without any edits.
    In puzzling over this, I've also noticed that when I open a .jpg in CS5 as a camera raw, then immediately open the same .jpg without going through camera raw and compare them side-by-side, there are significant differences between the two histograms.
    What in the world am I doing wrong?  Since it only happens when I open a .jpg as camera raw, and not in CS5 apart from ACR, I'm guessing that it has to be something in ACR.  However, I have not yet been able to find a problem with the settings in ACR, and no changes I have made in ACR seem to affect the outcome.
    Any ideas what I'm doing wrong, or where I might go looking?
    Thanks in advance...
    ACB

    Check the ACR output colorspace; it's identified in the link at center bottom.  If it's ProPhoto then your jpegs will look very unsaturated when viewed in a non-color managed application, such as Internet Explorer.  Click on the link to change to sRGB for general email and web output.
    Richard Southworth

  • PROBLEM refresh query automatically

    Hi
    We want to do a analytic dashboard with the web application designer.
    our problem is that we want the query to refresh automatically, for example every 2 minutes, due to the constant changes of the information.
    Does someone know if with the bw 7.1 it is possible to refresh the model periodically without returning to execute the query?
    thanks and best regards.

    thanks for the reply, there is an option in the iviews called "Cache Validity Period" but they dont want the portal, only bex to acces the information.
    thanks again

  • HP Quality Center - Version 11 - Refresh Requirement when opening

    Hello,
    Is there a way to set up a requirement to automatically refresh prior to it opening (to show most current update).  Currently, if there is a user (user 1)  with the screen sitting on the requirements module and a user (user 2) making updates while user 1 is idle - the requirement does not automatically show the updates when user 1 opens the same requirement after user 2 completes the updates.  User 1 will have to manually refresh the screen for it to get updated immediately.  By user 1 not refreshing, the requirement does not shows the updates until after user 1 makes a change to the same requirement or upon closure of the requirement.
    I tried using "Actions.Action("actFilterRefresh").Execute" but it did not work (unless I set it incorrectly).
    Any help is greatly appreciated.
    Thanks.

    This issue is usually due to having multiple monitors, particularly when used with a laptop where the configuration can frequently change. For example, when at one location, the display settings are such that the laptop is on the left and the secondary monitor is on the right, but at another, the laptop is on the right and the secondary monitor on the left. Applications remember where windows were when last opened, so if the monitors are not configured in the expected order, the window may be "invisible" when next opened. What is actually happening is described in nathanielcoyle's response regarding the coordinates of the window.
    The solution is to go to the Display settings under Control Panel and reverse the order of the monitors. It may alternately help to change which monitor is considered the main display (this is just a theoretical guess). If you use dual monitors at work but only have one (your laptop) at home, you're pretty much hosed until you get back to work or find another monitor to plug in. That is, of course, unless you happen to have your QC administrator on speed dial to implement nmailey's solution.
    Preventive measure: Always bring windows back into your main display before closing them.

Maybe you are looking for

  • OS X Mavericks can't install

    I've download OS X Mavericks from Apps Store cost 5GB( i guess). The setup won't open up. I download several times but it won't open up. It took 134GB from my HDD but no installation setup open. Why?

  • NWDS 7.0 connect to CE7.1 Service Registry

    Hi Experts, Now, I want to create a Web Dynpro project and import an Adaptive Web services model through UDDI. If I use NWDS 7.1, it does support directly connect to SR. Howerver, if I use NWDS 7.0, is it still possible to connect to SR? Best Regards

  • PowerMac 7200/120 to Mac Mini AppleTalk transfer EXTREMELY slow

    Ok, I've got an old 7200/120 PowerMac which has been serving faithfully for a number of years now as our LetterRip mail server. Today it had a fairly serious crash and we cannot find our 8.5/6 CDs anywhere (and I can't seem to get it to boot with the

  • Remove (or adjust) iPhoto Book Binding Gutter

    Howdy All, I am trying to print some of my own iPhoto books (on a Canon Pixma ip4200 with duplex printing). Unfortunately, iPhoto (I believe) seems to be putting a binding gutter on the left side (appropriate for an Apple print job). Whereas my print

  • Connecting webservice

    Hi all,         I want to connect webservice to R/3 .Here am getting input from Webservice like "empno" , so that  If I choose SOAP to RFC synchronus ,then how would I get the input which is coming from webservice. Whether I want to use NWDS to perfo