Run RFC FM from BEx Analyzer

Hello everybody!
I have to implement call of function module via RFC from BEx Analyzer.
I created a VBA macros:
Set BI_connect = Run("BExAnalyzer.xla!sapBEXgetConnection")
If BI_connect.IsConnected <> 1 Then
   If BI_connect.Logon(0, False) <> True Then
      MsgBox "Logon failed"
      Exit Sub
   End If
End If
It works but it shows logon window twice: first when user open a workbook and second when run this macros. I want the second authorization to be silent.
But if I set BI_connect.Logon(0, True) then Logon function returns 4 (missing parameter).
How this problem can be solved?

Hi,
normally the function "BExAnalyzer.xla!sapBEXgetConnection" should deliver the existing SAP Connection (as of SAP). You should use the "BI_connect.Logon" only if there is no connection to the SAP Server yet. Are you getting (BI_connect.IsConnected = False)?
If you want to use "BI_connect.Logon(0, True)" it should be possible in this way:
Set myConnection = 'Run("BExAnalyzer.xla!sapBEXgetConnection")
With myConnection
.client = "600"
.User = "USERNAME"
.Password = "PASSWORD"
.Language = "en"
.systemnumber = "00"
.System = "BWDCLNT600"
.systemid = "BWD"
.ApplicationServer = "156.158.7.161"
.SAProuter = ""
.Logon 0, true
      If .IsConnected = 0 Then
             .Logon 0, False
