<?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: Reg: Change Pointers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571370#M257914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam giving the tcodes for chage pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt;WE81&lt;/P&gt;&lt;P&gt;2&amp;gt;WE31&lt;/P&gt;&lt;P&gt;3&amp;gt;WE31&lt;/P&gt;&lt;P&gt;4&amp;gt;WE82&lt;/P&gt;&lt;P&gt;5&amp;gt;SCDO&lt;/P&gt;&lt;P&gt;6&amp;gt;BD50&lt;/P&gt;&lt;P&gt;7&amp;gt;BD52&lt;/P&gt;&lt;P&gt;8&amp;gt;BD61&lt;/P&gt;&lt;P&gt;9&amp;gt;BD60&lt;/P&gt;&lt;P&gt;10&amp;gt;WE20&lt;/P&gt;&lt;P&gt;11&amp;gt;BD64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE TALES U SHOULD LOOK ARE&lt;/P&gt;&lt;P&gt;1&amp;gt;CDHDR&lt;/P&gt;&lt;P&gt;2&amp;gt;CDPOS&lt;/P&gt;&lt;P&gt;3&amp;gt;BDCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Sep 2006 11:17:15 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2006-09-29T11:17:15Z</dc:date>
    <item>
      <title>Reg: Change Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571367#M257911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;want the end-to-end implementation of change pointers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 06:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571367#M257911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T06:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Change Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571368#M257912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change pointers is a concept to record creation, changes and deletion of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data are stored in CDHDR and CDPOS tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 11:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571368#M257912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T11:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Change Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571369#M257913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ALE Change Pointers&lt;/P&gt;&lt;BR /&gt;Applications which write change documents will also try to write change pointers for ALE operations. These are log entries to remember all modified data records relevant for ALE.&lt;BR /&gt;Most applications write change documents. These are primarily log entries in the tables CDHDR and CDPOS. &lt;BR /&gt;&lt;BR /&gt;Change docs remember changes in transaction &lt;BR /&gt;Change documents remember the modified fields made to the database by an application. They also remember the user name and the time when the modification took place.&lt;BR /&gt;&lt;BR /&gt;Data elements are marked to be relevant for change documents &lt;BR /&gt;The decision whether a field modification is relevant for a change document is triggered by a flag of the modified field&amp;#146;s data element. You can set the flag with SE11 by modifying the data element.&lt;BR /&gt;&lt;BR /&gt;ALE may need other triggers &lt;BR /&gt;For the purpose of distributing data via ALE to other systems, you may want to choose other fields, which shall be regarded relevant for triggering a distribution.&lt;BR /&gt;&lt;BR /&gt;Therefore R/3 introduced the concept of change pointers, which are nothing else than a second log file specially designed for writing the change pointers which are meant to trigger IDoc distribution via ALE.&lt;BR /&gt;&lt;BR /&gt;Change pointers remember key of the document &lt;BR /&gt;So the change pointers will remember the key of the document every time when a relevant field has changed.&lt;BR /&gt;&lt;BR /&gt;An ABAP creates the IDocs &lt;BR /&gt;Change pointers are then evaluated by an ABAP which calls the IDoc creation, for every modified document found in the change pointers.&lt;BR /&gt;&lt;BR /&gt;Change pointers are when change documents have been written &lt;BR /&gt;The Change pointers are written from the routine CHANGEDOCUMENT_CLOSE when saving the generated change document. So change pointers are automatically written when a relevant document changes.&lt;BR /&gt;&lt;BR /&gt;The following function is called from within CHANGEDOCUMENT_CLOSE in order to write the change pointers.&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'CHANGE_POINTERS_CREATE' &lt;BR /&gt;EXPORTING &lt;BR /&gt;change_document_header = cdhdr &lt;BR /&gt;TABLES &lt;BR /&gt;change_document_position = ins_cdpos. &lt;BR /&gt;&lt;BR /&gt;Activation of change pointer update&lt;BR /&gt;Change pointers are log entries to table BDCP which are written every time a transaction modifies certain fields. The change pointers are designed for ALE distribution and written by the function CHANGE_DOCUMENT_CLOSE.&lt;BR /&gt;Change pointers are written for use with ALE. There are ABAPs like RBDMIDOC which can read the change pointers and trigger an IDoc for ALE distribution.&lt;BR /&gt;&lt;BR /&gt;The change pointers are mainly the same as change documents. They however can be set up differently, so fields which trigger change documents are not necessarily the same that cause change pointers to be written.&lt;BR /&gt;&lt;BR /&gt;In order to work with change pointers there are two steps to be performed&lt;BR /&gt;&lt;BR /&gt;·Turn on change pointer update generally&lt;BR /&gt;&lt;BR /&gt;·Decide which message types shall be included for change pointer update&lt;BR /&gt;&lt;BR /&gt;Activate Change Pointer Generally &lt;BR /&gt;R3 allows to activate or deactivate the change pointer update. For this purpose it maintains a table TBDA1. The decision whether the change pointer update is active is done with a &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Function Ale_Component_Check &lt;BR /&gt;&lt;BR /&gt;Currently (release 40B) this check does nothing else than to check, if this table has an entry or not. If there is an entry in TBDA1, the ALE change pointers are generally active. If this table is empty, change pointers are turned off for everybody and everything, regardless of the other settings.&lt;BR /&gt;&lt;BR /&gt;The two points read like you had the choice between turning it on generally or selectively. This is not the case: you always turn them on selectively. The switch to turn on generally is meant to activate or deactivate the whole mechanism.&lt;BR /&gt;&lt;BR /&gt;reading the change pointers which are not yet processed &lt;BR /&gt;The change pointers which have not been processed yet, can be read with a function module.&lt;BR /&gt;&lt;BR /&gt;Call Function 'CHANGE_POINTERS_READ' &lt;BR /&gt;&lt;BR /&gt;RBDMIDOC &lt;BR /&gt;The ABAP RBDMIDOC will process all open change pointers and distribute the matching IDocs.&lt;BR /&gt;&lt;BR /&gt;Use Change Documents Instead Of Change Pointers &lt;BR /&gt;When you want to send out an IDoc unconditionally every time a transaction updates, you better use the workflow from the change documents.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Dispatching ALE IDocs for Change Pointers&lt;/P&gt;&lt;/B&gt;Change pointers must be processed by an ABAP, e.g. RBDMIDOC.&lt;BR /&gt;RBDMIDOC processes change pointers and sends the IDocs &lt;BR /&gt;The actual distribution of documents from change pointers must be done by an ABAP, which reads the change pointers and processes them. The standard ABAP for that is RBDMIDOC. For recurring execution it can be submitted in a scheduled job using SM35 .&lt;BR /&gt;&lt;BR /&gt;Function module defined in table TBDME &lt;BR /&gt;It then calls dynamically a function module whose name is stored in table TBDME for each message type.&lt;BR /&gt;&lt;BR /&gt;Call Function Tbdme-Idocfbname &lt;BR /&gt; Exporting &lt;BR /&gt; Message_Type = Mestyp &lt;BR /&gt; Creation_Date_High = Date &lt;BR /&gt; Creation_Time_High = Time &lt;BR /&gt; Exceptions &lt;BR /&gt; Error_Code_1. &lt;BR /&gt;&lt;BR /&gt;Example &lt;BR /&gt;A complex example for a function module, which collects the change pointers, can be examined in: &lt;BR /&gt;&lt;BR /&gt;MASTERIDOC_CREATE_SMD_DEBMAS . &lt;BR /&gt;&lt;BR /&gt;This one reads change pointers for debtors (customer masters). During the processing, it calls the actual IDoc creating module MASTERIDOC_CREATE_DEBMAS .&lt;BR /&gt;&lt;BR /&gt;To summarize the change pointer concept&lt;BR /&gt;&lt;BR /&gt;·Change pointers record relevant updates of transaction data&lt;BR /&gt;&lt;BR /&gt;·Change pointers are written separate from the change documents, while at the same time&lt;BR /&gt;&lt;BR /&gt;·Change pointers are evaluated by a collector run&lt;BR /&gt;&lt;BR /&gt;BDCPS &lt;BR /&gt;Change pointer: Status&lt;BR /&gt;&lt;BR /&gt;BDCP &lt;BR /&gt;Change pointer&lt;BR /&gt;&lt;BR /&gt;BDCPV &lt;BR /&gt;A view with BDCP and BDCPS combined: Change pointer with status&lt;BR /&gt;&lt;BR /&gt;TBDA2 &lt;BR /&gt;Declare activate message types for change pointers with view V_TBDA2.or transaction BD50 or .&lt;BR /&gt;SALE -&amp;gt; Activate change pointers for message types&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TBD62 &lt;/P&gt;&lt;P&gt;The view V_TBD62 defines those fields which are relevant for change pointer creation. The table is evaluated by the CHANGE_DOCUMENT_CLOSE function. The object is the same used by the change document. To find out the object name, look for CHANGE_DOCUMENT_CLOSE in the transaction you are inspecting or see table CDHDR for traces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Figure 26:     Tables involved in change pointers processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample content of view V_TBD62 &lt;/P&gt;&lt;P&gt;Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEBI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KNA1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEBI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kann1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORT01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEBI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kann1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGIO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 11:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571369#M257913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Change Pointers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571370#M257914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam giving the tcodes for chage pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt;WE81&lt;/P&gt;&lt;P&gt;2&amp;gt;WE31&lt;/P&gt;&lt;P&gt;3&amp;gt;WE31&lt;/P&gt;&lt;P&gt;4&amp;gt;WE82&lt;/P&gt;&lt;P&gt;5&amp;gt;SCDO&lt;/P&gt;&lt;P&gt;6&amp;gt;BD50&lt;/P&gt;&lt;P&gt;7&amp;gt;BD52&lt;/P&gt;&lt;P&gt;8&amp;gt;BD61&lt;/P&gt;&lt;P&gt;9&amp;gt;BD60&lt;/P&gt;&lt;P&gt;10&amp;gt;WE20&lt;/P&gt;&lt;P&gt;11&amp;gt;BD64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE TALES U SHOULD LOOK ARE&lt;/P&gt;&lt;P&gt;1&amp;gt;CDHDR&lt;/P&gt;&lt;P&gt;2&amp;gt;CDPOS&lt;/P&gt;&lt;P&gt;3&amp;gt;BDCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 11:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-change-pointers/m-p/1571370#M257914</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-29T11:17:15Z</dc:date>
    </item>
  </channel>
</rss>

