High- Level Specification

ParameterValue
Application System (Source)Icertis Contract Intelligence
Application System ( Target)SAP ERP (PF2) & SAP ERP (WP2)
Business Process Reference03.04.04.01. Manage Outline Agreements (R2)

Functional Overview

Icertis Contract Intelligence is the contract management and authoring application for Syensqo's purchase contracts. Purchase orders are created in S/4 HANA with reference to purchase contracts (outline agreements). The key information from the legal contract which is relevant for procurement forms the basis of the purchase contract or outline agreement in S/4 HANA.  For release 4, the integration between Icertis and S/4 HANA will be more complete and automated. However, for release 2 the option for a 'light' integration was decided due to the limitations of the two SAP ECC systems and in particular the substantial existing custom logic which needed to remain unaffected by any changes.

The 'light' integration consists of three main parts:

  1. Maintaining the relationship between the Icertis Contract ID and the SAP outline agreement number.
  2. The ability to report where there are inconsistencies in the data between the two systems.
  3. The ability for users to update the Icertis Contract ID on the SAP outline agreement.

When an agreement in Icertis is executed, an event in Icertis is initiated and the stream event payload is received to CPI (Cloud Platform Integration) via API Management  (as CPI and APIM are components of Integration Suite and data flows via APIM to CPI) . CPI then uses key fields from that payload to make a call to Icertis to retrieve the complete contract record payload from Icertis. An additional call is made for some agreement types to find associations to a master agreement. A subset of the total fields provided are then mapped to fields in a custom table in both SAP ECC systems (PF2 and WP2) where the data is stored.

Events for AmendmentExecuted, Renewed, Terminated and ExecutedUpdated require development within Icertis in order to be initiated and for a custom event job to send the default payload to CPI via API Management.

Scope and Objectives

The objective of the interface for release 2 is to provide a functional relationship between the Icertis Contract and the SAP outline agreement to enable consistency of the data to be reported and therefore maintained. The business users will manually create and change the outline agreements as a result of contract executions, amendments, renewals and contract terminations.

The entry and update of the contract data in the custom table enables:

  1. Validation that the correct Icertis Contract ID is entered on the outline agreement.
  2. Reporting any key header data from the outline agreement which is not aligned with the corresponding data in Icertis.
  3. Enables identification of orphan outline agreements which do not have an Icertis Contract ID assigned.
  4. Enables a complete reporting view of all the Icertis types of purchase contracts, their hierarchical structure along with their association to the SAP outline agreement (if relevant for assignment).

Without this integration there is no place where the hierarchical structure of Icertis Master Agreements & associated Sub Agreements and Standalone Agreements can be viewed with their association to the outline agreements in SAP ECC. It provides a mechanism to ensure the purchase contract content common to both systems remains aligned despite the reliance on manual entry by business users in SAP.

The linking of the documents in this way acts as a starting point for data enrichment for release 4, allowing the identification of outline agreements which do not have a legal purchase contract.  The data will be the foundation for the conversion of open outline agreements in release 4.

Process Flow Diagram


Step

Description

System

Comment

1

A purchase contract is executed in Icertis

Icertis

A legal purchase contract is executed in Icertis. For the integration these can be:
Master Agreement
Supporting Agreement
Sub Agreement
Standalone Agreement

2

New entry in custom table for the Icertis Contract

SAP ECC

Integration automatically creates the Icertis Contract record in custom table in both SAP ECC systems (WP2 & PF2) with the Tenant ID, Agreement Type, System ID, Icertis Agreement Code and the relevant data fields from the contract header.

Individual Purchasing Organization values and the System Id are stored in a separate custom table.

3

An amendment to a contract in Icertis is executed

Icertis

An amendment for an existing contract is executed in Icertis.

4

Change entry in custom table for the parent contract of the amendment

SAP ECC

The existing entry in the table for the parent agreement of the amendment is located and all the relevant fields in the table are overwritten with the values provided in the amendment.

Individual Purchasing Organization values for the System ID are overwritten in a separate custom table.

5

An existing purchase contract in Icertis subject to automatic renewal is renewed.

Icertis

An existing purchase contract in Icertis is renewed automatically when the renewal date comes due which updates the validity end date.

6

The entry in the custom table for the contract is updated.

SAP ECC

The existing entry in the table for the purchase contract is updated to reflect the changes to the validity end date.

7

An existing purchase contract in Icertis is terminated.

Icertis

An existing purchase contract in Icertis is terminated which updates the validity end date and the status in Icertis.

8

The entry in the custom table for the contract is updated.

SAP ECC

The existing entry in the table for the purchase contract is updated to reflect the change to the expiry date.

9

Changeable fields which do not require an amendment (tracking attributes) are updated in an existing purchase contract in Icertis

Icertis

An existing purchase contract in Icertis has some internal field values updated directly

10

The entry in the custom table for the contract is updated

SAP ECC

The existing entry in the table for the purchase contract are updated to reflect the changes to the fields.

Purchasing Organization values for the System ID are overwritten in a separate custom table.

Assumptions

There are no specific assumptions identified.

Dependencies

The following enhancement requests in Icertis are required to fully support the integration of the purchase contracts to the custom table in SAP ECC.

ERP-203 : Icertis: Total Contract Value Calculation with Multiple Amendments 

In order to correctly fill the target value ERP-203 enhancement is being made in Icertis to consolidate the total value of the amendments. In addition to ensure the currency of the contract is passed to SAP, the logic is being adjusted so that it uses the local agreed currency instead of defaulting to EURO.

This is required in order for the target value field for the contract in the custom table to be tested in all scenarios.

ERP-508: Enhancement for Icertis Event Streams

 Configure a custom event job to send the default payload (equal to the stream event payload) to SAP CPI from Icertis. This enhancement will support the following event types:

  • AmendmentExecuted

  • Renewed

  • Terminated

  • ExecutedUpdated (see Enhancement ERP-766)

