Using the procedure given in Section 3.5, we can not only display characteristic data, but also enter new data and change existing data. In this section, we use a different technique. First, we show how to enter master data and texts for characteristic IO_SREG. Then, we describe how to create a hierarchy for IO_SREP.
3.6.1 Master Data and Text
Step 1. Select InfoObjects under Modelling in the left panel, right-click Sales region, and then select Maintain master data in the right panel.
Step 2. Click to display master data.
Step 3. Click to create a record.
Step 4. Enter data in the fields and click to continue.
Step 5. Repeat Steps 3 and 4 to enter two more records, and then click to save the data into the database.
You have entered data into IO_SREG. A status message Data has been saved will appear at the bottom of Screen 3.32.
Repeat the same procedure to enter data into IO_SOFF.
Table 1.3 is actually a hierarchy. It should look like the hierarchy depicted in Figure 3.1 when we visualize the table data.
Figure 3.1. TIME-DEPENDENT HIERARCHY STRUCTURES
This hierarchy indicates the Denver office was in the Midwest region before January 1, 2000. On and after January 1, 2000, the Denver office was part of the West region. In BW, a hierarchy such as the one in Figure 3.1 is called a time-dependent hierarchy structure. Section 7.4, "InfoCube Design Alternative III – Time-Dependent Entire Hierarchies," will discuss another type of hierarchy called a time-dependent entire hierarchy.
The following procedure describes how to create a time-dependent hierarchy structure for IO_SREP.
Step 1. To create a hierarchy for IO_SREP, we must specify hierarchy properties in the IO_SREP definition. To modify the IO_SREP definition, double-click InfoObject Sales representative ID.
Step 2. Under the Hierarchy tab, select the option with hierarchies, and then select the option Hierarchy structure time-dependent.
Next, click to check it. If it is valid, click to activate the modification.
The activation will create three database tables for this hierarchy: /BIC/HIO_SREP (hierarchy table), /BIC/KIO_SREP (hierarchy SID table), and /BIC/IIO_SREP (SID hierarchy structure).
Besides DataSources for master data (IO_SREP_ATTR) and texts (IO_SREP_TEXT), IO_SREP will work with a third DataSource, IO_SREP_HIER. With IO_SREP_HIER, we can use an InfoPackage to load hierarchy data as well.
Section 7.4, "InfoCube Design Alternative III – Time-Dependent Entire Hierarchies," gives an example of Entire hierarchy is time-dependent.
Step 3. In the Administrator Workbench: Modelling window, right-click the characteristic InfoObject Sales representative ID, and then select Create hierarchy….
Step 4. Enter a name and a description, and then click to continue.
Step 5. Right-click IO_SREP hierarchy, and then select Insert characteristic node….
Step 6. Enter IO_SREG, and then click to continue. Here we use IO_SREG data to create the hierarchy nodes.
Step 7. Select all three regions, and then click to continue.
Step 8. Three regions are displayed under IO_SREP hierarchy.
To assign offices to each region, right-click one of the regions and repeat Steps 5, 6 (enter IO_SOFF instead of IO_SREG), and 7. This screen shows that Denver, Los Angeles, and Seattle will be assigned to the West region.
Step 9. Because the Denver office is already assigned to the Midwest region, we see this message. As noted in Chapter 1, the Denver office was part of the Midwest region before January 1, 2000. For this reason, we need to put the Denver office in two places.
Select the option Copy duplicated node, and then click to continue.
Step 10. Now we need to specify the valid date periods for the Denver office. Right-click the first Denver in the Midwest region, and then select Change node(s)….
Step 11. Enter dates in Valid from and To, and then click to continue.
Step 12. Repeat Steps 10 and 11 to specify valid dates for the Denver office in the West region.
Step 13. Next, we assign sales representatives to each sales office.
At the hierarchy leaf level, we can either insert IO_SREP values following the previous steps or right-click an IO_SOFF value, such as Atlanta in the East region, and then select Sales rep. ID insert…. We take the second approach.
Step 14. After assigning sales representatives to each sales office, click to save the hierarchy. Now we need to activate the hierarchy before we can use it.
Step 15. In the Administrator Workbench: Modelling window, right-click the newly created hierarchy IO_SREP hierarchy, and then select Activate.
You have created the hierarchy. Its color will change from gray to green.
Now that we have loaded and entered all characteristic data, it is time to load the transaction data.
Part I. Guided Tours
Business Scenario and SAP BW
Creating an InfoCube
Loading Data into the InfoCube
Checking Data Quality
Creating Queries and Workbooks
Managing User Authorization
Part II. Advanced Topics
Aggregates and Multi-Cubes
Operational Data Store (ODS)
Generic R/3 Data Extraction
Appendix A. BW Implementation Methodology
Appendix B. SAP Basis Overview
Appendix C. Glossary
Appendix D. Bibliography