IBM Support

"Key fields" cannot be modified error while changing the Shipment Type.

Troubleshooting


Problem

"Key fields" cannot be modified error while changing the Shipment Type.

Symptom

Customer is trying to make use of the field - ShipmentType, present at YFS_SHIPMENT header level. He is unable to set this field with user defined value after the shipment is created, as system is throwing a "key fields cannot be modified error".
How can you create a shipment with ShipmentType value pre- populated?

Error Message

Business Scenario:
"key fields cannot be modified error".

Resolving The Problem

Solution

System will not let the user modify the ShipmentType after the Shipment has been created. As the error itself indicates, “it is a key field” like OrderHeaderKey or ShipmentKey.

As a resolution one can use YDMBeforeCreateShipment.UE User Exit (which gets invoked on Create Shipment), and stamp this attribute.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

TRB2879

Document Information

Modified date:
16 June 2018

UID

swg21561307