/$ metadata?sap-language = TR 404(找不到)问题

2020-09-08 00:09发布

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

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


嗨,

我的项目在Web IDE上运行良好,但是从URL运行时却出现以下错误:(请问有人可以提出解决方案吗?

/sap/bc/ui5_ui5/sap/zfio_financ_mng/〜21EDCFECAC57F75CA78CD16519653E4E〜5/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/$ metadata?sap-language = TR 404/{FONT) temp/1691643-1.jpg"> 1.jpg

 {
 " _version":" 1.12.0",
 " sap.app":{
 " id":" com.zfio_financ_mng",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" servicecatalog.connectivityComponentForManifest",
 " version":" 0.0.0"
 },
 "数据源": {
 " ZFMBU_BUDGET_PLAN_SRV":{
 " uri":"/img/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/",
 " type":" OData",
 "设置":{
 " odataVersion":" 2.0",
 " localUri":" localService/metadata.xml"
 }
 }
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 }
 },
 " sap.ui5":{
 " flexEnabled":否,
 " rootView":{
 " viewName":" com.zfio_financ_mng.view.App",
 " type":" XML",
 "异步":是的,
 " id":" App"
 },
 " config":{
 " fullWidth":是,
 " resourceBundle":" i18n/i18n.properties",
 " serviceConfig":{
 "名称":" ZFMBU_BUDGET_PLAN_SRV",
 " serviceUrl":"/img/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/"
 }
 },
 "依赖关系":{
 " minUI5Version":" 1.60.1",
 " libs":{
 " sap.ui.layout":{},
 " sap.ui.core":{},
 " sap.m":{},
 " sap.f":{},
 " sap.uxap":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" com.zfio_financ_mng.i18n.i18n"
 }
 },
 " app":{
 " type":" sap.ui.model.json.JSONModel",
 "设置":{},
 " uri":" model/app.json"
 },
 "":{
 " type":" sap.ui.model.odata.v2.ODataModel",
 "设置":{
 " defaultOperationMode":"服务器",
 " defaultBindingMode":" OneWay",
 " defaultCountMode":"请求"
 },
 " dataSource":" ZFMBU_BUDGET_PLAN_SRV",
 " preload":是
 }
 },
 "资源":{
 " css":[
 {
 " uri":" css/style.css"
 }
 ]
 },
 "路由":{
 " config":{
 " routerClass":" sap.f.routing.Router",
 " viewType":" XML",
 " viewPath":" com.zfio_financ_mng.view",
 " controlId":" flexibleColumnLayout",
 " transition":" slide",
 "异步":true
 },
 "路线":[
 {
 " pattern":":layout:",
 " name":" master",
 "目标":[
 "主",
 "详情"
 ]
 },
 {
 " pattern":"详细信息/{entityDetail}/{layout}",
 " name":"详细信息",
 "目标":[
 "主",
 "详情"
 ]
 },
 {
 " pattern":"详细信息/{entityDetail}/detailDetail/{entityDetailDetail}/{layout}",
 " name":" detailDetail",
 "目标":[
 "主",
 "详情",
 " detailDetail"
 ]
 }
 ],
 "目标":{
 "主人":{
 " viewName":"大师",
 " controlAggregation":" beginColumnPages"
 },
 "详细信息":{
 " viewName":"详细信息",
 " controlAggregation":" midColumnPages"
 },
 " detailDetail":{
 " viewName":" DetailDetail",
 " controlAggregation":" endColumnPages"
 }
 }
 }
 },
 " sap.platform.abap":{
 " uri":"/img/sap/bc/ui5_ui5/sap/zfio_fin_mng/webapp",
 " _version":" 1.1.0"
 }
 }
 
 <!DOCTYPE html>
 
 <头>
 
 
 
 
 
 
 预算计划


 
 


 
 
1.jpg (36.0 kB)

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

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


嗨,

