Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Display content in table DDLOG

$
0
0

Today when I am reading this SAP help, I find out this sentence:


clipboard1.png

Then 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.

clipboard1.png

So I have chosen one table with buffer activated, and made some changes on it.

clipboard2.png

Since I can only query this table via timestamp, I cannot figure out which entry is for my change on CRMC_PROC_TYPE.

clipboard3.png

Although 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:

clipboard4.png

Then I have found two useful stuff:

clipboard5.png

1. table buffer synchronization monitor

 

use report RSDBBUF3:

clipboard6.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:

clipboard7.png


Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>