<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reading the DBTABLOG Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399114#M534278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code, I am getting output like #8#0#0# # #2#0#0#8#1#2#1#2#...... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same code without any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me in this if you have done something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if possible can I see the final code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt; Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 14:22:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-26T14:22:24Z</dc:date>
    <item>
      <title>Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399107#M534271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have developed a program to read the DBTABLOG Table entries which keeps a Log Records of Table Changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On update of an entry in any table (say TCJ1T), DBTABLOG stores the entry that was updated ie. the old entry. &lt;/P&gt;&lt;P&gt;TO get the new entry I read the key fields of the table TCJ1T form DBTABLOG and query TCJ1T using a select query. The issue is that if an entry is updated twice I can only get the latest updated record if I read the table TCJ1T and the previously updated value is lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to read the old value , new value using DBTABLOG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ashwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 04:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399107#M534271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T04:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399108#M534272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with select command accepting duplicates,so that you will get all values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 04:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399108#M534272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399109#M534273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the select query to read from main table. I read all vaues from DBTABLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a single entry in a Table say TCJ1T with a particular primary key.&lt;/P&gt;&lt;P&gt; say EN : LA : Logical Accounting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make 3 changes to the text Logical accounting &lt;/P&gt;&lt;P&gt;Logical accounting -&amp;gt; Logical accounting1&lt;/P&gt;&lt;P&gt;Logical accounting1 -&amp;gt; Logical accounting2&lt;/P&gt;&lt;P&gt;Logical accounting2 -&amp;gt; Logical accounting3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my 3 DBTABLOG entries in logdata field contains the values Logical accounting,Logical accounting1,Logical accounting2 ( old value of the field that was updated ). I will get the new value Logical accounting3 from the table but not from the logdata field of DBTABLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue here is that I can only use DBTABLOG to read the old values of an updated record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 04:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399109#M534273</guid>
      <dc:creator>ashwin_bhat</dc:creator>
      <dc:date>2007-06-15T04:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399110#M534274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i see ur logic ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 05:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399110#M534274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T05:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399111#M534275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE-POOLS : stprt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : tables_list TYPE HASHED TABLE OF stprt_tlist WITH UNIQUE KEY tab, table_list TYPE stprt_tlist.&lt;/P&gt;&lt;P&gt;DATA : log TYPE stprt_log_stable_type, log_wa TYPE dbtablog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table structures for main data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF st_tcj1tdata,&lt;/P&gt;&lt;P&gt;logdate LIKE dbtablog-logdate,&lt;/P&gt;&lt;P&gt;logtime LIKE dbtablog-logtime,&lt;/P&gt;&lt;P&gt;optype LIKE dbtablog-optype,&lt;/P&gt;&lt;P&gt;langu LIKE tcj1t-langu,&lt;/P&gt;&lt;P&gt;prart LIKE tcj1t-prart,&lt;/P&gt;&lt;P&gt;pratx LIKE tcj1t-pratx,&lt;/P&gt;&lt;P&gt;END OF st_tcj1tdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal tables for main data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: it_tcj1tdata LIKE TABLE OF st_tcj1tdata,&lt;/P&gt;&lt;P&gt;      wa_tcj1tdata LIKE st_tcj1tdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_tabnm(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get table name from user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;table_list-tab = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Append table name&lt;/P&gt;&lt;P&gt;INSERT table_list INTO TABLE tables_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the log records from table dbtablog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Time interval to be changed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DBLOG_READ_TABLE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    from_day        = sy-datum&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FROM_TIME       = '000000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    to_day          = sy-datum&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TO_TIME         = '235959'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    obj_list        = tables_list&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_LIST       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOG_KEYS        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    log_list        = log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PERFORMS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TRANSLATE p_tabnm TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM get_tcj1t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_tcj1t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_langu LIKE tcj1t-langu,&lt;/P&gt;&lt;P&gt;        l_prart LIKE tcj1t-prart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_tcj1tdata.&lt;/P&gt;&lt;P&gt;  REFRESH it_tcj1tdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT log INTO log_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WRITE : / log_wa-logdata.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert the hex data into string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loc_xstring = log_wa-logdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_abap_conv_in_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        input       = loc_xstring&lt;/P&gt;&lt;P&gt;        encoding    = 'UTF-8'&lt;/P&gt;&lt;P&gt;        replacement = '?'&lt;/P&gt;&lt;P&gt;        ignore_cerr = abap_true&lt;/P&gt;&lt;P&gt;      RECEIVING&lt;/P&gt;&lt;P&gt;        conv        = loc_conv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;        CALL METHOD loc_conv-&amp;gt;read&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            data = loc_string.&lt;/P&gt;&lt;P&gt;      CATCH cx_sy_conversion_codepage.&lt;/P&gt;&lt;P&gt;*-- Should ignore errors in code conversions&lt;/P&gt;&lt;P&gt;      CATCH cx_sy_codepage_converter_init.&lt;/P&gt;&lt;P&gt;*-- Should ignore errors in code conversions&lt;/P&gt;&lt;P&gt;      CATCH cx_parameter_invalid_type.&lt;/P&gt;&lt;P&gt;      CATCH cx_parameter_invalid_range.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read the primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_langu = loc_string+3(1).&lt;/P&gt;&lt;P&gt;    l_prart = loc_string+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE pratx&lt;/P&gt;&lt;P&gt;    FROM tcj1t INTO CORRESPONDING FIELDS OF wa_tcj1tdata&lt;/P&gt;&lt;P&gt;    WHERE langu = l_langu&lt;/P&gt;&lt;P&gt;    AND prart = l_prart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_tcj1tdata-langu = l_langu.&lt;/P&gt;&lt;P&gt;    wa_tcj1tdata-prart = l_prart.&lt;/P&gt;&lt;P&gt;    wa_tcj1tdata-logdate = log_wa-logdate.&lt;/P&gt;&lt;P&gt;    wa_tcj1tdata-logtime = log_wa-logtime.&lt;/P&gt;&lt;P&gt;    wa_tcj1tdata-optype = log_wa-optype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_tcj1tdata TO it_tcj1tdata.&lt;/P&gt;&lt;P&gt;    CLEAR wa_tcj1tdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display Output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_tcj1tdata INTO wa_tcj1tdata.&lt;/P&gt;&lt;P&gt;    WRITE: / wa_tcj1tdata-optype, wa_tcj1tdata-langu, wa_tcj1tdata-prart, wa_tcj1tdata-pratx.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_TCJ1T_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 06:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399111#M534275</guid>
      <dc:creator>ashwin_bhat</dc:creator>
      <dc:date>2007-06-15T06:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399112#M534276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i  m  facing same  kind  of problem, hw  did  u  solve  it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls  let  me  know  i  m in  urgency  of  it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx  a  lot  in  advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 15:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399112#M534276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399113#M534277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue was solved when I noticed the behaviour of DBTABLOG after transport.&lt;/P&gt;&lt;P&gt;When we transport our customizing request from System A to system B then on System B only the latest Update entry gets made. Hence I used this entry to read from main table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 07:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399113#M534277</guid>
      <dc:creator>ashwin_bhat</dc:creator>
      <dc:date>2009-01-27T07:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399114#M534278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code, I am getting output like #8#0#0# # #2#0#0#8#1#2#1#2#...... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same code without any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help me in this if you have done something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if possible can I see the final code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt; Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 14:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399114#M534278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the DBTABLOG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399115#M534279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Age old thread, and what is the added benefit over transaction SCU3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-dbtablog-table/m-p/2399115#M534279</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-26T15:02:57Z</dc:date>
    </item>
  </channel>
</rss>

