SAP CRM Relationship API设计原理
Unlike settype, relationship does not have a dedicated read function module maintained in its metadata table. Instead, the generic read function module COM_IL_DB_READ is used.
Below is a simple explanation about each parameter of FM COM_IL_DB_READ, using read on relationship PRDCPN for example.
IV_RELTYPE
PRDCPN - relationship name
IV_ATTR_TYPE
COMT_IL_PRDCPN_ATTR_TYPE - contains relationship specific business data, in this example, the customer product id is stored in field PRID_VENDOR
IT_LINK_IDENTS
sourceguid or destiguid contains product guid. This will be used by the generic read API to select against DB table using OPEN SQL.
The exporting parameter:
ET_INTERLINKAGE - relationship header data - generic data
ET_IL_ATTR
Relationship specific data, in this example, PRID_VENDOR, stores the detail value.
Approach1
If we can enhance COM_IL_DB_READ, we then redirect the read from CRM relationship storage table to S4 relationship storage table.
Since it is not allowed to enhance SAP_ABA function module, we have to consider CDS view redirect.
Further research is needed here: compare the structure of both storage table in CRM and S4 and evaluate whether view direct is feasible or not.
Approach2
Since we can only make changes on BBPCRM, we have to copy the whole implementation which are in SAP_ABAP listed below into new function & subroutine, make needed changes ( table redirect ) and let FORM UI_GETDETAIL call those new implementations. This approach takes huge effort.
本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。
低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
Language issue for downloaded product category
When you try to edit some downloaded product categories, you may meet with this error message: The root cause is for example ERP supports language A and B, and CRM only supports A.After you perform customizing download, description in language both A and B will be downloaded to CRM. And description in B looks like below in CRM, not valid! Solution 1 Remove description B in ERP, and then do customizing download again. Solution 2 If you are working on CRM dev system, execute the following ABAP cod...
- 下一篇
How does CRM middleware knows which sites are interested with CRM loca...
You could see the following BDOC in CRM which means the BDOC will be sent to multiple external sites besides ERP. So how does CRM middleware knows which external sites must be sent with BDOC?Basically speaking it is based on subscribe - publish mechanism.Take BDOC PRODUCT_MAT for example, in view SMW3FDBDOC you can maintain callback for it: The first callback, SMOH_REPLICATION_WRAPPER_MSG, is responsible for determine responsible receiving site for this BDOC sent from CRM via middleware: This fu...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- SpringBoot2整合MyBatis,连接MySql数据库做增删改查操作
- CentOS8编译安装MySQL8.0.19
- SpringBoot2初体验,简单认识spring boot2并且搭建基础工程
- CentOS8安装Docker,最新的服务器搭配容器使用
- CentOS7,CentOS8安装Elasticsearch6.8.6
- Red5直播服务器,属于Java语言的直播服务器
- CentOS8安装MyCat,轻松搞定数据库的读写分离、垂直分库、水平分库
- Hadoop3单机部署,实现最简伪集群
- SpringBoot2编写第一个Controller,响应你的http请求并返回结果
- CentOS7编译安装Cmake3.16.3,解决mysql等软件编译问题