This development in Icertis is required in order for integration to be tested for event types other than Agreement Execution.  The Renewed event is for contracts defined with automatic renewal in place. Any other contract renewals are handled as amendments.

There is an additional dependency on the completion of the configuration of all the metadata in ICertis which defines the fields.

ERP-766: Icertis Enhancement to Trigger Event to CPI for Nominated Tracking Attribute Changes

Icertis Contract Management has some fields for the purchase contracts which are defined as tracking attributes. Tracking attributes are fields which can be updated directly in Icertis without creating an amendment. These are typically internal fields. Examples of these type of fields are agreement name, purchasing organization and contract owner and are held in the custom table in SAP ECC. The logic will trigger on the "update" event, only when the agreement status is "Executed", and if any of the mentioned fields have changed. In such cases, Icertis sends the default payload with the action name "ExecutedUpdated".

Security, Integrity and Controls

Purchase Contracts in Icertis which are marked as confidential contract ('true') are to be filtered out in CPI with no confidential contracts having entries in the custom table in SAP. These are under strict control and visibility is only by the owner of the contract. There is no representation of them in SAP at all and no visibility of them except by the contract owner and only within Icertis. 

It is noted, that although it is technically possible for the confidentiality setting on the contract to be changed in ICertis, the recommendation to the business users is for them to create a new Sub Agreement if this is required. This is because the integration cannot adequately support all the scenarios of changing the setting when a contract has been transmitted to the custom table, or when it is missing from the table but has been changed.

There are no other specific security, integrity or controls required for the processing of the interface.

Configuration Requirements

Icertis Configuration

Configuration in Icertis for the event stream definition and activation, the Webhook URL for the API endpoint is required in order for the event notifications to be available in CPI.

The Icertis configuration is required to be completed as per the configuration workbook.

Special Requirements

As the interface is one-way from Icertis to SAP ECC there are no special requirements or authentication considerations to take into account.

Other custom tables in SAP ECC do not have any authorization controls apart from transaction code. This custom table does not require a transaction as it is not subject to manual maintenance as part of the processes. However, for the integrity of the interface manual maintenance will be prevented for business users who currently have table maintenance access via SM30.

Support users may need in exception cases to maintain the table entries manually (for example, any issues at go live, or faults with the automated table updates whilst the fault is being remediated). To facilitate this, an authorization group will be assigned to the custom table. Edit access for this authorization group will only be applied to the support users. It will also enable the development team for this enhancement to reuse payloads from Icertis during unit testing by maintaining the table entries.

Confidential Contracts

Icertis contracts which are identified as confidential (ICMConfidentialContract = true) are filtered out in CPI and must not have entries made in the custom table in SAP ECC. This check and filter needs to happen in the middleware  to ensure there is no trace of the confidential contract details maintained outside Icertis. ICMConfidentialContract field in Icertis is changeable, for example via an amendment.  The recommendation to contract specialists is if they need to adjust the confidential contract field they will create a new Sub Agreement instead of an amendment. The reason is that the contract contents may already have been passed to SAP (if not confidential); or may not have had an entry in the SAP table that can be changed with an amendment (if was originally confidential).

Design Rationale

The diagram below shows the data flow between Icertis Contract Management and SAP ECC.

The process is that events in Icertis transmit a record to CPI via API Management with ContractTypeName, SysId and ActionName.  With that information CPI makes two calls to Icertis to retrieve the agreement data and any associating instances (which exist between Sub Agreements, Supporting Agreements and their Master Agreements).  There are no other associations which are relevant to be represented in the reporting structure in SAP apart from Master Agreements.

The ActionName field in the initial event received to CPI is the key controlling information which CPI needs to complete the mapping and transformation of some fields ready for SAP.  The values in this field are:

"Terminated" (update existing entry)
"Renewed" (update existing entry)
"AmendmentExecuted" (update existing entry, but for the ICMParentContractId  and ICMParentEntityInstanceId)
"Executed" (create a new entry)
"ExecutedUpdated" (update existing entry)

CPI does not need to provide the ActionName to SAP. The ABAP logic will determine whether to make a new entry or to change an existing entry based on whether the Agreement Code and System ID already exist in the custom table.


Call 1: To retrieve agreement details for the contract code sent in the event

GET /v{version}/agreements/{contractTypeName}/{agreementId}


If the agreement type received in the event is 'ICMSupportingAgreement' or 'ICMSubAgreement' then search for any Master Agreement which is an associated entity.

Call 2: To retrieve the associating entity details for ICMMasterAgreement

GET /v{version}/agreements/{contractTypeName}/{agreementId}/associatinginstances/{associatingEntityName}

Further details about the calls and the returned information is in this document:

Calls to Icertis & Associations - Google Sheets

In the case of amendments (ContractTypeName): 
ICMMasterAgreementAmendment
ICMSupportingAgreementAmendment
ICMSubAgreementAmendment
ICMStandaloneAgreementAmendment

it is not necessary to make the second call for associations as there will never be an association to a master agreement for an amendment. When an amendment is created in Icertis, any associations are not copied from the parent contract to the amendment. The master agreement remains associated to the original contract. The associations defined in the custom table for the parent contract when it was first integrated to ECC will remain unchanged when the field values from the amendment contract are updated against the parent in ECC.

Call 2 for the associating entity details is not required for ActionName "Terminated" or "Renewed" as both of these update only the expiry date.

A table detailing the scenarios and the calls made from CPI is provided here: CPI Calls based on Contract Type and Action Name - Google Sheets


CPI makes the necessary filters and translations and ABAP logic then takes the field information from CPI to populate into the same custom table in each of the SAP ECC systems.

The availability of the key Icertis purchase contract information within the SAP ECC systems then makes it possible to report outline agreements associated to Icertis contracts and to compare key data objects.




