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="20180705141617917
<ShipmentLines>
<ShipmentLine DocumentType="0005" ItemID="1234" OrderNo="Y100000001"
PrimeLineNo="1" Quantity="2" SubLineNo="1" UnitOfMeasure="EACH"/>
</ShipmentLines>
</Shipment>
Was this topic helpful?
Document Information
Modified date:
27 July 2018
UID
ibm10719139