abap - 扩展 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
?
解决方案
推荐阅读
- python - 为什么我没有得到 python flask sqlalchemy 自动完成功能?
- c# - 有没有办法询问一些 nginx 服务器每个 ip 的连接限制?
- amazon-web-services - Ansible 跨账户 S3 存储桶对象查找和下载
- c++ - 如何在命令行 GCC/G++ 中添加标志
- pandas - 如何合并具有层次结构的两个数据框
- database - 无法连接到 postgresql 数据库“数据库不存在”
- r - 在 rgee 中为 Feature Collection 的每个特征添加属性
- node.js - 如何从服务器下载文件,然后将其再次发布到另一个(Node.js)
- javascript - 如何检索子集合文档 - Angular Firebase
- callback - Kafka Producer:如何使用 Reactive 和 Non-Blocking Producer 编写 onSuccess/onError 回调代码