Siebel Customer-Centric Enterprise Warehouse Installation and Configuration Guide > Configuring Siebel Enterprise Sales Analytics >

About Tracking Multiple Products for Siebel Enterprise Sales Analytics


The Sales Order Lines table contains two columns, ORDHD_KEY_ID and ORDLN_KEY_ID, that track individual products when they are grouped and sold as a single package. These two columns allow you to analyze the relationship of all products sold as a single unit. The ORDHD_KEY_ID column stores the Order ID of the entire sales order. The ORDLN_KEY_ID column stores the Line Item ID of the parent product.

For example, assume a customer purchases a package that includes a computer, scanner, and printer. In addition, the customer purchases a monitor separately. In this case, there are two parent items: the package and the monitor. The computer, scanner, and printer are all child orders of the parent order package, while the parent order monitor is a single-item purchase.

Your data warehouse may store this sales information in the Sales Order Lines table as seen in Table 43. The ORDLN_KEY_ID field contains the Line Item ID of the parent product in order to maintain the relationship between the parent and child products in a package. In this example, the ORDLN_KEY_ID field is Line_1 for each of the three child products (A1, A2, A3) that were sold as a part of the parent package, Parent A.

Table 43. Sales Order Table Columns With Parent/Child Relationships
Key_ID
SALES_ORDER_NUM
PRODUCT_ID
ORDHD_ KEY_ID
ORDLN_ KEY _ID
Relationship
(Not a column in the table.)

Line_1

1000

Package

1000

Line_1

Parent A

Line_2

1000

Computer

1000

Line_1

Child A1

Line_3

1000

Scanner

1000

Line_1

Child A2

Line_4

1000

Printer

1000

Line_1

Child A3

Line_5

1000

Monitor

1000

Line_5

Parent B (no children)

In contrast, if each of the four items described in Table 43 were bought individually, the ORDLN_KEY_ID would have a different Line Item ID for every row. In this case, the Sales Order Lines table would look like Table 44.

Table 44. Sales Order Table Columns Without Parent/Child Relationships
Key_ID
SALES_ORDER_NUM
PRODUCT_ID
ORDHD_ KEY_ID
ORDLN_ KEY _ID
Relationship
(Not a column in the table.)

Line_1

1000

Computer

1000

Line_1

None

Line_2

1000

Scanner

1000

Line_2

None

Line_3

1000

Printer

1000

Line_3

None

Line_4

1000

Monitor

1000

Line_4

None

Siebel Customer-Centric Enterprise Warehouse Installation and Configuration Guide