Professional Documents
Culture Documents
org
Contents
1. Why to report on a Change Document Log in BW .......................................................................... 1
2. Create a generic delta enabled extractor based on tables CDHDR and CDPOS ............................. 1
3. Create an acquisition layer DSO in BW to collect all document changes ....................................... 2
4. Create a BTL layer standard DSO for Each Reporting Area ............................................................. 2
5. Initialize for proper Object classes in Prod ..................................................................................... 3
6. Test performance and results in the reports .................................................................................. 4
From a technical point of view displaying these changes in various contexts can be challenging due to
a huge number of records in the log (hundreds of millions or even billions of records in the table
CDPOS). By default entries in this cluster table are not marked with a timestamp that allows building
a delta enabled extractor. Therefore we need a smart approach for extracting and organizing these
logs in BW. However, if we have SAP HANA in place the approach will be different.
In the extractor exit code we have to collect all the item records related to the header line. For this
purpose we will connect item records with header lines using full table key: objectclas, objectid,
changenr. As we expect multiple item lines for one header line in the ABAP code I suggest saving all
relevant item lines into a separate internal table. Then we should process the line items from the
internal table in the extractor data package and enhance it with header details by looking up records
from the header table.
1 by Sergei Peleshuk
www.biportal.org
In case of proper partitioning data volumes in these DSOs should not exceed a few million records.
Key fields should match most common queries executed against this DSO. In case multiple query
types are expected/executed we should create secondary indexes in the DSO with relevant keys.
2 by Sergei Peleshuk
www.biportal.org
Later on you will be able to add more Object Classes by running additional Initializations if needed.
3 by Sergei Peleshuk
www.biportal.org
Running reports or BEx queries on these DSOs is not an issue due to reasonable volumes and proper
indexes. At the same time we can easily use the change log data and the standard DSO (ZCHDCRL)
where it is stored for lookups in the business logic elsewhere.
4 by Sergei Peleshuk