Integrate the ServiceNow instance and SAP Concur by creating a custom OAuth application in SAP Concur to authenticate ServiceNow requests.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the SAP Concur spoke.
  • Role required: admin

Procedure

  1. Register SAP Concur as an OAuth provider.
    1. Navigate to System OAuth > Application Registry.
    2. Click New.
      The system displays the message What kind of OAuth application?
    3. Select Connect to a third party OAuth Provider.
      The system displays a blank Application Registries form.
    4. On the form, fill these values.
    5. Right-click the form header, and click Save.
      • The system validates the OAuth credentials and populates the Redirect URL.
      • The system populates OAuth Entity Profile with Grant Type as Resource Owner Password Credentials. For example, OAuth Entity Profile is created with default Name, SAPConcur
  2. Create a credential record for the SAP Concur spoke.
    1. Navigate to Connections & Credentials > Credentials.
    2. Click New.
      The system displays the message What type of Credentials would you like to create?.
    3. Select OAuth 2.0 Credentials.
    4. On the form, fill these values.
    5. Save the record.
  3. Create a connection record for the SAP Concur spoke.
    1. Navigate to Connections & Credentials > Connection & Credential Aliases.
    2. Open for the record, SAPConcur.
    3. From the Connections tab, click New.
    4. On the form, fill these values.
    5. Click Submit.
  4. Generate OAuth token by providing the SAP Concur API user credentials.
    1. Navigate to Connections & Credentials > Credentials.
    2. Open the credential record you had created.
      Example: SAP Concur Cred
    3. Click the Get OAuth Token related link and provide the SAP Concur API user credentials to generate the OAuth token.
  5. Configure the connection, SAP Concur Event Subscription Service.
    1. Navigate to Process Automation > Flow Designer.
    2. Click the Connections tab.
    3. Locate the SAP Concur Event Subscription Service connection alias and click View Details.
    4. To configure the spoke for the first time, select Configure or click Edit.
    5. On the Connection form, fill in the fields.
    6. Click Create and Get OAuth Token.
    A confirmation message is displayed that the OAuth token is generated successfully.
  6. Configure the connection, SAP Concur v4 APIs.
    1. Navigate to Process Automation > Flow Designer.
    2. Click the Connections tab.
    3. Locate the SAP Concur v4 APIs connection alias and click View Details.
    4. Click Edit or if you are configuring the spoke for the first time, click Configure.
    5. On the Connection form, fill in the fields.
    6. Click Create and Get OAuth Token.
      In a new window, you will be prompted to enter Username and Password.
    7. For Username, provide the Company ID of the SAP Concur instance and for Password, provide the value of Company Request Token.
      Note: Contact SAP Concur Implementation team to obtain the values of Company ID and Company Request Token.
    8. Click Get OAuth Token.
  7. Map SAP Concur users to the ServiceNow user in the SAP Concur User Mappings module.
    1. Navigate to SAP Concur Spoke > SAP Concur User Mappings.
    2. Click New.
    3. On the form, fill these values.
      Field Description
      ServiceNow User Reference to the user record in the User [sys_user] table.
      SAP Concur User ID User ID of the required user in SAP Concur.
    4. Click Submit.
      Note: If a user attempts to access data in the SAP Concur Expense Entries module without being mapped to the corresponding SAP Concur User ID in the SAP Concur User Mappings module, this error message is displayed.A user with username adminn does not exist.

      Map the ServiceNow user to the correspnding User ID in SAP Concur too access data in the SAP Concur Expense Entries module.

    • SAP Concur spoke is set up.
    • Data is retrieved and displayed in the SAP Concur Expense Entries and SAP Concur Expense Reports modules.