Symptom
An extension field on Supplier Invoice cannot be updated due to error:
- Changing data not possible; data is read-only
Environment
- SAP Business ByDesign
- SAP Cloud Applications Studio
Cause
A custom Add-On/PDI solution attempts to modify a Supplier Invoice attribute (including extension fields) while the invoice is in a status that does not allow changes (for example, Posted, Paid, Canceled).
This leads to the error "Changing data not possible; data is read-only".
Resolution
- Review the Add-On/PDI logic acting on Supplier Invoice (for example, AfterModify or BeforeSave ABSL on SupplierInvoice Root) to identify any writes to standard or extension fields.
- Implement guard checks to prevent updates when the Supplier Invoice is in read-only statuses:
- A change is allowed to the Supplier Invoice when it has the following status:
- Status.SupplierInvoiceLifeCycleStatusCode: 1 - In Process, 2 - Exception, 3 - Ready for Posting, 5 - In Revision and 11 - Partially Paid
- Status.ApprovalStatusCode: 2 - Approval not Necessary and Approved
See Also
Keywords
process communication error, supplier invoice, clearing cannot update supplier invoice, changing data not possible, data is read-only, pdi, add-on, absl, aftermodify, extension field, status check, posted, paid, canceled, dueitemprocessing, SupplierInvoiceProcessingDueClearingIn , KBA , SRD-SRM-PRO , Purchase Requests and Orders , Problem
SAP Knowledge Base Article - Public