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 deleted PO item data must be retrieved, a custom OData service is required. This can be achieved by creating 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.
- CDS views allow data access to be modeled across multiple underlying tables without modifying the database tables themselves.
- 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
PO, purchase order, purchasing, API_PURCHASEORDER_PROCESS_SRV, I_PurchaseOrderItemAPI01, item, delete, deleted item, cds views, api, OData, enhancement, custom, SOAP, Data Services , KBA , MM-PUR-PO-API , OData APIs - Purchase Order , Problem
Product
SAP S/4HANA Cloud 2208
SAP Knowledge Base Article - Public