SAP Knowledge Base Article - Public

3253851 - Purchase Order deleted lines API_PURCHASEORDER_PROCESS_SRV

Symptom

The current PO oData api does not provide the possibility to get the deleted PO items.

Environment

  • SAP S/4HANA
  • ODATA APIs

Resolution

The current Purchase Order (PO) OData API does not provide the capability to retrieve deleted PO items. The behavior of both the SOAP service and the OData API cannot be modified.

If your business requires retrieving deleted PO item data, implement a Custom OData Service to Read PO Data.

For that, create a custom data access service by leveraging a custom Core Data Services view (custom CDS view). This custom CDS view can inherit data from the standard CDS view I_PurchaseOrderItemAPI01, which is released for customer use. 

Data accessed through applications is typically distributed across multiple database tables. By using CDS views, you can model data access without altering the underlying database tables. CDS views are generally intended to be consumed by UIs, analytics, or other systems, and they can be built upon existing CDS views to streamline data access. 

Keywords

KBA , MM-PUR-PO-API , OData APIs - Purchase Order , Problem

Product

SAP S/4HANA Cloud 2208