IBM Support

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

Troubleshooting


Problem

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

Symptom

Details:
Currently in the YFSOrderRepricingUE, the TotalAmount is not available since this field is calculated after the UE is invoked.
The sequence of execution is as shown below:


createOrder – Begin

YFSOrderRepricingUE – Begin

YFSOrderRepricingUE – End

Update OrderHeader table with Total_Amount

createOrder – End.

Due to this sequence of execution, the Total Amount attribute will be 0 in the YFSOrderRepricingUE.
This is a technical limitation.

Error Message

There is no error message thrown, but the TotalAmount and TotalCredits values available in the YFSOrderRepriceUE are not updated values.

Resolving The Problem

Solution

Solution:

YFSOrderRepriceUE will always show the earlier OrderTotal and not the updated order total since the Order total calculation happens after the UE is invoked.

ON_Success event of createOrder can be used instead to get the correct details on OrdetTotal and TotalCredits attribute.
YFSOrderRepriceUE can be used to pass back modified TotalAmount and prices.

[{"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

TRB2964

Document Information

Modified date:
16 June 2018

UID

swg21560764