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

  • 相关阅读:
    Eclipse 中使用 ctrl 无法追踪函数的问题
    AJAX跨域问题
    eclipse设置svn代理
    同步IO和异步IO
    阿里云配置redis
    Centos +django+nginx
    Centos 安装nginx
    django 给前端传递HTML内容
    django项目初探
    python邮件服务
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13445920.html
Copyright © 2020-2023  润新知