Symptom
An Extension field on item level in Sales Order or Service Order cannot be updated.
Environment
SAP Business ByDesign
Reproducing the Issue
Your PDI solution is trying to update an Extension field in SalesOrder-Item.node or ServiceOrder-Item.node but this is not possible due to the following error: Changing data not possible; data is read-only
Cause
- In order to modify the item in a Sales or Service Order the system checks for the CancellationStatusCode, FulfilmentProcessingStatusCode, InvoiceProcessingStatusCode and CustomerOrderLifeCycleStatusCode.
- Apart from the lifecycle status code the ApprovalStatusCode and CancellationStatusCode are also checked by the system.
In a Service Order for example the item will always become read only when the item is canceled via Reason for Rejection or when the Service Order is in Approval.
In a Sales Order, for service items it will also become read only when the Delivery Status is Finished.
For materials it will also become read only when the Delivery Status is Finished and the Invoice Status is either In Process or Finished.
Resolution
Apart of the lifecycle status code the following mentioned statuses should also be checked before updating item:
Status/ApprovalStatusCode - a change is only allowed if the status value is 'Approved' or 'Not Started'
Status/CancellationStatusCode - a change is only allowed if the status value is 'Not Cancelled'
CustomerOrderLifeCycleStatusCode - a change is only allowed if the status value is not 'Completed'
Status/FulfilmentProcessingStatusCode - for a service item a change is only allowed if the status value is not 'Finished'
Status/InvoiceProcessingStatusCode - for a material item a change is only allowed if the status value is not 'In Process' or 'Finished'
See Also
Keywords
CancellationStatusCode; FulfilmentProcessingStatusCode; CustomerOrderLifeCycleStatusCode; Sales Order; ApprovalStatusCode; CancellationStatusCode; InvoiceProcessingStatusCode; Read Only; Changing data not possible; data is read-only , KBA , pdi extension field , read only , data is read-only , changing data is not possible , AP-SLO-SO , Sales Order , How To