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

Former Member
0 Likes
1,360

Hi,

By Default all the R/3 fields will capture the changes or any extra modification needed for any change to capture and write it to BDCP tables.

I have read somewhere that for capturing the changes all fields shoulb be added in BD62 or adding the field names in BD52 is compulsory?

Regards,

Vishnu

Edited by: Vishnuvadhan K on May 28, 2008 11:43 AM

Edited by: Vishnuvadhan K on May 28, 2008 11:49 AM

9 REPLIES 9
Read only

Former Member
0 Likes
1,202

Hi

It is not compulsory. The changes will be automatically updated

Cheers

Vamshi

Read only

0 Likes
1,202

then in what cases we add fields in BD52 ?

Regards,

Vishnu

Read only

0 Likes
1,202

Hi,

1.Whenever we add the new fields,then we can add that field in BD52.

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

0 Likes
1,202

If u hav any customization fields u added by enhancement, those fields will not available, so in that case u can add fields in BD 52.

Read only

0 Likes
1,202

By default are there any fields in BD52 or TBD62 table. I can find some fileds in this table, are they added by default or someone has added them.

Regards,

Vishnu

Read only

0 Likes
1,202

By default SAP provided all these fields for standard objects in BD52.

Read only

0 Likes
1,202

Hi

We have requirement to segregate employees based on a particular infotype value.

If the employee has the value '0001' in that infotype then the employee needs to be distributed to another system through ALE, else should not be.

We are employing change pointers .

How can we acheive this ?

Read only

Former Member
0 Likes
1,202

Hi by default changes of all fields will capture..

For standard master data objects such as cost centers, material, customers and vendor objects SAP already provides list of fileds for which change poiters are written, if u feel u don`t want all fields, u can deselect or new entries can also add in BD52.

BDCP -- for change pointers

BDCPS --- for cahnge pointers status

CDHDR -- change doc. header

CDPOS -- change doc. item.

reward pts if it helps....

Read only

Former Member
0 Likes
1,202

thnx