IBM Support

getOrderPrice API ignores output template while implemeting YPMOverrideGetOrderPriceUE

Question & Answer


Question

Why does getOrderPrice API ignore the output template when user exit YPMOverrideGetOrderPriceUE is implemented in IBM Sterling Selling and Fulfillment?

Cause

The output of the YPMOverrideGetOrderPriceUE user exit is returned as it is.

Answer

OverrideGetOrderPriceUE is invoked at the final step of processing. Trying to do any post-processing after invoking the UE beats the purpose of the UE. So, the output of the UE is returned as it is.

If you still want an output based on the output template of the API call , you should get the template for getOrderPrice from environment and return the output in that format. You can do this conditionally based on the presence of valid value for OrderReference attribute in input ( i.e, if there is a valid value for this attribute, most likely it is from a changeOrder call ,if not it's a getOrderPrice call )

Post-conditions: The return document should contain XML data as required by the getOrderPrice API output

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Distributed Order Management","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21977384