VBA problem with SAP BPC report

Hello
I have an EVDRE() SAP BPC report where one of the member id selection is derived using a VBA script. The problem I'm having is when I click on expand and refresh icon, the member id changes to #Value and the expansion and refresh fails as #Value is not a member id.
I would really appreciate any help on understanding why on expansion my VBA selected member id is replaced with #Value and how I can fix this if that is possible.
Many thanks
Hina

Thank you for your help with this problem which is now resolved.
Just to clarify we are on SAP BPC version 5.1
How it was resolved....
We had to use BEFORE_EXPAND as advised and also fix the calculation reference and finally also use AFTER_REFRESH.
We used VBA code to remember the dropdown lists option
and
copy the calculated member id into the pagekey dimension cell.
The AFTER_REFRESH restored the dropdown list option selected.
Not sure if the code is helpful but this is what we used....
Dim intRegionChoice As Integer
Dim intSegmentChoice As Integer
Dim intCountryChoice As Integer
Function BEFORE_EXPAND(Argument As String)
'Range(MCC_NodeToUse).Formula = Range(MCC_NodeToUse)
'Sheets("MCC").Select
'Sheets("MCC").Calculate
intRegionChoice = Range("AnswerRegion").Value
intSegmentChoice = Range("AnswerSegment").Value
intCountryChoice = Range("AnswerCountry").Value
Range("PickUpUserSelection").Value = Range("MCC_NodeToUse").Value
End Function
Function AFTER_REFRESH(Argument As String)
'MsgBox "After something"
Range("AnswerRegion").Value = intRegionChoice
Range("AnswerSegment").Value = intSegmentChoice
Range("AnswerCountry").Value = intCountryChoice
End Function
Thank you for all your help.
Hina

