2020-08-20 08:33发布
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我正在上openSAP课程"使用SAPUI5开发Web应用程序",我正确地完成了所有步骤,直到尝试从ES5目标中检索OData。
一旦我运行index.html文件,它会询问用户名和密码,一旦我提供相同的凭据登录到SAP Gateway-Demo System(ES5),它就无法工作。 登录到ES5的SAP Easy Access即可。
我该怎么做才能解决这个问题?
感谢和问候。
嗨,胡安,
在创建您在Cloud Cockpit中配置的目标时,您可能出错了。
您是否使用过客户端002? 如果不是,您的目的地将指向另一个客户端,这就是为什么您无法进行身份验证的原因。
这是有效的目标文件的内容。
将其保存在文本文件中,然后将其导入为目的地。
导入后,您唯一要做的就是输入凭据以将其存储在目的地中
#Password = <<导出时已删除现有密码/证书>> # #Wed Feb 12 21:50:09 UTC 2020 描述= ES5 类型= HTTP 认证=基本认证 WebIDEUsage = odata_abap,ui5_execute_abap,dev_abap,bsp_execute_abap 名称= ES5 WebIDEEnabled = true 网址= https \://sapes5.sapdevcenter.com ProxyType =互联网 sap-client = 002 用户=输入您的用户此处 WebIDESystem = ES5
最诚挚的问候,
安德烈
嗨,艾哈迈德,代码在我最后的评论中。
谢谢。
安德烈,谢谢您的快速回复。 看来我可以使用307成功的连接来测试连接。 请参见下面的截图。 尽管如此,当我运行index.html文件时,它仍继续询问凭据(与我用来测试目标的凭据相同)。
您认为我的manifest.json文件或neo-app.json文件有问题吗?
安德烈,
我在同一课程中面临类似的问题。 我可以在初始应用程序中检索数据,但是当我要通过模板创建应用程序时,ES5目标在"服务URL选择"列表中不可用。 最近3天一直在尝试。 我该怎么办?
预先感谢
Leonardo Vannucci
嗨Jaun
请共享您的描述符文件(manifest.json)和连接文件(neo-app.json)的内容。
最好的问候
嗨艾哈迈德,
这是我的manifest.json:
{" _version":" 1.3.0"," sap.app":{" _version":" 1.3.0"," id":" opensap.myapp"," type":"应用程序"," i18n":" i18n/i18n.properties"," title":" {{appTitle}}"," description":" {{appDescription}}"," applicationVersion":{" version":" 1.0.0"} ," dataSources":{" ES5":{" uri":"/img/destinations/ES5/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/"," type":" OData"," settings":{" odataVersion": " 2.0"}}}}," sap.ui":{" _version":" 1.3.0"," technology":" UI5"," deviceTypes":{" desktop":true," tablet":true, " phone":true}," supportedThemes":[" sap_bluecrystal"]}," sap.ui5":{" _version":" 1.2.0"," rootView":{" viewName":" opensap.myapp.view .App","类型":" XML"," id":" app"}," handleValidation":true," autoPrefixId":true," dependencies":{" minUI5Version":" 1.34"," libs": {" sap.ui.core":{" minVersion":" 1.34.0"}," sap.m":{" minVersion":" 1.34.0"}," sap.ui.layout":{" minVersion ":" 1.34.0"}}},"模型":{" i18n":{"类型":" sap.ui.model.resource.ResourceModel","设置":{" bundleN ame":" opensap.myapp.i18n.i18n"}}," helloPanel":{" type":" sap.ui.model.json.JSONModel"," uri":" model/HelloPanel.json"}," address":{" type":" sap.ui.model.json.JSONModel"," uri":" model/Address.json"},"":{" dataSource":" ES5"}}," contentDensities" :{" compact":true," cozy":true}}}
和neo-app.json:
{" welcomeFile":" index.html"," routes":[{" path":"/img/resources"," target":{" type":" service"," name":" sapui5", " entryPath":"/img/resources"}," description":" SAPUI5 Resources"},{" path":"/img/test-resources"," target":{" type":" service"," name":" sapui5"," entryPath":"/img/test-resources"}," description":" SAPUI5测试资源"},{" path":"/img/destinations/ES5"," target":{" type":"目的地" ,"名称":" ES5"},"描述":" ES5演示服务"}]}
谢谢
最多设置5个标签!
嗨,胡安,
在创建您在Cloud Cockpit中配置的目标时,您可能出错了。
您是否使用过客户端002? 如果不是,您的目的地将指向另一个客户端,这就是为什么您无法进行身份验证的原因。
这是有效的目标文件的内容。
将其保存在文本文件中,然后将其导入为目的地。
导入后,您唯一要做的就是输入凭据以将其存储在目的地中
最诚挚的问候,
安德烈
嗨,艾哈迈德,代码在我最后的评论中。
谢谢。
安德烈,谢谢您的快速回复。 看来我可以使用307成功的连接来测试连接。 请参见下面的截图。 尽管如此,当我运行index.html文件时,它仍继续询问凭据(与我用来测试目标的凭据相同)。
您认为我的manifest.json文件或neo-app.json文件有问题吗?
谢谢。
安德烈,
我在同一课程中面临类似的问题。 我可以在初始应用程序中检索数据,但是当我要通过模板创建应用程序时,ES5目标在"服务URL选择"列表中不可用。 最近3天一直在尝试。 我该怎么办?
预先感谢
Leonardo Vannucci
嗨Jaun
请共享您的描述符文件(manifest.json)和连接文件(neo-app.json)的内容。
最好的问候
嗨艾哈迈德,
这是我的manifest.json:
{" _version":" 1.3.0"," sap.app":{" _version":" 1.3.0"," id":" opensap.myapp"," type":"应用程序"," i18n":" i18n/i18n.properties"," title":" {{appTitle}}"," description":" {{appDescription}}"," applicationVersion":{" version":" 1.0.0"} ," dataSources":{" ES5":{" uri":"/img/destinations/ES5/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/"," type":" OData"," settings":{" odataVersion": " 2.0"}}}}," sap.ui":{" _version":" 1.3.0"," technology":" UI5"," deviceTypes":{" desktop":true," tablet":true, " phone":true}," supportedThemes":[" sap_bluecrystal"]}," sap.ui5":{" _version":" 1.2.0"," rootView":{" viewName":" opensap.myapp.view .App","类型":" XML"," id":" app"}," handleValidation":true," autoPrefixId":true," dependencies":{" minUI5Version":" 1.34"," libs": {" sap.ui.core":{" minVersion":" 1.34.0"}," sap.m":{" minVersion":" 1.34.0"}," sap.ui.layout":{" minVersion ":" 1.34.0"}}},"模型":{" i18n":{"类型":" sap.ui.model.resource.ResourceModel","设置":{" bundleN ame":" opensap.myapp.i18n.i18n"}}," helloPanel":{" type":" sap.ui.model.json.JSONModel"," uri":" model/HelloPanel.json"}," address":{" type":" sap.ui.model.json.JSONModel"," uri":" model/Address.json"},"":{" dataSource":" ES5"}}," contentDensities" :{" compact":true," cozy":true}}}
和neo-app.json:
{" welcomeFile":" index.html"," routes":[{" path":"/img/resources"," target":{" type":" service"," name":" sapui5", " entryPath":"/img/resources"}," description":" SAPUI5 Resources"},{" path":"/img/test-resources"," target":{" type":" service"," name":" sapui5"," entryPath":"/img/test-resources"}," description":" SAPUI5测试资源"},{" path":"/img/destinations/ES5"," target":{" type":"目的地" ,"名称":" ES5"},"描述":" ES5演示服务"}]}
谢谢
一周热门 更多>