2014 Nov 03 4:32 PM
Hello dear experts,
I'm quite new to ABAP programming and I'm having some difficulties to build an infoset to be used in a query for this purpose: to check the changes logs of TSTC table via DBTABLOG, displaying the new and old values (for this case, to check whether the transaction is blocked in SM30 or not and its history).
I was told to use the FM '/BEV2/ED_READ_DBLOG' in order to get the changes (old and new values) and I really worked when I tested via SE37, however I don't know how to call this function module correctly inside my ABAP code. I've already checked here in SCN and other places but I really couldn't find any example or tip to use the FM '/BEV2/ED_READ_DBLOG' correctly.
I tried the following code:
CALL FUNCTION '/BEV2/ED_READ_DBLOG'
EXPORTING
FROM_DAY = zfrom_day
TO_DAY = zto_day
ACCESS_DATABASE = 'X'
TABLES
T_DBLOG = lt_dblog
T_TABLES = lt_tables
EXCEPTIONS
DATA_NOT_FOUND
TAB_NOT_FOUND.
As far as I could understand, the changed will be stored in the T_DBLOG variable, right? I'm attaching the error message.
Could you guys help me out with an example? Thanks a lot in advance for your patience!
Hello dear experts,
I'm quite new to ABAP programming and I'm having some difficulties to build an infoset to be used in a query for this purpose: to check the changes logs of TSTC table via DBTABLOG, displaying the new and old values (for this case, to check whether the transaction is blocked in SM30 or not and its history).
I was told to use the FM '/BEV2/ED_READ_DBLOG' in order to get the changes (old and new values) and I really worked when I tested via SE37, however I don't know how to call this function module correctly inside my ABAP code. I've already checked here in SCN and other places but I really couldn't find any example or tip to use the FM '/BEV2/ED_READ_DBLOG' correctly.
I tried the following code:
CALL FUNCTION '/BEV2/ED_READ_DBLOG'
EXPORTING
FROM_DAY = zfrom_day
TO_DAY = zto_day
ACCESS_DATABASE = 'X'
TABLES
T_DBLOG = lt_dblog
T_TABLES = lt_tables
EXCEPTIONS
DATA_NOT_FOUND
TAB_NOT_FOUND.
As far as I could understand, the changed will be stored in the T_DBLOG variable, right? I'm attaching the error message.
Could you guys help me out with an example? Thanks a lot in advance for your patience!
2014 Nov 03 5:11 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |