IBM Support

When the YFSOrderRepriceUE is invoked as part of createOrder, the input does not have the correct TotalAmount and TotalCredits values.

Question & Answer


Question

When the YFSOrderRepriceUE is invoked as part of createOrder, the input does not have the correct TotalAmount and TotalCredits values.

Answer

SSCAP version 8.0

As per the current product logic, the TotalAmount field is calculated after the YFSOrderRepriceUE is invoked. Here is the sequence of execution:

createOrder – Begin

    YFSOrderRepricingUE – Begin

    YFSOrderRepricingUE – End

    Calculate and update OrderHeader table with Total_Amount.

createOrder – End.

Due to this sequence of execution, the Total Amount attribute will be 0 in the input to YFSOrderRepricingUE.

Solution:

The input to YFSOrderRepriceUE will always show the earlier TotalAmount and not the updated value since the TotalAmount calculation occurs after the UE is invoked. To get the updated values, the ON_SUCCESS event of createOrder API can be used instead.

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

Historical Number

FAQ2846

Document Information

Modified date:
16 June 2018

UID

swg21518131