首页 > 其他 > 详细

SAP CRM订单抬头级别的组织架构数据是如何自动拷贝到行项目的

时间:2020-08-22 12:38:12      阅读:83      评论:0      收藏:0      [点我收藏+]

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

SAP CRM订单抬头级别的组织架构数据是如何自动拷贝到行项目的

原文:https://www.cnblogs.com/sap-jerry/p/13544905.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!