日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

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

發布時間:2023/12/19 数据库 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP CRM One Order header数据库表几个和时间戳相关的字段 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

這些字段為: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数据库表几个和时间戳相关的字段的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。