Obtain Worker ID API in S/4HANA Cloud

This is the optional setup process to retrieve the Worker ID from the S/4HANA Cloud System using an API. The Worker ID can be fetched by passing Email, First Name, and Last Name as filters.

Note
This is an optional custom-exposed API that must be explicitly configured in the S/4HANA Cloud system before use.

Steps to Configure the Worker ID API:

  1. Create an External API CDS View:

    • Open the Fiori App for creating custom CDS views (Custom CDS View).

    • Search for the standard CDS view I_WorkforcePerson.

    • Select the following fields: FirstName, LastName, DefaultEmailAddress, PersonFullName, and PersonExternalID.

    • Click the Publish button to make the view available for use.

  2. Create a Communication Scenario:

    • In the Fiori App, create a new Communication Scenario.

    • Navigate to Inbound Services and add the service generated from the custom CDS view.

    • Publish the service to make it accessible.

  3. Set Up the Communication Arrangement:

    • Go to Communication Arrangements. Select the Communication Scenario you created earlier.

    • Enter the required fields such as System and User Name.

    • Retrieve the generated URL for the communication arrangement.

  4. Configure the Worker ID API in the Connector Settings:

    • Add the Entity Name (from the API metadata) to the API URL.

    • Enter the complete URL in the Worker ID API field on the configuration settings page of the connector.