With the latest version of SAP Datasphere (2024.6), we now have the delta extraction feature for the ADSO in SAP Datasphere, BW Bridge and it simplifies the data replication from BW Bridge to Datasphere.
More info on this topic is given in the help page below.
How it works
Previously in SAP Datasphere, when importing the ADSO (from BW Bridge) via the “import entity” feature there was only 1 remote table that was visible as source representing the “active” data table of the ADSO. With the new delta feature, we have the option to import 2 remote tables for the ADSO with the naming conventions adopted as ADSO Name- “Reporting” and ADSO Name - “Extraction”. The Reporting table represents the active data table as before, but the new “Extraction” table represents the delta changes of the ADSO.
When previewing the data of the “Extraction” table we get the same data set as the “Reporting” table. In order to get the delta only records from the “Extraction” table we must use a Transformation Flow to extract the delta records into a target local table in SAP Datasphere. This local table can then be used as a source for further modelling of the delta records or send to other outbound destinations via the Replication Flow. These outbound destinations could be SAP or non-SAP by taking advantage of the SAP Datasphere, Premium Outbound Integration Service.
Prerequisite
Example
In this example I have taken a very simple case of updating a master data object to see the delta changes. I import a standard ADSO called Plant Master Data (Tech name – ZPLANT_MD) from my BW Bridge into the BW Bridge space in Datasphere and then I will share the “Extraction” table with my own space. In my own space I will then create a Transformation Flow which will extract delta only records from the “Extraction” table into a target local table. I will then make some changes to the source data so we can see that the Transformation Flow extracts only the changed records to our target local table.
1. Creation of an ADSO in BW Bridge
In my BW Bridge, I created a standard ADSO with 2 Info objects (for simplicity). It is imported that at-least there is 1 primary key and the key has the Master Data Check enabled for reporting.
2. Importing ADSO from BW Bridge into Datasphere
In the BW Bridge space, under the Data Builder I used the “import entity” feature to import the ADSO via the BW Bridge connection. I searched for my ADSO and now I have the option to import and deploy 2 remote tables. As you can see below, by default Datasphere distinguished both tables by giving an extension to the table viz - “Reporting” and “Extraction” extensions. In this case I am only interested in the “Extraction” table, and I import that.
3. Check the delta table features
Once the table is imported you can see the below new properties of the table
4. Creation of Transformation Flow in Datasphere
I shared the ADSO “Extraction” table with my own space and then in my space I created a Transformation Flow to extract it to a local Datasphere table with the “Delta Capture” and “Initial and Delta” options as per below.
5. Initial full run of the Transformation Flow
I ran the initial run of the Transformation Flow and checked the results of the target table. I got 287 records which are same as in my Active table entries.
In my example below the Plant = 1000 = Hamburg and there is no entry for Plant = 1700. I will use these entries to perform some changes in the source so that delta changes are captured.
6. Creating changes for delta extraction
I changed my source data and in this example, I have done the following changes to my source data.
I triggered the delta DTP in BW Bridge which updated the ADSO with the changed records. In this example I can see in my “BW Cockpit” that my ADSO has 2 new changed records.
7. Delta run of the Transformation flow to fetch delta only records
To fetch those changed records I ran the Transformation flow again and it fetched 2 records as it recognized that the ADSO has 2 new records. This is the key part of the scenario where the delta only records are extracted as previously only full extraction was possible from the ADSO of the BW Bridge. Now when I preview my target table, I can see that the records are updated and added accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
12 | |
10 | |
9 | |
9 | |
9 | |
8 | |
8 | |
8 | |
7 |