SAP Focused Run offers some nice API’s that you can use and re-use.
API’s available:
- LMDB API
- Work mode management API
- Guided procedure API
- Advanced analytics API
LMDB API
The LMDB now has a REST API available to read data in structured way. You can search for hosts, technical systems, software components, installed product versions and instances.
The full specification for this API can be found on this link.
Ad hoc work mode creation via function module
Via function module FM_START_ADHOC_WORKMODE you can create an ad-hoc work mode to stop monitoring for a system. You can start monitoring again by stopping the work mode by calling function module FM_STOP_ADHOC_WORKMODE.
The full specification of all the work mode API’s can be found in the PDF attached to OSS note 2508346 – Work Mode Management API Documentation for Focused Run.
Triggering guided procedure via function module
Function module FM_EXTRN_GP_EXEC can be used to call a guided procedure. Unfortunately, you need to pass the GUID of the guided procedure to the function module.
The full guided procedure API can be found on this SAP page.
Advanced Analytics API
The specification for the Advanced Analytics API can be found here.