Auto_Open() macro in BPC
Experts,
I am trying to run some custom events as soon as I open any report in BPC (all reports have been built using EVDRE). I tried using Auto_Open() macro to do the custom events but I observed that it does not function in BPC (however Auto_Close() works). Any idea how I can do so?
To give an example, in one of the reports, I want to set a pre-defined Current view. I have used EVMNU("Set CV",,...) function on the on report page (in cell R1). When this cell is selected, the current view is set to default view. I want this cell to get clicked (selected) automatically when the report is opened so that the initial view is set to default view. Is there a way to do this? Thanks
Hi,
Just information for you, you can use the VBA macro(function). likes this:
sub testing( )
RUN EVMNU..
end sub
Similar Messages
-
Using BIA_RegisterCalcValidationProgram in Excel AUTO_OPEN macro
The documentation for the Spreadsheet Addin, section 5.5, states:
"You can include the BIA_RegisterCalcValidationProgram() macro in the auto_open procedure to automatically register the program for calculation and validation when a workbook is opened."
I have created an AUTO_OPEN() procedure in Excel, and stored it in my personal.xls. I also have the Oracle BI add-in starting automatically.
However, when I start Excel, I get a Microsoft Visual Basic Compile error: "Sub or Function not defined", and it's highlighting the BIA_RegisterCalcValidationProgram function in the debugger.
I can use that function just fine by calling it from a button, but that happens after Excel has successfully started. I want to register the program when Excel opens, as the documentation says I can.
Here is my AUTO_OPEN procedure, as stored in personal.xls:
Sub AUTO_OPEN()
Dim query_id As String
Dim calc_id As String
Dim s As String 'Generic string return value
query_id = "Q.BUDGET.2" 'Query name in worksheet
calc_id = "dai.daiprog!BUDGET.CALC"
s = BIA_RegisterCalcValidationProgram(query_id, calc_id)
End Sub
Please note that this exact same code works just fine as a standalone macro. It's only when used in the Auto_Open that it fails.
Am I missing a step somewhere?Incidentally, if I use this as the AUTO_OPEN macro in personal.xls, it works just fine, so I'm pretty sure AUTO_OPEN is the right place to be:
Sub AUTO_OPEN()
MsgBox ("Hello There")
End Sub -
Hi all,
Does anyone knows any document or place where I can find the name of all the existing macros I can use in BPC?
I would like to use custom buttoms in the forms but I don't know the name of the macros availables and I have not installed the on line help in the client.
Thanks in advance and best regards,
AnaSend and Refresh Schedule
MNU_ESUBMIT_REFRESH
Open My Schedule
MNU_ESUBMIT_OPENMY
Save My Schedule
MNU_ESUBMIT_SAVEMY
Open Dynamic Schedule Template
MNU_ESUBMIT_SCHEDULE
Open Schedule Library
MNU_ESUBMIT_OPENSTANDARD
Validate Submission
MNU_ESUBMIT_VALIDATE
Publish to Content Library
MNU_ESUBMIT_SUBMIT
Modify Work Status
MNU_ESUBMIT_MODIFY
Spread
MNU_eSUBMIT_ESPREAD
Trend
MNU_eSUBMIT_ETREND
Weight
MNU_eSUBMIT_EWEIGHT
Manage Dynamic Hierarchies
MNU_ESUBMIT_MANAGE_DYNAMICHIERARCHIES
Using Schedule's Help
MNU_ESUBMIT_HELP
Open My Reports
MNU_EANALYZE_OPENMY
Save My Reports
MNU_EANALYZE_SAVEMY
Open Dynamic Report Template
MNU_EANALYZE_REPORTWIZARD
Open Report Library
MNU_EANALYZE_OPENSTANDARD
Audit Reports
MNU_EANALYZE_VIEWAUDIT
Using Report Help
MNU_EANALYZE_HELP
Open Web-Ready File from BPC Web
MNU_EPUBLISH_OPENPUBLICATION
Save as Web-Ready File
MNU_EPUBLISH_PUBLISHSHEET
Book Publication Wizard
MNU_EPUBLISH_PUBLISHBOOK_WIZARD
Create New Book
MNU_EPUBLISH_PUBLISHBOOK_NEW
Edit Book
MNU_EPUBLISH_PUBLISHBOOK_EDIT
Save Book
MNU_EPUBLISH_PUBLISHBOOK_SAVE
Save As Book
MNU_EPUBLISH_PUBLISHBOOK_SAVEAS
Validate Book
MNU_EPUBLISH_PUBLISHBOOK_VALIDATE
Offline Distribution Wizard
MNU_EPUBLISH_OFFLINE_WIZARD
Manage Distribution List - New
MNU_EPUBLISH_OFFLINE_NEW
Manage Distribution List - Edit
MNU_EPUBLISH_OFFLINE_EDIT
Manage Distribution List - Save
MNU_EPUBLISH_OFFLINE_SAVE
Manage Distribution List - Save As
MNU_EPUBLISH_OFFLINE_SAVEAS
Manage Distribution List - Validate
MNU_EPUBLISH_OFFLINE_VALIDATE
View BPC Web
MNU_EPUBLISH_VIEWeDASH
Publishing Help
MNU_EPUBLISH_HELP
Park N Go
MNU_ETOOLS_PARKNGO
Expand All
MNU_ETOOLS_EXPAND
Refresh Workbook
MNU_ETOOLS_REFRESH
Drill Down
MNU_ETOOLS_DRILLDOWN
Drilldown Back
MNU_ETOOLS_DRILLDOWN_BACK
Drill Down Forward
MNU_ETOOLS_DRILLDOWN_FORWARD
Drill Through
MNU_ETOOLS_DRILLTHROUGH
Select Member
MNU_ETOOLS_MEMBERSELECTOR(xxxxxxx)
Function Wizard
MNU_ETOOLS_FUNCTIONWIZARD
Refresh Dimension Members
MNU_ETOOLS_UPDATEAPPINFO
Data Manager
MNU_ETOOLS_DATAMANAGER
Workbook Options
MNU_ETOOLS_WBOPTION
Open Dynamic Templates
MNU_ETOOLS_OPENSTANDARD
Save Dynamic Templates
MNU_ETOOLS_SAVESTANDARD
Open Custom Menu
MNU_ETOOLS_PSMANAGER_OPEN
Test Current Worksheet
MNU_ETOOLS_PSMANAGER_COMPILE
Save Custom Menu
MNU_ETOOLS_PSMANAGER_SAVE
Change Application Set
MNU_ETOOLS_CHANGEAPP
Client Options
MNU_ETOOLS_OPTION
Journal
MNU_ETOOLS_JOURNAL
View BPC Action Pane
MNU_ETOOLS_TASKPANE
BPC for Office Help
MNU_ETOOLS_HELP
About BPC
MNU_ETOOLS_ABOUT
Run Package
MNU_eData_RUNPACKAGE
Packages Schedule Status
MNU_eData_PackageSechedules
View Status
MNU_eData_ViewStatus
Organize Package List
MNU_eData_OrganizePackage
Manage Team User Package Access
MNU_eData_ManageSitePackage
Data Preview
MNU_eData_DataPreview
Data Upload
MNU_eData_DataUPLoad
Data Download
MNU_eData_DataDownLoad
New Transformation File
MNU_eData_NewTransformation
Manage Transformation Files
MNU_eData_OpenTransformation
Validate and Process Transformation File
MNU_eData_SaveTransformation
Copy Transformation File
MNU_eData_SaveAsTransformation
New Conversion File
MNU_eData_NewConversionFile
Manage Conversion File
MNU_eData_OpenConversionFile
Validate and Process Conversion File
MNU_eData_SaveConversionFile
Copy Conversion File
MNU_eData_SaveAsConversionFile
Add Conversion Sheet
MNU_eData_NewConversionSheet
Clear Save Prompt Values
MNU_eData_ClearPromptValue
Data Manager Help
MNU_eData_Help
About Data Manager
MNU_eData_About
Show Member List
MNU_eData_Showmemberlist -
Bex Refresh from VB Auto_open macro
We are using Release 2004s, SP 12, Patch 1, revision 578. Here is issue:
I understand and I am OK with having all items updated during refresh (versus individual queries in pre NW). I am using this syntax in the auto_open VB code.
Run "bexanalyzer.xla!SAPBexrefresh(true)"
After the refresh, control is not returning to the next line in the VB macro that called the refresh so I cannot finish work book processing in unattended mode. We do not want to use refresh on open command since subsequent users do not want to refresh on open.
Suggestions ? Most desirable answer would be the NW equivalent to 3x code:
Run "BExAnalyzer.xla!SAPBEXrefresh", SAPBEXq0001
which returns control to next VBA line and does not pause refresh mode.Hey Kim,
I have not come across this scenario. My first guess is that it would run similar to BW 3.x so I would log a customer message and see what development says about this. They might fix the behaviour for this.
If this behavior was intentional, then you'll have to play games with your VBA (set a flag to execute everything before and after a refresh and use the flag to track the state of your refresh).
Hope that helps,
Prakash -
Hello Experts,
I am trying to run Macros in EPM BPC 10 reports and input forms. I came across this blog post and have followed steps 1,2 and 3. I am not very clear about how to instantiate the Class in VB (step 4) and use the same with the button I created from the developer tab.
Please refer to the blog post below.
Using the API in EPM 10.0 NW BPC
Thanks,
BhairaviThe Macros work fine when you type in the script given in step 4 of the blog, on the VB script page which opens once you insert a button using the developer tab.
Regards,
Bhairavi -
BIA_RegisterCalcValidationProgram Macro
I am using the BI Spreadsheet add-in for Oracle OLAP and I am able to write-back to my analytical workspace successfully but I have the following questions:
Where is the BIA_RegisterCalcValidationProgram macro located and can this be used to compile any DML program?
Can custom DML programs be called through a macro through the BI Add-in?
KristineIncidentally, if I use this as the AUTO_OPEN macro in personal.xls, it works just fine, so I'm pretty sure AUTO_OPEN is the right place to be:
Sub AUTO_OPEN()
MsgBox ("Hello There")
End Sub -
The macro 'sapbex.xla!reponewquery' cannot be found
Hello everybody!
I am getting an error message 'The macro sapbex.xla!repoNewQuery cannot be found'. And it continues with all other icons in the BEx toolbar in excel. What should I do now?
(I have deleted all the saplogon and installed it again !
My Excel edition is 2003 and the degree of macro is low!)
your early help would be appreciated.In your system, if Analyzer works fine for one type of user and not working for other users, that means something prevents the Auto_Open macro from running. Because of that the toolbar is not renamed and the buttons are not mapped correctly. We just want to inform you that there is no problem with
Installtion as well as Analyzer. The problem is with user login. It may be due to the settings in HKEY_CURRENT_USER.
Exd files cache activeX component information. If the component changes without removing the exd file (which created when the component is first used), then the system will be out of sync.
Go into a command prompt and type the following DOS commands:
> CD \Document And Settings
> DEL /S /A:H /A:-H *.EXD
Thanks
Ezhil -
*Runtime error: 91* (DM package)
Hi friends,
i'm trying to run data manager package through a command button, macro i used is MNU_EDATA_RUNPACKAGE.
But when i click on that system prompting with message
Runtime error: 91
"Object variale or with block variable not set".
Or other error message like
*Cannot run this macro "reportname!MNU_EDATA_RUNPACKAGE". The macro may not be available in this workbook or all macros may be disabled.
I enable all macros and cheked tick mark trust access to vba project object model(in macro security).
Is there any macro in bpc nw75, to run only particular package using command button?
thanks.Now not getting this error. don't know answer .
-
Work Environment: Excel 2013 64bit/Win7 64bit
Home Environment: Excel 2013 32bit/Win8.1 64bit (1 desktop and 1 laptop)
I am developing an an .xlsm file at work (with Lists and a single form with controls linked to a worksheet ControlSource). It works and saves all day long just fine in my work environment. I save the file to either a USB drive (or DropBox - makes no difference)
and then open the file on my home computer. I can open the file the first time with no problem and with no error messages. But then when I try to save the file Excel 2013 32bit most often tells me that it has removed a component. But it doesn't tell which
component it has removed. After that, if I close the file and try to reopen it, it won't reopen. I get a series of error message: [1] file path errors (error 75) [2] Excel has stopped working errors. [3] Excel hasn't enough memory to complete the operation,
[4] Excel will close. So I click the close button on the last error message and Excel disappears. I say disappears, because its not really gone. Mind you, its not listed in the Task Manager at this point. But, if I then click the Windows Taskbar icon to start
Excel, Excel will sometimes automatically open up with the file that I was trying to open before, already up and running, i.e. I do not select the file to open it - it just appears. Other time Excel just repeats the series of error messages noted above.
The strange part is, once this file has been corrupted, I can still take it back to my work environment, fire it up on my work computer, and it works just fine. No error messages, no saving problems.
I have totally uninstalled and reinstalled Office 2013 (HUP Click to Run) on both my home computers and it makes no difference.
I can say though, this is driving me nuts. Anyone have any suggestions or ideas?
phillfriI think I solved the issue.
Step 1: Moved all my code from the Worksheet_Open event to the Auto_Open Macro.
Result: File would open from inside Excel but when opening by clicking on the file in Windows explorer I would get the error msg "There was a problem sending a command to the program."
Step 2: Apply FixIt 20074. Note that to get this FixIt to work in Windows 8.1 you MUST save the FixIt file to your desktop and run it from there. If you follow the instructions on the FixIt page - download and run - you will get the error msg "This Fixit
does not apply because the computer does not have the expected software (Excel.exe)."
Excel 2013 definitely seems to have some bugs when starting a macro enabled file. I have seen other comments on the internet about the Excel workbook_open event actually failing to run all the VBA commands that are put into it.
Environments:
[1] Home: Microsoft HUP Click-n-Run Office Professional 2013; Windows 8.1, 64 bit; Excel 2013, 32 bit.
[2] Work: Enterprise Microsoft Office Professional 2013; Windows 7, 64 bit; Excel 2013, 64 bit.
phillfri -
Usage of SAPBEX.XLA!SAPBEXSetFilterValue with hierarchies
I am trying to set a filter value for my query automatically with vba using the Run("SAPBEX.XLA!SAPBEXSetFilterValue) function. The Filter Value i want to select should be selected as a node from a certain characteristic hierarchy therefore i am runnign the following command:
run("SAPBEX.xla!SABBEXSetFilterValue", myValue, myHierarchy, "B3")
Unfortunately this doesnt work. The result is that no filter value is set at all.
Could anyone help me out with this?Hi Suresh,
Sorry to keep correcting myself. Now I have been able to recreate the problem. My first post was correct ... at least in part. My second post is also correct (I think), as far as I can tell there is no function named "repoNewQuery".
I did recall seeing this error before. And it did occur for me because my SAP GUI was not correctly loaded. So, you might still want to check your installation as described in my first posting, about 3 hours ago.
If my theory is correct, the title of the BW toolbar you are seeing is "xxxSAPBEXxxx" instead of the usual title of "Business Explorer" (at least the English version; it might have a different title in other languages).
Here is my theory ... when the BEx Analyzer (sapbex.xla) is loaded, it loads a toolbar named "xxxSAPBEXxxx". Some sort of Auto_Open macro also runs, which displays the splash screen and fixes the toolbar. Part of fixing the toolbar is changing its name and re-mapping the OnAction macro for the buttons on the toolbar.
If something prevents this Auto_Open macro from running (in my case it was incorrect versions of files, in your case because you have disabled Auto_Open macros somehow?), then the toolbar is not renamed and the buttons are not mapped correctly.
I have no idea why changing a macro setting in Word would affect an Auto_Open macro in Excel. But, I will be very interested in reading what you find out.
- Pete -
Menu Command to run a DataManager Package
Hello
I need to have a command button in BPC-Excel spread sheet, that will execute a Data Management Package. Any idea what is the Menu Command Macro for it? Where I could find all the menu command macros in BPC 7.0?
Thanks and best regards
DipMDip,
On BPC MS ---these are two commands available..I'm sure these shld be available in NW too....but in case you dont see the expected behaviour..Your best bet...search for this command in SAP Support Portal under Application area "EPM-BPC-NW" if this command is still available..and for all the rest of Mnu commands..
MNU_eData_RUNPACKAGE
Opens the Data Manager Run Package dialog box. Allows users who have access to run database packages.
MNU_eDATA_SELECTPACKAGE
Open a specific Data Manager package.
Syntax for this command is MNU_eDATA_SELECTPACKAGE(<package name>, <package file path>, <teamname>, <package group>)
For only this menu command, the parameters are part of the MacroName so you must leave the Parameter section blank. For example, if you have MNU_eData_SelectPackage(""import"",""examples/import.dts"",""HQ"") in cell A1, FX Restatement in cell A2, your EvMNU function would be: EvMNU(A1,A2,).
for adding a button:On your EVDRE, go to EXCEL VIEW menu and forms...and from that click the botton and draw it on your EVDRE.rt click and put your command in the macro..
hope this helps ... -
Excel uploading does not open excel file
Hi!
On customer site users try to upload tables of docs and reports via standart MS Excel upload functionality, B1 saves data in txt file but does not open MS Excel with auto_open macro - what could be the reason?Dear ,
For your issue, kindly check Note-542663 below:
Symptom
When exporting a file to Excel the program opens, but the exported file
itself doesn't open automatically although an "AutoOpen" file exists.
Other terms
export, Excel, tools, options, auto open, file, document, office, macro,
ignore, application, Office97, Office2000
Reason and Prerequisites
In Excel the options "Ignore Other Applications" and "Protection from
Macro Viruses" are set.
Solution
To remedy this problem you should deselect the following :
"Ignore Other Applications" and "Protection from Macro Viruses" options
in the Excel program.
For Microsoft Office 2000
in order to de-select the tick-box "Ignore Other Application" :
1. On your desktop go To: "Start -> Programs -> Microsoft Office ->
Microsof Excel
2. In Excel go to:"Tools->Options-> General" Tab.
3. De-select the tick-box "Ignore Other Applications"
In order to de-select the "Portection from Macro Viruses"
1. In Excel go to:"Tools-> Macro->Security"
2. Set the security level to "Medium".
For Microsoft Office97:
1. In Excel go to:"Tools->Options->General" tab.
2. De-select the tick-box "Protection from Macro Viruses".
You could also refer to note 941266 & 540054 for reference.
Wish the information above is helpful for you.
Regard
Apple -
Hi everyone,
I would like to get any tip or help on how to implement an autofilter tool in an excel file created using JXL api, at this stage i tried :
WorkbookSettings wbsett=new WorkbookSettings();
wbsett.setAutoFilterDisabled(false);
WritableWorkbook w =
Workbook.createWorkbook(response.getOutputStream(), wbsett);
but this didnt work at all. i would appreciate help with this or any comment on other api's capable of this.
ThanksThe only solution I found is create a excel template and should have the follwing Auto_Open() macro which executes when you open the excel.
Sub Auto_Open()
' Auto_Open Macro
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
If ActiveSheet.AutoFilterMode = False Then
If WorksheetFunction.CountA(ActiveSheet.UsedRange) <> 0 Then
Rows("A1").Select
Selection.AutoFilter
Range("A1").Select
End If
End If
Next
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
Exit For
Next
ActiveWorkbook.Save
End Sub
Then create a writeble workbook using the folllwoing code and work with it.
InputStream inputStream = classLoader.getResourceAsStream(excelTemplateName);
Workbook workbook = Workbook.getWorkbook(inputStream);
WritableWorkbook writableWorkbook = Workbook.createWorkbook(new File(fileName), workbook); -
Hi experts,
We have some Input Schedules uploaded to an SAP Portal, but when we try to use a button that have asociated a BPC macro, it doesn't works, but VB marcros works fine.
Is there any service to be habilitated or installed in the Portal?
Regards,
Javi
PD: We have v7.5 SP04 installedHi Javi,
I am not sure whether BPC macros will run like that or not. However, I dont think it will. These macros were designed for the BPC excel May be some expert can throw some light on this. -
Macro for exporting data to a BPC Data File
Hi,
My requirement is if in an Input Schedule, I can write a macro on a button click that takes the data from the input schedule cell range and exports it to a Data file at the BPC Data File path. Please note, while exporting, the data is to be overwritten and not appended, i.e. every time I export the Data file should be replaced with new data.
Does anyone have sample code for writing such a macro ?
Environment: SAP BPC 7.5 NW
Cheers,
NitinHi Vladim,
The requirement is to allow the user to enter Account Type and Rate Type property values for certain nodes in the Dimension.
Since these values are not coming from BW, we need to maintain in conversion files while uploading the master data.
However, we need to do away with the manual maintenance of the conversion files and find a way to update these properties directly.
One way I thought was to create an Input Schedule (IS), the user enters the account no and rate/account type and clicks a button. This button
1. Exports this data to a Data File, and then a
2. Data manager package is called to import the data file.
Point 2 is doable, but im trying to figure out the step 1.
Since we do not have an FTP location hence won't be able to utilise your method.
Cheers,
Nitin
Maybe you are looking for
-
D4S NEF files not able to open in CS5 or Lightroom
Need help with this. Have downloaded all the updates i cold find. Lightroom says software is up to date but no luck.
-
Need help w/ animation in a for loop
Hey all, its 1:33 am here... and im stuck as far as how to code to make the ball move... I should be able to do this... ive done it in other programs...in a way... but any help would be appricated. import java.awt.event.*; import java.awt.*; import j
-
I know this is a known issue if you upgrade you graphics card to the 8800GT retail 10.5.0 dvd will lockup your system. my question is when is Apple going to update the retail DVD to something useful like 10.5.4. I have already contacted apple and the
-
Hi fellow Lenovo Users. I have recently upgraded to Windows 10 from Windows 8.1. YAY! However this process would have been made easier if I hadn't had to format the drive to recover a blank install of Windows 8.1 then get the upgrade to wipe clean th
-
Switch to powerpill during fresh net install
Hi, In a few days I'll (net) install Arch (64b) on a new PC. The Wiki instillation guides recommends using pacman. Since powerpill is much faster, I wonder if I can install powerpill, immediately after installing pacman, and use powerpill instead fo