SAP数据库表DDLOG的设计原理

简介: SAP数据库表DDLOG的设计原理

Today when I am reading this SAP help, I find out this sentence:image.pngThen I have opened the definition of table DDLOG in the system and found I cannot directly view the content of field NOTEBOOK due to its data type LRAW.


image.pngSo I have chosen one table with buffer activated, and made some changes on it.image.pngSince I can only query this table via timestamp, I cannot figure out which entry is for my change on CRMC_PROC_TYPE.image.pngAlthough I can fetch the content of NOTEBOOK in ABAP code via SELECT *, I do not how to parse this raw data to extract useful information.

So I perform where used list on this table:


image.pngThen I have found two useful stuff:image.png(1) table buffer synchronization monitor

use report RSDBBUF3:image.png(2) FM SBUF_SEL_DDLOG_RECS to parse content of field DDLOG-NOTEBOOK

I wrote a simple report to use this FM:DATA: lt_sync_tab    TYPE sync_tab_t,

     lv_tstamp_from TYPE ddlog-timestamp,

     lv_tstamp_to   TYPE ddlog-timestamp.

lv_tstamp_from   = '20160621061955'.

lv_tstamp_to    = '20160623000000'.

CALL FUNCTION 'SBUF_SEL_DDLOG_RECS'

 EXPORTING

   from_time      = lv_tstamp_from

   to_time        = lv_tstamp_to

   max_cnt        = 10000

   keep_db2_tstmp = 'X'

 CHANGING

   sync_tab       = lt_sync_tab.

SORT lt_sync_tab BY tabname.Now I can find the corresponding entry for my changes from changing parameter lt_sync_tab by table name:image.png

相关文章
|
21天前
|
SQL 数据库 索引
关于 SAP ABAP REPOSRC 数据库表在 HANA 中的 DDL Definition
关于 SAP ABAP REPOSRC 数据库表在 HANA 中的 DDL Definition
18 1
关于 SAP ABAP REPOSRC 数据库表在 HANA 中的 DDL Definition
|
2月前
|
存储 SQL 数据库
关于 SAP ABAP 数据库表 GTADIR
关于 SAP ABAP 数据库表 GTADIR
27 0
|
21天前
|
数据库 存储 监控
什么是 SAP HANA 内存数据库 的 Delta Storage
什么是 SAP HANA 内存数据库 的 Delta Storage
16 0
什么是 SAP HANA 内存数据库 的 Delta Storage
|
1天前
|
存储 SQL 数据库
数据库库表结构设计:原理、实例与最佳实践
数据库库表结构设计:原理、实例与最佳实践
11 0
|
21天前
|
数据库 存储 BI
SAP ABAP CDS View 源代码存储的数据库表揭秘和其他相关数据库表介绍试读版
SAP ABAP CDS View 源代码存储的数据库表揭秘和其他相关数据库表介绍试读版
12 0
SAP ABAP CDS View 源代码存储的数据库表揭秘和其他相关数据库表介绍试读版
|
21天前
|
数据库
迈入 SAP CDS View 世界的前置知识 - SAP ABAP 数据库视图介绍试读版
迈入 SAP CDS View 世界的前置知识 - SAP ABAP 数据库视图介绍试读版
10 0
迈入 SAP CDS View 世界的前置知识 - SAP ABAP 数据库视图介绍试读版
|
1月前
|
缓存 Java 数据库连接
mybatis 数据库缓存的原理
MyBatis 是一个流行的 Java 持久层框架,它封装了 JDBC,使数据库交互变得更简单、直观。MyBatis 支持两级缓存:一级缓存(Local Cache)和二级缓存(Global Cache),通过这两级缓存可以有效地减少数据库的访问次数,提高应用性能。
282 1
|
2月前
|
存储 关系型数据库 数据库
数据库索引的原理,为什么要用 B+树,为什么不用二叉树?
数据库索引的原理,为什么要用 B+树,为什么不用二叉树?
|
2月前
|
NoSQL Java API
分布式锁【数据库乐观锁实现的分布式锁、Zookeeper分布式锁原理、Redis实现的分布式锁】(三)-全面详解(学习总结---从入门到深化)
分布式锁【数据库乐观锁实现的分布式锁、Zookeeper分布式锁原理、Redis实现的分布式锁】(三)-全面详解(学习总结---从入门到深化)
298 0
|
2月前
|
XML JavaScript 数据格式
SAP UI5 XML Preprocessor 的工作原理和 instructions 指令详解
SAP UI5 XML Preprocessor 的工作原理和 instructions 指令详解
28 0

热门文章

最新文章