Oracle® Business Intelligence Applications Installation and Configuration Guide > Configuring Oracle Order Management and Fulfillment Analytics Option > Process of Configuring Oracle Order Management and Fulfillment Analytics Option for Oracle 11i >

About Tracking Attribute Changes in Bookings


Changes in booked orders are tracked in the Booking Lines table (W_SALES_BOOKING_LINE_F), not in the Sales Order Lines table (W_SALES_ORDER_LINE). By default, the only changes tracked in the W_SALES_BOOKING_LINE_F table are changes in the ordered amount, ordered quantity, or Booking ID. By default, the Booking ID is defined as:

TO_CHAR(INP_LINE_ID)||'~'||TO_CHAR(INP_INV_ITEM_ID)||'~'||TO_CHAR(INP_WAREHOUSE_ID)||TO_CHAR(INP_SALESREP_ID)

Any changes in these fields results in another row in the W_SALES_BOOKING_LINE_F table. However, changes in any other fields does not result in a new row; instead, the existing information are overwritten with the changed information. No history is kept for changes to these other field values. If you want to track other changes you can do so. For example, you may want to track changes to the sales representative who is handling the order. The ETL processes are prepackaged to overwrite sales representative changes; however, if you want to retain them, you must add the attribute to the Booking ID definition in the Booking ID expression in the Source Adapter mapplet (mplt_SA_ORA_SalesOrderLinesFact). The following section describes what happens if you modify the Booking ID to include the sales representative.

About Viewing the Data Warehouse Changes by Salesperson ID

Assume you want to track changes to the sales representative for bookings and debookings. You decide to do this to better evaluate each representative's sales performance. To track changes by Salesperson ID, you have to modify the VAR_BOOKING_ID to use the value:

TO_CHAR(INP_LINE_ID)||'~'||TO_CHAR(INP_INV_ITEM_ID)||'~'||to_char(INP_WAREHOUSE_ID)

For example, to edit the VAR_BOOKING_ID value, do the following:

  1. In Informatica Designer, open the mplt_SA_ORA_SalesOrderLinesFact mapplet in the Mapplet Designer.
  2. Double click the MAPI_SALES_ORDLNS transformation to open the Edit Transformation box.
  3. Display the Ports tab.
  4. Select the EXP_SALES_ORDLNS transformation.
  5. Edit the expression for the VAR_BOOKING_ID port.

The following paragraphs and tables describe what happens in the source system and the W_SALES_BOOKING_LINE_F table when you change sales representatives under this scenario.

Day 1: One order is placed with Salesperson 1001. The source system displays the information as shown in Table 65.

Table 65. Oracle 11i: Source System Table Row After Day One Activity
Sales Order Number
Sales Order Line Number
Salesperson ID
Quantity
Selling Price
Date

1

1

1001

100

25

1-June-2000

The row in Table 65 is entered into the IA Bookings table (W_SALES_BOOKING_LINE_F) as shown in Table 66.

Table 66. Oracle 11i: W_SALES_BOOKING_LINE_F Table Row After Day One Activity
SALES_ORDER_NUM
SALES_ORDER_ITEM
SALESREP_ID
SALES_QTY
NET_DOC_AMT
BOOKING_ID
BOOKED_ON_DT

1

1

1001

100

2500

1001

1-June-2000

Day 2: Salesperson 1002 takes over this order, replacing Salesperson 1001. Thus, the salesperson associated with the order is changed from 1001 to 1002 in the source system. The row in the source system looks like the row shown in Table 67.

Table 67. Oracle 11i: Source System Table Row After Day Two Activity
Sales Order Number
Sales Order Line Number
Salesperson ID
Quantity
Selling Price
Date

1

1

1002

100

25

2-June-2000

The SIL_SalesBookingLinesFact_Load_OrderLine_Credit, which also writes to the booking table, now does a debooking for the old line and SIL_SalesBookingLinesFact_Load_OrderLine_Debt inserts a new row into the W_SALES_BOOKING_LINE_F booking table. On day two, the row in the W_SALES_BOOKING_LINE_F table looks like the row shown in the Table 68.

Table 68. Oracle 11i: W_SALES_BOOKING_LINE_F Table Row After Day Two Activity
SALES_ORDER_NUM
SALES_ORDER_ITEM
SALESREP_ID
SALES_QTY
NET_DOC_AMT
BOOKING_ID
BOOKED_ON_DT

1

1

1001

100

2500

1001

1-June-2000

1
1
1001
-100
-2500
1001
2-June-2000
1
1
1002
100
2500
1002
2-June-2000
Oracle® Business Intelligence Applications Installation and Configuration Guide Copyright © 2007, Oracle. All rights reserved.