Below is an example of the out-of-the-box payload sent from Icertis to CPI on the events:

Displaying image.png

Below is an example of the type of file received for the call to Icertis to retrieve the agreement information using the Contract Type Name and the System ID. The returned fields shown are just an example and are dependent on the configuration of the metadata in Icertis for Syensqo.



Data Structure

Source Structure

The following fields from Icertis are required for the content of the custom table in SAP, or to support the interface process. The sequence of the fields in the returned JSON file is unknown at the time of writing and there will be many more fields in the file than those specified below.

FieldField LabelDescriptionLength/Format
n/a'Source'

For identifying the tenant, we can use the 'source' information provided in the initial event package from Icertis.

For the development system: source: "/icertis/syensqo-dev" 
For the test system:   source: "/icertis/syensqo-uat"
For production:  source: "/icertis/syensqo"

20 CHAR
ActionNamen/a

The ActionName is provided in the payload from the events which are sent to CPI. The content denotes whether the event is a creation, a renewal, a termination or an amendment.
Termination of a contract "Terminated"
Renewal of a contract "Renewed"
Amendment executing "AmendmentExecuted"
Agreement creation "Executed"
Tracking Attribute field(s) changed "ExecutedUpdated"

n/a
ContractTypeNameContract Type Name

Possible values are:
ICMMasterAgreement
ICMSupportingAgreement
ICMSubAgreement
ICMStandaloneAgreement
ICMMasterAgreementAmendment
ICMSupportingAgreementAmendment
ICMSubAgreementAmendment
ICMStandaloneAgreementAmendment

(supporting agreement is the NDA; no amendments possible for Baseline Agreements)
Baseline agreements are not executed, not transmitted to SAP and will not be created as outline agreements.

Termination Agreements - we will receive notification to CPI of 'Terminated' for the original contract (Master/Sub etc.); call for the original contract will have termination date for the original contract.

ContractTypeName is not a field seen by the users, but is more a title/heading

224 CHAR 
SysIdSystem ID

Along with ContractTypeName, SysId is the key with which CPI makes the call to Icertis to retrieve the complete header contract field details.

This is important to have from Icertis in addition to the agreement code because it is used in backend table mapping in Icertis and is important to keep the relationship to the agreement code.
The system id is not shown to users but is stored in the database (identifier for the agreement code in the system)
Example: 1343f2e0-9386-4fa7-aa5b-22abba04d35a (36 chars)

Note: in the calls to Icertis, the field is labelled {agreementId}

36 CHAR
ICMAgreementCodeAgreement Code

The naming convention for Icertis Agreements is defined; characters describe the type and the fact it is an amendment is in the structure of the code. 
The contract code starts at 1,2,3,4 etc. 
Master Agreement:  PMAnnnnnnn
Supporting Agreement:  PSUPnnnnnnn
SubAgreement:  PSUBnnnnnn 
Standalone Agreement:   PSTnnnn
Master Agreement Amendment:  PMA-AMDnnn
Supporting Agreement Amendment:   PSUP-AMDnnnn
SubAgreement Amendment:   PSUB-AMDnnnn
Standalone Agreement Amendment:    PST-AMDnnnn

The standard field ICMAgreementCode has been assigned a custom number range. It is understood then that the value of the ICMParentContractId field (used in amendments) will be the ICMAgreementCode for the parent contract.  Calls to ICertis for associated entities (Master Agreements) will return the ICMAgreementCode of any Master Agreement.

224 CHAR 
ICMConfidentialContractConfidential Contract

'true' if the contract is confidential, 'false' if not (will not be blank)

5 CHAR 
NameAgreement Name

Name field is  fully user-defined with no default but it is expected to be descriptive and therefore a useful addition to the report to help users identify what the contract is for (eg. where there are multiple for a supplier and the consolidation report will have no line items for context).

1000 CHAR 
ICMParentEntityInstanceId Parent Entity Instance Id

An amendment in Icertis is assigned a new ICMAgreementCode and a new SYSID. But the original agreement code that the amendment is for is in the ICMParentContractId field, and the original contract system id is in the ICMParentEntityInstanceId field. 
The parent contract and parent sys id are required in order to identify the existing contract record in the custom table which needs to be updated in the case of amendments.

This is not a field in Icertis, but more of a defined relationship between the parent contract and the amendment.

NOTE: this field will only be visible in the file from Icertis if there is a parent (ie. for amendments) 

36 CHAR
ICMParentContractIdParent Contract

An amendment in Icertis is assigned a new ICMAgreementCode and a new SysId. But the original agreement code that the amendment is for is in the ICMParentContractId field, and the original system id is in the ICMParentEntityInstanceId field. So the format of the ICMParentContractId field will be the format of the original agreement code field:
Master Agreement:  PMAnnnnnnn
Supporting Agreement:  PSUPnnnnnnn
SubAgreement:  PSUBnnnnnn 
Standalone Agreement:   PSTnnnn
The ICMParentContractId and ICMParentEntityInstanceId are required in order to identify the existing contract record in the custom table which needs to be updated in the case of amendments.

This is not a field in Icertis, but more of a defined relationship between the parent contract and the amendment. Note: This is not the TYPE of the parent agreement, but the NUMBER of the parent agreement. 

NOTE: this field will be blank if there is no parent, but field still visible

224 CHAR 
ICMAppSrcSupplierIDBidders/Supplier SAP ID

The supplier numbers will be the same as the ECC supplier numbers. NDA's may not necessarily have a supplier id as it is possible to define an NDA for a bidder supplier only.
Cannot be validated as the supplier records do not exist in both SAP systems.

224 CHAR 
ICMEffectiveDateEffective Date

Start date of the agreement "YYYY-MM-DDTHH:MM:SS"

