UiPath Documentation
test-manager
2.2610
true
Test Manager user guide

Configuring SAP ECC

Configure SAP ECC for Test Manager with a communication user and the required UiPath services.

To establish a communication between UiPath Test Manager and your SAP ECC system, configure the SAP system by creating a communication user and activating the required services.

For web service Basic authentication and RFC​

Create a communication user in your SAP system and activate the required UiPath services to allow Test Manager to retrieve Heatmap and Change Impact Analysis data over a web service Basic authentication or RFC connection.

Steps​

  1. Create a communication user in your SAP system for the integration with UiPath Test Manager. Assign the necessary roles and authorizations based on your organization's internal policies.

    • The integration uses standard interfaces via RFC or Web service (HTTPS).
    • UiPath does not require specific authorizations, except for RFC connections.
    Note:

    If you use an RFC connection, assign the S_RFCACL authorization object to the communication user.

  2. Activate the necessary SAP services required to establish the connection with UiPath.

    Note:

    If you plan to use a Web service (HTTPS) connection for the integration, activate these services. The services are used for read-only operations. UiPath uses only HTTP GET methods to retrieve information from the SAP system.

    The following list presents the necessary SAP services to activate for using the Heatmap and Change Impact Analysis:

    • Heatmap services:
      • /sap/opu/odata/UIPATH/HEATMAP_AGGREGATES_SRV/AllAggregatesSet
      • /sap/opu/odata/UIPATH/TRANSPORT_INFO_SRV/TransportsStatusSet
      • /sap/opu/odata/UIPATH/TRANSPORT_LOOKBACK_SRV/TransportLookbackSet
      • /sap/opu/odata/UIPATH/S4_CHECK_SRV/S4Info
      • /sap/opu/odata/UIPATH/HEATMAP_OVERVIEW_SRV/FinalHeatmapSet
    • Change Impact Analysis services:
      • /sap/opu/odata/UIPATH/GET_TRANSPORT_EXES_SRV/TransportExesSet
      • /sap/opu/odata/UIPATH/TRANSPORT_STATUS_SRV/TransportsStatusSet
      • /sap/opu/odata/UIPATH/EXE_ANALYSIS_SRV/GetTransportAnalysis
      • /sap/opu/odata/UIPATH/GET_TRANSPORT_ALLITEMS_SRV/TransportAnalysisSet
      • /sap/opu/odata/UIPATH/GET_TRANSPORT_ALLITEMS_SRV/DetailsSet
    1. Navigate to your SAP system user interface.
    2. Execute the SICF transaction. In the Filter for Calling ICF Hierarchy section, ensure SERVICE is entered in the Hierarchy Type field.

Figure 1. The Filter for Calling ICF Hierarchy screen in SAP

  1. Select Execute to finish the execution of the SICF transaction. A selection screen appears, displaying various services available in your SAP system.

Figure 2. The selection screen displaying all services available in SAP

  1. Under Virtual Hosts/Services, expand the following menu path: default_host > sap > opu > odata > uipath. If this is your first activation, the UiPath services are likely greyed out, indicating they are installed but not active. Upon activation, they display in bold.
  2. Open the context menu for each UiPath service entry under uipath, and select Activate Service.

Figure 3. Activating UiPath services

  1. In the Activation of ICF services pop-up window, select Yes to confirm the service activation. Once a service is activated, it displays in bold.

Details about SAP services​

The following table describes the Heatmap services and their purpose.

ServiceDescription
/sap/opu/odata/UIPATH/HEATMAP_AGGREGATES_SRV/AllAggregatesSetRetrieves all aggregated records (data rolled up into fewer, summarized entries). This service is called first to determine the start and end dates of the available data periods, which are then passed to FinalHeatmapSet.
/sap/opu/odata/UIPATH/TRANSPORT_INFO_SRV/TransportsStatusSetRetrieves all transports within a specified date range, together with their details.
/sap/opu/odata/UIPATH/TRANSPORT_LOOKBACK_SRV/TransportLookbackSetReturns the number of transports per month for the period between two specified dates.
/sap/opu/odata/UIPATH/S4_CHECK_SRV/S4InfoChecks whether the connected SAP system is SAP S/4HANA.
/sap/opu/odata/UIPATH/HEATMAP_OVERVIEW_SRV/FinalHeatmapSetRetrieves the actual transaction counts for the date periods returned by AllAggregatesSet, used to populate the heatmap.

The following table describes the Change Impact Analysis services and their purpose. These services support the analysis and lookup of SAP transports affected by changes.

ServiceDescription
/sap/opu/odata/UIPATH/GET_TRANSPORT_EXES_SRV/TransportExesSetRetrieves analysis data from UiPath custom tables. This service is part of the backend Change Impact Analysis logic.
/sap/opu/odata/UIPATH/TRANSPORT_STATUS_SRV/TransportsStatusSetReturns the analysis status (analyzed or not yet analyzed) of transports within a specified date range.
/sap/opu/odata/UIPATH/EXE_ANALYSIS_SRV/GetTransportAnalysisAnalyzes transports within a specified date range and stores the results in UiPath custom tables.
/sap/opu/odata/UIPATH/GET_TRANSPORT_ALLITEMS_SRV/TransportAnalysisSetReturns the complete analysis for a specified transport, including the list of impacted users. If the transport has not yet been analyzed, it is analyzed first and the results are saved.
/sap/opu/odata/UIPATH/GET_TRANSPORT_ALLITEMS_SRV/DetailsSetReturns the complete analysis for a specified transport. If the transport has not yet been analyzed, it is analyzed first and the results are saved.

For web service OAuth authentication​

The transport provided includes all transportable objects (OAuth profiles, customizing entries) required for UiPath services. However, SAP does not allow full OAuth configuration to be transported for security and system-specific reasons. For this reason, after importing the transport provided, you must complete the OAuth configuration manually in your environment.

Context​

The full OAuth configuration cannot be transported to protect sensitive data and maintain system integrity.

  • Client Secrets are system-specific. Secrets cannot be exported or imported for security compliance.
  • Authorization Server URLs differ per environment. Each landscape (DEV, QA, PROD) uses unique endpoints.
  • Certificates and STRUST entries are local. SSL/TLS trust must be configured manually in each system.
  • User assignments and roles are client-dependent. Technical users and authorizations vary across systems.
  • OAuth credentials and tokens are sensitive data. SAP does not transport them, to prevent exposure.

Prerequisites​

Each environment (DEV, QA, PROD) requires separate manual setup. Ensure you perform the following prerequisites.

  1. Keep the documentation of endpoints and credentials secure. Provide the Authorization Endpoint and the Token Endpoint in step 4, substep 5.
  2. Ensure the Authorization Endpoint check is running.
    1. Go to Transaction SICF and execute it.
    2. Navigate to :/sap/bc/sec/oauth2. Check that the following node is active: authorize (Authorization Endpoint). If the node is inactive, open the context menu for the node, and select Activate Service.

Figure 4. Authorization Endpoint Check

  1. Ensure the Token Endpoint check is running.

    1. Go to Transaction SICF.
    2. Navigate to :/sap/bc/sec/oauth2. Check that the following node is active: token (Token Endpoint). If the node is inactive, open the context menu for the node, and select Activate Service.
  2. Observe the naming convention for the Authorization Endpoint. For example: https://vhclashci.dummy.nodomain:44301/sap/bc/sec/oauth2/authorization?sap-client=100

    • Part 1 is the domain name: https://vhclashci.dummy.nodomain
    • Part 2 is the port number: 44301
    • Part 3 is the static string: /sap/bc/sec/oauth2/authorization
    • Part 4 is the SAP client: 100

    To build the authorization string, do the following:

    1. Part 1: Run transaction RZ11 and search for the entry icm/host_name_full. This value is the domain name for your entry in the endpoint.
    2. Part 2: Run transaction SMICM, select the menu path Goto > Services, find the HTTPS protocol, and use the number associated with HTTPS.
    3. Part 3: Hardcode the value /sap/bc/sec/oauth2/authorization.
    4. Part 4: Enter the SAP client you are currently using.
    5. Use the semicolons and other punctuation, as required.
  3. Observe the naming convention for the Token Endpoint. For example: https://vhclashci.dummy.nodomain:44301/sap/bc/sec/oauth2/token?sap-client=100

    • Part 1 is the domain name: https://vhclashci.dummy.nodomain
    • Part 2 is the port number: 44301
    • Part 3 is the static string: /sap/bc/sec/oauth2/token
    • Part 4 is the SAP client: 100

    To build the token string, do the following:

    1. Part 1: Run transaction RZ11 and search for the entry icm/host_name_full. This value is the domain name for your entry in the endpoint.
    2. Part 2: Run transaction SMICM, select the menu path Goto > Services, find the HTTPS protocol, and use the number associated with HTTPS.
    3. Part 3: Hardcode the value /sap/bc/sec/oauth2/token.
    4. Part 4: Enter the SAP client you are currently using.
    5. Use the semicolons and other punctuation, as required.

Steps​

  1. Verify your transport import details and availability.
    1. Check that OAuth profiles are available. Use transaction SE80 to ensure OAuth 2.0 Client Profiles are available.
    2. From the dropdown menu, select Package.
    3. Enter ‘/UIPATH/HEATMAP’ in the textbox. OAuth 2.0 Client Profiles should appear in the dropdown menu. If profiles are not available, contact UiPath support.

