Configuring User Exits
You use the user exit function in SAP Landscape Management, to provide hooks for executing custom functionality while executing default SAP Landscape Management operations. By default, user exits in SAP Landscape Management are disabled.
Context
User exits are executed as hooks of a certain well defined set of SAP Host Agent operation types.
We differentiate between the following hook types:
Hook Type |
Description |
---|---|
Pre |
User exit is executed before the actual SAP Host Agent operation |
Post |
User exit is executed after the actual SAP Host Agent operation |
Error |
User exit is executed in case the operation or the post-hook fails |
The following hooks are available on SAP Host Agent side for the different operations in SAP Landscape Management:
SAP Landscape Management Operation |
SAP Host Agent Hook |
Application Instance |
---|---|---|
Start |
StartInstance |
SAP instance |
StartDatabase |
Database |
|
Stop |
StopInstance |
SAP instance |
StopDatabase |
Database |
|
Prepare |
ACOSPrepare Mount Ifup RegisterInstanceService |
SAP instance |
AttachDatabase |
Database |
|
Unprepare |
ACOSPrepare Unmount Ifdown UnregisterInstanceService |
SAP instance |
DetachDatabase |
Database |
All of the operations have the parameter SAPHOOKNAME. This parameter is defined as follows: <Hook Type> <SAP Host Agent Hook> .