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

  • 相关阅读:
    [置顶] 对于最新的Android病毒,Smack完全可以抵御
    Android的Recovery中font_10x10.h字库文件制作
    杭电 汉诺塔问题总结
    [置顶] Android访问控制系统测试与评估
    HDU4662+无
    进制转换练习题两道
    X Shell 4配色方案[Solarized Dark]
    hdu2795Billboard(线段树)
    H面试程序(10): 字符串包含问题
    find-k-pairs-with-smallest-sums
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13445920.html
Copyright © 2011-2022 走看看