SAP Knowledge Base Article - Public

3218328 - How to Cancel Purchase Order's Item using Webservice

Symptom

You want to cancel a Purchase Order item via web service.

Environment

SAP Business ByDesign

Resolution

You can use the payload below to cancel a Purchase Order's item. ABC is the Purchase Order's ID and X is the Item's number.

<n0:PurchaseOrderBundleMaintainRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<PurchaseOrderMaintainBundle actionCode="04" ItemListCompleteTransmissionIndicator="false">
<BusinessTransactionDocumentTypeCode>001</BusinessTransactionDocumentTypeCode>
<PurchaseOrderID>ABC</PurchaseOrderID>
<Item ItemImatListCompleteTransmissionIndicator="true" actionCode="04">
<ItemID>X</ItemID>
<CancelItemPurchaseOrderActionIndicator>true</CancelItemPurchaseOrderActionIndicator>
</Item>
</PurchaseOrderMaintainBundle>
</n0:PurchaseOrderBundleMaintainRequest_sync>

If you need to cancel only the second item, ID Y for example, you can use the payload below:

<n0:PurchaseOrderBundleMaintainRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<PurchaseOrderMaintainBundle actionCode="04" ItemListCompleteTransmissionIndicator="false">
<BusinessTransactionDocumentTypeCode>001</BusinessTransactionDocumentTypeCode>
<PurchaseOrderID>ABC</PurchaseOrderID>
<Item ItemImatListCompleteTransmissionIndicator="true" actionCode="04">
<ItemID>X</ItemID>
</Item>
<Item ItemImatListCompleteTransmissionIndicator="true" actionCode="04">
<ItemID>Y</ItemID>
<CancelItemPurchaseOrderActionIndicator>true</CancelItemPurchaseOrderActionIndicator>
</Item>
</PurchaseOrderMaintainBundle>
</n0:PurchaseOrderBundleMaintainRequest_sync>

You can change the payload's tags according to what you need.

Keywords

 Payload, Webservice, Purchase Order, Cancel , KBA , SRD-SRM-PRO , Purchase Requests and Orders , How To

Product

SAP Business ByDesign all versions