Accept a Purchase Order with Date Changes

When you receive a purchase order acknowledgment, lines that are accepted may also include date changes.

This means the acknowledgment code values on the lines are in the lineAccept code list with a date included and the Promised Ship Date or the Promised Delivery Date field on the PO is updated. The data is mapped as outlined in this table:

Oracle-1-0-B2B-Purchase-Order-Acknowledgment-In-V2 changePurchaseOrder

B2BPurchaseOrderAcknowledgment/OrderNumber

OrderNumber

SoldToLEId

This is populated during processing.

B2BPurchaseOrderAcknowledgment/AcknowledgmentCode

This value needs to be in the orderAccept code list. It's used for processing.

N/A

B2BPurchaseOrderAcknowledgment/SupplierOrderNumber

SupplierOrderNumber

B2BPurchaseOrderAcknowledgment/AcknowledgmentReason

ChangeOrderDescription

If no reason is passed, this field is populated with Change to the Order.

ChangeOrderInitiatingParty

This is set to SUPPLIER.

PurchaseOrderEntryLine

B2BPurchaseOrderAcknowledgment/Lines/LineNumber

LineNumber

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/AcknowledgmentReason

ChangeReason

If the AcknowledgmentReason isn't provided in the payload, then this is set to Not Provided.

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/AcknowledgmentCode

Action

When the AcknowledgmentCode value is in the lineAccept code list, with a date this is set to CHANGE.

PurchaseOrderEntryLine/PurchaseOrderEntrySchedule

Schedule is autogenerated

ScheduleNumber

ScheduleNumber is autogenerated

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/AcknowledgmentReason

ChangeReason

If no reason is provided in the payload, this is set to Not provided.

One of these dates needs to be included if a date change is specified.

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/PromisedDeliveryDate

or

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/PromisedShipDate

PromisedDeliveryDate

or

PromisedShipDate

If PromisedDeliveryDate is provided and the Buyer Managed Transport isn't selected on the PO, the date value received is mapped to PromisedDeliveryDate. If PromisedShipDate is provided and the Buyer Managed Transport is selected on the PO, the date value received is mapped to PromisedShipDate.

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/AcknowledgmentCode

Action

When the AcknowledgmentCode is in the lineAccept code list and a date is included, this is set to CHANGE.

PurchaseOrderEntryLine/LineFlexfield

b2bProvidedDateNote

If PromisedDeliveryDate is provided and the Buyer Managed Transport is selected on the PO, then this is set to Rescheduled-Promised Delivery Date Provided.

If PromisedShipDate is provided and the Buyer Managed Transport isn’t selected on the PO, then this is set to Rescheduled-Promised Ship Date Provided.

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/PromisedShipDate

or

B2BPurchaseOrderAcknowledgment/Lines/Acknowledgments/PromisedDeliveryDate

b2bProvidedDate

If PromisedDeliveryDate is provided and the Buyer Managed Transport is selected on the PO, the date value received is mapped to this field. If PromisedShipDate is provided and the Buyer Managed Transport is selected on the PO, the date value received is mapped to this field.

Header Flexfield

b2bAckReviewRequired

If b2bProvidedDate and b2bProvidedDateNote are populated, then this is set to One or more lines have acknowledgment comments.

Sample Payload for Accepting a Purchase Order with Date Changes

Here's a sample payload for accepting a purchase order with date changes:

<n1:Lines>
   <n1:LineNumber>1</n1:LineNumber>
   <n1:SupplierItemNumber>594-379</n1:SupplierItemNumber>
   <n1:CustomerItemNumber>544-589</n1:CustomerItemNumber>
   <n1:OrderQuantity>10</n1:OrderQuantity>
   <n1:UnitOfMeasureCode>EA</n1:UnitOfMeasureCode>
   <n1:UnitPriceAmount>7</n1:UnitPriceAmount>
   <n1:Acknowledgments>
      <n1:AcknowledgmentCode>ACCEPT</n1:AcknowledgmentCode>
      <n1:AcknowledgmentReason>Date Reschedule</n1:AcknowledgmentReason>
      <n1:PromisedShipDate>2024-12-17T09:30:47Z</n1:PromisedShipDate>
   </n1:Acknowledgments>
</n1:Lines>