cds view join和association
作者:互联网
1:创建两张表:ztt_teacher01 和ztt_teacher02 用于 cds view中的join和association
2:创建两个cds view:ztt_teacher01_id_name和 ztt_teacher02_id_salary
3: 在ztt_teacher01_id_name 中使用连接对数据表进行查询
@AbapCatalog.sqlViewName: 'TEACHER01' @AbapCatalog.compiler.compareFilter: true @AbapCatalog.preserveKey: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'teacher table have id,name field' define view ztt_teacher01_id_name as select from ztt_teacher01 as t01 left outer join ztt_teacher02 as t02 on t01.id = t01.id { t01.id, name, salary }
结果如下:
标签:teacher01,join,name,t01,ztt,id,association,view 来源: https://www.cnblogs.com/liyafei/p/10735382.html