SAP CRM OData模型里的addressable为true的含义
Sent: Wednesday, December 3, 2014 6:35 PM
Subject: what does addressable = true mean
Opportunity Odata model里有三個(gè)entity set mark成address = true:
SAP help里的解釋是mark成address = true的entity set能夠直接通過url訪問,比如如下兩個(gè)例子:document history和maxhit.
而對于其他通過$expand訪問的entity set, 比如Attachments,product等等,雖然表面上也是通過url直接訪問:
但是根據(jù)SAP help里的定義,framework在訪問這些entity set時(shí),總是先拿到root entity set,即Oppportunity,再執(zhí)行expand操作。
下面的例子是Framework處理documentHistory的讀操作:框架直接call GET_ENTITYSET method直接根據(jù)傳入的guid將history返回:
但是對于這個(gè)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出發(fā):
line 28先讀取Opp header,再call line 41的read function 讀取需要expand的sub entity set信息。
要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的SAP CRM OData模型里的addressable为true的含义的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 努比亚Z50把骁龙8 Gen2干到250
- 下一篇: 英特尔专利证实 Meteor Lake