Key Figure Summation for Before Images Without After Images
If you use the Complete delta update with deletion indicator (ABR) delta process to transfer data changes (delta) from an SAP HANA source system to a DataStore object with change log, note the following for the transformation. If you select the "Overwrite" aggregation type for all key figures and do not select the "Summation" aggregation type for any key figure, the before images are filtered out in the transformation and only deletions and after images are taken into account. This applies even if a before image is not followed by an after image. For extractors in SAP Business Suite, this case does not occur in the "Complete delta update with deletion indicator" (ABR) delta process. However, it can occur if database tables are used as a source, as illustrated in the following example.
A table has 3 fields (A, B, and C), whereby A is the only key field, B is a selection field, and C is a key figure:
|
Column A |
Column B |
Column C |
|---|---|---|
|
X |
X |
10 |
|
Y |
Y |
10 |
The following SQL command changes columns A and C of the first row to 'Z' and 17:
The corresponding before image and after image have different keys:
|
Column A |
Column B |
Column C |
Change Type |
|---|---|---|---|
|
X |
X |
-10 |
Before image |
|
Z |
X |
17 |
After image |
The following SQL command changes columns B and C of the second row to 'Z' and 18:
If a filter that selects values from 'X' to 'Y' only is defined on column B in the DTP, the after image is filtered out and only the before image is taken into account for activation.
|
Column A |
Column B |
Column C |
Change Type |
|---|---|---|---|
|
Y |
X |
-10 |
Before image |
|
Y |
Z |
18 |
After image |
In each case, the activation result does not correspond to the expected result or to the result that would be obtained using the "Summation" aggregation type.
For this reason, choose "Summation" for all key figures if you are not sure whether before images without after images could arise as in the example shown. Note that this recommendation applies only if you are transferring data from an SAP HANA source system to a DataStore object with change log using the Complete delta update with deletion indicator (ABR) delta process.