ABAP字典类型的DDL source Z1127ExtView无法转换为Extend(->;长文本)

ABAP字典类型的DDL source Z1127ExtView无法转换为Extend(->;长文本),abap,cds,Abap,Cds,我有表格Z1127\u学生: define table z1127_student { key id : z1127_sample not null; branch : z1127_sample1; age : z1127_age; address : z1127_address; percentage : z1127_percent; } @AbapCatalog.sqlViewName: 'Z1127_CDSVIEWS' @AbapC

我有表格
Z1127\u学生

define table z1127_student {
  key id     : z1127_sample not null;
  branch     : z1127_sample1;
  age        : z1127_age;
  address    : z1127_address;
  percentage : z1127_percent;
}
@AbapCatalog.sqlViewName: 'Z1127_CDSVIEWS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CDS VIEWS'
define view Z1127_CDS_VIEWS as select from z1127_student
{
key id,
branch,
age
} 
@AbapCatalog.sqlViewAppendName: 'Z1127_SQL_3'
@EndUserText.label: 'cds view 3'

extend view Z1127_CDS_VIEWS with z1127_cds3 {

    address, 
    percentage
}
(列的类型基于类型
int2
char

和CD视图
Z1127\u CD\u视图

define table z1127_student {
  key id     : z1127_sample not null;
  branch     : z1127_sample1;
  age        : z1127_age;
  address    : z1127_address;
  percentage : z1127_percent;
}
@AbapCatalog.sqlViewName: 'Z1127_CDSVIEWS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CDS VIEWS'
define view Z1127_CDS_VIEWS as select from z1127_student
{
key id,
branch,
age
} 
@AbapCatalog.sqlViewAppendName: 'Z1127_SQL_3'
@EndUserText.label: 'cds view 3'

extend view Z1127_CDS_VIEWS with z1127_cds3 {

    address, 
    percentage
}
我尝试创建此扩展视图:

define table z1127_student {
  key id     : z1127_sample not null;
  branch     : z1127_sample1;
  age        : z1127_age;
  address    : z1127_address;
  percentage : z1127_percent;
}
@AbapCatalog.sqlViewName: 'Z1127_CDSVIEWS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CDS VIEWS'
define view Z1127_CDS_VIEWS as select from z1127_student
{
key id,
branch,
age
} 
@AbapCatalog.sqlViewAppendName: 'Z1127_SQL_3'
@EndUserText.label: 'cds view 3'

extend view Z1127_CDS_VIEWS with z1127_cds3 {

    address, 
    percentage
}
但它显示了这个错误:

ABAP字典类型的DDL源Z1127CDS3无法转换为扩展(->长文本)


如何避免此错误?

是否尝试对视图扩展进行注释?表和Z1127_CD_视图成功激活?i注释扩展视图。Z1127_CDS_视图成功激活错误仅显示在扩展视图中。我使用和重新创建了配置,视图和扩展完全相同,我的扩展成功激活。我相信问题在于您的表Z数据元素。我故意没有指定表增强类别来准确地再现您的案例,所以enh.cat。这里的重点不是你有什么ABAP版本吗?