Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error calling FM /BEV2/ED_READ_DBLOG in ABAP Code

Former Member
0 Likes
1,362

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!

1 REPLY 1
Read only

JuanCarlosDelga
Contributor
0 Likes
1,070

Hi Alcino,

Try search before post.

http://scn.sap.com/thread/486920