SAP Cloud for Customer Account和individual customer的区别
在SAP Cloud for Customer的Customers工作中心里,有三个视图:Accounts,Contacts和Individual Customers。
这三种主数据的区别是什么?我们可以从它们后台的BO模型开始分析。

Account视图的UI模型:
/BYD_COD/SalesOnDemand/Account/UI/COD_Account_TI.TI.uicomponent

后台BO为Customers:

再看Contact视图:

Contact:

后台BO:BusinessPartner

再看Individual Customer:

6$/BYD_COD/ServiceOnDemand/PrivateAccount/COD_SEOD_IND_ACCOUNT_TI.TI.uicomponent
模型依然是Customers。

那么Account和Individual Customer都用了Customers作为BO,有什么区别?
答案是,Account数据,后台的BO数据CategoryCode为2:

而individual Customer的CategoryCode为1:


需求:使用nodejs代码在SAP Cloud for Customer里创建Individual customer实例。
代码:
var createAndBind = require(’…/jerryapp/service/createAccountinC4C.js’);
createAndBind(“o0KlM1i2_4-zHRmDk-IWGRlA1Cjc”);
上述代码基于微信open IDo0KlM1i2_4-zHRmDk-IWGRlA1Cjc在系统里创建一个Individual customer。
createAccountinC4C.js的具体实现在Jerry的github上:
https://github.com/i042416/wechat/blob/master/jerryapp/service/createAccountInC4C.js
在命令提示行里输入命令node createAccountAndSocialProfile.js:
上述代码会自动在系统里创建Individual customer,并打印出ID:



- 点赞
- 收藏
- 关注作者
评论(0)