07.02.2013 Views

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.7 Data load into InfoCube<br />

When data is loaded from PSA or DSO into an InfoCube, it must be trans<strong>for</strong>med<br />

from a flat table structure into the extended star schema. Figure 12-7 shows the<br />

steps that are required to transfer a new record from a PSA table into an<br />

InfoCube and the corresponding master data tables.<br />

SID<br />

1<br />

2<br />

PSA<br />

1<br />

Customer<br />

C<br />

1<br />

2<br />

Airline 1<br />

Airline 2<br />

Master data<br />

SID<br />

1<br />

2<br />

InfoCube<br />

SID Customer<br />

1<br />

2<br />

Customer dimension<br />

Product<br />

Aircraft B<br />

Aircraft A<br />

5<br />

Product<br />

Aircraft A<br />

Aircraft B<br />

Quantity<br />

Figure 12-7 Steps during data load into InfoCube<br />

3<br />

Prod Group<br />

Airplanes<br />

Airplanes<br />

P<br />

1<br />

1<br />

2<br />

C<br />

1<br />

2<br />

2<br />

P<br />

1<br />

2<br />

SID<br />

1<br />

2<br />

R<br />

1<br />

1<br />

2<br />

Prod. Group<br />

Computers<br />

Airplanes<br />

SID Product<br />

Product dimension<br />

As shown in the figure:<br />

1. The record is selected from the PSA table.<br />

2. Transfer and update rules are applied.<br />

3. The master data tables are checked to see whether the attribute values from<br />

the PSA record already exist. If this is the case, the corresponding surrogate<br />

identifiers (SIDs) are retrieved from the master data tables. If the attribute<br />

values do not yet exist, they are inserted in the master data tables and<br />

corresponding SIDs are generated, or the record is skipped. In the given<br />

example, the attribute values Aircraft A and Airplanes are inserted in the<br />

master data tables.<br />

1<br />

2<br />

25<br />

50<br />

1<br />

Fact table<br />

Customer<br />

Airline 1<br />

Airline 2<br />

2<br />

SID<br />

1<br />

2<br />

SID Product Group<br />

Revenue<br />

$60,000<br />

2<br />

2<br />

$120,000<br />

$25,000,000<br />

City<br />

Paris<br />

Munich<br />

Boston<br />

Paris<br />

SID<br />

City<br />

1<br />

SID<br />

Country<br />

1<br />

Chapter 12. Concepts, activities, and terminology 267<br />

City<br />

R<br />

1<br />

2<br />

France<br />

Germany<br />

2<br />

SID<br />

1<br />

2<br />

Country<br />

US<br />

France<br />

Region dimension<br />

Attributes Key Figures<br />

Country<br />

Quantity<br />

1<br />

2<br />

4<br />

2<br />

Revenue<br />

$25,000,000<br />

$30,000,000

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!