[BO检查]缺少有关活动持久性的注释

2020-08-17 12:32发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我在750系统中基于...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我在750系统中基于BOPF创建了两个CDS。

现在,我将它们移至NPL 752,但根CDS出现错误:[BO检查]缺少有关主动持久性的注释


这是根CDS:

 @ AbapCatalog.sqlViewName:'ZTTI_PROJECTS'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"项目"


 @ Search.searchable:是


 @ObjectModel:{
     modelCategory:#BUSINESS_OBJECT,
     compositionRoot:正确,
     RepresentativeKey:"代码",
     语义关键字:'代码',
     createEnabled:是的,
     updateEnabled:是,
     deleteEnabled:是,
     transactionalProcessingEnabled:是的,
     writeActivePersistence:" ZTT_PROJECTS"
 }


 定义视图ZTT_I_PROJECTS
     从ztt_projects中选择
     将[0 .. *]与_issues关联到ZTT_I_ISSUES
         在$ projection.code = _issues.project_code上
     将[0..1]与ZTT_VH_TIME_UNIT关联为_timeUnit
         在$ projection.default_time_unit = _timeUnit.timeUnit上
 {
    //ZTT_PROJECTS
     @ Search.defaultSearchElement:true
     @ ObjectModel.readOnly:" EXTERNAL_CALCULATION"
     关键代码,
     @ Search.defaultSearchElement:true
     名称,
     @ ObjectModel.foreignKey.association:'_timeUnit'
     default_time_unit,
     started_on,
     end_on,
     crea_date_time,
     crea_uname,
     lchg_date_time,
     lchg_uname,
    
   /*关联*/
     @ ObjectModel.association.type:#TO_COMPOSITION_CHILD
     _问题,
     _timeUnit
    
 }


 

还有孩子:

 @ AbapCatalog.sqlViewName:'ZTTI_ISSUES'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"问题"


 @ Search.searchable:是


 @ObjectModel:{
     modelCategory:#BUSINESS_OBJECT,
     RepresentativeKey:"代码",
     语义关键字:['project_code','code'],
     createEnabled:是的,
     updateEnabled:是,
     deleteEnabled:是,
     transactionalProcessingDelegated:true,
     writeActivePersistence:" ZTT_ISSUES"
 }


 定义视图ZTT_I_ISSUES
     从ztt_issues中选择
     将[1]与ZTT_I_PROJECTS关联为_project
         在$ projection.project_code = _project.code上
     将[0..1]与ZTT_I_USERS关联为_functionalUserInfo
         在$ projection.functional_responsible = _functionalUserInfo.userName上
     将[0..1]与ZTT_I_USERS关联为_technicalUserInfo
         在$ projection.technical_responsible = _technicalUserInfo.userName上
 {
    //ZTT_ISSUES
     @ Search.defaultSearchElement:true
     @ ObjectModel.readOnly:正确
     关键项目代码,
     @ Search.defaultSearchElement:true
     @ ObjectModel.readOnly:正确
     关键代码,
     @ Search.defaultSearchElement:true
     描述,
     @ Search.defaultSearchElement:true
     状态,
     估计,
     time_unit,
     end_on,
     负责任的
     技术负责任的
     crea_date_time,
     crea_uname,
     lchg_date_time,
     lchg_uname,

   /*关联*/
     @ ObjectModel.association.type:[#TO_COMPOSITION_PARENT,#TO_COMPOSITION_ROOT]
     _项目,
     _functionalUserInfo,
     _technicalUserInfo

 }
 

有人知道导致错误的原因吗? 在750中,它可以毫无问题地激活。

谢谢!

JaimeRodríguez

(16.6 kB)