<img src="https://certify.alexametrics.com/atrk.gif?account=3HHNq1DlQy20Y8" style="display:none" height="1" width="1" alt="">

SAP Analytics
Thought Leadership

Using the Power of Visual Basic in EPM 10 Reporting

Posted by
Michael Sheard
Michael Sheard
on Wed, Aug 06, 2014 @ 07:08 AM

The Excel Add-In reporting tool of EPM 10 combines the features of Excel with EPM functionality.  A feature within Excel that is sometimes useful to meet more advanced reporting needs is macros programmed using Visual Basic (VBA).  This can achieve features that are not achievable through EPM 10 functionality.

maturity modelVBA is a standard Excel feature.  Its use in reports and input schedules is made possible by the fact that the Excel Add-In includes a large number of commands that run EPM 10 functionality.  An example is that the code “EPMObj.RefreshActiveSheet” refreshes the active worksheet.

The most common way to run such VBA is to attach macros to buttons, created with standard Excel functionality.  The use of macro buttons can improve the usability of reports because they are a user friendly feature and can avoid the need to train users to use the EPM toolbar in Excel.

A selection of functionality that can be achieved through VBA is listed below:

  • Refreshing worksheets in a specific order.  This may be necessary if data from a report in one worksheet is required to feed into another.
  • Displaying a message box.  An example would be to warn the user of the risk of overwriting data and providing a Yes / No message box before performing a save.
  • Use of VBA “If” statements to determine what steps are taken.  An example is checking the validity of user selections before performing a report refresh.
  • Checking the validity of data in an input schedule before it is saved.  VBA can be written to perform checks on the data in the schedule and then perform further actions such as displaying message boxes.  An example is that if a set of figures input need to balance to zero, a check can be performed before the save.
  • Hiding of rows or columns in a way that cannot be achieved using standard suppression functionality.  A way to achieve this is to enter a local member with a formula that identifies which rows or columns should be hidden and then add VBA after the refresh to search through the local member results and hide the necessary rows or columns.
  • Setting the print range in an expanding report by using VBA last row and column syntax after the refresh.
  • Running data manager packages.

The general rule that VBA should only be used if it is necessary, due to requirements not being achievable through regular Excel functionality, applies just as strongly to the use of VBA with the EPM Add-In.  One consideration is that using VBA in reports and input schedules results in additional complexity and can make them more difficult to maintain in future.

Please feel free to add any observations or questions as comments below.

Reporting eBook v3-01.png

Related Articles:

Journal Import & Export Setup Steps - Part 1
SAP BW-IP, SAP BPC NW 10.1 Standard and SAP BPC NW 10.1 Embedded Compared
EVDREs Do Not Play Nicely with EPM 10

Topics: Best Practices, Excel, Thought Leadership, Analytics, EPM 10, Value


Recent Posts

Posts by Topic

see all

3  S T E P S

To Enhance Your EPM Performance:

 1.Get Your Ultimate Guide to Improving SAP EPM Performance

ebook 2

 Learn what could be contributing to your poor performance and how to diagnose common problems. Get tips that will empower you and your team to improve the  performance  of your system in order to get the most out of your SAP EPM Investment.

Get the e-Book


2.  Test Your BPC Performance 

Benchmark 2

Get a BPC performance report card and custom report to identify performance issues you may not even know you have.

Test my BPC


  3. Get Your EPM Assessment  


Our assessment delivers a complete, best practice roadmap for you to follow.  We’ll work together to assess what you need to pivot your financial forecasting, planning, reporting and analysis to handle the compressed requirements from the volatile COVID-19 environment. 

New Assessment