The SAP Integrated Business Planning, add-in for Microsoft Excel offers multiple APIs to use through Microsoft Visual Basic for Applications (VBA) coding.
Initially, several APIs were made available with the 2005 version. As of the versions 2202.2.0 and 2205.2.0, additional APIs were provided to make basic functions of the Microsoft Excel add-in accessible through VBA coding. Examples include:
- Trigger the main actions: save data, simulate and refresh
- Retrieve and manipulate the attribute-based filter settings of a planning view
- Determine the attribute values of specific cells in a planning view
- Clear filter values
- Get master data types
- Get single master data
- Update single master data
New APIs continue to be released. They are highlighted in the What's New Webinar series and are listed in the Help. Examples are also available on GitHub. The GitHub repository contains several VBA samples to illustrate existing use cases and capabilities.
Using APIs should not lead to performance degradation. Users can expect the same response with the API as when using the function of the Microsoft Excel add-in.
By default, the newly provided APIs are disabled. To enable them, you must change the global configuration parameter EXCEL_PLANNING_VIEW_APIS in the parameter group PLAN_VIEW from NONE to one of the following parameter values:
- Read: APIs to change the planning view definition are enabled and can be used via VBA coding.
- (enabled APIs: Refresh, GetFilterValues, SetFilterValues and GetAttributeValues)
- Simulate: APIs to simulate data changes including APIs to change the planning view definition are enabled and can be used via VBA coding.
- (enabled APIs: all APIs mentioned in Read and Simulate)
- Save: APIs to persistently save data changes are enabled in addition to all other APIs and can be used via VBA coding.
- (enabled APIs: all newly provided APIs and SaveData)
VBA Samples
The APIs can be used to enhance planning view templates through VBA coding to build their own business logic, and automate some of the manual steps planners must do in their daily work.
As a starting point for the implementation, GitHub contains artifacts that can be used as a starting point to explore the capabilities of the APIs. Information is grouped by the use case and there are code samples available for download, as well as videos that showcase the final product.


Ribbon Extension
An extension to the SAP IBP ribbon can be created using an .xml file and Microsoft Office Excel macros. File supporting ribbon extension has to be placed in %LOCALAPPDATA%\SAP_IBP_Addin (similarly to the file that supports graphic capabilities in planning views).
