IBM Support

CreateForInvItemsAtNode attribute works inconsistently for API createInventoryActivityList when compared to the deprecated API createInventoryActivity

Question & Answer


Question

How do you populate YFS_INVENTORY_ACTIVITY table for all the inventory items for the node using createInventoryActivityList API in IBM Sterling Order Management?

Cause

CreateForInvItemsAtNode is currently not supported by createInventoryActivityList.

Answer

By setting attribute CreateForInvItemsAtNode to "Y" in the createInventoryActivityList API input , it did not create entries in the YFS_INVENTORY_ACTIVITY table for all the inventory items of the node passed in the input. The API just created entry for the item passed in the input.
However, when you use the same attribute in the createInventoryActivity API which is deprecated for Sterling OMS V9.5 version, it populates the YFS_INVENTORY_ACTIVITY table for all the inventory items for the node that is passed in the input.

As a workaround, You  can use the getInventoryItemList API and use its output for batch calls of the createInventoryActivityList API.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"9.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
29 June 2018

UID

ibm10715931