Application Development and Automation 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: 
Read only

Change Pointers Issue

Former Member
0 Likes
2,226

Hi

Pls any body can give me step by step settings to save the changes to the DB tables(Change Log)

I am trying to read change pointers for a 1) FAGL_011PC table.But when ever i change the data using T Code FSE2 the data is saving in this table but the changes are not getting saved in CDHDR/CDPOS.

Chagne Log Check Box in tech Settings I Activated.

What shouls i Do ?

Thanks in Advance

PREETI Raj

3 REPLIES 3
Read only

Former Member
0 Likes
829

Hello,

Please read these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0c5ae74-a3db-2910-3b91-b543b4be056c] and [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6054] [original link is broken] [original link is broken] [original link is broken];

Regards,

Read only

Former Member
0 Likes
829

Hi,

Change pointers is the one of the IDOC processing method in ALE.

In this once we make the config to any of messages type , if any changes are made in sending system then IDOC will be posted directly to destination with user interation.

Changes pointers are configured using BD50,BD51,BD53,BD61.

Change pointers are stored in tables BDCP and BDCPS (or BDCP2 in case of high-performance setting) - like CDHDR and CDPOS for change documents (but this is not a controlling table!).

1. Do you really need change pointers?

You need change pointers to distribute changes with the ALE SMD tool. If you do not use this tool, you do not need to write change pointers.

You can deactivate change pointers and activate them again with the transaction BD61.

2. Do you really need to activate change pointers for this messages type?

If some messages types are no longer to be distributed by change pointers, you can

deactivate change pointers for this message type.

You can deactivate change pointers for the message type

and reactivate them again in transaction BD50.

For reduced message types, deactivate the change pointer with the

Reduction tool (transaction BD53).

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.

Most applications write change documents. These are primarily log entries in the

tables CDHDR and CDPOS.

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.

The decision whether a field modification is relevant for a change document is

triggered by a flag of the modified field’s data element. You can set the flag with

SE11 by modifying the data element.

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.

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.

So the change pointers will remember the key of the document every time when a

relevant field has changed.

Change pointers are then evaluated by an ABAP which calls the IDoc creation, for

every modified document found in the change pointers.

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.

The following function is called from within CHANGEDOCUMENT_CLOSE in order to write the change pointers.

CALL FUNCTION 'CHANGE_POINTERS_CREATE'

EXPORTING

change_document_header = cdhdr

TABLES

change_document_position = ins_cdpos.

Activation of change pointer update :

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.

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.

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.

In order to work with change pointers there are two steps to be performed

1) Turn on change pointer update generally

2) Decide which message types shall be included for change pointer update

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 Function Ale_Component_Check

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.

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.

The change pointers which have not been processed yet, can be read with a function

module.

Call Function 'CHANGE_POINTERS_READ'

The ABAP RBDMIDOC will process all open change pointers and distribute the

matching IDocs.

When you want to send out an IDoc unconditionally every time a transaction

updates, you better use the workflow from the change documents.

Regards,

Shiva Kumar

Read only

Former Member
0 Likes
829

Hi,

Change pointers are the mechanism through which you can send data to another SAP system or external system if there is a change happening to specific fields of master data.

For more information, please check this link.

http://www.angeli.biz/www5/cookbooks/workflow/workflow_30/docu.htm

http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm

Regards,

Shiva Kumar