Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to access the ID of a PurchaseOrder before saving it?

Dear community,

I need to implement a REST call to an external system passing through some data of PurchaseOrders.

The PurchaseOrders are part of a third-party process and created automatically by ByD from released SalesOrders.

The PurchaseOrders are created and automatically sent by ByD and afterwards saved by the system. The problem I'm facing is that at the time of the calls to AfterModify and BeforeSave, the ID field of the PO is not yet set.

Is there a way to get the ID in the AfterModify or BeforeSave before the PO is saved for the first time?

The only possible solution I came up with is to use internal communication to create an object. This message would be sent after the save and with the ID of the PO. Is another way to do it?

Thanks for your help and best regards,

Georg

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question