SAP Knowledge Base Article - Public

3839961 - Cannot edit purchase contract created from external document after Ariba integration — SAP S/4HANA Cloud Public Edition

Symptom

When attempting to edit a purchase contract, the error appears: "Cannot edit pur. contract xxxxxxxxxx as it is created from an external document."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a purchase contract in Ariba Contracts and publish it.
  2. Interface the contract to SAP S/4HANA Cloud.
  3. Attempt to edit the purchase contract in SAP S/4HANA Cloud and observe the error.

Cause

By design, purchase contracts originating from external systems (for example, Ariba Contracts) are read-only in SAP S/4HANA Cloud to preserve the external system as the source of record. The Manage Purchase Contracts app does not allow editing of such documents without specific enablement.

Resolution

  1. Implement the Business Add-In (BAdI) to allow editing of externally created purchase contracts:
    • BAdI: MM_PUR_S4_CTR_CTRL_EDITABILITY
    • Access: Custom Logic app > Business Add-Ins > search for MM_PUR_S4_CTR_CTRL_EDITABILITY
    • Business context: Procurement: Purchasing Document
  1. In the BAdI implementation, define the criteria under which externally created purchase contracts are editable, according to the business requirements.
  2. Note the consequence: once a contract is edited in SAP S/4HANA Cloud, it is decoupled from Ariba Contracts and further changes made in Ariba will no longer synchronize for that contract.
  3. Alternatively, make all changes only in Ariba Contracts and republish to SAP S/4HANA Cloud; do not edit the contract directly in SAP S/4HANA Cloud.

See Also

Keywords

cannot edit pur. contract, created from an external document, manage purchase contracts, ariba contracts, external document, read-only contract, external source, editability, badi MM_PUR_S4_CTR_CTRL_EDITABILITY, 4AZ, SAP_COM_0524, s/4hana cloud public edition, purchase contract, custom logic app, integration , KBA , MM-FIO-PUR-SQ-CON-CL , Fiori UI for Manage Purchase Contracts (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions