cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to add material item (to-stock) to existing purchase order with status sent

karolylovas
Newcomer

Hi All,

we are trying to add new item to existing purchase order with status sent. Item type is material and process type is to-stock, so product data is mandatory in the requestbut we get the following error message “Changing not possible; field is read-only” when we are providing the product info.

If we try to add new item to an order with status in process it works fine. It also works if we add a new item with process type non-stock.

We need to add new item with to-stock process type to an order which is in sent status. It is possible to do it through the UI so it should be possible using the webservice also.

Do we need some additional setting for it to work? Do we have to call the service in a different way to work?

Thanks for your answers

newpoitem.xml

Accepted Solutions (0)

Answers (1)

Answers (1)

ThiagoSarmento
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

This error "Changing data not possible; data is read-only" occurs when an add-on is trying to modify an attribute (which could be an extension field) when the status of the document (e.g. posted, paid, cancelled, in approval) does not allow any change on it.

Please review your add-on(s) script's that have a logic around the Purchase Order BO and ensure to have the necessary checks in place to watch over some statuses and only allow changes on the document in case the status values are met.

The below KBA provides more insight into it: (the symptom is different but the cause and resolution is the same)

2610403 - Extension Field For Sales or Service Order Cannot Be Updated on Item Level via your PDI solution

https://launchpad.support.sap.com/#/notes/2610403

BR,

Thiago