首页 > Windows开发 > 详细

SAP CRM Relationship API设计原理

时间:2020-01-30 15:46:55      阅读:88      评论:0      收藏:0      [点我收藏+]

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.

技术分享图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
技术分享图片

SAP CRM Relationship API设计原理

原文:https://www.cnblogs.com/sap-jerry/p/12242795.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!