Show TOC

Executing Data Enrichment Locate this document in the navigation structure

 

You have two options for executing data enrichment:

  • Black Box Approach

    Data enrichment is called as a sequence that contains only one step. The function that represents this step executes all tasks required for enrichment. In standard sales enrichment, the function ALL_STEPS calls a “bundled” stored procedure from the ABAP layer that performs the calculation of all necessary key figures.

  • White Box Approach

    Data enrichment is called as a sequence that contains several enrichment steps. The functions assigned to the corresponding steps call individual stored procedures that calculate one or more key figures that are required for the corresponding enrichment purpose (sales data enrichment or stock data enrichment). The white box approach allows you to replace specific individual calculations of key figures with customer-specific algorithms in the standard sequence.

Steps

Data enrichment is performed in enrichment steps. Enrichment steps carry out one or more specific tasks of data enrichment (for example, calculate a specific key figure, create records that are missing in the data delivery (for example, zero sales)).

Sequences

The steps are organized in sequences. SAP delivers predefined sequences for sales data enrichment and stock data enrichment. The system triggers one step after the other according to the sequence you have activated in Customizing.

Example Example

Possible sequence for stock data enrichment:

  1. Initialize Worklist

  2. Complete Data

  3. Calculate Out-of-Stock Situations

  4. Get Result

End of the example.
Functions

Each enrichment step is represented by a function of a specific function type. A function type is, for example, the calculation of out-of-shelf signals during sales data enrichment. To calculate of out-of-shelf signals, you can define several functions that use different algorithms. In standard Customizing you have a function that uses a simple ratio method (OOSH_SIMPLE_RATIO) and a function that uses a more sophisticated normal distribution approach (OOSH_NORM). Each function representing an enrichment step has an ABAP class assigned to it that contains the coding to trigger the execution of the corresponding task(s). All these ABAP classes implement interface /DDF/IF_FES_ENRICHMENT. They are subclasses of class /DDF/CL_ENR. The standard classes assigned to the standard functions call stored procedures in the SAP HANA database.

More Information

For a detailed description of the steps, sequences, and functions, see the documentation Define Enrichment Sequences in Customizing for Data Enrichment under   Cross-Application Components   Demand Data Foundation  .

Data Enrichment

Enhancing the Data Enrichment Process