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.

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management System Software"},"ARM Category":[{"code":"a8m0z000000cy00AAA","label":"Orders"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.0;9.0.0;9.1.0;9.2.0;9.2.1;9.3.0;9.4.0;9.5.0"}]

Historical Number

TRB2879

Product Synonym

IBM Sterling OMS

Document Information

Modified date:
03 July 2025

UID

swg21561307