美文网首页SAPSAP 修行SAP札记
如何创建SAP C4C Product list并用OData服

如何创建SAP C4C Product list并用OData服

作者: _扫地僧_ | 来源:发表于2020-03-20 08:48 被阅读0次

    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://my592.c4c.saphybriscloud.cn/sap/c4c/odata/cust/v1/productlistodata/ProductBusinessPartnerRelationCollection?filter=ID eq '161'&expand=ProductBusinessPartnerRelationProduct
    我在C4C系统里添加的三个产品,包含在OData响应结构的ProductBusinessPartnerRelationProduct节点里:

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

    要获取更多Jerry的原创文章,请关注公众号"汪子熙":


    相关文章

      网友评论

        本文标题:如何创建SAP C4C Product list并用OData服

        本文链接:https://www.haomeiwen.com/subject/suyryhtx.html