未知实体" ZXXX"类型为" CDS"-在Fiori Elements应用中创建/更新/删除条目时出错

2020-09-03 05:05发布

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

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


同事们好!

我在基于CDS的Fiori Elements List报告应用程序中遇到了上述问题,该CDS又基于BO视图,如文档中所述:

https: //help.sap.com/doc/saphelp_nw751abap/7.51.0/de-DE/97/1e03cd952a47458e57f87fc566a8f3/content.htm?no_cache=true

这是上面的简单版本,但在我的环境中仍然无法使用:

表ztmp_sales_order:

 @ EndUserText.label:"销售订单-测试"
 @ AbapCatalog.enhancementCategory:#NOT_EXTENSIBLE
 @ AbapCatalog.tableCategory:#透明
 @ AbapCatalog.deliveryClass:#A
 @ AbapCatalog.dataMaintenance:#LIMITED

 定义表ztmp_sales_order {
   关键客户端:abap.clnt不为null;
   键zcustomer:kunnr不为null;
   ztotal:dec07;
 }
 

BO视图ZDTMP_I_SALES_ORDER:

 @ AbapCatalog.sqlViewName:'ZDTMP_I_SALORD'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#检查
 @ EndUserText.label:"销售订单-测试"

 @ ObjectModel.semanticKey:'zcustomer'
 @ ObjectModel.modelCategory:#BUSINESS_OBJECT
 @ ObjectModel.compositionRoot:正确
 @ ObjectModel.transactionalProcessingEnabled:正确
 @ ObjectModel.writeActivePersistence:'ztmp_sales_order'

 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是

 将视图ZDTMP_I_SALES_ORDER定义为从ztmp_sales_order {
     关键的zcustomer,
     总和
 }
 

消费视图ZDTMP_C_SALES_ORDER:

 @ AbapCatalog.sqlViewName:'ZDTMP_C_SALORD'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"销售订单-测试"

 @ ObjectModel.semanticKey:['zcustomer']
 @ ObjectModel.transactionalProcessingEnabled:正确
 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是

 @ UI.headerInfo:{typeName:'Ordem de Venda',typeNamePlural:'Ordem de Venda'}

 @ OData.publish:正确

 将视图ZDTMP_C_SALES_ORDER定义为从ZDTMP_I_SALES_ORDER中选择的视图{
     关键的zcustomer,
     总和
 }
 

激活上述对象后,在我的网关系统中激活OData服务并在WebIDE中创建列表报告Fiori Elements App,在测试该应用程序时,任何CUD操作都会发生以下错误:

这是来自Transação/IWFND/ERROR_LOG的日志:

这是Fiori应用程序控制台消息:

