這篇文章主要講解了“怎么創(chuàng)建SAP C4C Product list并用OData服務(wù)消費”,文中的講解內(nèi)容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“怎么創(chuàng)建SAP C4C Product list并用OData服務(wù)消費”吧!
SAP Cloud for Customer里的product list創(chuàng)建:
我創(chuàng)建一個ID為161的product list,維護三個product進去:
三個product ID如下:
找到該product list對應(yīng)的UI:COD_ProductList_OWL
這個UI對應(yīng)的后臺BO為ProductBusinessPartnerRelation:
新建一個C4C OData服務(wù),取名productListOData:
BO選擇剛才在UI designer里找到的ProductBusinessPartnerRelation:
選中BO之后,接下來選擇BO節(jié)點,從Root出發(fā):
對于該OData的權(quán)限控制,選擇Produt Lists視圖:
使用OData服務(wù)通過一次http調(diào)用,同時返回該product list包含的三個product:
https:///sap/c4c/odata/cust/v1/productlistodata/ProductBusinessPartnerRelationCollection?$filter=ID eq '161'&$expand=ProductBusinessPartnerRelationProduct
我在C4C系統(tǒng)里添加的三個產(chǎn)品,包含在OData響應(yīng)結(jié)構(gòu)的ProductBusinessPartnerRelationProduct節(jié)點里:
展開這個子節(jié)點下面的三個對象,分別對應(yīng)著product list里的三個產(chǎn)品:
感謝各位的閱讀,以上就是“怎么創(chuàng)建SAP C4C Product list并用OData服務(wù)消費”的內(nèi)容了,經(jīng)過本文的學習后,相信大家對怎么創(chuàng)建SAP C4C Product list并用OData服務(wù)消費這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!