这些字段为:CHANGED_AT, HEAD_CHANGED_AT和CRM_CHANGED_AT

Have a look at Order header table CRMD_ORDERADM_H and you can find there are three different times. When, where and how is each populated?

CHANGED_AT

There is a scenario that the field CHANGED_AT is changed, but HEAD_CHANGED_AT remains untouched. The common scenario is that you make some changes on order line item only, for example change the description of line item.
When the change is to be persisted, a new timestamp is populated and filled to both CHANGED_AT and CRM_CHANGED_AT field.

The usage of CRM_CHANGED_AT is clearly explained in the source code.

Kindly notice the difference between changed_at from database buffer and latest value.

In line 163, the field value filled based on database buffer is overwritten with the latest data:


The purpose is, after this assignment, in line 166 we can use simple “=” to compare whether there are some other changes on ORDERADM_H besides these three fields ( since in line 163~165 we forcefully ensure the equality of them ).

Since we actually only make changes on item, so line 239 will not be executed – head_changed_at remains unchanged.

Now in line 335 the header object buffer is now changed with latest value of changed_at:

So in function module CRM_ORDER_UPDATE_TABLES_DETERM, an entry will be determined for update, which is simply because the changed_at value now in object buffer and database buffer are different. See comparison screenshot in debugger:

After the update function module is executed, the CHANGED_AT and CRM_CHANGED_AT is now persisted to header table successfully.

HEAD_CHANGED_AT

The scenario with this field involved is quite straight-forward, for example just make changes on header description. In this case HEAD_CHANGED_AT will be overwritten with CHANGED_AT, since now header object buffer and database buffer has different value for field DESCRIPTION:


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

SAP CRM One Order header数据库表几个和时间戳相关的字段相关推荐

  1. SAP CRM One Order关于索引表CRMD_ORDER_INDEX的一些性能问题的分析

    From: Wang, Jerry Sent: Wednesday, March 19, 2014 11:54 AM Subject: FW: custom development in IC sea ...

  2. SAP CRM中间件下载时数据库表CRMATAB为空的处理方法

    Sent: Tuesday, July 22, 2014 11:30 AM Subject: RE: how to fill empty table How to resolve empty tabl ...

  3. SAP CRM One Order框架里旧式的索引表设计原理

    本文介绍SAP CRM One Order框架里旧式的索引表设计原理. Created by Wang, Jerry on May 17, 2017 要获取更多Jerry的原创文章,请关注公众号&qu ...

  4. 基于若依框架的二次开发_SAP Commerce(原Hybris)的订单处理框架和SAP CRM One Order框架...

    最近工作重点转移到了SAP Commerce上来,正好有机会把该产品里由Java实现的订单处理框架和我之前长期工作过的,ABAP实现的SAP CRM One Order框架做个比较:基于Spring的 ...

  5. SAP CRM One Order函数CRM_Object_FILL_OW的设计原理

    标题:SAP CRM One Order函数CRM_FILL_OW的设计原理 There are totally 60 function modules in One order with namin ...

  6. SAP Commerce(原Hybris)的订单处理框架和SAP CRM One Order框架

    最近工作重点转移到了SAP Commerce上来,正好有机会把该产品里由Java实现的订单处理框架和我之前长期工作过的,ABAP实现的SAP CRM One Order框架做个比较:基于Spring的 ...

  7. SAP CRM One order appointment duration table

    本文介绍SAP CRM One order appointment duration的存储表. 要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  8. SAP CRM One Order里item quantity和CUMULAT_H的联动

    本文介绍SAP CRM One Order里item quantity和CUMULAT_H的联动机制. Created by Wang, Jerry, last modified on Apr 26, ...

  9. SAP CRM One Order scheduline buffer handling

    本文介绍SAP CRM One Order scheduline的缓存处理. 要获取更多Jerry的原创文章,请关注公众号"汪子熙":

最新文章

  1. 领导力,就是这5个问题
  2. ios 将矩形图片裁剪成圆形图片
  3. oracle索引优劣,ORACLE的五种表的优缺点概述
  4. 小米面试:字符串解码
  5. SAP Spartacus支持的语言和货币单位的数据源
  6. 笔记 — 动画效果(Css3)
  7. svm 图片加标签_基于半监督的SVM多标签图数据分类算法研究
  8. react实现异步插件_React-loadable实现组件进行异步加载
  9. FreeModbus源码获取
  10. mysql运行效率最高archive_MySQL 的优化方案总结
  11. 二进制文件和ASCII文件有何差别
  12. 4.二叉搜索树转为有序双向链表(递归算法与非递归算法)
  13. jquery显示隐藏切换_jQuery显示,隐藏,切换
  14. C语言Register关键字:利用寄存器提升访问效率
  15. vscode 启用open with live server功能,配置谷歌浏览器chrome
  16. 高超声速飞行器的建模与控制器设计
  17. 计算机电路基础 - 1,计算机电路基础1.1.doc
  18. Vuex--mapState, mapGetters, mapActions, mapMutations--使用/教程/实例
  19. Spring Boot启动之Hello World
  20. 粒子群算法在物流中心选址中的应用

热门文章

  1. Xcode的SVN提示The request timed out.的解决方案
  2. 快速了解什么是CI/CD
  3. 第一章:Java语言概述
  4. Java Properties的使用
  5. Bootstrap模态框垂直高度居中问题
  6. Java Service Wrapper
  7. java.util -- List接口
  8. [转]Qtopia2.2.0移植
  9. vue 设置代理报错;occurred while trying to proxy request xxx
  10. 文献学习(part30)--Clustering of temporal gene expression data by regularized spline regression and...