Creating a Baseline Contract in SAP Ariba Contracts Using the Contract Workspace Modification API

Use this procedure to implement the Contract Workspace Modification API in a client application to create a baseline contract in SAP Ariba Contracts.

Prerequisites

  • Your site must have guided sourcing enabled. For more information, see Setting Up Guided Sourcing.

  • Your site must have SAP Ariba Contracts integrated with SAP Ariba Sourcing.

  • Your administrator must enable the Enable Pre-Award Negotiation In Guided Sourcing events (Application.ACM.EnablePreAwardNegotiationInGuidedSourcing) ICM parameter. For information about this parameter, refer to Enable Pre-Award Negotiation In Guided Sourcing Events.

  • To enable the Contract Workspace Modification API to identify the predecessor event information, in addition to the predecessor project information, to the contract whenever applicable, the Enable predecessor event identification for contracts created from guided sourcing projects (IdentifyPredecessorEventforContractsCreatedFromGuidedSourcingProjects) ICM parameter must be enabled. For more information, refer to Enable predecessor event identification for contracts created from guided sourcing projects.

  • Find the ID of the project template that you use to create the procurement contract workspace. The available template IDs are displayed on the dashboard under Start of the navigation pathManage Next navigation step TemplatesEnd of the navigation path.

  • The user whose credentials are passed in the API call must be the initiator of the job or must have permissions to view the job.

  • To create an application and request access to use the SAP Ariba APIs relevant to this feature, you must have access to the SAP Ariba Developer Portal. For details refer to Steps to Start Using the SAP Ariba APIs in Help for the SAP Ariba Developer Portal.

Context

The Contract Workspace Modification API enables you to create a baseline contract workspace in SAP Ariba Contracts using the POST /contractworkspaces endpoint. The baseline contract workspaces can be created using project templates that can be pre-populated with team members, documents, tasks, references to integrated systems, and other project items. The available templates can change depending on the project information (attributes) you specify. Project templates can also contain conditions that determine the documents, tasks, and phases created according to the project attributes.

You can create a query body by specifying a project template ID and the properties required to be populated in the baseline contract workspace.

Procedure

Invoke the POST /contractworkspaces endpoint to create a baseline contract workspace with a system template ID. The template contains all the details related to tasks, documents, teams, and references to integrated systems.

Request type: POST

URL: {{runtime_url}}/contractworkspaces

The following example creates a baseline contract workspace with the specified details:
baselineContract
The flag that indicates whether the contract workspace being created is a baseline contract. When set to true, the contract workspace is created as a baseline contract.
eventInternalId
The predecessor sourcing project ID to associate with the baseline contract. You must provide a valid predecessor sourcing project ID when baselineContract is set to true.
accessControl

The access control permission for the contract workspace. For a list of access control values available in SAP Ariba Contracts, see About the PermissionBitVec element in contract exports. The availability of these access control groups depends on the site configurations. Some of these groups may not be available to you.

relatedID

The related ID, for example, the ID for a related record or document, such as an outline agreement or a contract in an external system.

blockPublish

The flag to specify whether the contract workspace can be published after creation.

integratedSystemRefs
The external systems (such as Icertis Contract Intelligence (ICI) for SAP Ariba Solutions and SAP Fieldglass) to be integrated with the contract workspace.

Results

If the request is successful, a baseline contract with the specified details is created in SAP Ariba Contracts. For a list of response codes, refer to Error Messages Returned by the Contract Workspace Management APIs.

Next Steps

After a baseline contract is created, you can continue working on the baseline contract from the SAP Ariba Contracts user interface or use the Contract Workspace Management APIs.