我的项目在Web IDE上运行良好,但是从URL运行时却出现以下错误:(请问有人可以提出解决方案吗?

/sap/bc/ui5_ui5/sap/zfio_financ_mng/〜21EDCFECAC57F75CA78CD16519653E4E〜5/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/$ metadata?sap-language = TR 404/{FONT) temp/1691643-1.jpg"> 1.jpg

 {
 " _version":" 1.12.0",
 " sap.app":{
 " id":" com.zfio_financ_mng",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" servicecatalog.connectivityComponentForManifest",
 " version":" 0.0.0"
 },
 "数据源": {
 " ZFMBU_BUDGET_PLAN_SRV":{
 " uri":"/img/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/",
 " type":" OData",
 "设置":{
 " odataVersion":" 2.0",
 " localUri":" localService/metadata.xml"
 }
 }
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 }
 },
 " sap.ui5":{
 " flexEnabled":否,
 " rootView":{
 " viewName":" com.zfio_financ_mng.view.App",
 " type":" XML",
 "异步":是的,
 " id":" App"
 },
 " config":{
 " fullWidth":是,
 " resourceBundle":" i18n/i18n.properties",
 " serviceConfig":{
 "名称":" ZFMBU_BUDGET_PLAN_SRV",
 " serviceUrl":"/img/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/"
 }
 },
 "依赖关系":{
 " minUI5Version":" 1.60.1",
 " libs":{
 " sap.ui.layout":{},
 " sap.ui.core":{},
 " sap.m":{},
 " sap.f":{},
 " sap.uxap":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" com.zfio_financ_mng.i18n.i18n"
 }
 },
 " app":{
 " type":" sap.ui.model.json.JSONModel",
 "设置":{},
 " uri":" model/app.json"
 },
 "":{
 " type":" sap.ui.model.odata.v2.ODataModel",
 "设置":{
 " defaultOperationMode":"服务器",
 " defaultBindingMode":" OneWay",
 " defaultCountMode":"请求"
 },
 " dataSource":" ZFMBU_BUDGET_PLAN_SRV",
 " preload":是
 }
 },
 "资源":{
 " css":[
 {
 " uri":" css/style.css"
 }
 ]
 },
 "路由":{
 " config":{
 " routerClass":" sap.f.routing.Router",
 " viewType":" XML",
 " viewPath":" com.zfio_financ_mng.view",
 " controlId":" flexibleColumnLayout",
 " transition":" slide",
 "异步":true
 },
 "路线":[
 {
 " pattern":":layout:",
 " name":" master",
 "目标":[
 "主",
 "详情"
 ]
 },
 {
 " pattern":"详细信息/{entityDetail}/{layout}",
 " name":"详细信息",
 "目标":[
 "主",
 "详情"
 ]
 },
 {
 " pattern":"详细信息/{entityDetail}/detailDetail/{entityDetailDetail}/{layout}",
 " name":" detailDetail",
 "目标":[
 "主",
 "详情",
 " detailDetail"
 ]
 }
 ],
 "目标":{
 "主人":{
 " viewName":"大师",
 " controlAggregation":" beginColumnPages"
 },
 "详细信息":{
 " viewName":"详细信息",
 " controlAggregation":" midColumnPages"
 },
 " detailDetail":{
 " viewName":" DetailDetail",
 " controlAggregation":" endColumnPages"
 }
 }
 }
 },
 " sap.platform.abap":{
 " uri":"/img/sap/bc/ui5_ui5/sap/zfio_fin_mng/webapp",
 " _version":" 1.1.0"
 }
 }
 
 <!DOCTYPE html>
 
 <头>
 
 
 
 
 
 
 预算计划


 
 


 
 
1.jpg (36.0 kB)
付费偷看设置
发送
9条回答
哎,真难
1楼-- · 2020-09-08 00:45

为什么要自己创建模型?

 sap.ui.model.odata.ODataModel这在数千年前就已弃用。

lukcy2020
2楼-- · 2020-09-08 00:53

您好,Majer先生,

谢谢您的答复,是的,我已将其添加到启动板中。 你还特别提到什么吗?

问题是,项目在基本URI中创建了GUID类型的ID。 我调试了Component-dbg.js,发现它在其中创建。

/sap/bc/ui5_ui5/sap/zfio_finance_m/〜32101C7F9C7D79F30662AB961B04BFA5〜5/sap/opu/odata/sap/ZFMBU_BUDGET_PLAN_SRV/$ metadata?sap-language = EN

有趣的是,它也在webapp中创建了一个。

CJones
3楼-- · 2020-09-08 00:45

所有这些都是不必要的...

为什么这样做?

//DefaultBase模型
 var oModel = newsap.ui.model.odata.ODataModel(sServiceUrl,{
 json:是的,
 loadMetadataAsync:true,headers:{'Cache-Control':'max-age = 0'}});
 oModel.setCountSupported(false);
 this.setModel(oModel);//Application'aoDatayısetetmek图标
ZJXianG
4楼-- · 2020-09-08 00:38

您还可以共享您的Component.js文件吗?

愤怒的猪头君
5楼-- · 2020-09-08 00:51

嗨,Merve,

请尝试使用Tcode SMICM从网关清除缓存。 这样可以解决您的问题。

如果清除缓存没有帮助,请尝试以下操作:

清除webapps文件夹中组件预加载文件的内容,重建项目并部署。

如果webapps文件夹中不存在该文件,请尝试创建一个没有内容的新文件。

谢谢

Vaibhav Maheshwari

me_for_i
6楼-- · 2020-09-08 00:53
< pre> sap.ui.define([ " sap/ui/core/UIComponent", 'sap/ui/model/json/JSONModel', " sap/ui/设备", 'sap/f/library' ],函数(UIComponent,JSONModel,Device,fioriLibrary){ "使用严格"; 返回UIComponent.extend(" com.zfio_finance_m.Component",{ 元数据:{ 清单:" json", 包括:[" css/style.css"], 依赖项:{ 库:[" sap.m"," sap.ui.layout"," sap.ui.core"," sap.f.routing"," sap.uxap"], 组件: [] } }, 初始化:函数(){ var mConfig = this.getMetadata()。getConfig(); //清单içerisindekiconfig/serviceConfig属性okumakiçin(服务i导入aldığındaotomatik生成oluyor) var sServiceUrl = mConfig.serviceConfig.serviceUrl; //默认基本模型 var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl,{ json:是的, loadMetadataAsync:是的, 标头:{ '缓存控制':'max-age = 0' } }); oModel.setCountSupported(false); this.setModel(oModel); //应用oDatayı设置etmek图标 var oModelApp = new JSONModel(); this.setModel(oModelApp," appJSONModel"); //App.view.xml'deki app>/layoutalanınıyönetmekiçin //我正好在此行上得到错误消息****************************************** UIComponent.prototype.init.apply(this,arguments); var oRouter = this.getRouter(); oRouter.attachBeforeRouteMatched(this._onBeforeRouteMatched,this); oRouter.initialize(); }, _onBeforeRouteMatched:函数(oEvent){ var oModelApp = this.getModel(" appJSONModel"), sLayout = oEvent.getParameters()。arguments.layout; //如果没有布局参数,请设置默认布局(通常为OneColumn) 如果(!sLayout){ sLayout = fioriLibrary.LayoutType.OneColumn; } oModelApp.setProperty("/img/layout",sLayout); } }); });

一周热门 更多>