IBM Support

Shipment confirmation happening for Non Shipped lines

Question & Answer


Question

Why the Shipment confirmation happening for Non Shipped lines even after passing the CancelNonShippedQuantity flag as Y in confirmShipment API input XML ? The order Shipment contains 3 lines and confirm shipment is happening for 1 shipment lines But all the Shipment lines are getting Shipped. In Confirm Shipment Input xml,CancelNonShippedQuantity flag is passed as Y and expected behavior is that it should Ship only one line, out of three lines. Remaining two lines should get cancelled. Simulation steps : 1. Create order with 3 lines. 2. Schedule it and release it, there should be only one release. 3. Create shipment, order will move to included in shipment status. 4. Confirm the shipment : Expected : Ship only 1 lines and out of 3 line. It should cancel rest 2 lines.

Answer

In the input xml of confirm shipment API pass all shipment lines.

For shipment line, which user wants to cancel.
Pass Zero ('0') Quantity. CancelNonShippedQuantity="Y" will cancel the remaining Quantity which are not shipped at the time of confirmShipment.
Sample input XML :

<Shipment CancelNonShippedQuantity="Y" ShipmentKey="20130820173925487353" ActualShipmentDate="" ShipmentNo="100000557" DocumentType="0001" EnterpriseCode="DEFAULT" ShipNode="N4">
<ShipmentLines>
<ShipmentLine ItemID="Item3" PrimeLineNo="1" Quantity="1" ReleaseNo="1" ShipmentLineNo="1" SubLineNo="1"/>
<ShipmentLine ItemID="Item3" PrimeLineNo="2" Quantity="0" ReleaseNo="1" ShipmentLineNo="1" SubLineNo="1"/>
<ShipmentLine ItemID="Item3" PrimeLineNo="3" Quantity="0" ReleaseNo="1" ShipmentLineNo="1" SubLineNo="1"/>
</ShipmentLines>
</Shipment>

Note: only those lines which are getting passed at the time of confirmShipment will get canceled.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Distributed Order Management","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.2;9.1;9.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21648119