Call CDS view in another CDS view
Refer created CDS view- Created CDS view
Create 2 CDS view
1. Right click on object and select new. Click on other repository objects. Expand core data service and double click on data definition.
2. Give CDS entity name and description. Click on next select package/TR and select define view and click on finish.
3. Give SQL view name.
CDS view 1- ZAB_CDS_STU
CDS view 2- zab_cds_call_view
Code
@AbapCatalog.sqlViewName: 'ZAB_SQL_CALL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Call cds view in another cds view'
define view zab_cds_call_view as select from ZAB_CDS_STU
{
key ZstId,
ZstName,
ZstDept,
ZstFee
}
Output
*****************************Thank You**************************
Comments
Post a Comment