今天工作发现,SAP Cloud Platform上创建Destination维护的WebIDEUsage属性很有讲究:
这个属性的枚举值:
![webp](https://i-blog.csdnimg.cn/blog_migrate/c7f263e213c5f1a61fbca177ab53b121.webp?x-image-process=image/format,png)
看个例子。
我维护的是odata_gen:
![webp](https://i-blog.csdnimg.cn/blog_migrate/e6670b08c5c61b3c47af3af28533de14.webp?x-image-process=image/format,png)
根据标准文档描述,拥有odata_abap属性的Destination指向的是一个gateway系统,将在SAP webIDE创建UI5应用的向导中的service catalog界面出现,如下图所示:
![webp](https://i-blog.csdnimg.cn/blog_migrate/c949aea486274bf7b8274670872badc5.webp?x-image-process=image/format,png)
意思是终端用户可以通过Service Catalog界面,任意选择该Destination指向的gateway系统上激活的service。
![webp](https://i-blog.csdnimg.cn/blog_migrate/87cab1df0f0ca789502fb18096d5d3b8.webp?x-image-process=image/format,png)
odata_abap: 目标是个SAP gateway系统
![webp](https://i-blog.csdnimg.cn/blog_migrate/613a0297fce8323eaec0089cdf1f1445.webp?x-image-process=image/format,png)
而另一方面,如果把Destination的属性改成odata_gen:
![webp](https://i-blog.csdnimg.cn/blog_migrate/1fe3b2804bf56dab7b645afea5b630e7.webp?x-image-process=image/format,png)
此时该Destination不会出现在Service Catalog的下拉菜单里:
![webp](https://i-blog.csdnimg.cn/blog_migrate/5177ba9bafde3a5ca7f9f686cc22d54e.webp?x-image-process=image/format,png)
取而代之的是它会出现在service url里:
![webp](https://i-blog.csdnimg.cn/blog_migrate/9a3aa0c38a8de96934de81f0537d77c2.webp?x-image-process=image/format,png)
而我们必须手动维护某一个具体OData服务的地址:
/sap/opu/odata/sap/CRM_OPPORTUNITY
![webp](https://i-blog.csdnimg.cn/blog_migrate/699aa54400b7a78aa57029023a138417.webp?x-image-process=image/format,png)
![webp](https://i-blog.csdnimg.cn/blog_migrate/6eb7086f5fc4ae6dde0b80b2fc49c2d3.webp?x-image-process=image/format,png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
![webp](https://i-blog.csdnimg.cn/blog_migrate/21e50d6d4a2c5a04b56237db59346a19.webp?x-image-process=image/format,png)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2648446/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24475491/viewspace-2648446/