<?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: Interpreting  DBTABLOG entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164342#M121401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Logic will track all the changes from_date to &lt;/P&gt;&lt;P&gt;    to_date. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    Select all the record from dbtablog table &lt;/P&gt;&lt;P&gt;    where date in s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at  it_dblog.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    for each log key &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  select from  table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I had same requirement in our project,but I had to &lt;/P&gt;&lt;P&gt;  display changes to all table.I worked on &lt;/P&gt;&lt;P&gt;  3.1 h version where dbtabprt table contained all&lt;/P&gt;&lt;P&gt;  change information.In above verisons it is replaced &lt;/P&gt;&lt;P&gt;  by dbtablog table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I can send you sample code. give me ur personal &lt;/P&gt;&lt;P&gt;  email ID(Code is of 3.1 H version just replace&lt;/P&gt;&lt;P&gt;           the table with ur version).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please try above logic you will get more idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2006 13:38:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-16T13:38:33Z</dc:date>
    <item>
      <title>Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164336#M121395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a report which lists the changes to two SAP tables QPMK,CRHD through Tcodes (QS21,QS23) and (CRQ1,CRQ2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change log is activated . &lt;/P&gt;&lt;P&gt;I knew that &amp;lt;b&amp;gt;DBTABLOG&amp;lt;/b&amp;gt; contains some information about these changes. &lt;/P&gt;&lt;P&gt;Also, SCU3 is a Tcode where we can go and analyse the changes for a period of time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report RSVTPROT also gives us the same in a better way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt;with all that said, I am developing a report whose logic should be on same grounds as report RSVTPROT. But &amp;lt;b&amp;gt;RSVTPROT&amp;lt;/b&amp;gt; is program aimed at any table user chooses.This led to a very general code which is unnecessary for me. &lt;/P&gt;&lt;P&gt;The layout needed is totally different from that of list generated by executing &amp;lt;b&amp;gt;RSVTPROT.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a way to get the information about the changes to the table , OLD_and_NEW values for the fields, user ...etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Do I do that. &lt;/P&gt;&lt;P&gt;Please give me your valuable suggessions....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.,&lt;/P&gt;&lt;P&gt;Sri..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sri  Velagapudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 09:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164336#M121395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164337#M121396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the tables CDHDR and CDPOS? These store the document changes for most documents.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table CDHDR, try typing in the tcodes for which you want the changelog, and get the values of OBJECTCLAS and OBJECTID. Using these values you can select from CDPOS, and will get the old and new values for each of the changed variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 11:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164337#M121396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164338#M121397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I developed a similar report showing old and new &lt;/P&gt;&lt;P&gt;   values for any changes on table field. &lt;/P&gt;&lt;P&gt;   You can use dbtabprt,dbtablog table to get &lt;/P&gt;&lt;P&gt;   old values and cdhdr cdpos table to get new values&lt;/P&gt;&lt;P&gt;   of table field changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 11:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164338#M121397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T11:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164339#M121398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am familiar with CDHDR and CDPOS .... They are not keeping track of the changes to these tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is because, the ChangeLogs for these tables have been activated manually by us .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QPMK/CHDR are not those main tables (like MARA) which are activated and changes can be tracked in CDHDR/CDPOS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also saw that there are no entries in DBTABPRT. &lt;/P&gt;&lt;P&gt;Only DBTABLOG is keeping track of the changes, I donno how to get the values of changed fields and field names because of the way it stores. &lt;/P&gt;&lt;P&gt;Also I checked couple of Func modules like DBLOG_READ. I did not find a F-Module which will give what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies ....&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 12:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164339#M121398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T12:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164340#M121399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   Try following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Get folowing details from DBTABLOG table&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    logdate,logtime,logid,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    tablename,logkey(Contains your key data )&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    logdata(Contains non-key values but are stored in&lt;/P&gt;&lt;P&gt;           hexadecimal format) &lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;1)  Use nametab_get function module to get all key fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Build dynamic select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if tablename = 'QPMK'&lt;/P&gt;&lt;P&gt;                     ( To get new value)&lt;/P&gt;&lt;P&gt;   select * from &lt;/P&gt;&lt;P&gt;          into table it_qpmk         &lt;/P&gt;&lt;P&gt;          from table QPMK&lt;/P&gt;&lt;P&gt;          where &amp;lt;key fields&amp;gt; = logkey.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; else &lt;/P&gt;&lt;P&gt;                 ( To get new value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from &lt;/P&gt;&lt;P&gt;          into table it_crhd        &lt;/P&gt;&lt;P&gt;          from table crhd&lt;/P&gt;&lt;P&gt;          where &amp;lt;key fields&amp;gt; = logkey.   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; I am assuming that you want to display only change  &lt;/P&gt;&lt;P&gt; entries of two table qpmk,crhd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 12:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164340#M121399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T12:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164341#M121400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amole, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your logic may give us values of only one change as we are going by the KEY (for QPMK/CHDR). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the report is to give every change in the entries of the tables &lt;/P&gt;&lt;P&gt;1)By period (Begin date to End date&lt;/P&gt;&lt;P&gt;2)By username and then by the Key too.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means, suppose an entry in QPMK has underwent 12 changes in a span of 4 months. The report should give OLD and NEW values on all 12 occurences when i choose those 4 months period.  In the same manner , changes made by a user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;If I understood your logic in a wrong way, do let me know. &lt;/P&gt;&lt;P&gt;As its only two tables , I do know the key fields for them and that helps in avoiding the Function Module.....But thanks for informing me about one useful function module.......I just played with it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---Thanks for all the effort and still seems we havent reached a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do this since 2 days and then I posted it here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for a solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri ,,,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 13:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164341#M121400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164342#M121401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Logic will track all the changes from_date to &lt;/P&gt;&lt;P&gt;    to_date. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    Select all the record from dbtablog table &lt;/P&gt;&lt;P&gt;    where date in s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at  it_dblog.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    for each log key &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  select from  table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I had same requirement in our project,but I had to &lt;/P&gt;&lt;P&gt;  display changes to all table.I worked on &lt;/P&gt;&lt;P&gt;  3.1 h version where dbtabprt table contained all&lt;/P&gt;&lt;P&gt;  change information.In above verisons it is replaced &lt;/P&gt;&lt;P&gt;  by dbtablog table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I can send you sample code. give me ur personal &lt;/P&gt;&lt;P&gt;  email ID(Code is of 3.1 H version just replace&lt;/P&gt;&lt;P&gt;           the table with ur version).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please try above logic you will get more idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 13:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164342#M121401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T13:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164343#M121402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I shall give it a shot and then reply you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 14:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164343#M121402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164344#M121403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My email id is jagadsri@yahoo.com &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I missed that in my previous reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Amole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 14:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164344#M121403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164345#M121404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you kindly also send me the same code in case you have it.&lt;/P&gt;&lt;P&gt;My email is karthik.boyapalli@gmail.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164345#M121404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T20:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting  DBTABLOG entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164346#M121405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Used CDHDR and CDPOS Table for Material Changes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZQA_MATERIAL_CHANGE_LIST no standard page heading line-size 132.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Program Name : ZQA_MATERIAL_CHANGE_LIST                              *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description  : NA                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Author       : NA                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date         : NA                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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;MODIFICATION HISTORY                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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;DATE    | AUTHOR   | CHANGE #   | DESCRIPTION OF MODIFICATION        *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----" /&gt;|&lt;DEL&gt;&lt;HR originaltext="-----" /&gt;|&lt;/DEL&gt;&lt;DEL&gt;&lt;HR originaltext="-------" /&gt;|&lt;/DEL&gt;--&lt;HR originaltext="-------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;02/07/07| Seshu    | DEVK921926 | Date and Time as Ranges            *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;02/19/07| Seshu    | DEVK922062 | added Material number as range     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: bdcp, mara, makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_cdhdr   like cdhdr occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      i_cdshw   like cdshw occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECTION SCREEN ELEMENTS ------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK one&lt;/P&gt;&lt;P&gt;                          WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;Select-options: s_datum for sy-datum obligatory.&lt;/P&gt;&lt;P&gt;select-options : s_time for sy-uzeit.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of change  Seshu 02/19/2007&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reason - Added Material Number as Range Option&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*select-options : p_matnr   for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options: S_usernm  for sy-uname.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK two&lt;/P&gt;&lt;P&gt;                          WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;parameters: r_all    radiobutton group one default 'X',&lt;/P&gt;&lt;P&gt;            r_erps   radiobutton group one,&lt;/P&gt;&lt;P&gt;            r_select radiobutton group one.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF LINE, POSITION 5.&lt;/P&gt;&lt;P&gt;parameter   p_fname   like bdcp-fldname.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges r_objectid for cdhdr-objectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List of fields transmitted to ERPsy-Daisy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select-options so_fname for i_cdshw-fname no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START OF SELECTION --------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_select is initial.&lt;/P&gt;&lt;P&gt;    clear p_fname.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform set_erpsy_daisy_fields.&lt;/P&gt;&lt;P&gt;  perform get_data.&lt;/P&gt;&lt;P&gt;  perform write_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SUBROUTINES ---------------------------------------------------------*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; data: v_objectid like cdhdr-objectid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; move p_matnr to v_objectid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;loop  at s_matnr.&lt;/P&gt;&lt;P&gt;move : s_matnr-low to r_objectid-low,&lt;/P&gt;&lt;P&gt;       s_matnr-high to r_objectid-high,&lt;/P&gt;&lt;P&gt;       s_matnr-option to r_objectid-option,&lt;/P&gt;&lt;P&gt;       s_matnr-sign to r_objectid-sign.&lt;/P&gt;&lt;P&gt;append r_objectid.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**if v_objectid is initial.&lt;/P&gt;&lt;P&gt;*select * from cdhdr into table i_cdhdr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       where USERNAME in s_usernm&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       and   OBJECTCLAS = 'MATERIAL'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       and   UDATE in s_datum&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       and   utime in s_time.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*else.&lt;/P&gt;&lt;P&gt;    select * from cdhdr into table i_cdhdr&lt;/P&gt;&lt;P&gt;                        where OBJECTID in r_objectid&lt;/P&gt;&lt;P&gt;                        and   USERNAME in s_usernm&lt;/P&gt;&lt;P&gt;                        and   OBJECTCLAS = 'MATERIAL'&lt;/P&gt;&lt;P&gt;                        and   UDATE in s_datum&lt;/P&gt;&lt;P&gt;                        and   utime in s_time.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if  sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e000(zwave) with 'No Data Found for given Selection'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  write_report&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM write_report.&lt;/P&gt;&lt;P&gt;  data: v_fname(60) type c,&lt;/P&gt;&lt;P&gt;        v_changenr like i_cdhdr-changenr,&lt;/P&gt;&lt;P&gt;        v_count type i value 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort i_cdhdr by tcode changenr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;list materials created ---------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not s_datum-high is initial.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;              'Materials created since',&lt;/P&gt;&lt;P&gt;              25 s_datum-low ,39 'to',43  s_datum-high,&lt;/P&gt;&lt;P&gt;              132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;              'Materials created since',&lt;/P&gt;&lt;P&gt;               s_datum-low ,&lt;/P&gt;&lt;P&gt;              132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_cdhdr where tcode = 'MM01' or&lt;/P&gt;&lt;P&gt;                        tcode = 'MM11'.&lt;/P&gt;&lt;P&gt;    perform write_header_line using i_cdhdr.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;list materials deleted ---------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not s_datum-high is initial.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;              'Materials flagged for deletion since',&lt;/P&gt;&lt;P&gt;            43 s_datum-low ,55 'to',59  s_datum-high,&lt;/P&gt;&lt;P&gt;              132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;              'Materials flagged for deletion since',&lt;/P&gt;&lt;P&gt;              s_datum-low,&lt;/P&gt;&lt;P&gt;              132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_cdhdr where tcode = 'MM06' or&lt;/P&gt;&lt;P&gt;                        tcode = 'MM16'.&lt;/P&gt;&lt;P&gt;    perform write_header_line using i_cdhdr.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display detail for material changes ---------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  skip.&lt;/P&gt;&lt;P&gt;  if not s_datum-high is initial.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;             'Materials changed since',&lt;/P&gt;&lt;P&gt;              28 s_datum-low ,39 'to',43  s_datum-high,&lt;/P&gt;&lt;P&gt;             132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;    format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;    write: / sy-vline,&lt;/P&gt;&lt;P&gt;             'Materials changed since',&lt;/P&gt;&lt;P&gt;              s_datum-low ,&lt;/P&gt;&lt;P&gt;             132 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;display material change transactions (immediate and change)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_cdhdr where tcode = 'MM02' or&lt;/P&gt;&lt;P&gt;                        tcode = 'MM12'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  retrieve change document line items&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform get_change_positions using i_cdhdr-changenr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  display each item matching field on parameter screen, only&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ERPsy-Daisy materials, or all fields if both paramters blank&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_count = 0.&lt;/P&gt;&lt;P&gt;    loop at i_cdshw.&lt;/P&gt;&lt;P&gt;      if ( p_fname is initial or&lt;/P&gt;&lt;P&gt;           i_cdshw-fname = p_fname ) and&lt;/P&gt;&lt;P&gt;           i_cdshw-fname in so_fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      write header line if this is the first line item from change&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      order to meet above criteria&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        add 1 to v_count.&lt;/P&gt;&lt;P&gt;        if v_count = 1.&lt;/P&gt;&lt;P&gt;          if i_cdhdr-changenr &amp;lt;&amp;gt; v_changenr.&lt;/P&gt;&lt;P&gt;            if sy-index &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;              uline.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;            perform write_header_line using i_cdhdr.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        v_changenr = i_cdhdr-changenr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      write change line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        concatenate '(' i_cdshw-fname ')'&lt;/P&gt;&lt;P&gt;            into v_fname.&lt;/P&gt;&lt;P&gt;        concatenate i_cdshw-ftext v_fname&lt;/P&gt;&lt;P&gt;            into v_fname separated by space.&lt;/P&gt;&lt;P&gt;        write: / sy-vline.&lt;/P&gt;&lt;P&gt;        if i_cdshw-chngind = 'U'.      "update&lt;/P&gt;&lt;P&gt;          write 12 'Change &amp;gt;'.&lt;/P&gt;&lt;P&gt;        elseif i_cdshw-chngind = 'D' or&lt;/P&gt;&lt;P&gt;                i_cdshw-chngind = 'I'.&lt;/P&gt;&lt;P&gt;          write 12 'Deleted &amp;gt;'.&lt;/P&gt;&lt;P&gt;        elseif i_cdshw-chngind = 'I'.&lt;/P&gt;&lt;P&gt;          write 12 'Inserted &amp;gt;'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        write: v_fname,&lt;/P&gt;&lt;P&gt;               132 sy-vline.&lt;/P&gt;&lt;P&gt;        write: / sy-vline,&lt;/P&gt;&lt;P&gt;                16 'Old Value:',&lt;/P&gt;&lt;P&gt;              (40) i_cdshw-f_old,&lt;/P&gt;&lt;P&gt;               132 sy-vline,&lt;/P&gt;&lt;P&gt;               / sy-vline,&lt;/P&gt;&lt;P&gt;               16 'New Value:',&lt;/P&gt;&lt;P&gt;              (40) i_cdshw-f_new,&lt;/P&gt;&lt;P&gt;               132 sy-vline.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " write_report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  write_header_line&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM write_header_line using x_cdhdr like cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: v_date(10) type c,&lt;/P&gt;&lt;P&gt;        v_time(8) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get material description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select single maktx&lt;/P&gt;&lt;P&gt;  from makt&lt;/P&gt;&lt;P&gt;  into makt-maktx&lt;/P&gt;&lt;P&gt;  where matnr = x_cdhdr-objectid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  format color col_heading intensified off.&lt;/P&gt;&lt;P&gt;  write: / sy-vline,&lt;/P&gt;&lt;P&gt;          x_cdhdr-objectid+8(10) no-zero,&lt;/P&gt;&lt;P&gt;          (40) makt-maktx,&lt;/P&gt;&lt;P&gt;          x_cdhdr-tcode,&lt;/P&gt;&lt;P&gt;          x_cdhdr-username,&lt;/P&gt;&lt;P&gt;          x_cdhdr-udate,&lt;/P&gt;&lt;P&gt;          x_cdhdr-utime,&lt;/P&gt;&lt;P&gt;      132 sy-vline.&lt;/P&gt;&lt;P&gt;  format color off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " write_header_line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_change_positions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_change_positions using x_chgnbr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ARCHIVE_HANDLE                = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CHANGENUMBER                  = x_chgnbr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TABLEKEY                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TABLENAME                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     EDITPOS                       = i_cdshw&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    EDITPOS_WITH_HEADER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NO_POSITION_FOUND             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WRONG_ACCESS_TO_ARCHIVE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS                        = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_change_positions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  set_erpsy_daisy_fields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_erpsy_daisy_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if r_erps = 'X'.&lt;/P&gt;&lt;P&gt;    move: 'I' to so_fname-sign,&lt;/P&gt;&lt;P&gt;          'EQ' to so_fname-option,&lt;/P&gt;&lt;P&gt;          'BISMT' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MATNR' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MAKTX' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MVKE fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move 'VKORG' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'VTWEG' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'VMSTA' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'VMSTA' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'VRKME' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MSTAV' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MARA fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move 'MTART' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MATKL' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MEINS' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'EAN11' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MARC fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move 'MTVFP' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'MSTDV' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'PLIFZ' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'WERKS' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZDEPT' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP1' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP2' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP3' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP4' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP5' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP6' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'ZZATP7' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MARM fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    move 'UMREN' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;    move 'UMRES' to so_fname-low.&lt;/P&gt;&lt;P&gt;    append so_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " set_erpsy_daisy_fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is Helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interpreting-dbtablog-entries/m-p/1164346#M121405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T20:47:08Z</dc:date>
    </item>
  </channel>
</rss>

