Importing Deactivated Line Items From an Integrated ERP System to a Contract Workspace Using Contract Line Items Import API

Use this procedure to implement the Contract Line Items Import API in a client application to import deactivated line items from an integrated ERP system to a contract workspace.

Prerequisites

  • Your administrator must enable the following ICM parameters:
  • You must have the ID of the contract workspace and the ID of the CLID to which you want to import content.

Context

Use the POST /contractWorkspaces/{contractId}/contractLineItemDocuments/{documentId}/files endpoint of the Contract Line Items Import API to import deactivated line items from an integrated ERP system to a contract workspace that does not contain the line items information in the associated Contracts Line Items Document (CLID).

Procedure

  1. Edit the Excel version of the CLID to prepare the data to import.

    For information about editing the Excel version of a CLID, see Editing Excel Versions of Contract Line Items Documents.

    In the Contract Item Information worksheet, enter the line item information as recorded in the ERP system. In the Item Status column for each line item, enter a value as Deleted.

  2. To import the Excel file, invoke the POST /contractWorkspaces/{contractId}/contractLineItemDocuments/{documentId}/files endpoint from the client application.
    user
    Specifies the ID of the user on whose behalf the API call is invoked. This is a mandatory value.
    passwordAdapter
    Specifes the password for authenticating the user on whose behalf the request was initiated. This is a mandatory value.
    realm
    Specifies the SAP Ariba Contracts site to which the API request is sent. This is a mandatory value.
    action
    Specifies the action to perform. The valid values are add, update, and replace.

    In the request body, associate the Excel file that contains the updated line item information to import, with the file element.

Results

If the data import is successful, the contents from the Excel file are imported to the CLID. For information about the response codes returned by the API, see Error Messages Returned by the Contract Workspace Management APIs.

Next Steps

On the CLID details page of the contract workspace, verify that the updates to the line items are as expected.