ITPub博客

首页 > 应用开发 > IT综合 > SAP CRM附件的技术属性设计原理

SAP CRM附件的技术属性设计原理

原创 IT综合 作者:i042416 时间:2020-08-06 09:45:16 0 删除 编辑

When you create attachments for your business objects via cl_crm_documents=>create_with_table, you have to pass in an internal table for attachment property. The name-list of attribute name could be got from attachment class via function module SDOK_PHIO_ATTRIBUTES_GET. For example, attachment class CRM_P_DOC has 36 attributes.

The attributes could also be viewed in tcode DMWB:

The actual attribute value could be got via function module CRM_KW_PROPERTIES_GET:

The importing parameters are guid of logical/physical object instances:

The attribute values are stored in PROPERTIES internal table.

Do you know why in the backend table, the property is stored in field PROP09?

actually it is because I hard code the content of relative url as the attachment file name.

ls_prop-name = 'KW_RELATIVE_URL'.
    ls_prop-value = iv_file_name.
    APPEND ls_prop TO lt_prop.

The index of attribute could also be found in tcode DMWB.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2709633/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
SAP成都研究院开发专家,SAP社区导师,SAP中国技术大使。

注册时间:2018-01-20

  • 博文量
    1820
  • 访问量
    802897