如何让你的SAP CRM应用支持附件上传
This article is using a new CRM application developed in CRM7.0 EHP3 - Social media integration as example.
Prerequisite
You should have a working business object modelled in SWO1, for social media example it is CRMSOCPOST.
Then following the instructions in note 1710485 - Allow non SAP Busines Object Types, to use “Attachments”.
Totally three enhancements must be done:
(1) Function Module CRM_KW_OBJECT_EXISTENCE_CHECK
This function module is used to check whether the given business object instance existed in database table or not. The highlighted code is inserted for social media in EHP3.
You need to add a new WHEN switch for your own business object and do the check accordingly.
Pass your application database table name in line 215, the key field name (usually uuid) in line 216.
(2) CL_CRM_CM_GILCOMP_BO=>SEARCH
The BOR type which does not appear in the check below will be ignored by content management.
You should add a new statement like is_parameters-typedid = ‘your own BOR type’
(3) CL_GS_CM_BSPWDCOMPONENT_IMPL=>GET_DISPLAY_MODE
The same logic as point2.
If you need to control the enablement of the buttons in Attachment assignment block, refer to this link.
Then in your UI component you should develop a wrapper UI component which holds the Attachment assignment block.
You can refer to product wrapper component PRDCM for example.
Or if you have CRM7.0 EHP3 system you can also refer to Social Media example:
Host UI component: SMCOV
Wrapper UI component for CM: SMCCMBO
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5 sap.ui.core.Element 的概要介绍
- SAP UI5 SimpleForm layout 设计的一些推荐做法
- SAP CRM Fiori 应用的 Deep Create 行为和实现分析
- 浅谈 SAP ABAP 系统里的 ALV 输出方式实现
- SAP UI5 sap.ui.Device.media.RANGESETS 的使用介绍
- SAP UI5 sap.ui.Device.media 公有方法介绍
- 通过一个实际例子,理解 SAP UI5 sap.ui.model.odata.v2.ODataModel API 中 BindingContext 绑定上下文的概念和用法试读版
- 如何使用 SAP OData 服务向 ABAP 服务器上传文件试读版
- SAP OData 服务关于本地文件作为附件上传的一些错误消息
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- SAP MM 冻结库存的公司间STO
- 如何在 SAP BTP 上创建 Module 之间具有依赖关系的 SAP MTA 应用
- Oracle购买SAP: 开启新数据时代(oracle收购sap)
- 在sap系统设置纸张打印格式(针式打印机)详解编程语言
- (转载整理)SAP ERP常用表详解编程语言
- SAP PO的结算状态详解编程语言
- SAP字段与表的对应关系详解编程语言
- 各种SAP常用表详解编程语言
- sap数据归档详解编程语言
- SAP 采购订单抬头屏幕增强详解编程语言
- SAP R3详解编程语言
- SAP MEMORY 和ABAP MEMORY的区别详解编程语言
- SAP在Linux上安装(sap安装linux)
- 比较:Oracle与SAP的对比(oracle和sap)
- 展望未来Oracle与SAP的合作结盟前景(oracle、sap)