Application Development 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: 

logdata of DBTABLOG

Former Member
0 Kudos

hi,

i want to bring the value of logdata of dbtablog table.  Since ist type is LRAW i couldn't manage it.

here is the code;

data : l_data type string,

          convin type refer to cl_abap_conv_in_ce.

call method cl_abap_conv_in_ce=>create

   exporting

     Encoding = 'UTF-8'

     endian = 'L'

*   ignore_cerr = ?

*   replacement = ?

    Input =wa_tablog-logdata.

     recevinig

     conv = convin.

call method convin->read

  importing

   data = l_data.

  l_data = l_data+0(wa_tablog-dataln).

but it bring the value as

#X#X# # # #0#3

#X#X# # # #0#6

in fact it should be

03

06

thanks in advance

Erdem

1 ACCEPTED SOLUTION

former_member186077
Active Participant

Hi,

Can you try using encoding as 4103 and endian as L. If it does not work , try using 4102 and endian as B

Thanks and Regards,

Sriranjani.

4 REPLIES 4

former_member192467
Active Participant
0 Kudos

Hi,

The below URL may help you with the code:

Get old and new values from DBTABLOG table | SCN

Regards,

Renjith Michael

0 Kudos

Hi Renjith,

thanks for your reply. example code in link i could not adapt to mine..

can you maybe help with it ?

for example how to define gty_log and gt_fldlist ?

regards

former_member186077
Active Participant

Hi,

Can you try using encoding as 4103 and endian as L. If it does not work , try using 4102 and endian as B

Thanks and Regards,

Sriranjani.

0 Kudos

Hi,

thanks for your help.

i tried and now it shows;

XX       03#######

XX       06#######

Regards