If we receive an amendment agreement, we will use the ICMEffectiveDate and not the Amendment Effective Date (ICMAmendmentEffectiveDate) as the valid from date.  The validity start date of an outline agreement should never be altered in SAP as there could be open documents.

DATE
ICMExpiryDateExpiry

End date of the agreement "YYYY-MM-DDTHH:MM:SS"

DATE
ICMTotalContractValue/Value

Total Contract Value

Is the total value of the contract (in ECC it is target value at header level)
In the case of amendments, it is the updated overall total
ERP-203 Icertis: Total Contract Value calculation with multiple amendments to enable ECC Integration

INT(15 including 2 decimals)
ICMCurrencySupplier Currency

The currency codes in Icertis are aligned to SAP currency codes
This is the supplier currency and will align with the contract total value above.

5 CHAR
ICMLegalEntityCode/DisplayValueSyensqo Legal Entity CodeOrganizational data - company code and purchasing org are being aligned in Icertis to ECC - it is the 4 char code for company code which matches SAP1000 CHAR
ICMPurchasingOrgCode

Purchasing Org Code

Organizational data - company code, and purchasing org are being aligned in Icertis to ECC- it is the 4 char code for purchasing organization which matches SAP ECC. Multiple values able to be selected by the user. Values will be provided in a single field with values separated by commas.

Note: For master agreement type, the field is not defined as valid. The field will not appear in the file at all from Icertis in this case. 

1000 CHAR
ICMOrgTeamOrg Team

Icertis has values for each Organizational Team which will be useful for the consolidation report to enable filtering of the Icertis Z table records by procurement team. Possible values are:
Choice 1 : Composite Material
Choice 2 :  Novecare
Choice 3 : Specialty Polymers
Choice 4 : Logistic & Packaging
Choice 5 : Indirect & Industrial
Choice 6 : Energy
Choice 7 : TS Materials
Choice 8 :  Regional Procurement

1000 CHAR
ICMPrimaryOwnerNamePrimary Owner NameUse for filtering in the report on Z table so owners can find their own to work on.
First name, last name in one field.
224 CHAR
ICMIncotermsCodeIncoterms Code

Incoterms are being aligned to correspond between Icertis and ECC.
This field in Icertis is the 3 char code for the terms.

NOTE: The field ICMIncoterms holds the value that the user sees in Icertis which is the code and the description - this is not used for integration.

224 CHAR
ICMIncotermslocation
(confirmed already configured in Icertis with lower case L)
Incoterms LocationFree text for entry by the user. The location is the place where Syensqo takes ownership of purchased goods according to the terms agreed with the supplier.
Note: For release 4, this will need to be a valid value configured within Transportation Management and is populated into the location ID field which then defaults the description into the location field.  For release 2, the location field will be free text.
1000 CHAR
ICMPaymentTermsPayment TermsPayment terms are being aligned to correspond between Icertis and ECC.
This is the 4 char code that matches to SAP's payment term codes in ECC.
224 CHAR
ICMTerminationNoticeDateTermination Notice Date

When a Terminated message is received, the expiry date field remains same in ICertis but the termination date will have to become the expiry date in the custom table in ECC.

This is the field that will hold the new expiry date every time a 'termination' activity is received.

DATE


Target Structure

The fields defined in the target structure below will be the structure of the custom table in SAP ECC, named ZMM_ICMCONTRACT.

Validation

Although some of the Icertis fields correspond directly to fields in SAP, it is not possible to use these fields for validation due to the two separate SAP ECC systems. The intention is to have the same content filled in the custom table in both systems, regardless of whether the company code, purchasing organization, supplier etc. are defined in that system. All fields therefore have to be text-based fields unless otherwise specified.

Field Definitions

Field labels and field names are to correspond with the Icertis field labels and field names. It is understood there is a limit of 30 CHAR in SAP for a table name and all named fields are below the limit.

Parent Entity Instance ID and Parent Contract are not relevant to store in the custom table. The situation where these fields are filled from Icertis is when the Agreement Type is an amendment. These will only be used in the middleware to determine which entry in the custom table requires updating.

Note: For clarity, the field System ID is not a 'system identifier', it is a unique 36 char code which is held in Icertis as a unique code for an agreement code. This is not the agreement code which the users see, but it is the code that represents the agreement in the database and it will need to be stored in SAP ECC.

Table Entries in Target SAP ECC

Icertis Amendments will not be stored directly in the custom table. Amendment events received will make the call to Icertis to obtain the amendment contract data, but the update of the table entries with the values retrieved will be made for the Parent Contract and Parent Entity Instance ID.

The key of the table will be Tenant ID, Contract Type Name, System ID and Agreement Code which will form a unique record.  The two fields used for the calls to Icertis, are Agreement Type and System ID which form a unique record in Icertis. The key fields will be available for all events and will be considered mandatory in the table, whereas all other fields are optional entry. Agreement Code will be a unique record in its own right, but cannot be used alone as the database uses Agreement Type and System ID.
It is important to note that for Master Agreements, purchasing organization is not available for entry in Icertis and a 'blank' value will be passed for this field to SAP ECC. 

One Icertis Agreement to One ZMM_ICMCONTRACT Entry

An Icertis contract can be defined for use by multiple purchasing organizations. The field in Icertis is defined for multiple selection and represents the organizations for which an operational outline agreement will be created in SAP. In SAP, an outline agreement is defined for a single purchasing organization. This means that for one Icertis Agreement Code there will be one outline agreement for each purchasing organization. 

The field ICMPurchasingOrgCode is provided to CPI with all the values in a single field separated by commas. This will be held in the custom table in SAP in a single field in the same format (values separated by commas).  

For the 'Execution' event, one new entry is created in the table. For the other events AmendmentExecuted, Renewaed Terminated & ExecutedUpdated the existing table entry for TenantID, ContractTypeName, SysId, ICMAgreementCode, is updated.

  • AmendmentExecuted

  • Renewed

  • Terminated

  • ExecuteUpdated

