0

我有桌子Z1127_STUDENT

define table z1127_student {
  key id     : z1127_sample not null;
  branch     : z1127_sample1;
  age        : z1127_age;
  address    : z1127_address;
  percentage : z1127_percent;
}

(列的类型基于类型int2char

和 CDS 视图Z1127_CDS_VIEWS

@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 源 z1127_cds3 无法转换为扩展(-> 长文本)

如何避免这个错误?

4

0 回答 0