好比我建立了一个Sales Order(销售订单)后,如何用代码的方式取出这些经过SAP Partner determination自动填充的Involved Parties信息呢? git
一种方法能够使用SAP C4C Odata service。github
工做中心 Administrator->Odata Service Explorer, 浏览器
从下拉菜单里选择Custom Odata services,点击New新建一个OData服务。 3d
选中销售订单对应的BO:CustomerQuote,节点选择Party,这个节点下面就包含了销售订单全部的业务伙伴数据: blog
不一样的业务伙伴经过Party节点上的RoleCategoryCode和RoleCode区分,因此这两个字段同样要选上: get
最后在浏览器里访问Odata,获得全部Party节点的数据: https://<host>.c4c.saphybriscloud.cn/sap/c4c/odata/cust/v1/zjerrysalesorder/CustomerQuoteCollection('00163E7209C61EE8B7B05E4D176BAB6B')/CustomerQuoteParty it
剩下的就是用代码消费这个OData服务了。具体步骤参考SAP官方的github:io
https://github.com/SAP/C4CODATAAPIDEVGUIDEservice
要获取更多Jerry的原创文章,请关注公众号"汪子熙":方法