It was considered whether the individual values for purchasing organization could be stored separately resulting in a row in the custom table for each purchasing organization. This would have required purchasing organization to be part of the key of the table to keep unique entries. Due to the way purchasing organization can be changed in Icertis, there are technical limitations for the accurate updating of the multiple rows. Instead, the individual values will be stored with the System ID in an additional table to be available for reporting. The original value in the purchasing organization field from Icertis will be all the values separated by commas. This will be stored in the custom table for reference but not reported.


FieldField LabelDescriptionLength/Format
TENANTIDTenant ID

For identifying the tenant, we can use the 'source' information provided in the initial event package from Icertis.

For the development system: source: "/icertis/syensqo-dev" 
For the test system:   source: "/icertis/syensqo-uat"
For production:  source: "/icertis/syensqo"

20 CHAR
CONTRACTTYPENAMEContract Type Name

Possible values are:
ICMMasterAgreement
ICMSupportingAgreement
ICMSubAgreement
ICMStandaloneAgreement
ICMMasterAgreementAmendment
ICMSupportingAgreementAmendment
ICMSubAgreementAmendment
ICMStandaloneAgreementAmendment

(supporting agreement is the NDA; no amendments possible for Baseline Agreements)
Baseline agreements are not executed, not transmitted to SAP and will not be created as outline agreements.

Termination Agreements - we will receive notification to CPI of 'Terminated' for the original contract (Master/Sub etc.); call for the original contract will have termination date for the original contract.

ContractTypeName is not a field seen by the users, but is more a title/heading

224 CHAR (3 CHAR in ECC, with view and coded values)
SYSIDSystem ID

Along withContractTypeName, SysId is the key with which CPI makes the call to Icertis to retrieve the complete contract field details.

Example: 1343f2e0-9386-4fa7-aa5b-22abba04d35a (36 chars)

36 CHAR
ICMAGREEMENTCODEAgreement Code

The agreement code is the contract number in Icertis and is preceded by the agreement type. Example: Master Agreement:  Master Agreement: PMAnnnnnnn
Supporting Agreement:  PSUPnnnnnnn
SubAgreement:  PSUBnnnnnn 
Standalone Agreement:   PSTnnnn

This value from Icertis will be stored on the header of the outline agreement in SAP ECC.

224 CHAR (25 CHAR in ECC)
ICMCONFIDENTIALCONTRACTConfidential Contract

'true' if the contract is confidential, 'false' if not (will not be blank)

5 CHAR (1 CHAR in ECC with value selected for true and deselected for false)
NAMEAgreement NameDescription given to the contract (useful for reporting)1000 CHAR (First 100 CHAR in ECC)
ASSOCIATINGTYPEAssociating Agreement Type

