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
- Create a purchase contract in Ariba Contracts and publish it.
- Interface the contract to SAP S/4HANA Cloud.
- 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
- 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
- In the BAdI implementation, define the criteria under which externally created purchase contracts are editable, according to the business requirements.
- 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.
- 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
- refer to: Feature overview: Contract Management with SAP Ariba Contracts (4AZ)
- refer to: App extensibility: Manage Purchase Contracts
- refer to: SAP Note 3231144 - Restrictions for Contract Management with SAP Ariba Contracts (4AZ)
- refer to: SAP Note 3709797 - Contract from external system is not editable on Manage Purchase Contracts
- refer to: Process Navigator: 4AZ Contract Management with SAP Ariba Contracts
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
SAP Knowledge Base Article - Public