Figure 5. Verify transport import

  1. Configure Client ID/User Id/System User and Client Secret.
    1. For transaction SUO1, contact your Security Team for user creation.
    2. Create a System User with access to /UIPATH/ services according to your company naming standards.
    3. Generate a password according to your company naming standards – this password becomes the client secret in the OAuth2 configuration.
  2. Configure SSL/TLS Trust. For transaction STRUST, contact your Basis Team for certificate verification.
  3. Create the OAuth 2.0 configuration.
    1. For transaction OA2C_CONFIG, select Create and, in the popup, select the transported profile you want to use. Use every listed profile.
    2. Enter the Profile Name.
    3. Enter the Username for Client Name.
    4. Select OK.
    5. Configure the fields and save your configuration:
      1. Client Secret: Select the corresponding scope (server) for each client.
      2. Authorization Endpoint URL (check the Prerequisites section of this topic).
      3. Token Endpoint URL (check the Prerequisites section of this topic).
      4. Client Authentication: Select the Basic radio button.
      5. Selected Grant Type: Select the Client Credentials radio button.
      6. Refresh Token Validity: Enter -1 in textbox.
      7. Clock Skew Tolerance: Enter 5 in textbox.
    6. Check the Summary screen, which should look like the screenshots below.

Figure 6. OAuth summary page 1

Figure 7. OAuth summary page 2

  1. Configure transaction SOAUTH2 OAuth2 Clients.
    1. For transaction SOAUTH2, select Create and in the first screen, enter the following information:
      • Client Type: Confidential
      • Client ID: Enter the same Username as above (step 4, substep 3)
      • Description: Enter the service name or profile name.
      • Token Lifetime: 3600 Seconds
    2. Select Next and, in the second screen, enter the following information:
      • Client User Id and Password - Checked
      • SSL Certificate - Checked
      • Check Parameter: “Client Id” – Checked
    3. Select Next and, in the third screen, enter the following information:
      • Grant Type Client Credentials Active – Checked
    4. Select Next and, in the fourth screen, enter the following information:
      • Under OAuth2 Scope Id, find the first empty line and select on the drop-down list at the end of the blank row.
      • Select each of the scopes associated with UiPath until all have been selected. First, select the following seven scopes:
        • /UIPATH/ANALYZED_YES_OR_NO_SRV_0001
        • /UIPATH/EXE_ANALYSIS_SRV_0001
        • /UIPATH/GET_TRANSPORT_ALLITEMS_SRV_0001
        • /UIPATH/GET_TRANSPORT_ANALYSIS_SRV_0001
        • /UIPATH/GET_TRANSPORT_DETAILS_SRV_0001
        • /UIPATH/GET_TRANSPORT_EXES_SRV_0001
        • /UIPATH/HEATMAP_AGGREGATES_SRV_0001
      • Then select the remaining six scopes:
        • /UIPATH/HEATMAP_OVERVIEW_SRV_0001
        • /UIPATH/TRANSPORT_INFO_SRV_0001
        • /UIPATH/TRANSPORT_LOOKBACK_SRV_0001
        • /UIPATH/TRANSPORT_STATUS_SRV_0001
        • /UIPATH/TRANS_CIA_LOOKBACK_SRV_0001
        • /UIPATH/ZS4_CHECK_SRV_0001
    5. Select Summary. The screen should look like the example below.

Figure 8. OAuth2 Client summary page

  1. Test the connection for Non-RISE compliant systems.
    1. Run transaction SE38 and enter the program name ‘/UIPATH/TEST_OAUTH2_SERVICE’ for Non-RISE compliant S4 systems.
    2. Select Execute. A selection/parameter screen appears.
    3. Update the following parameters to match your system/user/password.
      • Port – HTTPS Port
      • Client – The current Client should default into a variable.
      • Secret – Enter the password for Client_ID/User.
      • System Name – The current System Name should default into a variable.
      • Client ID – Enter the User ID for UiPath Services.
    4. Select Execute. The results appear on the next screen.

Figure 9. Test Non-RISE compliant connection

  1. Test the connection for RISE compliant systems.
    1. Run transaction SE38 and enter the program name ‘/UIPATH/TEST_OAUTH2_SRV_RISE’ for RISE compliant S4 systems.
    2. Select Execute. A selection/parameter screen appears.
    3. Update the following parameters to match your system/user/password.
      • Port – HTTPS Port
      • Client – The current Client should default into a variable.
      • Secret – Enter the password for Client_ID/User.
      • System Name – The current System Name should default into a variable.
      • Client ID – Enter the User ID for UiPath Services.
    4. Select Execute. The results appear on the next screen.

If the Service Status is 200, the OAuth 2.0 configuration is working. Any other return code indicates an error.

  • For web service Basic authentication and RFC​
  • Steps​
  • Details about SAP services​
  • For web service OAuth authentication​
  • Context​
  • Prerequisites​
  • Steps​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated