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

  • 相关阅读:
    CDQ分治入门
    BSGS算法初探
    简析平衡树(三)——浅谈Splay
    简析平衡树(一)——替罪羊树 Scapegoat Tree
    NOIP2018初赛 解题报告
    【BZOJ1101】[POI2007] Zap(莫比乌斯反演)
    WQS二分学习笔记
    【洛谷2664】树上游戏(点分治)
    同余问题(一)——扩展欧几里得exgcd
    二叉搜索树(BST)学习笔记
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13445920.html
Copyright © 2011-2022 走看看