如何让你的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.


如何让你的SAP CRM应用支持附件上传

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.

如何让你的SAP CRM应用支持附件上传如何让你的SAP CRM应用支持附件上传如何让你的SAP CRM应用支持附件上传

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


上一篇:在VB2005中使用零长度数组


下一篇:虚拟化促进软件授权模型不断发展