The initial goal of the tool is to search hierarchically the Released Basic CDS views of Database Tables.
The goal is extended to generally search hierarchically for parent views of a data source (Database table, CDS view or DDic view). That made it possible to also search for Root CDS views which are used in RAP behavior definitions.
Also showing a list of all CDS views is now possible. Filtering can be done in the selection screen and in the IDA ALV grid.
Version 1 used SAP table DDLS_RIS_INDEX, however the table does not specify which data source is the main data source. So therefor the tool needs it’s own index database table (ZSCV_CDS_REL) containing only the main data source (on other words the sql FROM) of a CDS view. The tool is now precise and faster.
In the list search method filtering on the Main Database Table name is also possible, because it is also buffered in the Index database table of the tool (ZSCV_CDS_REL).
The program uses a custom index table. So if you want new or changed custom CDS views in the results, than than you have to click the button “Delta update CDS Index Table” to update the index.
After a SAP upgrade the program ZSCV_SEARCH_INDEXER should be executed in background. See chapter “After SAP upgrade”.
There are two Search Methods. For the Hierarchy search one child data source (Database table, CDS view or DDic view) must be entered, so that tool can search hierarchically all parent data sources (CDS views and DDic views).
The List search shows all CDS views. The selection screen can filter the list and the results in the IDA ALV grid can be filtered.
Filtering on one Main Database Table should result in the same CDS views.
We need for Business Object Sales Order stored in database table VBAK the Basic CDS view.
By the parameters are set to find the released basic CDS views:
This result can also created by using Search Method List.
If you don’t find a Released Basic CDS View, than it could be that a Basic CDS View is not yet released by SAP.
This can be done by using the List Search Method.
When no released RAP Root entity is found, than you can search for unreleased RAP Root entity by clearing the API State fields by pushing on button “All statuses”.
Below you see a diagram starting from CDS View I_SalesOrder to it’s main source I_SalesDocument and so on till it’s main source table VBAK.
After a SAP upgrade the program ZSCV_SEARCH_INDEXER should be executed in background with Delta update.