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
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21977384