zoukankan      html  css  js  c++  java
  • SAP CRM订单抬头级别的组织架构数据是如何自动拷贝到行项目的

    Standard behavior: I have maintained Organizational management data in Service Order Header:

    And if we add a product to this service order as line item, the header organization data will automatically be copied to item.

    How this automatic data flow is achieved? Once the product IMU is maintained in item level, function module CRM_ORDER_MAINTAIN is triggered with following input:


    Within the callstack there is an event AFTER_CREATE raised against object ORDERADM_I:

    Which event listeners are registered for this object? Check registration table CRMC_EVENT_CALL, there we can find function module CRM_ORGMAN_PRODUCT_CHANGED_EC which actually is responsible to copy the organizational data from header to item.

    This screenshot gives a hint that how the registered event callback function module is called:

    Reason why item level organization data is read-only

    Check the source code of organizational management view, the layout of it in the runtime is generated by the configuration metadata:

    And when debugging the code where HTML native code for UI element is generated, I find all UI controls are marked as read only according to the code line line 225:

    The logic to determine whether a field should be rendered as read only or editable is again done in application code and the result is returned to UI framework.

    The comment in line 13 clearly shows that the organizational management data in item level should always be read only.

    Technical storage updated on 2017-05-09

    When you maintain header level organization data, a link is created triggered by CRM_ORGMAN_CREATE_OW:

    This will lead to an insertion of one record in table CRMD_LINK:


    21 means ORGMAN:

    And when a new product is created, the corresponding link to item will be created by CRM_ORGMAN_PRODUCT_CHANGED_EC mentioned previously:

    Once item is also saved successfully, we will have two records in CRMD_LINK, one links header with its organizational data and the other links item.

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

  • 相关阅读:
    前端微服务
    日志系统的设计
    js解决数据精度问题
    前端取不到header 里面的内容问题
    sql server 数据库查询 json 数据乱码
    IDEA 根据 DCEVM + Hotswap Agent 实现项目热部署
    Redis 常用命令
    Spring Data JPA native query 分页
    十八年开发经验分享(06)递归程序构造
    十八年开发经验分享(07)递归程序设计
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13544905.html
Copyright © 2011-2022 走看看