前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM 事务码CRMV_EVENT的用法

SAP CRM 事务码CRMV_EVENT的用法

作者头像
Jerry Wang
发布2020-02-17 15:42:37
3840
发布2020-02-17 15:42:37
举报

how can I know the business scenario about CRM_PRODUCT_I_A_CHANGE_ORGM_EC an

Question

I would like to know the design about when CRM_PRODUCT_I_A_CHANGE_ORGM_EC will be called.

Answer

tcode CRMV_EVENT, type CRM_PRODUCT_I_A_CHANGE_ORGM_EC and press F8:

We get result below.

It means whenever the sales area data is created or changed by Organization model determination or manual change by end user, these two FMs will be called by one order framework.

Why CRM_PRODUCT_I_A_CHANGE_ORGM_EC should be registered for organization model change? This could be analyzed from business point of view. Inside CRM_PRODUCT_I_A_CHANGE_ORGM_EC, you can find attributes from settype CRMM_PR_SALESG are read by the function module in line 102 and then filled in internal buffer.

We know this settype is organization unit dependent settype, which means its value could only be determined by a specific sales organization + distribution channel. As a result the purpose of registering CRM_PRODUCT_I_A_CHANGE_ORGM_EC on AFTER_CREATE & AFTER_CHANGE event on organization model is: once there is new change on organization model data, the corresponding value for settype CRMM_PR_SALESG must be reread accordingly. With the help of one order framework, here the design pattern “Observer” is achieved: CRM_PRODUCT_I_A_CHANGE_ORGM_EC is one of the many listeners for Organization model change, it subscribes the change via tcode CRMV_EVENT. Whenever Organization model changes, it publishes the change event by function module below. Al listeners will catch up this event and do tasks accordingly. CRM_PRODUCT_I_A_CHANGE_ORGM_EC, as one of the listeners, will fetch latest data based on the new organization model data accordingly.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-01-31 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Question
  • Answer
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档