Bex Analyzer macro to change workbook settings

Hi,
I need to create a macro on event workboobk before close in order to force the value of the workbook setting : "refresh when the workbook is open"even if the user manually change the value
how can i achieve this
Thanks in advance for your help

Hi,
I can give you the logic for your requirement. Place a contant value in a cell somewhere user can't see. On closing write a macro to set the value to that cell and also at time of opening.
Regards,
-Vj

Similar Messages

  • Bex analyzer macros

    Hi,
    Is there any macro in the bex analyzer that allows you to delete columns in a report (workbook)??
    In the columns of the report is showing an amount to a date, that date is a variable selection querie, so that shows you many columns (amount) as dates have been leaked, but there are certain amounts of a certain date not I want to be shown, would have a chance to do this on excel macros or using another utility of bex, or querie designer???
    Greetings,

    if I understand the question correctly, then you can just exclude the specific dates that you don't want in the report.  you would do it through the filter ability either in the query designer or the analyzer
    Regards,
    Pavel

  • Bex analyzer macro

    Hello Gurus,
       To use BEx Analyzeru2019s API, you need a particular macro as well as references to the type
    libraries. how to use these macro by example?
    Many thanks.

    Hi,
    I can give you the logic for your requirement. Place a contant value in a cell somewhere user can't see. On closing write a macro to set the value to that cell and also at time of opening.
    Regards,
    -Vj

  • VBA Analyzer: Macro to "Change Query (Global Definition)"

    Dear All,
    I search a macro wich allows in Analzer to launch Query Designer with the right query name ?
    Thanks for your help
    Rodolphe.

    Hi
           If u migrate the query of the 3.5 version to 7.0 version u ca only do the edition for that query in 7.0 only,u cannot edit that one in 3.5,but only u can open

  • Drill Down Macro command BEx Analyzer BI 7.0

    Hi All,
    I'm having the following poblem. I'm working as a testautomation specialist having automated a test using (amongst others) the BEx Analyzer (SAP BW 3.X).
    In short, when the results of a query are shown in an excel sheet, I automated the vertical drilldown of every row in that resultssheet. I used the BEx Analyzer macro command: Run("sapbex.xla!SAPBEXfireCommand", "HDEX", myCell).
    Since we are going to use the new version of the SAP Bex Analyzer (BI 7.0), I have to convert/migrate all my testautomation scripts. And I just can not succeed in making this vertical drill down work in SAP Bex Analyzer 7.0. The SAPBEXfireCommand is not supported in SAP Bex Analyzer 7.0. Does anyone has an idea what SapBexAnalyzer (Excel) macro I can use to drill down in  SAP Bex Analyzer 7.0? Any help really appreciated, I'm really struglling with this one and also no luck finding any solution on the internet so far.
    Thanks!

    i'd suggest u research some oss notes.
    Take a look at the following:
    1073426
    1045244
    1039191
    these may not be exact solutions, but will guide you to other notes as well...

  • Error when launching BEx analyzer from Portals

    BI Gurus...
    We are working on an initiative to migrate our user interface from SAP GUI to Enterprise Portal.
    Bex Analyzer is primary mode of reporting at this time.
    After importing the Roles into EP, I am able to execute the web queries successfully, in the BEx Wen analyzer. But, I get an error when I click on any of the excel workbooks. Our expectation was that once we click on the excel workbook name, the BEx analyzer will launch from EP. But it seems like the issue is with launching BEx Analyzer from BI Portal.
    Has anyone faced this issue before?
    Is it possible to launch BEx Analyzer from EP?
    Are their some key portal settings we have missed out on to enable launching BEx analyzer from EP?
    Please provide your thoughts/experience.
    Thanks,
    Ajay.

    Hi WernerS,
    Thanks for your response.
    The RRMXP Transaction works and it launching the BEx Analyzer as expected.
    Now, as per our research, I think there are 2 ways of launching BEx analyzer from BI Portals.
    1) Call via a URL
    You can call BEx Analyzer via the following URL: http(s)://<server:port>/sap/bc/bsp/sap/rsr_bex_launch/bexanalyzerportalwrapper.htm
    You can modify the URL to open BEx Analyzer with either a workbook, a query or a query view. You can use the following parameters to do this:
    ●      Parameter to open the workbook: ?WBID=<wb_id>
    I have tried calling via URL iView, but instead of launching the BEx Analyzer, it just throws a dialog box to "save" or "open" a file, RRMX.bex. When I try to open this file, it says "Invalid File Format".
    I tried opening the file in notepad and I see the following parameters passed.
               test
               Data=BX2,CONAJP,EN,mikoyan,17,,,250,
               9
    Any clue about what I am doing wrong?
    2) Calling via a Transaction
    You can generate BEx Analyzer in Portal Content Studio as an SAP Transaction iView.
    The iViews are of type SAP Transaction iView and have the code link com.sap.portal.app integrator.sap.Transaction.
    The most important properties are System, Transaction Code (TCODE) and ApplicationParameter.
    ●      The Transaction Code for all workbooks is RRMXP.
    ●      The ApplicationParameter property contains the value WBID=<WORKBOOK_ID>.
    I have tried this approach as well. When I open this iView, I see the RRMXP transaction in the Internet explorer, but the workbooks still does not open in the BEx Analyzer (Excel)
    Any thoughts on where am I going wrong ?
    Thanks,
    Ajay.

  • BEx Analyzer 7.1 Issue after upgrade to MS Office 2007

    Hi
    We upgraded MS Office 2003 to 2007 and installed SAP GUI 7.10 (Patch 9). The OS is Windows XP (SP3).
    We have also applied "BI AddOn Patch for GUI 7.10"
    When we run BEx Analyser from Windows start menu or RRMX , we notice the error message: "A critical program error occurred. The program has to close. Please refer to the trace for further information".
    Following is the trace details:
    Trace Started as: 10/3/2008 11:25:26 AM*
    ListSeparator: ,
    ExcelVersion: 12.0
    AddinVersion: 7100.2.700.1344
    BExCompression.SupportsCompression: Compression NOT supported
    Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    BExCheckFrontend.CheckFrontend: No Check performed (20081002) 0.156257
    10/3/2008 11:28:36 AM----
    System.Exception: CriticalProgramError ---> System.Exception: CriticalProgramError ---> System.Exception: CriticalProgramError ---> System.Exception: CriticlaProgramError ---> System.Exception: CriticlaProgramError ---> System.Exception: CriticalProgramError ---> System.ArgumentException: The item with the specified name wasn't found.
       at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
       at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
       at com.sap.bi.et.analyzer.addin.BExChart.get_Chart(ChartDescription iChart, BExExcelItem iItem)
       at com.sap.bi.et.analyzer.addin.BExItemGrid.UpdateCharts()
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.addin.BExItemGrid.UpdateCharts()
       at com.sap.bi.et.analyzer.addin.BExItemGrid.OnRender(Boolean iForceRendering)
       at com.sap.bi.et.analyzer.api.BExItem.Render()
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.api.BExItem.Render()
       at com.sap.bi.et.analyzer.api.BExApplication.Render()
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.api.BExApplication.Render()
       at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQueryThreaded(BExParameter iParameter)
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQueryThreaded(BExParameter iParameter)
       at com.sap.bi.et.analyzer.addin.BExThreads.ProcessParameterSubExecuter.Execute()
       at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQuery(OSObjectInformation iObjectDescription, String iRRIVariableName, String iRRIVariableValue)
       at com.sap.bi.et.analyzer.addin.BExThreads.ProcessOpenQueryExecuter.Execute()
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.addin.BExThreads.ProcessOpenQueryExecuter.Execute()
       at com.sap.bi.et.analyzer.addin.BExMenu.ProcessOpenQuery()
       at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
       --- End of inner exception stack trace ---
       at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
       at com.sap.bi.et.analyzer.addin.BExUserInteraction.ProcessUserInteraction(Sub iSubDelegate, BExStepType iStepType)
       at com.sap.bi.et.analyzer.addin.BExMenu.Process(CMD iCMD)
       at com.sap.bi.et.analyzer.addin.BExMenu.ProcessCMD(CMD iCMD)
       at com.sap.bi.et.analyzer.addin.BExConnect.ExcelCommunication.ProcessBExMenuCommand(String iCMD)
    CriticalProgramError
       at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
       at com.sap.bi.et.analyzer.addin.BExUserInteraction.ProcessUserInteraction(Sub iSubDelegate, BExStepType iStepType)
       at com.sap.bi.et.analyzer.addin.BExMenu.Process(CMD iCMD)
       at com.sap.bi.et.analyzer.addin.BExMenu.ProcessCMD(CMD iCMD)
       at com.sap.bi.et.analyzer.addin.BExConnect.ExcelCommunication.ProcessBExMenuCommand(String iCMD)
    Regards
    Madhu

    Hi
    This problem is solved.. We need to change the global settings in BEx Analyzer.. Following are the steps:
    -     After executing RRMX, BEx Analyzer screen opens
    -     Open Global Settings
    -     Select u201CDefault Workbooku201D tab
    -     Click u201CUse SAP Standardu201D
    -     And then execute the query
    Regards
    Madhu

  • Headings in Bex Analyzer

    Hello Everyone,
    Is there anyway to have headings above key figures?
          Sales        Income
    Net Gross Profit   Net Gross Profit
    I understand how to have
    Net Sales Gross Sales Profit Sales .....
    What I want is to have a Heading above.  Is this possible?
    Thanks so much,  Colleen

    As I promised:
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-i
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-ii
    Best regards,
    Eugene

  • Text variable to be removed from the description on Roles in Bex Analyzer

    Dear Experts,
    I am using BI 7.0. I have text variables in the query description. When the queries are assigned in Roles, they are displayed alongwith the text variable. I need to change the description of the query only in Roles. I am successful in doing this change on portal. But, in Bex Analyzer, I tried changing the description of these queries in Roles, but still they are not changed. Strangely, I can see the new descriptions in Roles when executed through RSRT.
    Can anyone please help me in resolving my issue.
    Thanking you in advance,
    Best Regards,
    Pradnya Rane

    Hi Parth,
    Yes, I mean in 'Open Query' option. This is working in BEx 3.5, but not in 7.0.
    Is this some missing functionality in BI 7.0?
    -Pradnya

  • Open a new session when using go to documents from bex analyzer.

    Dear experts,
    We are using the go to documents functionality in bex analyzer.
    we enter the workbooks with a SS0 link (RRMXP) through the portal ,
    our problem is that when we want to attach a  comment or document (we use go to documents)
    the browser uses a session which is already open.
    When the user enters his comment or document and closes the browser session he terminates the SSO.
    My question is where can I define that when using in bex workbooks right click go to documents it
    will always open a new browser (internet explorer) session and not use an already open session.
    Thanks for your help
    Amir

    TMega,
    The Go> menu commands apply to the current Finder window. It has always been this way, and it always will be. The answer, in this particular case, is to first open a new Finder window. This is easily and quickly done by pressing Command-N. You can add to this the use of Shift-Command-K to quickly open a new window, then move that window to the Network folder.
    So, the answer to your question is "Yes, you can always open a new window when accessing the Network folder," but you can't do it just the way you were thinking.
    Scott

  • BEx Analyzer: Formula Variable with Replacement path change Month with Day

    Hi experts I'm facing this issue in BEx Analyzer.
    I need to have some dates in format DD/MM/YYYY in Index Structure, in order to do this I've created a formula variable with replacement path referenced to 0CALDAY characteristic.
    The formula works but it behaves in a strange way:
    if the day is higher than 12 the displaied result is correct (DD/MM/YYYY)
    if the day is lower or equal 12 the displaied result is wrong (MM/DD/YYYY)
    I'm on BW 7.01 SP6 and BEx Analyzer 7.10 SP12, excel 2007.
    anybody has faced this issue before?
    any help will be appreciated
    Daniele Cortopassi

    Hi Daniele,
    This seems pretty strange. Pls. redo validation with the dump data, as being a flat struture BEx does not apply any logic changes. May be it might have been MM/DD/YYYY format as in workbooks. Else you may change the property of 0calday display as "Text". Business Explorer > Display > KeyMaster Data/Texts > Texts (Plese check this option). If you are using some text table you may maintain the same using BI0/TCALDAY (Similar to BI0/TCALMONTH2). Guess it should be an excel based issue; if not you may try the same in WAD/Report designer to verify the nature of the issue. If you don't face these inconsistencies in WAD/RD then you may change excel formatting options. Lastly, please let us know if the infoobject has some predefined settings in RSA1 > Infoobject > (BEx) Properites.
    Thanks,
    Arun Bala

  • The BEx Analyzer cannot generate VBA code due to the security settings

    Hello experts,
    when I try to open a query in BEx Analyser I get this error message for each Item of the Query:
    Diagnosis
    The BEx Analyzer cannot generate VBA code due to the security settings.
    System Response
    VBA code is not generated.
    Procedure
    Choose Tools -> Macro -> Security.
    On the Trusted Publishers tab page, select Trust access to Visual Basic project.
    Choose OK.
    Close the BEx Analyzer and continue working as before.
    Access to Visual Basic project is only needed when generating VBA code.
    This only takes place in design mode or when 3.x workbooks are upgraded.
    Of course I did exactly what was recommanded in the "procedure-section" of this error message. But BEx ist still not working!
    I use SAP NetWeaver 7.0 together with MS Excel 2007
    Thanks
    Axel

    Hello experts,
    I am an additional person interested in the way this issue was solved.
    I confirm that the issue is coming from the SP2 of Microsoft Office (I have another environnement without the SP2 and everything works well), and I am in a situation where I can't remove the update.
    Regards
    Guillaume P.
    EDIT :
    Solution found : I applied the bi710sp10p_1001-10004472.exe patch
    (downloaded via the download maanger : Support Packages and Patches - Entry by Application Group" SAP Frontend Components" BI ADDON FOR SAP GUI" BI 7.0 ADDON FOR SAP GUI 7.10)
    Edited by: GUILLAUME PETIAUX on Apr 13, 2010 10:29 AM

  • BEx Analyzer Not showing report result in canceling "Change variable Icon"

    Hi Experts,
    Do we have any settings in BEx Analyzer for retrive the Result set even after I click 'Change variable Icon' in Toolbar and cancel the variable pop-up window??
    Eg: My query Result is displayed in Analyzer selecting some vaues in Selection screen.And when I click the Change Variable Icon from 'Analyzer Toolbar' its showing me 'Select values for variable' window.If I select the cancel button in it, then Query result becom blank showing the message "There are variables; change variable values". Do Analyzer having an option or settings to keep the result even if i cancel the variable selection from "change variable icon".
    Thanx in advance..

    Sari-
    If SAP provides such a function, I have not found it. The way I understand it., the change variable value initiates the OLAP back end. This clears the Presentation Manager front end, and clears the 'results' that are displayed on your workbook. If you cancel the OLAP run, the front end clear still executes.
    HOWEVER... if you turn OFF Automatic Refresh before clicking on Change Variable Values and then clicking on Cancel, the presentation manager will not write any changes to your workbook. So that is your best solution.

  • Macro not working in BEx Analyzer

    Can you please explain why my Macro is not working?
    We're on BI 7 with Excel 2007. I have done the following:
    1) Open Workbook from BEx Analyzer and the result display on the worksheet. The was inserted in C10 and therefore, the result was display from C10 onwards.
    2) I have created a Macro with the following code:
    Sub Macro1()
    ' Macro1 Macro
        Range("C5").Select
        With Selection.Interior
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
            .Color = 65535
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
    End Sub
    3) When click to run the Macro manually, I can see the color of C5 is changed.
    4) Now I have include this Marcro in Workbook Setting ->Exits tab, Run Macro on Refresh. Here I enter my Marco name.
    5) In Workbook Setting ->General tab, I also set the Refresh Workbook on Open option.
    6) I have also set the Trust Center setting: select Trust access to the VBA project and Enable all macros.
    7) Then I save the Workbook.
    8) when I re-open the Workbook, the color of C5 is not change!!!
    Can you please help.

    Aglukas,
    Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
    1) Run workbook, the query result display on the screen.
    2) In Excel 2007, I click on Developer tab ->Macro.
    3) Enter Macro name (Macro1) and click on Create button.
    4) I have VB editor open with following:
    Sub Macro1()
    End Sub
    5) So added the following code to Macro routine in VBA Module:
    Sub Macro1()
    With ThisWorkbook.Sheets("Sheet1")
    Stop
    .Activate
    .Cells(15, 1).Interior.Color = RGB(220, 254, 250)
    End With
    End Sub
    6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
    When I run/refresh the workbook, I didn't get into debug mode at all!!!
    What is wrong in above steps?
    Please advice, thanks.

  • BEx Analyzer (7.x): currency change when new formula created

    Hi All,
    I have a strange one.  Query is executed in BEx analyzer.  A new formula is created outside the query results window using excel functionality, and the currency changes from USD to DM. 
    Example query results: 
    Cell A1: Var 1 = $150.00
    Cell B1: Var 2 = $160.00
    Cell C1: Var 3 = $70.00
    New formula created using excel functionality:  =sum(A1+B1) displays as 310.00 DM
    The language settings have been checked for the operating system and for SAP (user data) and they appear to be correct.  Is there another setting to be checked?
    Thanks,
    Pam

    sap said it was working as designed.  suggested we look at regional settings on laptop and make a workbook template with us settings.

Maybe you are looking for