If .IsConnected <> 1 Then
MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
Exit Function
End If
End If
End With
You will get another connection in this case, disadvantage is, that you should define the whole connection params in your vba code ...:(
Regards,
Kirill

Similar Messages

  • Error when trying to run web report from BEx analyzer

    Hi Gurus,
    I am getting this error "STOP: System error in program SAPLRRS2 and form SELOPT_ASSIGN-01", when I am trying to run the report from the 4th button "Display report on Web" on BEx Analyzer. Can anybody tell me what this and how we can resolve it.
    Thanks and I will assign points.

    I coudn't properly understand solution provided herein:
    "Solution
    Note that you must generate the query again after you have implemented the correction (Transaction RSRT1 > Generate report).
    SAP NetWeaver 2004s BI
               Import Support Package 07 for SAP NetWeaver 2004s BI (BI Patch 07 or SAPKW70007) into your BI system. The Support Package is available when Note 0872279 "SAPBINews BI 7.0 Support Package 07", which describes this Support Package in more detail, is released for customers.
    In urgent cases, you can use the correction instructions.
    To provide advance information, the note mentioned above may be available before the Support Package is released. In this case, the short text of the note still contains the words "Preliminary version"."

  • Iam Facing an error whenever i run a query in Bex Analyzer

    Hi All,
    Whenever i run the query in bex Analyzer iam facing an error as
      *Error reading the data of infoprovider*
      *Error in BW :error creating Index*
      *Enter an rfc destination*
    *The following error occured during parallel processing of query 67.*  Please anyone help me on this.
    Thanks & Regards
    Sameer Khan

    Hi Sameer,
    There could be several reasons for this error. Based on the first message you got
    *Error reading the data of infoprovider*
    Please check that you have the requisite authorizations to execute queries on this infoprovider
    Naresh

  • CL_RSR_REQUEST eror while running the Query in Bex Analyzer

    Hi All,
    I have created the Query and assigned it to the role by using PFCG and also by Query Designer. when the user executing this query using the Bex Analyzer he is getting this error.
    CL_RSR_REQUEST and Form TEXT_ELEMENTS_GET:Variabl"
    Your input is appreciated
    Thanks in Advance
    Regards

    Hi all,
    I had assigned the query only to the role. when i checked with user id i found error.
    You do not have the authorization for component ZMM_PO_Q1_2
        Message no. BRAIN800
    Diagnosis
         You do not have the authorization for the selected component.
    System response
         The selected component cannot be edited.
    Procedure
         lease speak to the person responsible for authorization, if you
         authorization for the editing of this component. The function is
         protected by the object "Business Explorer - components" with th
         following fields:
             -  InfoCube                ZMM_POD
    Type of a component     REP
    Component               ZMM_PO_Q1_2
    Activity                16
    for this what i have to do .. i had also checked in the su 53 t code.i showing the previous authorization is successfulll..
    regards

  • 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

  • Query Jump from Bex Analyzer to r/3 transactions: error of web server

    Hello,
    I have created a query jump in the RSBBS transaction to go in R/3 through a Bex Query. When i choose the jump in the query anayzer I have the error message:
    <b>No Web server maintained for the presentation of log. system.</b>
    Do you have ever had this message? what is the solution? why do my bex anayzer use a web interface to connect in R/3?
    Thanks a lot!
    Julien

    Hi
    this may be possible by using an openDocument URL.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Still you have to configure the auhtentication connectivity between BOBJ and SAP Backend in the BOBJ CMC console.
    And setup the SSO option in the database configuration panel of your CR reports (this has also to be done in the CMC, just go to Folders, navigate to your report and invoke the context menu. You have to scroll to the the bottom of the panel in order to find the SSP option)
    Regards,
    Stratos

  • BEx Analyzer Report error - microsoft office excel is waiting for another

    Hi,
    I am running a query from BEx Analyzer, it is throwing the error as " microsoft office excel is waiting for another application to complete an ole action "
    Here in variable screen, I am trying to give input for the variables, then it is throwing the above error message.

    The error message you are receiving means that an Excel macro is waiting for another macro to finish in order to proceed. It is an informational message so you understand why the system is slower than expected.
    The solution is on the Microsoft side, see BOJ Note 1201513.
    From the MSDN link below, you will see a description of the Display
    Alerts Property:
    http://msdn.microsoft.com/en-us/library/aa194195(office.10).aspx
    DisplayAlerts Property
    wdAlertsNone No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues.
    The Note suggests changing the "Application.DisplayAlerts = False" to "Application.DisplayAlerts = wdAlertsNone"

  • Query not Opening using Bex Analyzer

    Hi Experts,
    We have developed queries in Designer, and we can execute them from query designer.
    But if we try to run the query from Bex Analyzer no query output comes.
    Output comes as No Data Available.
    This issue is happening from past 3 days..before that we were able to execute from Analyzer also.
    I am wondering has any setting is changed.
    Kindly suggest , as this is very important for us to solve ASAP.
    Thanks
    Mayank

    Hello,
    After applying the latest patches for core GUI and BI components, and the MS Office patch (sap Note 1025122), it should work correctly. I have faced the same issue and corrected it by applying these patches. (The MS office that I am using is MSOffice2003.)
    Can you try opening the analyzer from the start menu, instead of using transaction RRMX?
    If this way it is working correctly, then the softwares pieces are setup correctly.
    Then you may want to check the customizations of your BI system. i.e. IF it was upgraded from the BW3.5 system? What strategy are you using for the report migration? The administrator might have changed the settings according to the strategy and current phase of the report migration.
    Regards,

  • Unable to Upload data from text file into BEx Analyzer selection screen

    Hi,
    No response from BEx Analyzer when I am trying to upload around 40,000 material from text file into BEx Analyzer selection screen using "Upload selections" options. But I am able to upload only 10,000 material from text file.  I never faced same kind of issue when I am using BEx Analyzer 3.x.  Please let me know I have to change any settings related to BEx or any other.
    Thanks
    Sri Krishna Ponnada.

    Hello
    It seems you are reaching the .NET memory limitation informed in note 1040454.
    Because 3.5 does not use .NET it can work that.
    Regards,
    Ricardo

  • Error in running query in Bex Analyzer

    Hi All,
    I faced some problem in running the query in Bex Analyzer, when I run
    the query in the Bex Analyzer, there are error messages indicates that
    the query is fail to load. Before that all the query can be run without any problem.
    The details for one of the error msg are as follows:
    <b>Diagnosis
    Variable 0P_MATBK has the processing type "Manual Input/Default Value".
    However, it is not input ready, and no default value has been specified.
    System Response
    Procedure
    Make the variable input ready or specify a default value.
    Procedure for System Administration</b>
    Any1 can help? Thanks.

    Take a look at this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/55/589b3c494d8e15e10000000a114084/content.htm
    For the variable wizard...
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    To make it Ready for Input...
    In the variable properties window, Check "Ready for Input".
    Message was edited by:
            Jerome

  • APD read data from Web Analyzer or BEx Analyzer?

    Dears,
    We are on SAP BI7.0, recently we upgraded to enhancement package1. SInce then, "suppress zeros (all values=0)"  setting in the query is not working properly in Web Analyzer while it's working correctly in BEx Analyzer.
    We are transfering data from this query to a table in CRM system usin APD. In CRM system, we are getting the output as in web analyzer (it contains zero value records).
    My questions are -
    1. Do APDs always read values from Web analyzer or we have some setting somewhere? (can we read from BEx Analyzer also?)
    2. What exactly is the background process sequence which is followed when an APD is executed?
    Your help is really appreciated.
    Thanks in advance.

    When we execute APD , MDX statement generated and which will execute and bring data from the data targets .
    Bex Query Conditions will not be applied to the MDX statements, we need to filter those records in the APD process , using ABAP program Process or any other filter process ..
    Ravi

  • Problem in executing query in browser and bex analyzer

    i am not able to execute query in browser nor bex analyzer...
    problem is that i dont have option to run in bex analyzer in query designer (menu bar seems missing in query designer and how can i get enabled
    and when execute the query in browser using bex query designer ..it prompts me with following error
    URL http://saperpdev.saperpdev.com:8002/sap/bw/BEx call was terminated because the corresponding service is not available
    Note
    ■The termination occurred in system ERD with error code 403 and for the reason Forbidden.
    ■The selected virtual host was 0
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:SAPERPDEV_ERD_02-v:0-s:403-r:Forbidden
    and i tried to open the query from bex analyzer  level
    it prompts me as follows
    macros are disabled because the security level is set to high and digitally signedtrusted certificate is not attached to the macros,to run the macros change the security level to lower settings
    pls suggest me

    hi suman,
    thanks for your response.. but let me be more clear
    i am using sap gui 7.20 front end and when i execute rrmx i am able to navigate to BEx analyzer but when i tried to open a report which i create i get following error message..
    you do not have sufficient authorization for infoprovider zic_proj
    function module  /SDF/AL_MAP_TRANSID_LOGH doesnt exit
    second thing is that i tried from bex query designer to execute the report ..but i am not able to execute the report...
    i hope some connections seems missing..please let me know what to do ASAP..
    and where can i post this question to get fast reply

  • 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 Problems. Advice on Patches

    Hi.
    We are having some probles with BEx Analyzer.
    For instance.
    1. Run the query in BEx Analyzer and it displays different results in RSRT than in BEx Analyzer.
    2. Dates sometimes have the day and month the wrong way around from what is stored in the cube field.
    3. Changes made to CKF are not changed when the query is saved.
    It appears there are other numerous BEx problems and I need some advice for the best solution to deal with these and other similar problems which will occur.
    BW Version: SAP Netweaver 7.0 Release 700 Level 0013 Highest Support: SAPKW0013
    Query Designer: BI Add on 7.X (Based on 7.10) Support Package 3, Revision 519
    Analyzer: BI Add on 7.X (Based on 7.10) Support Package 3, Revision 949
    Please could somebody explain the best way forward and also explain the procedure and disruption caused by upgrading support packages/notes/support package stacks.
    I have looked at some sap notes and it appears there is a version 17 support package available and also quite a lot of notes on BEx problems.
    The BEx Aanlyzer version above.. Is this an old version?
    Best,
    Steve

    your frontend is indeed "old"... we're on Support Package 8, Patch 1, Revision 1443
    try upgrading the front end first... it might solve a lot of your issues already
    also, the date problem... are you sure that's a BI error and not a "local" setting on some user's pc's (difference between US and European time zones for instance)???

  • Calculated Keyfigures Fromm Bex Analyzer into BO without Unit

    Hi Guys,
    We built a Universe on top of Inventory Query from Bex Query Designer. We have  lot of Calculated Key figures built on Restricted Keyfigures.
    In the Universe some Calculated Keyfigures are shown as folders with Unit value and some of them are not shown in folder and hence it is not bringing the Unit.
    If we run the same Query from Bex Analyzer all the Calculated Keyfigures have units associated with them.
    Can you please let me know if any of you have the same issue.
    Thank you,
    PVK

    Hello PVK,
    I recommend to post this query to the [Integration Kits - SAP|BusinessObjects Integration Kits; forum.
    This forum is dedicated to topics related to the BusinessObjects Integration Kit for SAP.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all SAP Kit queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

Maybe you are looking for

  • Subject column doesn't show in Mail

    Installed the latest Security Update last night.  Was using the WideMail plugin.  I was promptly informed I'd no longer be able to use that plugin upon restarting the mail app.  Of course I had to reshow all the columns that were previously displayed

  • Computers not going to the correct DP.

    Running into a small issue with one of our Distribution Sites, I have deployed a DP only using https, along with their corresponding Boundary Group, SCCM is reporting that it deployed successfully.  However, When I enabled the Client Push installatio

  • Reader 10.1.10 update forces our previous PDF forms to be signed.

    How can I turn this forces signing function off as it will not let me save a PDF form without signing. This was not an issue with 10.1.9 and our employees who did not update to 10.1.9 can manipulate/save these forms without issue, only those who upda

  • TRYING TO PRINT THE OUTPUT ON SCREEN.

    Hi, I am trying to print the out put to the screen. what am i doing wrong. CREATE OR REPLACE PROCEDURE "WRITESHIPPING" is p_Shipid VARCHAR2(40); p_OrderID VARCHAR2(10); p_ShippingMethodId NUMBER(10); p_ShippingMethodName VARCHAR2(50); p_ShippingAmoun

  • Sales order stock process

    Hi All, We are planning to implement sales order stock process. There is some confusion regarding the picking process of sales order stock. Can anyone help me in this matter, how to do picking for sales order stock item? Is this in the normal way or