VBA hooks allow enhancing a certain functionality in the SAP Integrated Business Planning, add-in for Microsoft Excel with custom Visual Basic for Applications (VBA) code.
There are two main groups of hooks: hooks for planning views and hooks for master data workbooks.
VBA Hooks for Planning View
It is possible to extend planning view workbooks with custom VBA implementations for special check purposes. The following hooks are available:
IBPBEFORESEND
IBPAFTERREFRESH
The IBPBeforeSend hook is called just before the SAP IBP, add-in for Microsoft Excel sends an update request to the back end from a planning view (after the standard SAP IBP validation). In this hook, you can implement some extra validation on the data in the planning view. The process of validation can be stopped if necessary.
The IBPAfterRefresh hook is called after the user chooses the Refresh button under the Data Input ribbon group. For example, it can provide a message, that informs that refresh had been processed.
VBA Hooks for Master Data Workbooks
It is possible to extend master data workbooks with custom VBA implementations. VBA hooks can be used for both master data and planning objects with key figure data. The following hooks are available:
IBPMDBEFOREUPDATE
IBPMDAFTERREFRESH
The IBPMDAfterRefresh hook is called when the master data worksheet is created or refreshed. Using this hook, you can manipulate the layout and appearance of master data worksheets, such as reordering, coloring, hiding columns, and so on.
The IBPMDBeforeUpdate hook is called before the changes in the master data worksheet are sent to the back end. It can be used, for example, to validate that naming conventions have been followed before saving data. This can be very useful when there is a significant number of user-defined attributes in a master data type and several members of the user community are maintaining these fields as part of their routine.