Generate Idocs Using Change Pointers in SAP
Generate Idocs Using Change Pointers in SAP
sapintegrationhub.com/abap/ale-idoc/how-to-generate-idocs-using-change-pointers-in-sap/
This post aims to illustrate how to create outbound iDocs for master data changes in SAP
using Change Pointers mechanism. When master data such as Material Master, Vendor
Master, Customer Master, etc. changes in SAP, we can capture the changes using
Change Pointers mechanism. Change Pointers are useful when you want to
communicate SAP master data changes to external systems using iDocs.
Before we start talking about Change Pointers mechanism, you need to understand iDoc
configuration steps.
To illustrate how Change Pointers are enabled for master data changes in SAP, let’s
assume we need to communicate sales pricing conditions to external system (POS) using
COND_A iDoc. When price condition values are changed or conditions are created,
change point mechanism should be activated and outbound COND_A iDocs in basic type
should be generated.
1/8
Activate Change Pointers globally
Here we can decide for which Message Types Change Pointers should be activated. If
you want to capture changes of Material Master activate Change Pointers for Message
Type MATMAS or ARTMAS. If you want to distribute changes of Customer Master
activate Change Pointers for CREMAS Message Type.
2/8
Field selection for COND_A message type
Assign table names and fields which change pointers should be activated for. Change
pointers will be activated when values of these fields are changed and change log will be
maintained in table BDCP2.
3/8
Step 4: Configure Partner Profile – Transaction WE20
Configure partner profile with outbound message type COND_A. In this example we are
sending Price Condition changes to POS logical system.
There are several other configuration steps to set up iDoc communication. Complete
guide for iDoc configuration transactions can be found here.
Create a Distribution Model View. Assign the Message Type, Sender SAP system name
and receiver partner name using ‘Add Message Type’.
4/8
Sender system is the Logical System name of the sender SAP system. Receiver is the
name of the partner profile configured in the previous step using transaction we20.
Additionally, you can restrict iDocs being generated for certain Sales Organizations,
Material Groups, Distribution Chains etc by creating Filter Groups. Double click on ‘filter
set’ and create a filter group with filter criteria and values. Here I have restricted
generation of iDocs only for US region.
5/8
When you create or change conditions, change pointers mechanism will flag changes in
change pointers table BDCP2. The program RBDMIDOC reads this table and creates
master and communication iDocs. This program dynamically executes the Change Point
read Function Module of Message Type selected in selection screen. Function Module for
COND_A Message Type is MASTERIDOC_CREATE_SMD_COND_A.
In production system you can schedule this program to create outbound iDocs
periodically.
6/8
Once you change values of conditions, changes will be flagged in table BDCP2. In older
SAP versions change points were saved in tables BDCP and BDCPS, but in newer HANA
versions data is aggregated to table BDCP2.
Change Pointers are initially created in null processed status in this table. Once you
execute the program RBDMIDOC and iDocs are generated, processing status changes to
‘X’.
7/8
Master data iDoc generated from Change Pointers
Hope this guide will help you set up Change Pointers for master data changes in SAP. If
you have any questions on creating outbound iDocs using change pointers, leave a
comment below.
8/8