cancel
Showing results for 
Search instead for 
Did you mean: 

Inform 'PurchaseOrderDate' via API 'Purchase Order – Create, Update, Delete'

MarioFranco
Participant
0 Kudos

Dear all,

When using the odata API 'Purchase Order – Create, Update, Delete' to create a Purchase Order, we are informing the field "PurchaseOrderDate" but the PO is created always with the "actual day"(today), how can we modify this date?

Our requirement is to create PO from a file so the date is in that file.

Thanks in advace,

Accepted Solutions (1)

Accepted Solutions (1)

cdias
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Mario,

To set the delivery date on Purchase Order using this OData API you need to include in the request payload a schedule item entry using association to_ScheduleLine of entity A_PurchaseOrderItem.

The date can be set on the field "ScheduleLineDeliveryDate".

Best regards.

MarioFranco
Participant
0 Kudos

Thanks Carlos.

But we need to fill "Document Date", not "Delivery Date".

Regards,

Answers (1)

Answers (1)

cdias
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Mario,

Sorry about the confusion.

PurchaseOrderDate is only available in the API for Read operations. When creating PO using the API, PurchaseOrderDate is set to the current date so this value doesn't need to be provided.

The same behavior is observed when you create a PO using the "Manage Purchase Orders" application.

Regards,