<?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 cdpos in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910358#M684818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody tell how to use the FM CHANGEDOCUMENT_READ_HEADERS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 08:17:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T08:17:12Z</dc:date>
    <item>
      <title>cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910358#M684818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody tell how to use the FM CHANGEDOCUMENT_READ_HEADERS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910358#M684818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910359#M684819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ARCHIVE_HANDLE                                                            &lt;/P&gt;&lt;P&gt;DATE_OF_CHANGE                                                            &lt;/P&gt;&lt;P&gt;OBJECTCLASS                     ADRESSE                                   &lt;/P&gt;&lt;P&gt;OBJECTID                                                                  &lt;/P&gt;&lt;P&gt;TIME_OF_CHANGE                  00:00:00                                  &lt;/P&gt;&lt;P&gt;USERNAME                                                                  &lt;/P&gt;&lt;P&gt;LOCAL_TIME                                                                &lt;/P&gt;&lt;P&gt;DATE_UNTIL                      31.12.9999                                &lt;/P&gt;&lt;P&gt;TIME_UNTIL                       23:59:59                                  &lt;/P&gt;&lt;P&gt;NOPLUS_ASWILDCARD_INOBJID                                                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here for object class go to CDHDR table and see your class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CDHDR-OBJECTCLAS&lt;/P&gt;&lt;P&gt; CDHDR-OBJECTID        can be "MATERIAL' or what you r looking for just check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910359#M684819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: cdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910360#M684820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"CHANGE DOCUMENTS" in SAP Terminology&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 The same thing which u are asking&lt;/P&gt;&lt;P&gt;we had developed here. For Eg : Any change&lt;/P&gt;&lt;P&gt;in the material master will be detected&lt;/P&gt;&lt;P&gt;and a mail will be sent to the concerned&lt;/P&gt;&lt;P&gt;employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS WILL ALSO DETECT WHICH FILEDS HAVE CHANGED.&lt;/P&gt;&lt;P&gt;IT CAN ALSO GIVE, The Old Value, And The New Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This Mechanism is called CHANGE DOCUMENTS in &lt;/P&gt;&lt;P&gt;SAP Terminology&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 2 Fuction Modules are Required.&lt;/P&gt;&lt;P&gt;(They will fetch necessary data from CDHDR,CDPOS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_HEADERS&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_POSITIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The First FM gives list of all &lt;/P&gt;&lt;P&gt;records ( with change no) which have changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Loop at the above and the second FM will&lt;/P&gt;&lt;P&gt;provide the details (old-val, new-val) for&lt;/P&gt;&lt;P&gt;each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. While using 1st Fm, i used docclass as 'MATERIAL'.&lt;/P&gt;&lt;P&gt;BCOS&lt;/P&gt;&lt;P&gt;the concept of change documents is applicable&lt;/P&gt;&lt;P&gt;to other type of documents also (depends upon&lt;/P&gt;&lt;P&gt;customization)&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;Changedocument_Read_Headers :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From FM Documentation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change document: Read change document header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preliminary comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module has been released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation is being revised so that it conforms to the requirements for released function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module determines change document numbers with the respective header information for an object class. The determination can be limited by specifying various parameters (see interface description).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change documents are read from the database (default) or from an archive depending on the ARCHIV_HANDLE parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the parameter LOCAL_TIME you can also specify whether the local time and date (referring to the time zone) or a system time and date (default) are transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OBJEKT LIKE CDHDR-OBJECTCLAS,&lt;/P&gt;&lt;P&gt;OBJEKTID LIKE CDHDR-OBJECTID,&lt;/P&gt;&lt;P&gt;AENDERER LIKE CDHDR-USERNAME,&lt;/P&gt;&lt;P&gt;DATUM LIKE CDHDR-UDATE,&lt;/P&gt;&lt;P&gt;ZEIT LIKE CDHDR-UTIME,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ICDHDR OCCURS 50.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE CDHDR.&lt;/P&gt;&lt;P&gt;DATA: END OF ICDHDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;EXPORTING OBJECTCLASS = OBJEKT&lt;/P&gt;&lt;P&gt;OBJECTID = OBJEKTID&lt;/P&gt;&lt;P&gt;USERNAME = AENDERER&lt;/P&gt;&lt;P&gt;TIME_OF_CHANGE = ZEIT&lt;/P&gt;&lt;P&gt;DATE_OF_CHANGE = DATUM&lt;/P&gt;&lt;P&gt;TABLES I_CDHDR = ICDHDR&lt;/P&gt;&lt;P&gt;EXCEPTIONS ...&lt;/P&gt;&lt;P&gt;***************************&lt;/P&gt;&lt;P&gt;Changedocument_Read_Headers : &lt;/P&gt;&lt;P&gt;The function module determines change document numbers with the&lt;/P&gt;&lt;P&gt;respective header information for an object class. The determination can&lt;/P&gt;&lt;P&gt;be limited by specifying various parameters (see interface description).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change documents are read from the database (default) or from an&lt;/P&gt;&lt;P&gt;archive depending on the ARCHIV_HANDLE parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the parameter LOCAL_TIME you can also specify whether the local&lt;/P&gt;&lt;P&gt;time and date (referring to the time zone) or a system time and date&lt;/P&gt;&lt;P&gt;(default) are transferred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cdpos/m-p/2910360#M684820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:29:40Z</dc:date>
    </item>
  </channel>
</rss>

