Symptom
An extension field on Supplier Invoice Request cannot be updated due to error:
- Changing data not possible; data is read-only
Environment
- SAP Business ByDesign
- SAP Cloud Applications Studio
Cause
An Add-On/PDI solution attempts to modify a Supplier Invoice Request attribute (including extension fields) while the invoice is in a status that does not allow changes (for example, Invoiced, 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 Request (for example, AfterModify or BeforeSave ABSL on SupplierInvoiceRequest) to identify any writes to standard or extension fields in ROOT or ITEM nodes.
- Implement guard checks to prevent updates when the Supplier Invoice Request is in read-only statuses:
- A change is allowed to the Supplier Invoice Request when it has the following status:
- Status.InvoicingStatusCode: 1- Not Invoiced or 2- Partially Invoiced
Keywords
PDI, SDK, e-invoicing, document compliance monitor, intercompany, supplier invoice creation, supplier invoice request, SIR, read-only, Changing data not possible, data is read-only, PDI, ABSL, BeforeSave, extension fields, InvoicingStatusCode, Partially Invoiced , KBA , AP-SIP-SIV , Supplier Invoice , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem
SAP Knowledge Base Article - Public