Similar Messages

  • Report with SAP BPC MS Hierarchy

    Hello,
    We are using BO Web Intelligence in order to create reports with SAP BPC 10 Microsoft version data.
    We have a requirement were we need to create this reports with hierarchies created at BPC level. However when we use this hierarchies, technical names are always showed attached to descritions (please see attached file).
    What we want is to change the following:
    - at this moment we have "VN_FACT - Facturação", that represents ID concatenated with " - " and Description;
    - we want that only shows Description but with plus sign of hierarchy.
    How can we achieve this?
    Thanks and regards,
    Vitor Ramalho

    Please check image below explaining the steps to change the definition.
    Hope this works for you as I don't have more ideas
    Regards,
    José Santos

  • Performance issues with SAP BPC 7.0/7.5 (SP06, 07, 08) NW

    Hi Experts
    There are some performance issues with SAP BPC 7.5/7.0 NW, users are saying they are not getting data or there are some issues while getting data from R/3 system or ECC 6.0. Then what things do I need to consider to check, such as what DataSources or Cubes I need to check? So, how to solve this issue?
    What things I need to consider for SAP NW BI 7.0 u2013 SAP BPC 7.5 NW (SP06, 07, 08) Implementation?
    Your help is greatly appreciated.
    Regards,
    Qadeer

    Hi,
    New  SP was released in February, and now most of the new bugs should been caught ,This has a Central Note. For SP06 it's Note 1527325 - Planning and Consolidation 7.5 SP06 NetWeaver Central Note to fix any issues. Most of the improvements in SP06 were related to performance, especially when logging on from the BPC clients.There you should be able to find a big list of fixes/improvements and Notes that describe those. Some of the Notes even have test description how to reproduce that issue in the old version.
    hope this will help you
    Regards
    Rv

  • Problem with exporting a report to excel vial citrix server

    Hi,
    We are encountering a problem with exporting a report to excel through ALV local file icon.A spread sheet is downloading only one row (From header) instead of many rows from the ALV output .  
    Above is working fine for the GUI installed on my PC, but not throgh the Citrix server.
    Can any body have idea on above mentined?
    Regards,
    SK.

    I understand that you're trying to download the file to a local computer  through Citrix. In this case you need autorizations in Citrix for your user ( CItrix user)

  • Can SAP GRC AC 5.3 connect without any problem with SAP R/3 4.7 Enterprise?

    hello,
    I went to the PAM in the SAP Marketplace to see if SAP GRC AC 5.3 could connect to SAP R/3 4.7 Enterprise but I can't see all the "Add-On Product Version for...", it's cut off.
    Can SAP GRC AC 5.3 connect without any problem with SAP R/3 4.7 Enterprise?
    If I can't is there any proof about it? I have to show it to a client.
    Best Regards,
    Pablo Mortera,

    Pablo,
    GRC AC 5.3 works perfectly fine with SAP's R/3 4.6c, mySAP ERP 4.7 and ECC systems. In fact we have two 4.7 Enterprise systems connected to GRC AC 5.3 system.
    You can get the details of supported SAP ERP systems under prerequisite section of Info page of GRC AC 5.3 , it can be accessed on marketplace at -
    Downloads-->Installations and Upgrades - Entry by Application Group > SAP Solutions for Governance, Risk, and Compliance>SAP GRC Access Control>SAP GRC ACCESS CONTROL>SAP GRC ACCESS CONTROL 5.3
    Just ensure to have proper BASIS and ABAP support pack level as mentioned in prerequisites.
    Regards,
    Amol

  • Problem with printing some report

    hi very body
    we have some problems with printing some reports.
    the problem is when printing a report the computer processes stoped
    and i should restart the computer a gain to print the report for first time and
    then in the second time i have same problem.

    Maher,
    You can check out the new printer driver test utility verions2.0 on OTN at:
    http://otn.oracle.com/software/products/reports/files/printerdrivertest.zip
    This should help you determine if it is a printer problem or whether you should look into another area.
    Also, you don't mention which version of reports, what command line options your using, the computer
    configuration your using whether it is a network printer or local printer connected to the machine. Support
    will need this information to help determine where your problem lies.
    Regards,
    The Oracle Reports Team

  • Problem with the crystal reports XI

    Portuguese
    Boa Tarde, tenho um problema com o cristal reports XI.
    ele esta em producao fazendo a consulta em um servidor mas quando eu acesso passando parametro connectionInfo.ServerName = <endereco do servidor> para um servidor de teste pelo VStudio 2005, ele nao busca os dados deste e continua acessando o servidor de producao.
    gostaria de saber como consertar isso
    English
    Good afternoon, I have a problem with the crystal reports XI. him this in production making the consultation in a servant but when I access passing parameter connectionInfo.ServerName =  I address of the servant > for a test servant for VStudio 2005, he doesn't look for the data of this and it continues accessing the production servant.

    Fabiano, here is what I understand of the issue:
    1) You are using CR XI (I am not sure if release 1 or release 2)
    2) you are using .NET 2005
    3) you are trying to change the server name, but the report keeps giving you data from the original server
    Please answer the following:
    1) Are you using CR XI release 1 or release 2?
    2) Can you change to the new server, using the Crystal Reports Designer?
    3) Can you duplicate the issue on your development computer?
    4) What Crystal Reports service pack are you on?
    5) Are you connecting to the database using OLE DB?
    Ludek

  • Problem with SAP logon 720 for printng with Citrix.

    Hi,
    I have a problem with sap logon 720 when printing for Citrix, one time print and other time don't print....
    I try to start SAPLPD for prompt comand... it's start but don't print....
    i'm write here for look if other people have this problem... I dont know what I can do.....
    Thank you very much....

    Hi Itmar,
    I was having the similar issue on my Windows Server 2003 Terminal Server. At times SAP prints stop working. Then i changed Printer Type to "G" and it had solved the problem. It skips the use of SAPLPD service and calling windows printing service directly.
    Just try with that.
    Regards,
    Gaurav

  • One more Problem with SAP query

    Hi All,
    I am having a problem with SAP query
    Execution of SAP query transaction is leading to Dump
    the dump says Field 'R01' contains no fields, syntax check on the program shows same error.
    When I tried regenerating the Query in SQ01
    " Query Specification cannot be use to generate list
    Ranked list contains only numeric fields
    Please help me

    Gianpiero Bucchieri wrote:
    > So its important to listening the following tables too: Faktura (invoice), Partner Role, Partnernumber and the requierements number. The table are EKKO EKPO AND VRKPA OR vbkd, but if I join this table the query doesn't listining any results. If I cancel this 3 or 4 table and I start the query, the listening are ok. 
    >
    I am not sure what business process you are describing here - is it some kind of third-party sales order? If so, your join is wrong.
    From VB E P, firled BANFN and BNFPO you can go to table EBAN, where in field EBELN you will find the number of the purchase order (if somebody already had an MRP+Me58 run over the PR) which will lead you to table EKKO, and EKPO.
    So what we have here (essentially is):
    VBAK -> VBAP -> VBEP -> EBAN -> EKKO -> EKPO
    But that only solves one of your problems - you still have a long way to go to get invoices, partner and partner roles into there and I am beginning to ask myself what exactly it is you want to evaluate.
    Care to explain?
    Edited by: Mylène Dorias on Apr 1, 2010 2:10 PM

  • Opening SAP BPC report on server from Dashboard 4.0

    I would like to know if it is possible to open SAP BPC report/excel on server from dashboard. We should have it embeded in dashboard so that if we click on dashboard....then it should take to the underlying BPC report on server.
    If it is possible the please share the ideas and process.
    Thanks!
    Asif AKram

    Hi Asif,
    We can get BPC data to Dashboard  using EPM add in/Extended Analyzer depending on BPC version.But going directly to BPC report from Dashboard is not possible.
    Regards,
    Javed

  • Problem with SAP PI7.0 J2ee Engine starting

    Hi,
    Problem with SAP PI7.0 Server
    I am using AIX6.1 and p570
    J2ee engine is not starting but I am able to login to ABAP engine.
    When I am trying to long in through internet explorer it is not working.
    How to check J2ee engine started or not.
    If it is not started then how to start J2ee engine.
    If J2ee engine problem is there then how to solve the issue and where to check to solve the issue.

    Hi,
    How to check J2ee engine started or not.
    Check the url http://ipaddress:5xx00/index.html
    If this url shows you the system info page then you j2ee engine is up.
    If it is not started then how to start J2ee engine.
    Check your server0.log file.
    If J2ee engine problem is there then how to solve the issue and where to check to solve the issue.
    Check for the problems in log file and do search in sdn or in the market place you will get plenty of info read them and try to resolve the errors.
    Regards,
    Vamshi.

  • Problem with SAP Script FAX output

    Hi Friends,
    I have problem with SAP Script Fax output.
    After I issued output using the messge type, the print preview format shows me correct alignments and the right data. But when I go to List display using the menu bar functions from the print preview screen, the list is showing me the right data, but all the alignments at the main window went wrong.
    How do I rectify this problem? I need correct alignments in both form display and list display.

    Hi Sasidhar,
    Have you tried with different fax machine.
    Regards,
    Atish

  • Problem with SAP log-in using VBA with Excel Bexanalyzer add-in

    I am trying to login in to SAP using VBA code but the code fails as indicated below .
    In Function GetBEx(Optional iWb As Workbook) As Object
    GetBEx = pAddin.ExcelInterface.WorkbookBExExcelApplication(lName)
    Works properly – I get an object
    However, in the sapBEXgetConnection function it seems that the lBex.ComConnection fails.  The p_connectionObj doesn’t get assigned (p_connectionObj is Nothing)
    Function sapBEXgetConnection(Optional IWhat As Integer) As Variant
        If IWhat = 0 Then
    ' try to get BexApi Connection
            Dim lBEx As Object
            Set lBEx = GetBEx
            On Error Resume Next
            Set p_connectionObj = lBEx.ComConnection  'fails here
            If Err.Number <> 0 Then Set p_connectionObj = Nothing
            On Error GoTo 0
            If p_connectionObj Is Nothing Then If Not prepareConnection Then Exit Function
            Set sapBEXgetConnection = p_connectionObj
        End If
    End Function
    All of this code is part of the Bexanalyzer Excel Add-In
    I’m assuming that I’m missing a patch or some configuration is incorrect but, since I’m not very familiar with SAP I don’t know.  Any help would be greatly appreciated.  Thank you.

    Hello Sebastien,
    Since I don't know what an SSO automatic connection is I can't give you an answer.  Can you explain it?
    Here's what I'm trying to achieve: on demand I'd like to execute VBA code that will use Bexanalyzer.xla functions to log in and then refresh a query that exists in the Excel workbook. Ultimately I'll want to apply parameters / variables to the query when it is refreshed.  I may then automatically execute VBA code to manipulate the resulting data in the workbook.  Basically I want to be able to do all of this without any user input.
    Paul

  • Problem with SAP logon by VBA

    Hi, I'm new in the community and I'm also new with SAP, so sorry for any errors.
    For my work I need to open SAP by excel (VBA); and I have found the code below but it don't work.
    Sub Work()
    Set app = CreateObject("Sapgui.ScriptingCtrl.1")
    Set Connection = app.openconnection("my system", True)
    Set session = Connection.Children(0)
    session.findById("wnd[0]/usr/txtRSYST-MANDT").Text = "Client"
    session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "User"
    session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "Password"
    session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "Language"
    Session.findById("wnd[0]").sendVKey 0
    End Sub
    When the macro runs there is this error  
    Can you help me?
    Thank you,
    ax_salerno

    Hi Alessandro - I am sharing an Excel sub that works for me by opening up logon pad, signing on to production, gettting credentials, then going into SAP and doing a transaction, and finally asking the user to click ok to terminate the session. I think this is something that there were questions on how to do the session close nicely but not sure if there is a solution yet.
    Hope this helps.
    Regards
    Umur
    Sub Logon()
    'starts by executing logon pad, selecting prod, then enters
    id/pwd
    'works to sign on to sap and then kill the connection.
    refers to saplogon.exe in Program Files/SAP71/FrontEnd/SAPGui folder
    Dim SAPguiAPP As Object
    Dim oConnection As Object
    Dim Session As Object
    Dim SAPCon As Object, SAPSesi As Object
    Dim SapGuiAuto As Object, SAPApp As Object
    If SAPguiAPP Is Nothing Then
        Set SAPguiAPP =
    CreateObject("Sapgui.ScriptingCtrl.1")
    End If
    If oConnection Is Nothing Then
        Set oConnection =
    SAPguiAPP.OpenConnection("1. Prod", True)
    End If
    If SAPSesi Is Nothing Then
       Set SAPSesi =
    oConnection.Children(0)
    End If
    Application.DisplayAlerts = False
    With SAPSesi    
        .FindById("wnd[0]/usr/txtRSYST-MANDT").Text
    = "010"
    .FindById("wnd[0]/usr/txtRSYST-BNAME").Text = "USER"
    .FindById("wnd[0]/usr/pwdRSYST-BCODE").Text =
    "PASSW"
    '.FindById("wnd[0]/usr/txtRSYST-LANGU").Text = "EN"
    .FindById("wnd[0]").SendVKey 0
        'start extraction
    .FindById("wnd[0]").Maximize
    .FindById("wnd[0]/tbar[0]/okcd").Text = "/Niw33"
    .FindById("wnd[0]").SendVKey 0
    .FindById("wnd[0]").Maximize
    .FindById("wnd[0]/usr/ctxtCAUFVD-AUFNR").Text =
    "8762449"
        .FindById("wnd[0]/usr/ctxtCAUFVD-AUFNR").CaretPosition
    = 7
    .FindById("wnd[0]/tbar[1]/btn[8]").Press
    .FindById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:3001/ssubSUB_LEVEL:SAPLCOIH:1107/tabsTS_1100/tabpKOAU/ssubSUB_AUFTRAG:SAPLICO1:1100/tabsTABSTRIP/tabpTS05/ssubVALUES:SAPLICO1:1105/cntlPMCO_SUM_TREE/shellcont/shell/shellcont[1]/shell").HierarchyHeaderWidth
    = 162
    .FindById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:3001/ssubSUB_LEVEL:SAPLCOIH:1107/tabsTS_1100/tabpKOAU/ssubSUB_AUFTRAG:SAPLICO1:1100/btnPUSH1").Press
        .FindById("wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell").SelectedRows
    = "0"
    .FindById("wnd[0]/usr/cntlGRID1/shellcont/shell/shellcont[1]/shell").DoubleClickCurrentCell
    .FindById("wnd[0]/tbar[0]/btn[3]").Press
    .FindById("wnd[1]/usr/btnSPOP-OPTION1").Press
    .FindById("wnd[0]/tbar[0]/btn[3]").Press
    .FindById("wnd[0]/tbar[0]/btn[3]").Press
    .FindById("wnd[0]/tbar[0]/btn[3]").Press
        'etc
    End With
         MsgBox
    "After clicking OK, this SAP session is terminated."
    Application.DisplayAlerts = True
         Set Session =
    Nothing
        Set Connection =
    Nothing
        Set SAPguiAPP =
    Nothing
    End Sub

  • Problem with "Leak suspect" report in Memory analyzer

    Hi Experts
    Thanks for providing such a powerful  tool !
    Anwyay, i'm getting an error message while trying to run  the "Leak suspect" report. Indeed i generated a heapdump on my Sandbox Netweaver server then i retrieved it to my PC. I'm able to display some informations (so i'm assuming my heapdump is correct) in Memory Analyzer but the error came with "Leak suspect" report.
    Here is the whole error message :
    eclipse.buildId=unknown
    java.version=1.6.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
    Command-line arguments:  -os win32 -ws win32 -arch x86
    Error
    Fri Jan 29 15:37:23 CET 2010
    An internal error occurred during: "default_report  org.eclipse.mat.api:suspects".
    java.lang.AbstractMethodError: com.sap.tools.memory.netweaver.csn.CSNComponentExtractor.resolveByClassLoader(Lorg/eclipse/mat/snapshot/model/IClassLoader;Lorg/eclipse/mat/util/IProgressListener;)Ljava/lang/String;
    at org.eclipse.mat.inspections.LeakHunterQuery.getTroubleTicketMapping(LeakHunterQuery.java:558)
    at org.eclipse.mat.inspections.LeakHunterQuery.appendTroubleTicketInformation(LeakHunterQuery.java:701)
    at org.eclipse.mat.inspections.LeakHunterQuery.getLeakDescriptionSingleObject(LeakHunterQuery.java:382)
    at org.eclipse.mat.inspections.LeakHunterQuery.getLeakSuspectDescription(LeakHunterQuery.java:215)
    at org.eclipse.mat.inspections.LeakHunterQuery.execute(LeakHunterQuery.java:148)
    at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
    at org.eclipse.mat.query.registry.CommandLine.execute(CommandLine.java:93)
    at org.eclipse.mat.report.internal.QueryPart.execute(QueryPart.java:96)
    at org.eclipse.mat.report.internal.SectionPart.execute(SectionPart.java:53)
    at org.eclipse.mat.report.TestSuite.execute(TestSuite.java:127)
    at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:50)
    at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
    at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Could you please give me some advice ?
    Thanks
    François

    Hi,
    Sorry for not updating the question. We (the tool developers) are aware of the problem and we have fixed it already (internally). However we still have to prepare the proper downloadables for the SDN site and change the content available at SDN.
    About using onother tool - you probably don't need to: one can still use the tool without the NW extensions (just take it from http://www.eclipse.org/mat/).
    The Leak Suspects report is part of the open-source tool (see http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/27/automated-heap-dump-analysis-finding-memory-leaks-with-one-click/).
    Without the NW Extensions one won't see the application names extracted out of classloaders, there will be no suggestions for CSN components, and some other SAP specific queries will be missing. Nevertheless it should be still possible to perform memory analysis.
    I hope this helps to some extent for the moment.

