Beruflich Dokumente
Kultur Dokumente
Get Started
Solutions Support Training Community Developer
Partner About
Community / Blogs
How to Setup User Options in
EPM Addin
July 3, 2014 | 664 Views |
Badrish Shriniwas
more by this author
Retagging required
Solution | addin | bpc | enterprise performance management sap epm | epm | epm add
in | opionts | sap
share
0 share tweet share
Follow
SAP has introduced a way to set the User Option in EPM addin for
SAP BPC 10. Here is a little write up about how you can set up the
“user options” while developing EPM Addin reports using SAP BPC
10.
Business Case
https://blogs.sap.com/2014/07/03/howtosetupuseroptionsinepmaddin/ 1/5
4/10/2017 How to Setup User Options in EPM Addin | SAP Blogs
option manually. In other words, this option is enabled or disabled by
the user, the implementation team had little control* over this.
The process of setting up the options manually by the users.
User Options >> Automatic Refresh on Context Changes
Solution
The solution of this is to create a simple API based VBA code to set
this option. This document will guide you to setup this option as part
of the work book open event. This will make sure that every time the
user opens the work book this AutoRefresh is set.
Step 1: Open the Visual Basic Development Window (shortcut ALT +
F11)
Step 2: Add reference to the FPMXLClient
https://blogs.sap.com/2014/07/03/howtosetupuseroptionsinepmaddin/ 2/5
4/10/2017 How to Setup User Options in EPM Addin | SAP Blogs
Step 3: Add a new module (this works as a place holder of your
methods, functions and variables)
Step 4: Add the following code.
Function AFTER_WORKBOOK_OPEN()
Dim EPMObj As New FPMXLClient.EPMAddInAutomation
EPMObj.SetUserOption “AutomaticRefresh”, True
End Function
Step 5: Save the work book as the macro enabled work book or
template. The macro will not be saved if this step is not followed.
https://blogs.sap.com/2014/07/03/howtosetupuseroptionsinepmaddin/ 3/5
4/10/2017 How to Setup User Options in EPM Addin | SAP Blogs
related event. This event allows you to trigger a code every time when the
work book is opened. The SetUserOption function allows you to set the user
options. You can use this function for manipulating any option in the user
option section.
Link
http://help.sap.com/businessobject/product_guides/boeo10/en/EPMof
c_10_user_en.pdf Please refer to the latest EPM Addin
documentation.
Prerequisite
Some knowledge of VBA
SAP BPC EPM Addin
Access to SAP BPC server and client
Alert Moderator
3 Comments
You must be Logged on to comment or reply to a post.
Arun Kumar Suryanarayana Rao
July 4, 2014 at 4:31 am
Thanks Badri, this helps in ensuring that the sheet gets refreshed always
and it is not user dependent.
Cheers
https://blogs.sap.com/2014/07/03/howtosetupuseroptionsinepmaddin/ 4/5
4/10/2017 How to Setup User Options in EPM Addin | SAP Blogs
Arun
Charlie Lin
January 28, 2015 at 1:31 am
Instead of using
Dim EPMObj As New FPMXLClient.EPMAddInAutomation
it’s recommended using
Dim client As Object
Set client =
Application.COMAddIns(“FPMXLClient.Connect”).Object
In this way, the step2 is not necessary.
Best regarfds,
Charlie
Scorpio b
March 17, 2015 at 5:42 pm
But the only problem by declaring as object
opposed to taking as reference from Tools is
intellisense does not work.
https://blogs.sap.com/2014/07/03/howtosetupuseroptionsinepmaddin/ 5/5