This page explains how to connect SAP S/4HANA Cloud Private Edition to SAP Cloud ALM to enable monitoring.
Currently, SAP S/4HANA Cloud Private Edition supports the following monitoring applications:
- Business Process Monitoring
- Integration and Exception Monitoring
- Real User Monitoring
- Job & Automation Monitoring
- Configuration & Security Analysis
- Health Monitoring
- Transport Management (feature deployment in the Implementation area)
The following video demonstrates the setup steps for Integration and Exception Monitoring for SAP S/4HANA Cloud Private Edition. A textual step-by-step description of all setup steps is provided after the video on this site.
You can obtain the SAP Cloud ALM service key to connect to the SAP Cloud ALM system. More under Managing Your Service Credentials.
Set up your ABAP system in transaction /SDF/ALM_SETUP, with the following requirements:
-
SAP_BASIS release:
- 7.40 SP16 or higher (accordingly 7.50 SP05)
- Or 7.40 SP09 - SP15 (7.50 SP00 - 7.50 SP04) with SAP Note 2283880 - Logon Username not used in RFC API
-
SAP_UI version: SAP_UI 740 SP15 or higher
-
Implement ST-PI 7.40 support packages and keep them up to date, including the collective corrections suited for your ST-PI support package from the required SAP Notes listed after this.
Operate your ABAP managed system with at least the latest or second latest support package that's available on the SAP Support Portal.
-
For Business Process Monitoring in SAP S/4HANA and SAP Business Suite 7, at least ST-A/PI version higher that 01U_731 must be available. Always keep it up to date.
If using ST-A/PI version 01W, implement the latest versions of SAP Notes listed on this page.
-
The profile parameter icm/HTTPS/client_sni_enabled is set to TRUE. See also SAP Note 510007 (Additional considerations for setting up SSL on Application Server ABAP).
-
Profile parameter ssl/client_ciphersuites is defined as described in section 7 of SAP Note 510007.
-
DigiCert Global Root G2 has been imported in STRUST under SSL Client (Anonymous) and SSL Client (Standard).
-
DigiCert TLS RSA4096 Root G5 has been imported in STRUST under SSL Client (Anonymous) and SSL Client (Standard).
-
You've installed the latest version of the following SAP Notes for ST-PI:
- SAP Note 3639977 – Collective corrections as of ST-PI 7.40 SP32 for SAP Cloud ALM (including SP33)
- SAP Note 3575903 – Collective corrections as of ST-PI 7.40 SP30 for SAP Cloud ALM (including SP31)
- SAP Note 3502641 – Collective corrections as of ST-PI 7.40 SP28 for SAP Cloud ALM (including SP29)
- SAP Note 3421256 – Collective corrections as of ST-PI 7.40 SP26 for SAP Cloud ALM (including SP27)
- SAP Note 3374186 – Collective corrections as of ST-PI 7.40 SP24 for SAP Cloud ALM (including SP25)
- SAP Note 3312428 – Collective corrections for Integration & Exception Monitoring in SAP Cloud ALM
- SAP Note 3281776 – Job & Automation Monitoring: ST-PI 740 SP21+ fixes for on-premise jobs (ABAP jobs and BW process chains)
The communication between your ABAP system and SAP Cloud ALM happens from the ABAP system towards SAP Cloud ALM. You don't need to install an SAP Cloud Connector if you only want to set up monitoring or transport management in SAP Cloud ALM.
You only need an SAP Cloud Connector if your use case requires an endpoint to be created from SAP Cloud ALM towards the ABAP system. Currently, this is only the case for ABAP systems of the type SAP Focused Run and SAP Solution Manager or if you want to use the use SAP Business Transformation Center.
To establish the connection from the ABAP system to SAP Cloud ALM:
-
You can obtain the SAP Cloud ALM service key to connect to the SAP Cloud ALM system. More under Managing Your Service Credentials.
-
Ensure the following URLs can be reached:
- The SAP Cloud ALM API URL, service key
endpoints:Api, without/api. - The SAP Cloud ALM OAuth URL, service key
uaa:urlfollowed by/oauth/token. - If you want to activate mTLS-based authentication, you also need the SAP Cloud ALM OAuth cert URL, service key
uaa:certurlextended by/oauth/token. You find this URL in the X.509-enabled service key, which is created after the mTLS-based authentication has been activated in the next section, where the PUSH Data Provider is configured.
- The SAP Cloud ALM API URL, service key
-
If you use a proxy in your network, ensure it's configured to allow calls to these URLs. For more information, check the Region-Specific IP Address Ranges.
-
If your SAP ABAP system is hosted with SAP Enterprise Cloud Services (ECS), create a service request with SAP ECS to add the following URLs to the allowlist for your environment. This does not apply for SAP SuccessFactors Employee Central Payroll.
- Root URL: SAP Cloud ALM service key parameter
endpoints:apiwithout/api. - OAuth URL: SAP Cloud ALM service key parameter
uaa:URL. - If you want to activate mTLS-based authentication, you also need the OAuth Cert URL: SAP Cloud ALM service key parameter
uaa:certurl. You find this URL in the X.509-enabled service key, which is created in the next section, where the PUSH Data Provider is configured.
- Root URL: SAP Cloud ALM service key parameter
For the setup, consider two users in the managed ABAP system:
-
The user performing the setup: To run transaction /SDF/ALM_SETUP, your personal user needs the PFCG role SAP_SDF_ALM_SETUP.
Note: In this role, maintain the authorization field S_BTCH_NAM > BTCUNAME either with an asterisk (*) or with the user name of the user that you plan to use for the background job for the data collection.
-
The user to run the background job for the data collection: Assign the roles as described in the following table:
ST-PI Release
Required Authorizations
ST-PI 7.40 SP31 for DVM
The Data Volume Efficiency (also known as Data Volume Management) KPIs featured on the RISE with SAP Methodology dashboard require data collection through the data collector available from ST-PI 7.40 SP31.
To ensure data collection runs without errors, assign the following role to the existing batch user:
SAP_SDF_ALM_METRIC_PUSH_DVMST-PI 7.40 SP29 for certificate-based authentication
If you want to use certificate-based authentication, you can either create a dedicated user for the certificate rotation or assign the following role to the existing background user:
SAP_SDF_ALM_MTLS. For systems with SAP_BASIS below 7.51, you can ignore S_PSE_ADM.
Note: With ST-PI 7.40 SP29, Exception Monitoring is no longer a standalone use case. Therefore, the PFCG role SAP_SDF_ALM_METRIC_PUSH_EXMON has been removed and the Exception Monitoring permissions are now included in the respective PCFG roles for Integration Monitoring and Job and Automation Monitoring.
ST-PI 7.40 SP25 and higher
In addition to the authorizations for ST-PI 7.40 SP24, you need:
- SAP_SDF_ALM_METRIC_PUSH_CSA
- SAP_SDF_ALM_METRIC_PUSH_CSA_S. This role allows the detection of special users (such as SAP*) that use default passwords.
In versions below ST-PI 7.40 SP25, you can either use the existing SAP Focused Run roles for Configuration and Security Analysis or the roles that are delivered with SAP Note 3372078 (recommended).
ST-PI 7.40 SP18 and higher
In addition to the authorizations for ST-PI 7.40 SP16, you need:
-
SAP_FRN_SDAGENT_CSA_MS. This role contains authorization objects that are delivered by SAP without an authorization. To use Configuration and Security Analysis in SAP Cloud ALM, maintain the following authorization objects:
- S_RFC_ADM: ICF_VALUE = '*'
- S_DATASET: FILENAME = '*', PROGRAM = '*'
- S_LOG_COM: HOST = '*', OPSYSTEM = '*'
-
SAP_FRN_SDAGENT_CSA_SEC_MS. This role allows the detection of special users (such as SAP*) that use default passwords.
ST-PI 7.40 SP16 and higher
- SAP_SDF_ALM_METRIC_PUSH_FND*
Assign the following authorizations depending on the SAP Cloud ALM use cases that you plan to activate:
- SAP_SDF_ALM_METRIC_PUSH_BPMON
- SAP_SDF_ALM_METRIC_PUSH_EXMON *
- SAP_SDF_ALM_METRIC_PUSH_HEALTH *
- SAP_SDF_ALM_METRIC_PUSH_INTMON
- SAP_SDF_ALM_METRIC_PUSH_JOBMON
- SAP_SDF_ALM_METRIC_PUSH_PERF
- SAP_BC_TRANSPORT_ADMINISTRATOR (in client 000 and in the client of your development system where the target is created)
* Download the latest version of the roles from SAP Note 3372078.
ST-PI 7.40 SP15
- SAP_SDF_ALM_METRIC_PUSH_FND *
- SAP_SDF_ALM_METRIC_PUSH_BPMON *
- SAP_SDF_ALM_METRIC_PUSH_EXMON *
* Download the latest version of the roles from SAP Note 3054258.
The monitoring for SAP NetWeaver Application Server for ABAP (7.40 and higher) uses a PUSH mechanism to push monitoring data to SAP Cloud ALM.
Use of Cloud Connector
You cannot use the Cloud Connector from SAP to establish a connection between your SAP ABAP on-premise system and SAP Cloud ALM. The Cloud Connector acts as a reverse invoke proxy between the on-premise network and SAP BTP. After connecting the subaccount to the Cloud Connector, the tunnel between SAP BTP and the on-premise landscape is triggered by the BTP destination service in the connected subaccount. The Cloud Connector isn't designed to function in the opposite direction.
Connectivity from on-premise to cloud is only possible for ABAP cloud systems, SAP HANA Cloud databases, and specific SAP BTP services like K8s clusters. It can't be used for SAP BTP services like SAP Cloud ALM. For more information, see the Features section under Cloud Connector FAQ: Can I use the Cloud Connector from on-premise to cloud for any protocol?
You can use other proxy solutions between your ABAP on-premise system and SAP Cloud ALM. If you do this, ensure that you add the relevant URLs to the allowlist for the proxy as described in the Prerequisites under Network Prerequisites.
-
Log on to the relevant client
- For transport management with SAP Cloud ALM : Perform the setup in client 000.
- For all other use cases in SAP Cloud ALM: Perform the setup in the client for which you want to collect monitoring data, such as the production client. You can perform the setup in more than one client.
-
Start transaction /n/SDF/ALM_SETUP.
-
Enter Target ALM Description.
- To create a new ALM destination, enter a name, such as SAP Cloud ALM, and choose Enter.
- To change an existing ALM destination, select one from the F4 input help and choose enter.
The subsequent fields are filled.
-
Maintain the HTTP destination:
-
Choose Update destination.
-
You can copy and paste the content from the JSON file created during the enablement of the SAP Cloud ALM APIs by choosing Paste Service Keys. (More information under Enabling SAP Cloud ALM API.)
Or you can fill the required fields manually:
-
Token Endpoint: SAP Cloud ALM service key parameter
urlfollowed by/oauth/token. -
Client ID: SAP Cloud ALM service key parameter
clientid. -
Client Secret: SAP Cloud ALM service key parameter
clientsecret. -
Proxy User: if required by your network infrastructure.
-
Proxy Password: if required by your network infrastructure.
-
Proxy Host: if required by your network infrastructure.
If your system is hosted by SAP, enter the value
proxy. -
Proxy Port: if required by your network infrastructure.
If your system is hosted by SAP, enter the value
3128. -
Root URL: Enter the SAP Cloud ALM service key parameter
Apiwithout/api, for examplehttps://eu10.alm.cloud.sap.
-
-
Choose Ok to close the pop-up window.
-
To delete a destination, choose Delete destination.
-
-
Enter the background user and register the system:
-
Enter the background user that you've created to perform the data collection.
Ensure that it has the authorizations as described under Prerequisites.
-
Choose Register to call SAP Cloud ALM and register the system. If the call is successful, an LMS ID from the Landscape Management is retrieved and displayed.
-
To unregister a system, choose Unregister. Caution: This stops all data collection and heartbeat measurements.
-
-
Optional: Activate the mTLS OAuth authentication with certificate rotation:
- Starting with ST-PI 7.40 SP29, you can use certificate-based authentication instead of authentication based on the client ID and secret.
- To activate certificate-based authentication, ensure that all points under Prerequisites are fulfilled.
- Enter the background user for rotation.
- Choose Activate.
- The certificate and the respective service key are generated in a backbone procedure and provided to SAP Cloud ALM and the ABAP system. This process can take several minutes.
- If you want to rotate the certificate on demand or deactivate the mTLS OAuth authentication, you can do this by choosing Expert Configuration.
-
Select the use cases that you want to collect and for that you want to push data.
If you are using Health Monitoring and the SAP HANA database host is not running directly on the application host, you can add metrics as described in Additional SAP HANA Database Health Monitoring Metrics for SAP S/4HANA.
After the successful setup that's described in the previous section, the SAP S/4HANA Cloud Private Edition system appears as a registered service in the Landscape Management app of SAP Cloud ALM.
The data collection for the selected use cases is automatically active now.
We recommend using the standard collection interval. Only for specific requirements, change the Collection interval for the different use cases. Business Process Monitoring uses a separate scheduler, therefore this specific value can't be changed.
You can adjust the monitoring setup within the monitoring app in SAP Cloud ALM. Find more information on the configuration for the apps under SAP Cloud ALM for Operations.
For SAP Health Monitoring, also refer to Additional SAP HANA Database Health Monitoring Metrics for SAP S/4HANA.
After you connected your SAP ABAP system to SAP Cloud ALM, the ABAP system keeps sending data to the monitoring applications.
To which ABAP system the monitoring data is assigned in the Landscape Management app, is determined by the LMS ID. If you perform a system refresh of your ABAP system by overwriting it with a copy from another ABAP system, this assignment breaks.
To avoid that the metrics are assigned to the source of the copy instead of the actual ABAP system, you need to save and restore the tables that contain monitoring setup information for SAP Cloud ALM.
The SAP Cloud ALM configuration is integrated in the post-copy automation (PCA).
Prerequisites are ST-PI 7.40 SP 27 (and correction note) and SAP Note 3501074 (System Copy: ST-PI CALM configuration).
If PCA isn't used, two reports support your system copy and system refresh:
-
/SDF/CALM_SYS_COPY
After a system has been copied to create a new system based on an already configured system, you can use the report /SDF/CALM_SYS_COPY to delete the configuration in SAP Cloud ALM. Execute the connection to SAP Cloud ALM with /SDF/ALM_SETUP.
-
/SDF/CALM_SYS_REFRESH
To prepare a system refresh, you can execute this report. It creates a Transport of Copies (ToC) with the table content of the SAP Cloud ALM configuration. Export this request and save it. After the system refresh, you can import this transport request again.
Save and restore the following tables:
- /SDF/DCOBQHDR
- /SDF/DCRUNNING
- /SDF/DCCCONFIG
- /SDF/DCCLOGDET
- /SDF/DCCLOGHDR
- /SDF/DCKPICFG
- /SDF/DCOBQDATA
- /SDF/DCPARAMCFG
- /SDF/AJM_JOBS
- /SDF/AJM_SCHEDUL
- /SDF/AJM_SYNC_PT
- /SDF/AJM_JOBS_P
- /SDF/AJM_GRP_JOB
- /SDF/AJMF_JOBS
- /SDF/AJMF_GR_JOB
- /SDF/AJMF_JOBS_P
- /SDF/AJMF_SCHEDU
- /SDF/AJM_PJOBS
- /SDF/KPICINTRVL
- /SDF/CALM_CDMI
- /SDF/CDM_IMPORTS
- /SDF/CDM_CRT_TR
- /SDF/CALM_SCHED
- /SDF/CATEGORY
- /SDF/IM_PUSH_ERR
- /SDF/CALM_ID
- /SDF/CALM_CONFIG
- /SDF/CALM_INST
- /SDF/CALM_QGROUP
- /SDF/EXM_EXT_IDS
To troubleshoot any issues with the setup or the data collection for SAP S/4HANA or SAP Business Suite 7, refer to Troubleshooting for ABAP Cloud-Based Systems.
- Additional SAP HANA Database Health Monitoring Metrics for SAP S/4HANA
Learn how to get additional metrics for the health monitoring metrics of SAP HANA. - Troubleshooting for ABAP Cloud-Based Systems
This page gives you some hints when you run into a problem for the communication scenarios SAP_COM_0523 and SAP_COM_0527. - Troubleshooting for ABAP Systems
This page provides guidance for resolving issues that may occur during the monitoring setup of SAP Cloud ALM for ABAP on-premise systems.