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?
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.
Historical Number
TRB2879
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21561307