扩展 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 (将#修改为@)