Excel macro to launch Bex analyzer

Hi,
first of all congratulation to the forum. really interesting and useful.
I am trying to write a macro that launches Bex analyzer from an excel template. 
I have been trying with:
Dim RetVal
RetVal = Shell("C:\Program Files\....\BW\sapbex.xla", 1)
with no success so far.
has anybody got any suggestions?
thanks in advance and best regards
david

Hello,
R u working as Security consultant or BI developer.
If you are a BI developer you dont have access to Auth objects S_RFC.
If you are security consultant you have access and to look where for S_RFC.
I dont know how your roles organaized.But try this way.
1. gO TO TRANSACTION  SUIM
2. select ROLES.
3. Under roles select Roles by Complex Selection Criteria.
4. Under this go to 4 th box Selection by profiles and Authorization Objects
5. enter S_RFC in Authorization Object.
and execute.Then you get all the roles in which S_RFC is there.
Then see the roles of the user for whoom RRMX does not work.
and match the role to the selection criteria and make the changes to S_RFC in the role.
generate role and save.
If you are not security consultant u dont have access to any of these.
Consult u r basis or security team and tell them to check the values of S_RFC.
Getback if u have any questions.
Abhiram

Similar Messages

  • 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.

  • TRYING TO LAUNCH BEx ANALYZER FROM R3 SYSTEM, WITHOUT LOGIN AGAIN...

    Hi mates,
    We are trying to launch BEx Analyzer, with a Program/Function from R3 System, using an RFC.
    1.- We create a program in R3 system (4.6c), in that program we try to call BW (SAP BI 7.0, SP18), with:
            - CALL FUNCTION 'RSAH_LAUNCH_TRANSACTION_SLAVE'
              DESTINATION **RFC TO BW**
             EXPORTING
            TRANSACTION                  = 'RRMX'
    or
           -  CALL FUNCTION 'RFC_CALL_TRANSACTION_USING'
              DESTINATION **RFC TO BW**
                 EXPORTING
                   tcode                         = 'RRMX'
                   mode                          = 'N'
    With that, or calling an Z transaction, with an Z program, and calling the next functions in the BW program:
             'RSSEM_QUERY_LAUNCH'
             'RSAH_LAUNCH_EXCEL'
             With o without setting Infoprovider and Query or Workbook in the functions.
    The result was the same:
    1.- R3 call BW - OK
    2.- BW call BEx ANALYZER/EXCEL - OK
    3.- Analyzer shows, but the user have to login again in BEx Analyzer to open queries or workbooks, and that step we are trying to hide to the users.
    We need that users call BEx ANALYZER from R3 to BW using an R3 program or transaction, without login again into BW or BEx, but it seems like there is a problem with ANALYZER, RRMX (and its functions) and SSO.
    RFC works fine, and is "trusted". Remote connection and Test Connection works OK.
    If you make a REMOTE ACCCES with the RFC, and call RRMX, the result is the same, you have to login again in BEx Analyzer, to open queries or workbooks...
    We think, must be something wrong with the SSO, or the SSO with BWE and BEx Analyzer, i mean something wrong with the standar or versions.
    We tryied with:
    1.- BIAddon 9 in Excel 2007
    2.- BIAddon 6 in Excel 2003.
    We really appreciate your help.
    Best regards,
    Bruno.

    Hi Ravi,
    Have you read this whitepaper?
    http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf
    Cheers,
    Mike

  • Broadcasting in EXCEL export to PDF, Bex Analyzer

    Hi!
    The user wants to export the Bex Analyzer Workbook (excel) to PDF... HOW CAN I DO IT???
    Thanks a lot...

    Hi Leticia,
    Here's are some things you can do with Broadcaster...
    1.  Broadcast a workbook from BEx Analyzer (must have Precalc Server set up for this).   You cannot Broadcast in .pdf format from an Excel workbook.  There will be no option in Broadcaster for that.
    2.  Broadcast a .pdf from Report Designer where your Excel query needs to be highly formatted.  Create the Enterprise (RD) report first from your query, then you can Broadcast from there.
    3.  Broadcast a .pdf from Query Designer.  Open the query and create a Broadcast Setting from the query itself and select .pdf as the format.  The only difference between this and #2 above is that the .pdf won't be so nicely formatted as the Report Designer version of the query.  However, you don't have to go to the trouble of creating the Enterprise (RD) version of the report using this option.
    4.  Broadcast a .pdf from a Web Template.  You could publish the query to the Web and then create the Broadcast setting from the Web Template and select .pdf as the format.
    5.  Also Broadcast in other formats (i.e. Excel (XML), Portal, etc.) from Query Designer, etc.
    The best looking (nicest format) .pdf would be Broadcast from a Report Designer version of the Query.  The nicest Excel version would be from a Workbook within BEx Analyzer (where it would be Broadcast exactly the way it looks in BEx).  But, per my comments above, you have other options.  These of course are not every option but only pertain to your question about Broadcasting as a .pdf.
    Hope this helps!

  • Launching BeX Analyzer from BeX Query Designer

    Hi,
    We are using BeX Frontend version 7.x.
    In the Query Designer, when you presss the 'Execute' button, it generally opens the report on the web (calls the portal). Is there any way to change this so that when you press 'Execute', it runs the report on the BeX Analyzer?
    Best Regards,
    Rajib

    Hello...
    I regret to inform you, there is no way to do such a thing.
    You cannot call via "Query Designer" the "BEx Analyzer".
    I don't thing my suggestion is very helpful, but as workaround, you can call via SAPGUI, with transaction RMMX.
    I personally suggest you to install and use the BI Java stack, since the BI 7.0 addons was designed to work together with an BI Java Portal.
    Thanks...
    Best regards,
    Edward John

  • How to save BI report into normal excel sheet in Bex Analyzer

    Hi Experts,
    version of  Bex Analyzer:
    Bi addon 7.x
    support package 7,patch 1
    version 7004.4.0.5
    excel-2003
    when i am trying to save the report into excel in Bex Analyzer as below:
    file-save as->Microsoft excel work.
    when I open excel I am getting pop up windowu201Dthis file contains macros  with an expired or revoked signature.Since your running under  high security level,these macros will be disabled.u201D
    when I click ok I am getting one more pop upwindow as u201Cmacros  are diabled because the security level is set to high and a digitally signed trusted certificate is not attached to macros.to run the macros,change the security level to a lower setting(not recommended),or request the macros signed by the author  using a certificate  issued by a certificate authority.
    what are these macros? why i am getting this pop up windows
    When i opened  the excel report is not looks like general excel report.how can I generate general excel report .I should not want to get excel report as in bex analyzer.I donu2019t want to have author ,status of data,chart,filter,information in excel report.
    what settings I have to made to save the report in general excel format.
    As i am new to Bi please correct me if i am wrong.
    Anything is appreciable.
    regards,
    naresh.

    Macros in general are nothing but piece of code in excel.
    To allow unsigned macros to run, the Trust all installed add-ins and templates check box must be selected on the Trusted Publishers tab of the Security dialog box. This option is selected by default. If it is not selected (recommended), Excel allows you to run only macros that have trusted digital signatures.
    1. On the Tools menu, point to Macro, and then click Security.
    2. On the Trusted Publishers tab, select the Trust all installed add-ins and templates check box.

  • 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

  • SAP Bex Analyzer (Netweaver 7.1) Opens workbooks twice when starting.

    We just upgraded from bex 3.5 to 7.1, and have set it to open the Analyzer whenever excel starts.  But now whenever we open an excel workbook it opens each workbook twice.  We have one file in the XLSTART folder that loads in macro's but just opens a blank workbook.  The file we are opening has code that sets calculation to manual and prompts the user that it has set to manual.
    Whenever we open a file, it promps the user twice about setting it to manual, but only 1 workbooks pops up (because excel only allows one workbook with the same name to be open at a time), but we also get two blank workbooks that open up because the file in the XLSTART folder is being opened twice as well.
    Has anyone else seen this problem with workbooks being opened twice, or attempting to be opened twice with bex analyzer 7.1?

    What version of SAP-GUI are you using ? SAP-GUI 7.2 (latest version) was heavily rewritten using Visual Studio and SAP has stated that certain features that existed in earlier SAP-GUI versions are no longer available (it's Microsoft's Fault). It is also quite possible that your initial launch macro in Excel is causing the problem.
    I would personally recommend that you do NOT launch Bex Analyzer when Excel opens, unless this is  your primary method to interact with Bex workbooks and such. That may resolve your issue.

  • Error with BEx Analyzer

    I am getting the following errors when launching BEx analyzer. What do I do to solve this"
    Error Group
    RFC_ERROR_PROGRAM
    Message
    SAPLOGON_ID 'BID - Netweaver 7.0 EHP2 BI' not found in saplogon.ini

    check if you are to logon to Query designer for the same system and client. I guess you will not be able to correct.
    Most probably, entry for the system is missing in the ini file. check if you are able to connect to Bex analyzer on some other system. If yes, copy the INI file from that system to your system.
    you should be able to ini file
    C drive > Program Files > SAP > Front End
    Regards,
    Gaurav

  • BEx Analyzer not run in office 2007

    Dear all,
    We are using BI version 7.0 in BEX gui (frond end pc) windows vista and office 2007 is used when I go to business explorer and run Analyzer then its call excel but not open any file or sheet, then in excel I go to excel  Add-ins menu -
    BEx Analyzer -
    open Query  then saplogon menu appear  I choose BI give my user name password then I choose infoarea---XXXXX-----XXXXX   that mean I open info area then
    The error occur.
    "  A critical program error has occurred. The program will now terminated, Please refer to the trace for further information"
    Trace information
    Tracefile SAPBEX.trc opened at 10/28/2008  11:06:07 AM
    User () at system ()
    Component Excel-AddIn(Version 3500.11.051) active at 10/28/2008  11:06:08 AM
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:                - isConntected: false     
    XLA:           11:06:09 registryGet failed     
    XLA:                - entry: chooseTemplate=?     
    XLA:           11:06:09 registryGet failed     
    XLA:                - entry: chooseTemplate=?     
    XLA:           11:06:09 registryGet failed     
    XLA:                - entry: chooseTemplate=?     
    XLA:           11:06:09 registryGet failed     
    XLA:                - entry: showErrors=?     
    Thankx
    rayyan

    Hi,
    Check your support package and patch level of your BEx Suite. BI 7.10 Support Package 6 Patch 1 works fine with Excel 2007.
    You might also want to check your installation using the file "sapbexc.xla"  on your hard drive. You should find it in C:\Program Files\SAP\FrontEnd\Bw or similar, although i'm not quite sure this works with BI 7...
    Bye

  • BeX-Analyzer : no visible role and working-sheets

    Hello experts,
    after creating new working-maps under a role, i can't find it anywhere for the next day.
    For example: After launch BeX-Analyzer 7.0 -- then open working-map -- then connect over BW/BI Developer-System -- then
    roles. I can't find my saved user-working-maps or local objects who are saved one day before. They were under the "PFCG-created"
    user-role : "example :Z_Role_External_".
    When i open the map : QUERIES, i have the include for user-role and can manage and call the designed sheets
    in my workaround.
    In this case one more information that happens before this items. In the last week i had patched the BW-BI 7.0 with then following patches.
    SAPKA70020
    SAPKB70021
    SAPKA70021
    KIPYJ7K und KIPYJ7L
    SAPKW70022
    SAPKW70023
    After this action i heard from this problem in BW-BI "No User-Role and no Test-working-maps" under my User-Profile.
    Have anybody an idea to solve this problem ?
    Thanks
    Michael

    Found this thread with an allegeded fix from SAP
    Unable to see Roles in Bex Analyzer  - even with SAP_ALL!

  • BeX-Analyzer : no visible role and working-sheets created bei querie

    Hello experts,
    after creating new working-maps under a role, i can't find it anywhere for the next day.
    For example: After launch BeX-Analyzer 7.0 -- then open working-map -- then connect over BW/BI Developer-System -- then
    roles. I can't find my saved user-working-maps or local objects who are saved one day before. They were under the "PFCG-created"
    user-role : "example :Z_Role_External_".
    When i open the map : QUERIES, i have the include for user-role and can manage and call the designed sheets
    in my workaround.
    In this case one more information that happens before this items. In the last week i had patched the BW-BI 7.0 with then following patches.
    SAPKA70020
    SAPKB70021
    SAPKA70021
    KIPYJ7K und KIPYJ7L
    SAPKW70022
    SAPKW70023
    After this action i heard from this problem in BW-BI "No User-Role and no Test-working-maps" under my User-Profile.
    Have anybody an idea to solve this problem ?
    Thanks
    Michael

    Hi,
    this forum is about Web Intelligence. I would suggest you post your questions into the BusinessExplorer (BEx) Forums.
    ingo

  • Automated start of Excel BEx Analyzer via Web VBScript

    Hi all,
    at first... all the versions:
    SAPGUI 6.40 Patch Level 19, BW 3.5 Addon Patch 9, BI 7.0 with NetWeaver 2004s, Excel 2002 SP3.
    I got the following working code to start Excel out of our Intranet, start the BEx Analyzer and connect to our BW:
    <html>
    <head>
    <title>Excel Script</title>
    <SCRIPT LANGUAGE="VBScript">
    sub bwreport()
    Dim app
    Dim myConnection ' As Object
    Dim logonToBW2 ' As Boolean
    ' Launch Excel
    set app = createobject("Excel.Application")
    ' Make it visible
    app.Visible = true
    ' Open xla file
    app.Workbooks.Open("C:ProgrammeSAPFrontEndBWsapbex.xla")
    app.Run("SAPBEX.XLA!sapBEXinit")
    ' Logon to BW
    logonToBW2 = False
    Set myConnection = app.Run("SAPBEX.XLA!SAPBEXgetConnection")
    With myConnection
    .client = "001"
    .User = "myuser"
    .Password = "mypw"
    .Language = "de"
    .systemnumber = "00"
    .ApplicationServer = "xxx.xxx.xxx.xxx"
    .UseSAPLogonIni = false
    .Logon 0, True
    If .IsConnected = 0 Then
    MsgBox "Verbunden"
    .Logon 0, False
    If .IsConnected <> 1 Then
    MsgBox "Fehler beim Verbinden"
    End If
    End If
    End With
    app.Run("SAPBEX.XLA!SAPBEXinitConnection")
    logonToBW2 = True
    ' Give the user control of Excel
    app.UserControl = true
    end sub
    </SCRIPT>
    <P> </P>
    </head>
    <body>
    <button onclick= "bwreport()">Alternative Excel</button>
    </body>
    </html>
    I'm still working on two issues here and hope you can help me:
    1.
    app.Workbooks.Open("C:\Programme\SAP\FrontEnd\BW\sapbex.xla")
    The Webscript will be used by many BW-Users so the full installation path is not the same for all users. Is there a way to start the Analyzer without the full path ?
    When I start Excel with "Excel.Application" via OLE out of my Script, then BEx is not automatically loaded, that's why I need the above line.
    But when I start Excel manually, it's loaded automatically. So there has to be some way Excel "knows" the location of an installed BEx Add-In. Maybe there is some addition to say Excel to start all it's usual Add-Ins, or to start in standard behaviour ?
    2.
    app.Run("SAPBEX.XLA!sapBEXinit")
    Before I added this line, I always got the BEx Analyzer title "xxxsapbexxxx" and was unable to use any macros or functionality of the BEx Analyzer.
    I found hints and code examples to use "RunAutoMacros" so sapbex.xla is fully initialized but wasn't able to make it work in my code.
    So I checked the macros of sapbex.xla and "sapBEXinit" seems to do the job although I'm not sure if this is a complete/clean initialization of the sapbex.
    Thx,
      Thomas
    Message was edited by: Thomas Kassumeh
    Message was edited by: Thomas Kassumeh

    Welcome to SDN.
    First of all thanks for sharing the script, good work.
    coming to your first question.
    you can get the path by reading the system registry
    its under <b>"SAP.BusinessExplorer.Analyzer\path"</b>
    if you analyze the FM "RSAH_LAUNCH_EXCEL" in BW system, you can get the logic for your script.
    Regards
    Raja

  • BEx Analyzer 3.5 doesnu00B4t launch my querys

    Hi,
    I have uploaded the patch SAPKW70016 to BIW 7.0 and now I am not able to launch a query using BEx Analyzer 3.5. It doesn´t give me any error, it just doesn´t do anything at all. However, i can execute them from the transaction rsrt and i can launch them using Web Application Designer as well.
    Has anyone any idea about how i can solve my problem?
    Thank you very much
    Natalia de Pedro

    Hi Imran,
    After Opening your Bex analyzer or in Excel
    Excel goto -- tools macrosecurity--Security level Tab --choose *Medium* option after setting this open your bex analyzer again you will get a pop up for *enable or disable macros* you can choose disable macros,
    now you will be able to open the Bex analyzer and run queries
    IF you are not still able to use or if you dont want *enable macro / disable macro* pop up then use
    this setting,
    Excel goto -- tools macrosecurity--Security level Tab -- choose Low option
    you will not get any pop ups and you will get the select query option.
    Hope this solve your issue.
    Edited by: suresh on Mar 12, 2009 2:21 AM

  • Error in Bex Analyzer including the filter button command in Callback macro

    Hello,
    I have the following problem with the function filter button in the Bex Analyzer included in the callback macro:
    Because of using 2 hierarchies in the filter the setting drill down to level 2 in the query gives no right output in the Bex Analyzer. The drill down level 2 is not shown. SAP recommends the include of a filter button to solve this problem. With a filter button in the sheet the problem was solved.
    But after including the filter button command in the callback macro I get an error in MS Excel.
    The callback macro starts, the filter was set by the user and the data was refreshed. Because of the refreshing of the filter the callback function the callback function starts several times. After setting the filter the first time, the following macro avoids the several starting of the set filter function:
    Sub CallBack(ParamArray varname())
    On Error GoTo err_handler
       Dim lRange As Range
       Set lRange = varname(1)
    'Filter entfernend/delete filter
    Dim ZeichenFilter As Long
    ZeichenFilter = Len(Sheet4.Cells(41, 3).Value)
    Dim Filter1 As String, Filter2 As String
    Filter1 = Left(Sheet4.Cells(28, 3), ZeichenFilter)
    Filter2 = Left(Sheet4.Cells(41, 3).Value, ZeichenFilter)
    If Filter1 <> Filter2 And Filter2 <> "" Then
        onAction = True
        onAction = False
    End If
    'Filter setzen mit einmaligem durchlaufen/set filter and run one time
    If onAction = False Then
        onAction = True
        Call Sheet4.BUTTON_55_Click
        onAction = False
    End If
    exit_handler:
        Exit Sub
    err_handler:
        MsgBox Err.Description, vbOKOnly, "Error in " & " setMusterSub"
        Resume exit_handler
    End Sub
    After the filter was set the callback macro starts the second time. Then the Bex Analyzer erros with the sandglass. The working on VBA is possible, but not the working with Bex Analyer . Values in Excel weren’t shown.
    How can I avoid this error?

    Once I am adding VAR_VALUE_1 to the static parameters, the system generates two messages error:
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in program SAPLRRS2 and form GET_SID-1
    Best Regards,
    Hanit

Maybe you are looking for

  • How to add a button to VL01N Create Outbound Delivery

    Hi, I seen various user exits in this program SAPMV50A (VL01N), but can I enhance the interface by adding a new button (without copying SAPMV50A to ZSAPMV50A, etc) Dell

  • Fastest Quicktime Streaming Setting

    Hey there... I am sure this question has been asked before, but I did a search of the forums and couldn't find what I was looking for, so I will ask it again... I have some sample clips of my work on my website. They are currently streaming quicktime

  • Commercial printing of pictures processed with Aperture

    I first processed my pictures with Iphoto, and now Aperture 2.1.1. - when my pictures are ready for printing, I transfer them to a folder on my desktop, burn a CD or a DVD depending on how many I have and take them to a photo processing place to have

  • Canon CR2 custom settings not transferring to converted DNG file

    Hi, First post & using 8.6 on Mac OSX 10.9.4 shooting Canon 1Dx. After years of sucessfully converting Canon CR2 files with custom settings to DNG for archiving, just recently I've been having an issue where the actual settings aren't transferring or

  • Failed to activate my ipad 2

    after resetting it to a factory settings, my ipad 2 cannot be activated it shows this message "xxxxx@gmail cannot be used to unlock this ipad"