[SAP ABAP] Table Log

C14O_CD_OBJECTS_READ : Membaca seluruh perubahan data dari table yang bersangkutan.
Contoh :
REPORT ztest_fm401 NO STANDARD PAGE HEADING LINE-SIZE 1023.

TABLES : dd02l.

PARAMETERS : p_tbname LIKE dd02l-tabname DEFAULT 'MARA'.

SELECT-OPTIONS : s_datum FOR sy-datum NO-EXTENSION DEFAULT sy-datum.

PARAMETERS : p_objct LIKE cdhdr-objectid.

DATA : li_object_tab LIKE STANDARD TABLE OF cdkeytab WITH HEADER LINE,
li_cd_hpos_tab LIKE STANDARD TABLE OF cdred WITH HEADER LINE.

START-OF-SELECTION.
CALL FUNCTION 'C14O_CD_OBJECTS_READ'
EXPORTING
i_tablename = p_tbname
i_valfrom = s_datum-low
i_valto = s_datum-high
i_object = p_objct
TABLES
i_object_tab = li_object_tab
e_cd_hpos_tab = li_cd_hpos_tab.

LOOP AT li_cd_hpos_tab.
WRITE : / li_cd_hpos_tab-CHANGENR, '|',
li_cd_hpos_tab-USERNAME, '|',
li_cd_hpos_tab-UDATE, '|',
li_cd_hpos_tab-UTIME, '|',
li_cd_hpos_tab-TCODE, '|',
li_cd_hpos_tab-TABNAME, '|',
li_cd_hpos_tab-TABKEY, '|',
li_cd_hpos_tab-FNAME, '|',
li_cd_hpos_tab-FTEXT, '|',
li_cd_hpos_tab-F_OLD, '|',
li_cd_hpos_tab-F_NEW, '|'.

ENDLOOP.

Comments