通过ABAP视图进行CRUD Odata

2020-08-27 16:49发布

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

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


大家好,

我创建了具有CRUD支持的ABAP CDS视图:

 @ AbapCatalog.sqlViewName:'ZXIFUNDCENTER'
 @ AbapCatalog.compiler.compareFilter:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"自定义:Fundcenter主数据"


 @ ObjectModel.compositionRoot:正确
 @ ObjectModel.writeActivePersistence:'fmfctr'
                
 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是


 @ OData.publish:正确
 将视图ZX_I_FUNDCENTER定义为从fmfctr中选择{
     关键要求为FundCenterClient,
     关键人物是FundCenterFMArea,
     主要的基金名称是FundCenter,
     关键数据b为FundCenterValidFrom,
     关键datbis为FundCenterValidTo,
     作为FundCenterCompanyCode,
     name1作为FundCenterName,
     strasse作为FundCenterStreet,
     postlz作为FundCenterZipCode,
     land1作为FundCenterCountry
 }
 

我通过/IWFND/MAINT_SERVICE成功激活了生成的ODATA。 但是,当我通过SAPUI5执行创建操作时,出现以下错误消息:

 HTTP请求失败500,服务器错误,{"错误":{"代码":" SY/530","消息":{" lang":" de","值":"引发了异常。"  }," innererror":{" application":{" component_id":""," service_namespace":"/img/SAP/"," service_id":" ZX_I_FUNDCENTER_CDS"," service_version":" 0001"}," transactionid":  " 99BF6A88E7700050E0058B3E9522FF3B","时间戳":" 20170227110426.7994220"," Error_Resolution":{" SAP_Transaction":"在SAP Gateway集线器系统(系统别名S4H​​ANHA)上运行事务/IWFND/ERROR_LOG,并使用上面的时间戳搜索条目以了解更多详细信息"  ," SAP_Note":"请参阅SAP Note 1797736进行错误分析(https://service.sap.com/sap/support/notes/1797736)"},"errordetails":[{"code":"CX_SADL_ENTITY_SRVICE_NOT_SUPP","  message":"实体〜ZX_I_FUNDCENTER不支持所请求的服务"," propertyref":""," severity":"错误"," target":""},{" code":"/img/IWBEP/CX_MGW_MED_EXCEPTION"  ," message":"引发异常"," propertyref":""," severity":"错误"," target":""}]}}}} 

有人知道为什么这行不通。 ODATA服务运行正常。 我能够读取数据。

最诚挚的问候

Manjinder

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

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


大家好,

我创建了具有CRUD支持的ABAP CDS视图:

 @ AbapCatalog.sqlViewName:'ZXIFUNDCENTER'
 @ AbapCatalog.compiler.compareFilter:是
 @ AccessControl.authorizationCheck:#NOT_REQUIRED
 @ EndUserText.label:"自定义:Fundcenter主数据"


 @ ObjectModel.compositionRoot:正确
 @ ObjectModel.writeActivePersistence:'fmfctr'
                
 @ ObjectModel.createEnabled:是
 @ ObjectModel.deleteEnabled:是
 @ ObjectModel.updateEnabled:是


 @ OData.publish:正确
 将视图ZX_I_FUNDCENTER定义为从fmfctr中选择{
     关键要求为FundCenterClient,
     关键人物是FundCenterFMArea,
     主要的基金名称是FundCenter,
     关键数据b为FundCenterValidFrom,
     关键datbis为FundCenterValidTo,
     作为FundCenterCompanyCode,
     name1作为FundCenterName,
     strasse作为FundCenterStreet,
     postlz作为FundCenterZipCode,
     land1作为FundCenterCountry
 }
 

我通过/IWFND/MAINT_SERVICE成功激活了生成的ODATA。 但是,当我通过SAPUI5执行创建操作时,出现以下错误消息:

 HTTP请求失败500,服务器错误,{"错误":{"代码":" SY/530","消息":{" lang":" de","值":"引发了异常。"  }," innererror":{" application":{" component_id":""," service_namespace":"/img/SAP/"," service_id":" ZX_I_FUNDCENTER_CDS"," service_version":" 0001"}," transactionid":  " 99BF6A88E7700050E0058B3E9522FF3B","时间戳":" 20170227110426.7994220"," Error_Resolution":{" SAP_Transaction":"在SAP Gateway集线器系统(系统别名S4H​​ANHA)上运行事务/IWFND/ERROR_LOG,并使用上面的时间戳搜索条目以了解更多详细信息"  ," SAP_Note":"请参阅SAP Note 1797736进行错误分析(https://service.sap.com/sap/support/notes/1797736)"},"errordetails":[{"code":"CX_SADL_ENTITY_SRVICE_NOT_SUPP","  message":"实体〜ZX_I_FUNDCENTER不支持所请求的服务"," propertyref":""," severity":"错误"," target":""},{" code":"/img/IWBEP/CX_MGW_MED_EXCEPTION"  ," message":"引发异常"," propertyref":""," severity":"错误"," target":""}]}}}} 

有人知道为什么这行不通。 ODATA服务运行正常。 我能够读取数据。

最诚挚的问候

Manjinder

付费偷看设置
发送
2条回答
打个大熊猫
1楼-- · 2020-08-27 17:05

您找到任何解决方案了吗? 我也面临着类似的错误。

路亽曱_Ryan
2楼-- · 2020-08-27 17:08

您找到解决方案了吗?

请更新

一周热门 更多>