IBM Support

How does the attribute CancelNonShippedQuantity in confirmShipment work?

Question & Answer


Question

How can the non-shipped quantity be cancelled using "CancelNonShippedQuantity" attribute from confirmShipment API?

Cause

Passing CancelNonShippedQuantity attribute as Y for a drop ship purchase order will ensure that the unshipped quantity is not cancelled.

confirmShipment Input:

<Shipment DocumentType="0005" EnterpriseCode="ABC"

CancelNonShippedQuantity="Y" SellerOrganizationCode="ABC"

ShipNode="Node1">

<ShipmentLines>

<ShipmentLine DocumentType="0005" ItemID="1234" OrderNo="Y100000001"

PrimeLineNo="1" Quantity="2" SubLineNo="1" UnitOfMeasure="EACH"/>

</ShipmentLines>

</Shipment>
 

This flag works only if the shipment line is created first and passed in the input. Unless we create a shipment line during create with line quantity,  CancelNonShippedQuantity does not have the delta to work with between the quantity that is being shipped vs non shipped.  CancelNonShippedQuantity attribute is with context of a shipment and not with respect to a order line.

Answer

CancelNonShippedQuantity will work only when a shipmentline is passed as in the below example-

<?xml version="1.0" encoding="UTF-8"?>

<Shipment BuyerOrganizationCode="ABC" DocumentType="0005"

    EnterpriseCode="ABC" ExpectedDeliveryDate="" IgnoreOrdering="Y"

    ReceivingNode="Node1" SellerOrganizationCode="ABC"

    ShipComplete="Y" ShipmentKey="2018070514161791752" ShipmentNo="100000061" CancelNonShippedQuantity="Y" >

<ShipmentLines>

<ShipmentLine DocumentType="0005" ItemID="1234" OrderNo="Y100000001"

PrimeLineNo="1" Quantity="2" SubLineNo="1" UnitOfMeasure="EACH"/>

</ShipmentLines>

</Shipment>

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

Document Information

Modified date:
27 July 2018

UID

ibm10719139