Troubleshooting
Problem
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?
Business Scenario:
"key fields cannot be modified error".
Resolving The Problem
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.
Historical Number
TRB2879
Product Synonym
IBM Sterling OMS
Was this topic helpful?
Document Information
Modified date:
03 July 2025
UID
swg21561307