SAP Knowledge Base Article - Public

3839324 - Error: "Changing data not possible; data is read-only" during Supplier Invoice Request update

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

  1. 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.
  2. 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

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions