IBM Support

Running adjustInventory API does not update supply correctly

Troubleshooting


Problem

Attempts to run adjustInventory API does not update supply correctly in IBM Sterling Order Management.

Symptom

adjustInventory API is not updating supply correctly when same item -ship node - supply type combination is repeated in same xml with hotsku is enabled and yfs.yfs.hotsku.lockItemOnInventoryChanges is set to N.

Cause

The attribute UseHotSKUFeature is set to N.

Resolving The Problem

When hotsku is enabled and yfs.yfs.hotsku.lockItemOnInventoryChanges is set to N, you need to pass UseHotSKUFeature=Y in adjustInventory input. Refer to adustInventory API javadocs for more details.

Sample XML

<Items>
    <Item AdjustmentType="ADJUSTMENT" AvailabilityType="TRACK"
        ItemID="ITEM_2" Quantity="1" ShipNode="NODE4"
        SupplyType="ONHAND" UnitOfMeasure="EACH" UseHotSKUFeature="Y"/>
    <Item AdjustmentType="ADJUSTMENT" AvailabilityType="TRACK"
        ItemID="ITEM_2" Quantity="1" ShipNode="NODE4"
        SupplyType="ONHAND" UnitOfMeasure="EACH" UseHotSKUFeature="Y"/>
</Items>

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Sterling OMS

Document Information

Modified date:
16 June 2018

UID

swg21975891