如何解决扩展 CDS 视图失败
我有两个 CDS 视图,ztest_cds 和 ztex_cds,其中 ztest_cds
是普通视图,ztex_cds
是扩展 ztest_cds
的视图。
在 ztex_cds
中,我关联了另一个表。当我激活 ztest_cds
时,我收到
此错误消息:
表名_book未知或被别名掩盖
当我双击时,ztex_cds
出现在前面,当我单击“激活”时,它以 NO
错误和警告结束。
ztest_cds 代码:
@AbapCatalog.sqlViewName: 'zt_cds'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'test cds'
define view ztest_cds as select from sflight
association [1..1] to spfli
on sflight.carrid = spfli.carrid
and sflight.connid = spfli.connid{
key carrid,key connid,key fldate,price,currency
}
ztex_cds 代码:
@AbapCatalog.sqlViewAppendName: 'ztextend_cds'
@EndUserText.label: 'test extend cds'
extend view ztest_cds
with ztex_cds
association to sbook as _book
on _book.carrid = sflight.carrid
and _book.connid = sflight.connid
association [1..1] to scustom as _cust
on _cust.id = _book.customid{
_book.bookid,_book.customid,_cust.id,_cust.name,_cust.form,_cust.street
}
我应该怎么做才能激活 ztest_cds
?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。