Вы находитесь на странице: 1из 12

Legacy Loading – Shipment and Booking History

SHIPMENT & BOOKING HISTORY


COLLECTION
LEGACY LOADING

1
Legacy Loading – Shipment and Booking History

Contents

1: Creating the data file


2: Load Data into the staging tables
3: Check the data in the staging tables
4: Load the data from Staging Tables to base tables
5: Check the data in the base tables

2
Legacy Loading – Shipment and Booking History

Step: 1 – Create the Data file

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

Step: 2 – Load the data into Staging Tables

Navigation : Demand Management System Adminsitrator > Collections > Shipment and
Booking History – Self Service

4
Legacy Loading – Shipment and Booking History

Select the file to be loaded

Note down the request ID

5
Legacy Loading – Shipment and Booking History

Check if all the requests have successfully completed

Note: The checkbox Launch Download will automatically downloads the


data from Staging tables to Base tables. So either you can download the
data directly to base tables or do it in two steps (First to staging tables then
run the workflow to move the data from staging to base tables) something
similar to the two step process that we perform in ODP

Step : 3 – Check the data in the staging tables

Use the following SQLs to check the data

a.Item information

Item information will go to the items staging table t_src_item_tmpl

Use the following SQL to check the data

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

Use the following SQL to check the data

SELECT *
FROM t_src_item_tmpl_err ;

b.Location information

Location information will go to the items staging table t_src_loc_tmpl

Use the following SQL to check the data

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

Use the following SQL to check the data

SELECT *
FROM t_src_loc_tmpl_err ;

c.Sales Data information

Sales Data information will go to the items staging table t_src_sales_tmpl

Use the following SQL to check the data

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

Use the following SQL to check the data

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

Start the tomcat


Navigation : Demantra Spectrum > Collaborator > Tomcat

Click on Startup.bat

Go to Workflow Management

Login using DM/DM

8
Legacy Loading – Shipment and Booking History

Go to Workflow management and start on the Workflow EBS Full Download

The workflow gets started and goes through the following stages

Purge History Data

Load Items

9
Legacy Loading – Shipment and Booking History

Load Locations

Load History

Once everything is loaded it wil say MsgDownloadOk

10
Legacy Loading – Shipment and Booking History

Step : 5 – Check the data in the base tables

a.Item information
Item information will go to the table “items”

Use the following SQL to check the data

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”

Use the following SQL to check the data

SELECT *
FROM items
WHERE description LIKE ‘%&location_name%’ ;

Example:

SELECT *
FROM location
WHERE description LIKE '%Sea%' ;

c. Sales Data Information

11
Legacy Loading – Shipment and Booking History

Sales Data information will go to the table “sales_data”

Use the following SQL to check the data

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 ;

c. Item Location Combination Information


Item Location combination information will go to the table “mdp_matrix”

Use the following SQL to check the data

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