This is the Icertis Agreement Type of the associated agreement (for example ICMMasterAgreement if the record is a ICMSubAgreement or SupportingAgreement. The call for associated entity 'ICMMasterAgreement' will return all the fields for the associated master agreement. The Agreement Type, the Agreement Code and System ID will be stored in the custom table to enable reporting of the hierarchical structure of contracts to their Master Agreements.

The associating entity fields are not fields that exist in Icertis, but are defined in SAP in order to hold the information. In Icertis, the associations are held as types of relationships.

224 CHAR (3 CHAR in ECC, with view and coded values)
ASSOCIATINGCODEAssociating Agreement CodeThis is the Icertis Agreement Code of the associated agreement (for example ICMMasterAgreement if the record is a ICMSubAgreement or SupportingAgreement. The call for associated entity 'ICMMasterAgreement' will return all the fields for the associated master agreement. 

The Agreement Type, the Agreement Code and System ID will be stored in the custom table to enable reporting of the hierarchical structure of contracts to their Master Agreements.

The associating entity fields are not fields that exist in Icertis, but are defined in SAP in order to hold the information. In Icertis, the associations are held as types of relationships.

224 CHAR (25 CHAR in ECC)

ASSOCIATINGSYSID

Associating System IDThis is the Icertis System ID of the associated agreement (for example ICMMasterAgreement if the record is a ICMSubAgreement or SupportingAgreement. The call for associated entity 'ICMMasterAgreement' will return all the fields for the associated master agreement. 

The Agreement Type, the Agreement Code and System ID will be stored in the custom table to enable reporting of the hierarchical structure of contracts to their Master Agreements.

The associating entity fields are not fields that exist in Icertis, but are defined in SAP in order to hold the information. In Icertis, the associations are held as types of relationships.

36 CHAR (36 CHAR in ECC)
ICMAPPSRCSUPPLIERIDBidders/Supplier SAP IDThe supplier numbers will be the same as the ECC supplier numbers. NDA's may not necessarily have a supplier id as it is possible to define an NDA for a bidder supplier only.
Cannot be validated as the supplier records do not exist in both SAP systems.
224 CHAR (10 CHAR in ECC)
ICMEFFECTIVEDATEEffective DateYYYYMMDDDATE
ICMEXPIRYDATEExpiryYYYYMMDDDATE
ICMTOTALCONTRACTVALUETotal Contract ValueIs the total value of the contract (in ECC it is target value at header level)
In the case of amendments, it is the updated overall total
ERP-203 Icertis: Total Contract Value calculation with multiple amendments to enable ECC Integration
INT(15 including 2 decimals)
ICMCURRENCYSupplier CurrencyConfirmed the currency codes in Icertis are aligned to SAP codes5 CHAR
ICMLEGALENTITYCODESyensqo Legal Entity CodeOrganizational data - company code and purchasing org are being aligned in Icertis to ECC - it is the 4 char code for company code which matches SAP1000 CHAR (4 CHAR in ECC)
ICMPURCHASINGORGCODE

Purchasing Org Code

Organizational data - company code and purchasing org are being aligned in Icertis to ECC- it is the 4 char code for purchasing organization which matches SAP. Multiple values able to be selected by the user. Values will be provided from ICertis in a single field with values separated by commas. Individual values will be stored in a separate table to enable the reporting of the separated values.

Note: For master agreement type, the field is not defined as valid. The field will not appear in the file at all from Icertis in this case. 

1000 CHAR (224 CHAR in ECC)
ICMORGTEAMOrg Team

Icertis has values for each Organizational Team which will be useful for the consolidation report to enable filtering of the Icertis Z table records by procurement team. Possible values are:
Choice 1 : Composite Material
Choice 2 :  Novecare
Choice 3 : Specialty Polymers
Choice 4 : Logistic & Packaging
Choice 5 : Indirect & Industrial
Choice 6 : Energy
Choice 7 : TS Materials
Choice 8 :  Regional Procurement

1000 CHAR (25 CHAR in ECC)
ICMPRIMARYOWNERNAMEPrimary Contract OwnerUse for filtering in the report on Z table so owners can find their own to work on
First name and last name in one field
224 CHAR (224 CHAR in ECC)
ICMlNCOTERMSCODEIncoterms Code

Incoterms are being aligned to correspond between Icertis and ECC
This field in Icertis is the 3 char code for the terms

NOTE: The field ICMIncoterms holds the value that the user sees in Icertis which is the code and the description - this is not used for integration.

224 CHAR (3 CHAR in ECC)
ICMINCOTERMSLOCATIONIncoterms LocationFree text for entry by the user. 
For release 4, this will need to be a valid value configured within Transportation Management and is populated into the location ID field which then defaults the description into the location field. 
1000 CHAR (70 CHAR in ECC)
ICMPAYMENTTERMSPayment TermsPayment terms are being aligned to correspond between Icertis and ECC
This is the 4 char code that matches to SAP's codes in ECC
224 CHAR (4 CHAR in ECC)

Mapping and Calculation

Note:  Icertis has many text-based fields ranging from 224 to 1000 chars which are able to be input by users. We cannot control that the contents will fit into a fixed length field on the target system.

Field lengths for the custom fields in SAP ECC will correspond to the length of the fields in Icertis unless specified otherwise. In those cases where the ECC field is smaller than the Icertis field, it is known that the field values will fit in the defined length.

Important:  The ActionName field in the initial event received to CPI is the key controlling information which determines whether a new line item in the custom table is required, or an existing line is to be updated.  The values in this field are:

"Terminated" (update existing entry)
"Renewed" (update existing entry)
"AmendmentExecuted" (update existing entry, but for the ICMParentContractId  and ICMParentEntityInstanceId)
"Executed" (create a new entry)
"ExecutedUpdated" (update existing entry)

The payload of the agreement data from Icertis is expected to have many more fields than what are relevant to store in the custom table in SAP ECC. CPI will filter out the fields which are not required to be stored in SAP or used in the determination of field values.

Icertis field contents are not case-sensitive.  

Source TableAPI or Portlet NameSource Field (Icertis)Required (Y/N)Description

Target 
Table

API or Portlet Name

Target Field (SAP ECC)


Required (Y/N)Description
(Label in SAP)
Rule TypeRule Instruction
N/A
'Source'Y

Development system: source: "/icertis/syensqo-dev" 

Test system:   source: "/icertis/syensqo-uat"
Production:  source: "/icertis/syensqo"

ZMM_ICMCONTRACT

TENANTID

YTenant ID

Use what is received from Icertis in the Source field:

Development system: source: "/icertis/syensqo-dev" 

Test system:   source: "/icertis/syensqo-uat"
Production:  source: "/icertis/syensqo"


N/A


ContractTypeNameYContract Type NameZMM_ICMCONTRACT
CONTRACTTYPENAMEYContract Type Name

If ActionName is 'Executed', then a new entry is made in the Z table for CONTRACTYPENAME and SYSID

If ActionName is 'Renewed', 'ExecutedUpdated' or 'Terminated', then one or more existing entries are updated for the CONTRACTTYPENAME and SYSID

If the ActionName is 'AmendmentExecuted' then the existing entry for ICMAGREEMENTCODE ICMParentContractId and SYSID =ICMParentEntityInstanceId is updated.

N/A
SysIdYSystem IDZMM_ICMCONTRACT
SYSIDYSystem ID

If ActionName is 'Executed', then a new entry is made in the Z table for CONTRACTYPENAME and SYSID

If ActionName is 'Renewed', 'Terminated' or 'ExecutedUpdated', then the existing entry is updated for the CONTRACTYPENAME and SYSID

If the ActionName is 'AmendmentExecuted' then the existing entry for for ICMAGREEMENTCODE ICMParentContractId and SYSID = ICMParentEntityInstanceId is updated.

N/A
ICMAgreementCodeYICM Agreement CodeZMM_ICMCONTRACT
ICMAGREEMENTCODEYICM Agreement Code
Direct Mapping
N/A
ICMConfidentialContractYConfidential ContractZMM_ICMCONTRACT
ICMCONFIDENTIALCONTRACTYConfidential Contract

If the agreement has the value 'true' for confidential contract, then the file must not be processed; no entry is to be made or changed in SAP.

If the value is 'false', then Direct Mapping

N/A
NameYAgreement NameZMM_ICMCONTRACT
NAMENAgreement Name 
Direct Mapping
N/A
N/ANN/AZMM_ICMCONTRACT
ASSOCIATINGTYPENAssociating Agreement Type
If the Agreement Type is ICMSupportingAgreement OR
 ICMSubAgreement we call Icertis for the associating entity ICMMasterAgreement
If one is found, store the ContractTypeName for the associated master agreement in ASSOCIATINGTYPE
N/A
N/ANN/A ZMM_ICMCONTRACT
ASSOCIATINGCODENAssociating Agreement Code
If the Agreement Type is ICMSupportingAgreement OR
 ICMSubAgreement we call Icertis for the associating entity ICMMasterAgreement
If one is found, store the ICMAgreementCode for the associated master agreement in ASSOCIATINGCODE
N/A
N/ANN/AZMM_ICMCONTRACT

ASSOCIATINGSYSID

NAssociating System ID
If the Agreement Type is ICMSupportingAgreement OR
 ICMSubAgreement we call Icertis for the associating entity ICMMasterAgreement
If one is found, store the SysId for the associated master agreement in ASSOCIATINGSYSID
N/A
ICMAppSrcSupplierIDNBidders/Supplier SAP IDZMM_ICMCONTRACT
ICMAPPSRCSUPPLIERIDNBidders/Supplier SAP ID
Direct Mapping
N/A
ICMEffectiveDateNEffective DateZMM_ICMCONTRACT
ICMEFFECTIVEDATENEffective Date

Format received is YYYY-MM-DDTHH:MM:SS

Remove the HH:MM:SS and 'dashes' to provide to SAP as YYYYMMDD

N/A
ICMExpiryDateNExpiryZMM_ICMCONTRACT
ICMEXPIRYDATENExpiry Date

If ActionName is 'Executed', 'Renewed', 'ExecutedUpdated' or 'AmendmentExecuted', direct mapping.

If ActionName 'Terminated', fill with the value from ICMTerminationNoticeDate  

Format received is YYYY-MM-DDTHH:MM:SS

Remove the HH:MM:SS and 'dashes' to provide to SAP as YYYYMMDD

N/A
ICMTotaIContractVaIue/ValueNTarget ValueZMM_ICMCONTRACT
ICMTOTALCONTRACTVALUENTotal Contract Value
Direct Mapping
N/A
ICMCurrencyNSupplier CurrencyZMM_ICMCONTRACT
ICMCURRENCYNSupplier Currency
Direct Mapping
N/A
ICMLegaIEntityCode/DisplayValueNSyensqo Legal Entity CodeZMM_ICMCONTRACT
ICMLEGALENTITYCODENSyensqo Legal Entity Code
Direct Mapping
N/A
ICMPurchasingOrgCodeNPurchasing Org CodeZMM_ICMCONTRACT
ICMPURCHASINGORGCODENPurchasing Org Code
Direct Mapping (including blank value when field is not provided from Icertis at all)
N/A
ICMOrgTeamNOrg TeamZMM_ICMCONTRACT
ICMORGTEAMNOrg Team
Direct Mapping
N/A
ICMPrimaryOwnerNameNPrimary Owner NameZMM_ICMCONTRACT
ICMPRIMARYOWNERNAMENPrimary Owner Name
Direct Mapping
N/A
ICMlncotermsCodeNIncoterms CodeZMM_ICMCONTRACT
ICMlNCOTERMSCODENIncoterms Code
Direct Mapping
N/A
ICMIncotermslocation
(confirmed already configured in Icertis with lowercase L)

Incoterms LocationZMM_ICMCONTRACT
ICMINCOTERMSLOCATIONNIncoterms Location
Direct Mapping
N/A
ICMPaymentTermsNPayment TermsZMM_ICMCONTRACT
ICMPAYMENTTERMSNPayment Terms
Direct Mapping












Processing Logic

Processing within Source

There is no processing requirement to be carried out in the Source System Icertis.


Processing within Middleware

All processing within CPI is defined in the mapping sheet.


Processing within Target

There is no processing to be carried out within the target system.

Interface Dependency

There are no dependent interfaces identified which require processing prior to this interface.

Interface Constraints

There are no constraints identified.

Delivery Requirements

The delivery requirements are expected to be as close to real time as possible, allowing just for processing time.

The triggering events from Icertis are received to CPI via API and is a push of the event information. There is then a pull of the contract information from Icertis by CPI based on the event data provided in the initial payload.

Delta or Full Load Requirements

CPI will filter out any additional fields provided in the payloads from Icertis and keep only those required to be stored in SAP or used by the ABAP logic.

Interface Alert & Monitoring

The following will be monitored:

  • API endpoints are available.
  • Failures on inbound processing and outbound side need to be handled . Please check the Error Handling section.
  • Messages are processed in reasonable time to ensure that the custom table record in SAP ECC is available for the business user when they go to create the outline agreement.  This is expected to be within the hour immediately after the execution of a new contract.

Interface Reporting

There are no specific reporting requirements identified to support this interface.

Language Requirements

There are no specific language requirements. The contract content from Icertis is predominantly text based and will therefore be shown in the language it which it was entered in Icertis.

User Interface Requirements

There are no requirements for any user interface associated with this interface. The only interaction with users will be via the consolidation report being delivered via Business Warehouse.

Volumetrics

BAU - up to 10,000 contracts


Performance Consideration

Estimated <100 new contracts/contract changes per day


Error Handling

Error Handling:

  • SAP Cloud ALM (CALM) will be used to capture integration execution errors. 
  • To correct the error, the Administrator must ensure that the data inconsistency is resolved in the concerned system. 
  • Refer to the link below to troubleshoot Error Messages Returned by the Event Management API.

Error Messages Returned by the Event Management API

Testing

How to Test

In order to unit test the interface, the events will have to be initiated in Icertis for the execution of new contracts, execution of amendments, renewals, terminations and tracking attribute field updates.

This is dependent on the metadata having been configured in Icertis, and on developments in Icertis mentioned previously.

 Z-table entries can be reset manually in order to reuse payloads from Icertis.

Sample integration files from Icertis are stored in this folder as they become available for the different agreement types and the different API calls:

Icertis ECC Sample Integration Files - ERP Rebuild Implementation - Google Drive

Test Conditions and Expected Results

IDConditionExpected Results

Executed


1Execute Master Agreement 

Execution event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details

Creation of new entry in custom table with field values as defined.

2Execute Sub Agreement (single) for single purchasing organization

Execution event received in CPI

Successful call to Icertis for agreement details

Successful call to Icertis for association details

Successful retrieval of agreement details

Successful retrieval of association details

Creation of new entry in custom table with field values as defined.

Check association of Sub Agreement to the relevant Master Agreement is correct

2aExecute Sub Agreement (single) for multiple purchasing organizations

Execution event received in CPI

Successful call to Icertis for agreement details

Successful call to Icertis for association details

Successful retrieval of agreement details

Successful retrieval of association details

Creation of new entry in custom table with field values as defined.

Check association of Sub Agreement to the relevant Master Agreement is correct

Creation of new entries for each purchasing organization and System ID in the purchasing org custom table.

3Execute an agreement for a confidential contract (Sub Agreement) 

Execution event received in CPI

Successful call to Icertis for agreement details

Successful call to Icertis for association details

Ensure filtering in CPI removes record for processing.

No entry processed in SAP ECC.

4Execute Stand Alone Agreement for single purchasing organization

Execution event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details

No call for association details

Creation of new entry in custom table with field values as defined.

Creation of new entry for purchasing organization and System ID in the purchasing org custom table.

4aExecute Stand Alone Agreement for multiple purchasing organizations

Execution event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details

No call for association details

Creation of new entry in custom table with field values as defined.

Creation of new entries for purchasing organization and System ID in the purchasing org custom table.

5Execute Supporting Agreement (NDA) for single purchasing organization

Execution event received in CPI

Successful call to Icertis for agreement details

Successful call to Icertis for association details

Successful retrieval of agreement details

Successful retrieval of association details

Creation of new entry in custom table with field values as defined.

Check association to the relevant Master Agreement is correct

Creation of new entry for purchasing organization and System ID in the purchasing org custom table.

5aExecute Supporting Agreement (NDA) for multiple purchasing organizations

Execution event received in CPI

Successful call to Icertis for agreement details

Successful call to Icertis for association details

Successful retrieval of agreement details

Successful retrieval of association details

Creation of new entry in custom table with field values as defined.

Check associations to the relevant Master Agreement is correct

Creation of new entries for purchasing organization and System ID in the purchasing org custom table.

6Execute Sub Agreement (multiple for the one Master Agreement) for single purchasing organization

Execution event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details

Creation of new entries in custom table with field values as defined.

Check association of Sub Agreements to the relevant Master Agreement is correct

6aExecute Sub Agreement (multiple for the one Master Agreement) for multiple purchasing organizations

Execution event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details

Creation of new entry in custom table with field values as defined.

Check association of Sub Agreements to the relevant Master Agreement is correct

Creation of new entries for purchasing organization and System ID in the purchasing org custom table.


Renewed


7Agreement for single purchasing organization with auto renewal is renewed when the renewal date is reached

Renewed event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the renewal date.

7aAgreement for multiple purchasing organizations with auto renewal is renewed when the renewal date is reached

Renewed event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the renewal date.


Terminated
8Existing active Agreement for single purchasing organization is terminated with notice (method 1) 

Terminated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the termination notice date.

8aExisting active Agreement for multiple purchasing organizations is terminated with notice (method 1) 

Terminated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the termination notice date.

9Existing active Agreement for single purchasing organization is terminated without notice (method 2)

Terminated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the termination date.

9aExisting active Agreement for multiple purchasing organizations is terminated without notice (method 2) 

Terminated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the termination notice date.


AmendmentExecuted
10Execute an amendment for a Master Agreement 

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

11Execute an amendment for a Sub Agreement with Master for single purchasing organization

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

11aExecute an amendment for a Sub Agreement with Master for multiple purchasing organizations

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

12Execute an amendment for a Stand Alone Agreement for single purchasing organization

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

12aExecute an amendment for a Stand Alone Agreement for multiple purchasing organizations

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

13Execute an amendment for a Supporting Agreement (NDA) for single purchasing organization

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

13aExecute an amendment for a Supporting Agreement (NDA) for multiple purchasing organizations

Amendment event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table for Parent Agreement & Parent SysId entry

13bAgreement with an amendment already executed with auto renewal is renewed when the renewal date is reached.

Renewed event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table with expiry updated to the renewal date.


ExecutedUpdated


14Update one or more tracking attribute fields for a Sub Agreement with Master for single purchasing organization

ExecutedUpdated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table

14aUpdate one or more tracking attribute fields for a Sub Agreement with Master for multiple purchasing organizations

ExecutedUpdated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table 

14bUpdate one or more tracking attribute fields for a Sub Agreement or Standalone agreement where there has already been an amendment executed.

ExecutedUpdated event received in CPI

Successful call to Icertis for agreement details

Successful retrieval of agreement details 

Update of existing record in custom table 

Test Considerations/Dependencies

Considerations and dependencies for testing:

ERP-203 Icertis: Total Contract Value calculation with multiple amendments to enable ECC Integration needs to be completed in order for the target value to reflect the total of all amendments and the original contract target value.

ERP-508 Enhancement for Icertis event streams need to be completed in order for the events for renewals, terminations, amendments to be generated from Icertis and send the initial payload to CPI.

Configuration of metadata is required to be completed in Icertis.

ERP-766: Icertis Enhancement to Trigger Event to CPI for Nominated Tracking Attribute Changes is required to be completed in Icertis.


Other Information

There is no other information identified.

Development Details

Package

Package NameParent Package




Other Development Objects

Object TypeObject NamePurpose/High Level LogicDesign Rationale Reference









Appendix


See also

Insert links and references to other documents which are relevant when trying to understand this decision and its implications. Other decisions are often impacted, so it's good to list them here with links. Attachments are also possible but dangerous as they are static documents and not updated by their authors.


Change log