Skip to main content
Connect SAP S/4HANA to retrieve supplier invoices and attachments in Watchdog. Watchdog does not change, post, or pay invoices in SAP.

Before you begin

Ask your SAP administrator to confirm that the environment supports the authentication and APIs below. Setup depends on the SAP edition and configuration.
Watchdog’s connection requires OAuth2 with a client ID and client secret. If your SAP environment uses another method, contact Watchdog before setting up the connection.
You will need:
  • Base URL: the API address supplied by your SAP administrator. It may differ from the Fiori address.
  • Client ID and Client Secret for API access.
  • optionally, SAP Client if your administrator specifies a client number.

Connect in Watchdog

  1. Open Integrations → SAP S/4HANA Cloud and add a connection.
  2. Enter the details from your SAP administrator.
  3. Select Test Connection, then save once access has been checked.

For the SAP administrator

Watchdog needs read access to: For SAP S/4HANA Cloud, SAP_COM_0057 is the relevant communication scenario for supplier invoices and their attachments. Set up communication access using the instructions for your SAP edition and check that both APIs are available. Watchdog’s current connection requests a token using grant_type=client_credentials at /sap/bc/sec/oauth2/token under the supplied Base URL. The client ID and client secret are sent using HTTP Basic authentication in the token request. Confirm that your environment supports this; the connection form does not offer a different OAuth flow or token address. See SAP’s documentation for supplier invoices and attachments in SAP_COM_0057.

If the connection does not work

For sign-in failures, ask your administrator to check the API address and OAuth setup. If invoices can be read but attachments are missing, check access to the attachment service and the documents linked to the invoices.