2019-09-03 15:20:17.878455发生以下问题:HTTP请求失败500,内部服务器错误,{"错误":{"代码":" SY/530","消息":{" lang" :" pt"," value":"未知实体'ZDTMP_C_SALES_ORDER'类型'CDS'"}," innererror":{" application":{" component_id":""," service_namespace":"/img/SAP/"," service_id":" ZDTMP_C_SALES_ORDER_CDS"," service_version":" 0001"}," transactionid":" 674C6AC694E40090E005D6E3CC6AD03D","时间戳记":" 20190903132015.2361060"," Error_Resolution":{" SAP_Transactions":"对于后端事务处理:"/ERROR_LOG在SAP Gateway集线器系统上并搜索带有上述时间戳的条目以获取更多详细信息"," SAP_Note":"请参阅SAP Note 1797736进行错误分析( https://service.sap.com/sap/support/notes/1797736)"," Batch_SAP_Note":"请参见 SAP 关于使用$ batch的详细信息的注释1869434( https://service.sap.com/sap/support/notes/1869434)"}," errordetails":[{" code ":" CX_SADL_ENTITY","消息" :""未知实体'ZDTMP_C_SALES_ORDER'类型'CDS'"," 属性引用":"","严重性":"错误","目标":""},{"代码":"/img/IWBEP/CX_MGW_MED_EXCEPTION ","消息":" Ocorreu umaexceção"," propertyref":"","严重性":"错误","目标":""}]}}}}-

我在论坛或文档中找不到有关该消息的任何信息。 你能帮我解决这个问题吗?

也许我遗漏了一些东西,但文档并不清楚。

谢谢!

(57.4 kB)

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

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


同事们好!

我在基于CDS的Fiori Elements List报告应用程序中遇到了上述问题,该CDS又基于BO视图,如文档中所述:

https: //help.sap.com/doc/saphelp_nw751abap/7.51.0/de-DE/97/1e03cd952a47458e57f87fc566a8f3/content.htm?no_cache=true

这是上面的简单版本,但在我的环境中仍然无法使用:

表ztmp_sales_order:

 @ EndUserText.label:"销售订单-测试"
 @ AbapCatalog.enhancementCategory:#NOT_EXTENSIBLE
 @ AbapCatalog.tableCategory:#透明
 @ AbapCatalog.deliveryClass:#A
 @ AbapCatalog.dataMaintenance:#LIMITED

 定义表ztmp_sales_order {
   关键客户端:abap.clnt不为null;
   键zcustomer:kunnr不为null;
   ztotal:dec07;
 }
 

BO视图ZDTMP_I_SALES_ORDER:

 @ AbapCatalog.sqlViewName:'ZDTMP_I_SALORD'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#检查
 @ EndUserText.label:"销售订单-测试"

 @ ObjectModel.semanticKey:'zcustomer'
 @ ObjectModel.modelCategory:#BUSINESS_OBJECT
 @ ObjectModel.compositionRoot:正确
 @ ObjectModel.transactionalProcessingEnabled:正确
 @ ObjectModel.writeActivePersistence:'ztmp_sales_order'

 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是

 将视图ZDTMP_I_SALES_ORDER定义为从ztmp_sales_order {
     关键的zcustomer,
     总和
 }
 

消费视图ZDTMP_C_SALES_ORDER:

 @ AbapCatalog.sqlViewName:'ZDTMP_C_SALORD'
 @ AbapCatalog.compiler.compareFilter:是
 @ AbapCatalog.preserveKey:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"销售订单-测试"

 @ ObjectModel.semanticKey:['zcustomer']
 @ ObjectModel.transactionalProcessingEnabled:正确
 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是

 @ UI.headerInfo:{typeName:'Ordem de Venda',typeNamePlural:'Ordem de Venda'}

 @ OData.publish:正确

 将视图ZDTMP_C_SALES_ORDER定义为从ZDTMP_I_SALES_ORDER中选择的视图{
     关键的zcustomer,
     总和
 }
 

激活上述对象后,在我的网关系统中激活OData服务并在WebIDE中创建列表报告Fiori Elements App,在测试该应用程序时,任何CUD操作都会发生以下错误:

这是来自Transação/IWFND/ERROR_LOG的日志:

这是Fiori应用程序控制台消息:

2019-09-03 15:20:17.878455发生以下问题:HTTP请求失败500,内部服务器错误,{"错误":{"代码":" SY/530","消息":{" lang" :" pt"," value":"未知实体'ZDTMP_C_SALES_ORDER'类型'CDS'"}," innererror":{" application":{" component_id":""," service_namespace":"/img/SAP/"," service_id":" ZDTMP_C_SALES_ORDER_CDS"," service_version":" 0001"}," transactionid":" 674C6AC694E40090E005D6E3CC6AD03D","时间戳记":" 20190903132015.2361060"," Error_Resolution":{" SAP_Transactions":"对于后端事务处理:"/ERROR_LOG在SAP Gateway集线器系统上并搜索带有上述时间戳的条目以获取更多详细信息"," SAP_Note":"请参阅SAP Note 1797736进行错误分析( https://service.sap.com/sap/support/notes/1797736)"," Batch_SAP_Note":"请参见 SAP 关于使用$ batch的详细信息的注释1869434( https://service.sap.com/sap/support/notes/1869434)"}," errordetails":[{" code ":" CX_SADL_ENTITY","消息" :""未知实体'ZDTMP_C_SALES_ORDER'类型'CDS'"," 属性引用":"","严重性":"错误","目标":""},{"代码":"/img/IWBEP/CX_MGW_MED_EXCEPTION ","消息":" Ocorreu umaexceção"," propertyref":"","严重性":"错误","目标":""}]}}}}-

我在论坛或文档中找不到有关该消息的任何信息。 你能帮我解决这个问题吗?

也许我遗漏了一些东西,但文档并不清楚。

谢谢!

(57.4 kB)
付费偷看设置
发送
3条回答
Nan4612
1楼 · 2020-09-03 05:27.采纳回答

@ ObjectModel.transactionalProcessingDelegated:是

我在您的消费视图中发现至少一个错误

南山jay
2楼-- · 2020-09-03 05:15

您是否可以通过网关客户端调用盖特威服务? (交易记录/IWFND/SUTIL_GW_CLIENT)

Cikesha
3楼-- · 2020-09-03 05:22

哦,我明白你的意思了。 在使用情况视图中,它应该为@ ObjectModel.transactionalProcessingDelegated:true,而不是@ ObjectModel.transactionalProcessingEnabled:true。

我已经进行了更改并可以正常工作。

非常感谢您!

一周热门 更多>