Accessing the output of transaction SCU3 in a z program
I want to access the change logs of a table in my z program. The DBTABLOG table doesn't have all the data I need but the transaction SCU3 outputs what I want.
I couldn't find if this data is in a table so instead I tried to submit the program that SCU3 runs (rsvtprot) and get the data from there (code shown below). But this doesn't give me the data. Can anyone help?
TYPES: BEGIN OF ty_abap_list.
INCLUDE STRUCTURE abaplist.
TYPES: END OF ty_abap_list.
DATA: gt_abap_list TYPE STANDARD TABLE OF ty_abap_list.
SUBMIT rsvtprot AND RETURN
EXPORTING LIST TO MEMORY USING SELECTION-SCREEN 1010
WITH cusobj EQ tabname "Table Name
WITH dbeg EQ ''
WITH tbeg EQ '000000'
WITH dend EQ ''
WITH tend EQ '235959'
WITH objfirst EQ ''
WITH tabfirst EQ 'X'.
CALL FUNCTION 'LIST_FROM_MEMORY'
listobject = gt_abap_list
not_found = 1
OTHERS = 2.