Skip to Content
Technical Articles
Author's profile photo Badrinath Ravi

Get Consumption CDS view details of Standard OData Service.

 

This blog post is relevant to scenario wherein standard service is not available as a SEGW project, Standard service does not highlight the Consumption CDS view.

 

Select the SAP Fiori Application.

Get the OData service details.

Go to Service Implementation.

Go to DPC class.

Put breakpoint in GetEntitySet Method

Run Get Call.

Under _get_data_table_container method you will get the Consumption CDS view details.

Use this for further steps.

 

Conclusion – This will help you identify the underlying consumption CDS view details used against a  SAP Fiori Application.

 

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Thanks for sharing this "backdoor" approach! It is totally possible to use multiple CDS views in the same service, so technically, this would find only one of them for a specific OData request.

      I'd suggest the following steps, as a possible alternative or addition.

      1. The service name for standard Fiori apps is available in the Fiori app reference library. I looked up this app and it's mentioned on the Implementation tab. https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4596')/S22OP
      2. From there, we can look up the service information in /IWFND/MAINT_SERVICE transaction (or via GW client, as shown)
      3. If there is no SEGW information then we could guess it's a RAP-based implementation, so just search for the service definition in Eclipse (or IDE of choice).

      Also API Hub has the CDS view information, although it's not linked to the Fiori apps, it seems. But simply searching for the app name and CDS view brings up some results: https://api.sap.com/search?searchterm=Manage%20Credit%20Accounts&tab=CDS%20Views&top=12

      Using online resources is helpful when one doesn't have access to a system. Although searching there can sometimes be a trip down the rabbit hole. But that's another story...