Professional Documents
Culture Documents
Demantra Data Load
Demantra Data Load
1
Legacy Loading – Shipment and Booking History
Contents
2
Legacy Loading – Shipment and Booking History
Following is the file that is used for loading the shipment and booking history.
Demhistory.dat
The following fields are of more consideration for Loading the data.Correct format needs
to be followed to make sure that the data goes through successfully
SITE_CODE :
Format should be { <customer name>:<customer account
number>:<location>:<operating unit> }
Example : Business World:1608:San Jose (OPS):Vision Operations
EBS_DEMAND_CLASS_CODE :
This is actually not the code but the meaning
Example : EAST is the demand class code that exists but we have to enter the meaning
of the demand class code which is East US
3
Legacy Loading – Shipment and Booking History
DM_ORG_CODE :
Format should be { < instance code > : < org_code > }
Example : TST:M1
Navigation : Demand Management System Adminsitrator > Collections > Shipment and
Booking History – Self Service
4
Legacy Loading – Shipment and Booking History
5
Legacy Loading – Shipment and Booking History
a.Item information
SELECT *
FROM t_src_item_tmpl ;
If there are any error records then it goes into the error staging table t_src_item_tmpl_err
6
Legacy Loading – Shipment and Booking History
SELECT *
FROM t_src_item_tmpl_err ;
b.Location information
SELECT *
FROM t_src_loc_tmpl ;
If there are any error records then it goes into the error staging table t_src_loc_tmpl_err
SELECT *
FROM t_src_loc_tmpl_err ;
SELECT *
FROM t_src_sales_tmpl ;
If there are any error records then it goes into the error staging table t_src_sales_tmpl_err
7
Legacy Loading – Shipment and Booking History
SELECT *
FROM t_src_sales_tmpl_err ;
Step : 4 – Load the data from staging tables into Base Tables
Click on Startup.bat
Go to Workflow Management
8
Legacy Loading – Shipment and Booking History
The workflow gets started and goes through the following stages
Load Items
9
Legacy Loading – Shipment and Booking History
Load Locations
Load History
10
Legacy Loading – Shipment and Booking History
a.Item information
Item information will go to the table “items”
SELECT *
FROM items
WHERE item_desc = ‘&item_name’ ;
Example:
SELECT *
FROM items
WHERE item_desc = 'EBS_DEM’ ;
b. Location information
Location information will go to the table “location”
SELECT *
FROM items
WHERE description LIKE ‘%&location_name%’ ;
Example:
SELECT *
FROM location
WHERE description LIKE '%Sea%' ;
11
Legacy Loading – Shipment and Booking History
SELECT *
FROM sales_data
WHERE item_id = &item_id
AND location_id = &location_id ;
Example:
SELECT *
FROM sales_data
WHERE item_id = 523
AND location_id = 543 ;
SELECT *
FROM mdp_matrix
WHERE item_id = &item_id
AND location_id = &location_id ;
Example:
SELECT *
FROM mdp_matrix
WHERE item_id = 523
AND location_id = 543 ;
12