ITPub博客

首页 > 应用开发 > IT综合 > SAP CRM OData模型里的addressable为true的含义

SAP CRM OData模型里的addressable为true的含义

原创 IT综合 作者:i042416 时间:2020-03-07 09:08:31 0 删除 编辑

#  Sent: Wednesday, December 3, 2014 6:35 PM

Subject: what does addressable = true mean

Opportunity Odata model里有三个entity set mark成address = true:

SAP help里的解释是mark成address = true的entity set能够直接通过url访问,比如如下两个例子:document history和maxhit.

而对于其他通过$expand访问的entity set, 比如Attachments,product等等,虽然表面上也是通过url直接访问:

但是根据SAP help里的定义,framework在访问这些entity set时,总是先拿到root entity set,即Oppportunity,再执行expand操作。

下面的例子是Framework处理documentHistory的读操作:框架直接call GET_ENTITYSET method直接根据传入的guid将history返回:

但是对于这个expand的url而言:

https://wdciw01.wdf.sap.corp:7080/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities(guid'3440B5B1-73AE-1ED4-9ED9-F49FBCEA5CC2')?$expand=Products,ChangeDocs,Competitors,OpportunityLogSet&sap-client=001

框架的处理是先从Opportunity出发:

line 28先读取Opp header,再call line 41的read function 读取需要expand的sub entity set信息:


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2678929/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1984653