IBM Support

Custom shortage reason codes for Backroom pick

Question & Answer


Question

How do you implement custom reason code for shortage on Backroom Pick UI IBM Sterling Order Management?

Cause

Mashup class handles only the OOTB shortage reason and can not be used to handle the custom shortage reason code.

Answer

You can access the shortage reason code within the Mashup class of OOTB Mashup : updateShipmentQuantityForPickAllLine.
This OOTB Mashup performs the changeShipment call and adds note at Order line by calling changeOrder. However, currently this mashup class handles only the OOTB shortage reason and can not be used to handle the custom shortage reason code.

You can use the below approach to fulfill their requirement :

  1. From the extensibility work bench customize the below OOTB mashup : Mashup Ref Id : updateShipmentQuantityForPickAllLine.


  2. For this MashupRef Id ,create a new Mashup definition and new mashup class.
    The new Mashup should perform the changeShipment call.

    NOTE : This new mashup definition will be same as OOTB mashup( backroomPick_updateShipmentQuantity ) except the mashup class.


  3. Shortage reason code can be accessed in the massageInput method of the new mashup class and can be used to write the custom logic.

    Sample Code : -
    public Element massageInput(Element inputEl, SCUIMashupMetaData mashupMetaData, SCUIContext uiContext) {
    Element eInput = super.massageInput(inputEl, mashupMetaData, uiContext);
    String shortageReasonCode = SCXmlUtil.getAttribute(eInput, "ShortageReasonCode");}

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

Document Information

Modified date:
16 June 2018

UID

swg21990820