HowTo: Enhancement for End-User Experience Monitoring
- Enhancements points in EEM application
- Step by step description
This document describes how to enhance the End-user Experience Monitoring (EEM) for customer needs by using implicit enhancement options.
General information about the SAP Enhancement Framework can be found here.
Enhancements points in EEM application
When a script is executed on an EEM Robot the result and the response times are sent to the SAP Solution Manager by calling the function module AI_EEM_SCRIPT_NOTIFICATION.
This function module can be used to:
- Change the status of an execution
- Trigger a Mail/SMS Notification
Step by step description
This chapter describes how to create an enhancement step by step.
Enhance Source Code
Choose the function module in the editor and select from menu Enhance Source Code:
Show Implicit Enhancement Options
Choose from menu Edit->Enhancement Operations->Show Implicit Enhancement Options:
Implicit Enhancements are displayed:
Select the displayed enhancement ideally the one before the event ENDFUNCTION and choose from menu
Edit->Enhancement Operations-> Create Enhancement
In the following pop-up choose 'Code':
Enter a meaningful name and description create a Composite Enhancement Implementation (like ZEEM below) which can be assigned to a customer development class.
The following examples make only sense for SAP Solution Manager 7 EhP1 (7.01).
Change the status of an execution
In this example the downtimes of the involved systems from SAP Solution Manager Downtime Manager (Transaction SOLMAN_DOWNTIME_MGMT) are read and if a downtime was planned the status of the execution (ls_scenario_exe-availability) is set to a predefined value.
Sending email/SMS Notification
In this example an own developed class is called which decides based on some persisted rules if a mail has to be send to some maintained recipients. Class ZCL_EEM_MAIL is an enhanced copy of the tutorial CL_BSP_TUT_MAIL.
Examples for sending mails are described in online help by copying class CL_BSP_TUT_MAIL