Business Information Warehouse for SAP (Prima Techs SAP Book Series)

Team-Fly

A star schema is the most common form of a multidimensional model. In the center of a star schema is the fact table connected to several dimensions that business users use to slice and dice data.

Look at the SAP Sales and Distribution demo InfoCube data model, as shown in Figure 12-2.

Figure 12-2: Multidimensional Data Model in SAP BW. The Star Schema Representation for the Sales and Distribution Demo InfoCube in SAP BW 2.0A.

On the left is a star schema for the Sales and Distribution InfoCube. It has nine dimensions and four key measurements. Each dimension is connected to the fact table via its unique ID. A record in the fact table is uniquely identified by the keys of the dimension tables and becomes a multi-part primary key. In this example, to make a unique fact record there are nine dimension keys, each representing a dimension. In database terminology, keys of the dimension tables are foreign keys in the fact table.

The Data Warehouse Toolkit by Ralph Kimball is an excellent source for SAP BW InfoCube designers to understand common multidimensional modeling concepts. It provides data modeler information on multidimensional modeling techniques. However, multidimensional data models in SAP BW differ from most industry-accepted reference star schema models. One such difference between SAP BW and the rest of the industry star schemas is that master data is shared across all InfoCubes defined in SAP BW. When modeling in SAP BW this feature-shared master data-alone plays a major role in modeling information objects that are not too complex and balanced for navigation to provide overall analytical applications performance. Because SAP BW is built on top of proven multitiered architecture, one must understand the deployment architecture of analytical applications by exploiting SAP distributed technologies instead of technologies specific to DBMS. The data models have to accommodate such dynamic distribution of information objects across the extraprise. Note that Kimball's book does not discuss ODS design or data warehouse modeling concepts. It discusses multidimensional modeling at great length, and I recommend that SAP BW modelers read this book.

Defining Dimensions

In a traditional star schema model, the dimensions contain reference data to hold business descriptions for analysis; for example, Customer, Material, and Sales Organization. Dimensions are specific to a fact table; therefore, reference data such as master data and hierarchy is not shared across the cubes. In SAP BW, reference data is stored once and shared across all InfoCubes. This reduces data redundancy.

An InfoCube can have a total of 16 dimensions. Three are reserved for Time, Unit of Measure, and Packet ID. The 13 other dimensions are user definable.

To model dimensions, keep the following points in mind:

Defining Facts

Facts contain business measures uniquely associated with a set of predefined dimensions. The number of entries in a fact table is very large compared to that of individual dimension tables. The size of the fact table depends on the dimension attributes in the dimensions. A fact table can have several millions to billions of entries. For example, if you want to capture order details up to individual line item levels, the fact table has several entries based on line items in an order. Keep the following guidelines in mind when defining a fact table:


Team-Fly

Категории