zoukankan      html  css  js  c++  java
  • 如何让你的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的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    用C#实现DES加密解密解决URL参数明文的问题
    C#数据集合分页处理
    图像处理中的hard negative mining(难例挖掘)
    目标检测最近
    Object Detection(目标检测神文)
    ssm框架整合基本步骤练习总结
    Android 数据存储之 SQLite数据库存储
    android内部存储与外部存储理解
    Android数据存储之SharePreference和内部存储
    AlertDialog和自定义对话框
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13445920.html
Copyright © 2011-2022 走看看