SAP Cloud for Customer里的product list创建:

我创建一个ID为161的product list,维护三个product进去:

三个product ID如下:

找到该product list对应的UI:COD_ProductList_OWL

这个UI对应的后台BO为ProductBusinessPartnerRelation:

新建一个C4C OData服务,取名productListOData:

BO选择刚才在UI designer里找到的ProductBusinessPartnerRelation:

选中BO之后,接下来选择BO节点,从Root出发:

对于该OData的权限控制,选择Produt Lists视图:

使用OData服务通过一次http调用,同时返回该product list包含的三个product:
https:// my52.c4c.saphybriscloud.cn /sap/c4c/odata/cust/v1/productlistodata/ProductBusinessPartnerRelationCollection? $filter=ID eq '161'&$expand=ProductBusinessPartnerRelationProduct
我在C4C系统里添加的三个产品,包含在OData响应结构的ProductBusinessPartnerRelationProduct节点里:

展开这个子节点下面的三个对象,分别对应着product list里的三个产品:

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