You are on page 1of 12

LegacyLoadi

ng–Shi
pmentandBooki
ngHi
stor
y

SHI
PMENT&BOOKI
NGHI
STORYCOLLECTI
ON

LEGACYLOADI
NG

1
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

Cont
ent
s

1:
Creat
ingthedat
afi
le
2:
LoadDataint
othestagingtabl
es
3:
Checkthedatai
nthestagingtabl
es
4:
Loadthedatafr
om StagingTabl
estobaset
abl
es
5:
Checkthedatai
nthebaset abl
es

2
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

St
ep:
1–Cr
eat
etheDat
afi
l
e

Fol
l
owingi
st hefi
l
ethati
susedf
orl
oadi
ngt
heshi
pmentandbooki
nghi
stor
y.
Demhi
stor
y.dat

Thefoll
owingf
iel
dsar
eofmoreconsi
der
ati
onforLoadi
ngthedata.
Cor
rect
for
matneedstobefol
lowedt
omakesurethatt
hedatagoesthr
ough
successf
ull
y

SITE_
CODE  :
Formatshouldbe{<customername>:
<customeraccount
number>:
<locati
on>:
<operat
inguni
t>}
Example:BusinessWorl
d:1608:
SanJose(OPS):
Visi
onOperat
ions

EBS_DEMAND_ CLASS_CODE:
Thisi
sactuall
ynotthecodebutt
hemeaning
Example:EASTisthedemandclasscodethatex
ist
sbutwehav
etoent
ert
he
meaningofthedemandclasscodewhichi
sEastUS

3
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

DM_ ORG_CODE:
Formatshoul
dbe{<i
nst
ancecode>:
<or
g_code>}
Example:TST:
M1

St
ep:
2–Loadt
hedat
aint
oSt
agi
ngTabl
es

Navi
gat
ion:DemandManagementSy
stem Adminsi
tr
ator>Col
l
ect
ions>
Shi
pmentandBooki
ngHist
ory– SelfSer
vice

4
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

Sel
ectt
hef
il
etobel
oaded

Not
edownt
her
equestI
D

5
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

Checki
fal
lther
equest
shav
esuccessf
ull
ycompl
eted

Note:ThecheckboxLaunchDownl oadwil
lautomaticall
y
downloadsthedat afrom Stagingtabl
estoBaset ables.Soeither
youcandownl oadt hedatadi r
ectl
ytobasetablesordoi tintwo
steps(Fi
rstt
ost agingtablesthenruntheworkflowtomov ethe
datafr
om stagingtobaset abl
es)somethi
ngsi mil
art othetwo
stepprocessthatweper formi nODP

St
ep:
3–Checkt
hedat
aint
hest
agi
ngt
abl
es

Uset
hef
oll
owi
ngSQLst
ocheckt
hedat
a

a.
It
em i
nfor
mat
ion

I
tem i
nfor
mat
ionwi
l
lgot
othei
temsst
agi
ngt
abl
et_
src_
item_
tmpl

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_i
tem_
tmpl
;

6
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

I
fther
ear eanyer
rorrecor
dst
heni
tgoesi
ntot
heer
rorst
agi
ngt
abl
e
t
_src_
item_tmpl
_err

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_i
tem_
tmpl
_er
r;

b.
Locat
ioni
nfor
mat
ion

Locat
ioni
nfor
mat
ionwi
l
lgot
othei
temsst
agi
ngt
abl
et_
src_
loc_
tmpl

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_l
oc_
tmpl
;

I
fther
eareanyer
rorr
ecor
dst
heni
tgoesi
ntot
heer
rorst
agi
ngt
abl
e
t
_src_
loc_
tmpl
_er
r

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_l
oc_
tmpl
_er
r;

c.
Sal
esDat
ainf
ormat
ion

Sal
esDat
ainf
ormat
ionwi
l
lgot
othei
temsst
agi
ngt
abl
et_
src_
sal
es_
tmpl

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_sal
es_
tmpl
;

I
fther
ear
eanyer
rorr
ecor
dst
heni
tgoesi
ntot
heer
rorst
agi
ngt
abl
e

7
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

t
_sr
c_sal
es_
tmpl
_er
r

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM t
_sr
c_sal
es_
tmpl
_er
r;

St
ep:
4–Loadt
hedat
afr
om st
agi
ngt
abl
esi
ntoBaseTabl
es

St
artt
hetomcat
Navi
gati
on:Demant
raSpect
rum >Col
l
abor
ator>Tomcat

Cl
i
ckonSt
art
up.
bat

Got
oWor
kfl
owManagement

Logi
nusi
ngDM/
DM

8
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

Got
oWor
kfl
owmanagementandst
artont
heWor
kfl
owEBSFul
lDownl
oad

Thewor
kfl
owget
sst
art
edandgoest
hrought
hef
oll
owi
ngst
ages

Pur
geHi
stor
yDat
a

LoadI
tems

9
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

LoadLocat
ions

LoadHi
stor
y

Onceev
ery
thi
ngi
sloadedi
twi
lsayMsgDownl
oadOk

10
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

St
ep:
5–Checkt
hedat
aint
hebaset
abl
es

a.
It
em inf
ormati
on
I
tem i
nfor
mationwi
ll
got
othet
abl
e“i
tems”

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM i
tems
WHEREi t
em_desc=‘
&it
em_
name’
;

Exampl
e:

SELECT*
FROM i
tems
WHEREi t
em_desc='
EBS_
DEM’
;

b.Locati
oninf
ormati
on
Locati
oninf
ormati
onwil
lgot
othet
abl
e“l
ocat
ion”

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM i
tems
WHEREdescri
pti
onLI
KE‘
%&l
ocat
ion_
name%’
;

Exampl
e:

SELECT*
FROM l
ocat
ion
WHEREdescri
pti
onLI
KE'
%Sea%'
;

c.Sal
esDat
aInf
ormat
ion

11
LegacyLoadi
ng–Shi
pmentandBooki
ngHi
stor
y

Sal
esDat
ainf
ormat
ionwi
l
lgot
othet
abl
e“sal
es_
dat
a”

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM sal
es_dat
a
WHEREi t
em_id=&i
tem_
id
ANDlocati
on_i
d=&l
ocat
ion_
id;

Exampl
e:

SELECT*
FROM sal
es_dat
a
WHEREi t
em_id=523
ANDlocati
on_i
d=543;

c.It
em Locati
onCombinat
ionInf
ormati
on
It
em Locati
oncombinat
ioninf
ormati
onwil
lgot
othet
abl
e“mdp_
mat
ri
x”

Uset
hef
oll
owi
ngSQLt
ocheckt
hedat
a

SELECT*
FROM mdp_matr
ix
WHEREitem_i
d=&item_id
ANDlocati
on_
id=&locat
ion_
id;

Exampl
e:

SELECT*
FROM mdp_matr
ix
WHEREitem_i
d=523
ANDlocati
on_
id=543;

12

You might also like