Data Handling
Data Hub is all about data. Data is loaded from a source system, which can be any kind of source. Once the data is in the Data Hub, it is organized and converted into a canonical format. While the data is in the Data Hub, there are opportunities to modify filter it. When preparing the data for a target system, further manipulation can occur. Then the target adapter ensures that the data is compatible with the target system.
- source adapters
- target adapters
- grouping handlers
- composition handlers
- custom data handlers - for grouping, composition, and publication grouping
Source and Target Adapters
Source adapters prepare data from a source system for easy load into the Data Hub. Target adapters are responsible for sending data to a target system and reporting back the results.
Source Adapters
The source system adapter receives data from a source system and feeds it to the Data Hub in a standardized way.
Some kinds of data, such as IDocs, require additional preparation to be efficiently processed. The SAP Data Hub Extensions help handle IDocs.
Target Adapters
After data is processed by the Data Hub, it is sent to a target system through the target system adapter as part of the publication phase.
Data Handling During Composition: An Example
When raw item data enters the composition process, it is grouped by specific attributes and then composed into canonical items. This work is done by handlers (both out-of-the-box handlers and custom Data Hub extensions). There are two kinds of handlers in the composition process: grouping handlers and composition handlers.
Grouping Handlers
Grouping handlers are responsible for determining what canonical items are going to be created given an input set of raw items. The Data Hub ships with two default grouping handlers. One handler groups by type and the other by primary key. Custom handlers can be added by the user to perform more sophisticated data handling operations such as filtering.

Composition Handlers
The Data Hub ships with three default composition handlers that create localized values, collections, and simple strings. Custom handlers can be added by the user to perform more sophisticated data handling operations. Composition handlers put the grouped raw item data into canonical form. Shaping the raw items includes the following:
- Populating the canonical data fields
- Handling empty data fields
- Merging data from several fields into one

Composition handlers are executed after grouping handlers in the composition phase, and the resulting canonical items persist in the database.