Exercise: Activating the APIs in SAP S/4HANA Cloud

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Activate the APIs in SAP S/4HANA Cloud

Activating the APIs in SAP S/4HANA Cloud

Description

In SAP S/4HANA Cloud, activate and test the API to create, read, update or delete the project definition of enterprise projects.

Prerequisites

For the execution of this exercise, you need to access SAP S/4HANA Cloud by means of a user with administrator rights.

Information for execution

After every step description, you can choose the [play] link to open a recorded simulation of the described actions.

Steps

  1. Log on to your SAP S/4HANA Cloud tenant.

    1. In the web browser (for example, Google Chrome), on your SAP S/4HANA Cloud tenant, access the SAP Fiori Launchpad at [S/4HANA tenant url]/ui, for example (https://my000000.s4hana.ondemand.com/ui). If requested, enter your user and password.

  2. Ensure that you are assigned with the administrator business role.

    1. In the Home page, choose Search and search for the Maintain Business Users app.

    2. In the app, search for your user and display its details by selecting anywhere in its line of the list.

    3. In the user detail screen, scroll down and check the Assigned Business Roles section.

    4. In case the BR_ADMINISTRATOR is missing from the list, choose Add. Search for the BR_ADMINISTRATOR role, select the box beside it, choose OK, and choose Save.

    5. Select the SAP logo to navigate back to the Home page.

  3. Create a communication user based on the following information (replace ### with your user number): [play]

    FieldValue
    User NameADDRESS_MANAGER_###
    DescriptionCommunication user for the Address Manager ###
    PasswordWelcomeToTheClouds1!
    1. On the Home page, choose Search and search for the Maintain Communication Users app (in the Communication Management group).

    2. Choose New.

    3. In the following screen, enter the values from the table.

    4. Choose Create.

    5. Select the SAP logo to navigate back to the Home page.

  4. Create a communication system for your SAP S/4HANA Cloud instance, using the name: S4CLOUD###. In the Users for Inbound Communication, assign the ADDRESS_MANAGER_### user. In the Users for Outbound Communication, create a DUMMY user with any password (replace ### with your user number). [play]

    1. On the Home page, choose Search and search for the Communication Systems app (in the Communication Management group).

    2. Choose New.

    3. In the following screen, enter the information provided in the following table (replace ### with your user number):

      FieldValue
      System IDS4CLOUD###
      System NameSAP S/4HANA Cloud ###
    4. Choose Create.

    5. In the following screen, enter the information provided in the following table:

      FieldValue
      Host NameYour S/4HANA Cloud host, for example my000000
      Logical SystemS4CLOUD###
      Business SystemS4CLOUD###
    6. In the Users for Inbound Communication section, choose Add. In the following screen, enter the information provided in the following table (replace ### with your user number):

      FieldValue
      User NameADDRESS_MANAGER_###
      Authentication MethodUser Name and Password
    7. Choose OK.

    8. In the Users for Outbound Communication section, choose Add. In the following screen, enter the information provided in the following table (replace ### with your user number):

      FieldValue
      Authentication MethodUser Name and Password
      User NameDUMMY
      PasswordDUMMY
    9. Choose Create.

    10. Choose Save.

    11. Select the SAP logo to navigate back to the Home page.

  5. In the SAP API Business Hub, search for the proper API to perform read operations on the Business Partner. Identify a proper Communication Scenario for the API. [play]

    1. In a Web browser (for example, Google Chrome), open the URL: https://api.sap.com.

    2. In the search field (Type here to filter), enter Business Partner. Press Enter.

    3. Scroll the page down till you find the Business Partner (A2X) API. Review the description of and select the first API: Perform CRUD (create, read, update, delete) operations on Business Partner, Supplier, and Customer master data in SAP S/4HANA Cloud system.

    4. Scroll down to the API Resources, in the Attributes tab, look for a proper Communication Scenario.

      You will find the list of all the scenarios containing the Business Partner (A2X) API. You can display the content of every scenario using the Display Communication Scenarios app in SAP S/4HANA Cloud.

    5. Choose the Business Partner, Customer and Supplier Integration (SAP_COM_0008) scenario.

    6. Switch back to your SAP S/4HANA Cloud Home page.

  6. Create a communication arrangement, based on the communication scenario you just discovered (SAP_COM_0008), using the name Address Manager ### (replace ### with your user number). [play]

    1. On the Home page, choose Search and search for the Communication Arrangements app (in the Communication Management group).

    2. Choose New.

    3. In the following screen, enter the information provided in the following table (replace ### with your user number):

      FieldValue
      ScenarioSAP_COM_0008
      Arrangement NameAddress Manager ###
    4. Choose Create.

    5. In the following screen, enter the information provided in the following table (replace ### with your user number):

      FieldValue
      Communication SystemS4CLOUD###
      Inbound Communication - User NameADDRESS_MANAGER_###
      Outbound Communication - User NameDUMMY
    6. Clear the Service Status checkbox for all of the Outbound Services, since we don't need to have them active for the requirements of the extension application we are integrating.

      It is important that you disable ALL of the outbound services, otherwise you won't be able to select save.

    7. Choose Save.

    8. From the same page, note the service URL of the Business Partner (A2X) service ( something like https://my000000-api.s4hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER).

      Note
      Due to an issue in the SAP network, you may not be able to open the URL in a Web browser. The URL will be accessible via the development environment (i.e. Visual Studio Code) in the next exercise.
    9. Select the SAP logo to navigate back to the Home page.

Save progress to your learning plan by logging in or creating an account