The current PO oData api does not provide the possibility to get the deleted PO items.
Product version: SAP S/4HANA Cloud 2208
The current PO oData api does not provide the possibilty to get the deleted PO items. Neither the behaviour of the SOAP service nor the oData api cannot be changed. We would propose that you evaluate following options
1) You could implement own oData service to read PO data you need.
If you need access to data in your system in a way the OData API does not offer so far, you can create your own data access by making use of a custom Core Data Services view (custom CDS view) inheriting data from the CDS view I_PurchaseOrderItemAPI01 released for customers.
Usually, the data of an application is distributed across several database tables. Using CDS views allows you to model the data access without changing underlying database tables. In general, CDS views are intended to be consumed by a UI, analytics or other systems. CDS View can be built on CDS Views as well. To simplify the data access there are pre-delivered CDS Views (namely I_PurchaseOrderItemAPI01), custom CDS views can only be built on.
KBA , MM-FIO-PUR-PO , Fiori UI for Purchase Orders , Problem