前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM Relationship API设计原理

SAP CRM Relationship API设计原理

原创
作者头像
Jerry Wang
修改2020-02-10 16:14:03
2760
修改2020-02-10 16:14:03
举报

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.

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • IV_RELTYPE
  • IV_ATTR_TYPE
  • IT_LINK_IDENTS
  • ET_INTERLINKAGE - relationship header data - generic data
  • ET_IL_ATTR
  • Approach1
  • Approach2
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com