Maybe you are looking for

  • UIElement getting disabled

    Hi, I am trying to create a wd view layout with multiple groups and ui elements within it. I accidentally clicked on 'deploy and run' before 'save metadata', when there were couple of compile errors in the view. After I did this, the group in which t

  • Comments Posting w/o scripting - Lost control over my JSP flow

    Hi all, Imagine you have a page where users can view comments from other users. And imagine that members can also post comments, but non-member guests can not. You want everyone to get the same page, but you want members to see more things on the pag

  • SOA Suite 11.1.1.2 installed in Admin mode but not able login

    Hi, Product details: SOA 11.1.1.2 RCU 11.1.1.2.1 WLS 10.3.2 DB 10.2.04 Jdev 11.1.12 I installed and configured SOA 11G in Admin server. I can successfully login to Admin(Port 7001), EM console(port 7001), but when i login to SOA i am getting Server E

  • How to Access Attributes of Fields in VARIANT

    Hi, Can anyone let me know how we can access Field attributes of a variant? I need to change and create these attributes dynamically. Below are the attributes of screen field saved when creating an variant      Required field                         

  • How do I access my podcasts when the official podcast app won't run on my iPod?

    I am trying to load new episodes of a podcast onto my iPod, and I cannot.  It tells me I have to use the podcast app, but I am unable to install it.  It needs OS 7, but my iPod appears to not support that OS- attempts to update tell me that I have th