Symptom
An Extension field on item level in Project Purchase Request cannot be updated.
Environment
- SAP Business ByDesign
- SAP Cloud Applications Studio
Reproducing the Issue
Your PDI solution is trying to update an Extension field in ProjectPurchaseRequest BO - Item node, but this is not possible due to either process communication error:
- Purchase Order ABC cannot update Project Purchase Request (ABC is the Purchase Order's ID)
- Changing data not possible; data is read-only
Cause
The Add-On is trying to modify an Extension Field while it is set as "read-only" by the application. This happens in the item level when system tries to update the Project Purchase Request. The system checks, on item level, and its result depends on the status of the Purchase Order. The status of the Purchase Order can be checked by following the steps below:
- Open Purchase Order ABC.
- Navigate to Document Flow tab.
- Make note of the Purchase Request ID, which is OPQ.
- Also make note of the Project ID, which is XYZ.
- Open Project XYZ.
- Click in Edit button.
- Navigate to Products tab.
- Navigate to Project Purchase Requests subtab.
- Search for Purchase Request OPQ.
- Check the Purchasing Status of the Purchase Request Item.
If the Purchasing Status is "Ordered", the item node is set as read-only.
If the Purchasing Status is "Requested", the item note is writable (not set as read-only).
Resolution
In your BeforeSave script file, you can be checking what is the value of PurchaseOrder.Item.Status.OrderingStatusCode field from the related Purchase Request and Purchase Order documents. If it is Requested, you will be able to update the required extension fields.
Keywords
Read, Only, Process, Communication, Error, Project, Purchase, Request, OrderingStatusCode, Technical error, AP_ESI_COMMON, 107, PRO_PROJECT_PURCHASE_REQ , KBA , SRD-SRM-PRO , Purchase Requests and Orders , How To