472
8/16/2019 Sap Bods10 en Col96 Fv Part Nw http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 1/472

Sap Bods10 en Col96 Fv Part Nw

Embed Size (px)

Citation preview

Page 1: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 1/472

Page 2: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 2/472

C o p y r i g h t    

C o p y r i g h t © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .  

 N o p a r t o f t h i s p u b l i c a t i o n m a y b e r e p r o d u c e d o r t r a n s m i t t e d i n a n y f o r m o r f o r a n y p u r p o s e   

w i t h o u t t h e e x p r e s s p e r m i s s i o n o f S A P A G . T h e i n f o r m a t i o n c o n t a i n e d h e r e i n m a y b e c h a n g e d      

w i t h o u t p r i o r n o t i c e .  

S o m e s o f t w a r e p r o d u c t s m a r k e t e d b y S A P A G a n d i t s d i s t r i b u t o r s c o n t a i n p r o p r i e t a r y s o f t w a r e      

c o m p o n e n t s o f o t h e r s o f t w a r e v e n d o r s .  

T r a d e m a r k s      

• M i c r o s o f t ® , W I N D O W S ® , N T ® , E X C E L ® , W o r d ® , P o w e r P o i n t ® a n d S Q L S e r v e r ® a r e      

r e g i s t e r e d t r a d e m a r k s o f M i c r o s o f t C o r p o r a t i o n .  

• I B M ® , D B 2 ® , O S / 2 ® , D B 2 / 6 0 0 0 ® , P a r a l l e l S y s p l e x ® , M V S / E S A ® , R S / 6 0 0 0 ® , A I X ® ,    

S / 3 9 0 ® , A S / 4 0 0 ® , O S / 3 9 0 ® , a n d O S / 4 0 0 ® a r e r e g i s t e r e d t r a d e m a r k s o f I B M C o r p o r a t i o n .  

• O R A C L E ® i s a r e g i s t e r e d t r a d e m a r k o f O R A C L E C o r p o r a t i o n .  

• I N F O R M I X ® - O n L i n e f o r S A P a n d I N F O R M I X ® D y n a m i c S e r v e r T M a r e r e g i s t e r e d      

t r a d e m a r k s o f I n f o r m i x S o f t w a r e I n c o r p o r a t e d .  

• U N I X ® , X / O p e n ® , O S F / 1 ® , a n d M o t i f ® a r e r e g i s t e r e d t r a d e m a r k s o f t h e O p e n G r o u p .  

• C i t r i x ® , t h e C i t r i x l o g o , I C A ® , P r o g r a m N e i g h b o r h o o d ® , M e t a F r a m e ® , W i n F r a m e ® ,    

V i d e o F r a m e ® , M u l t i W i n ® a n d o t h e r C i t r i x p r o d u c t n a m e s r e f e r e n c e d h e r e i n a r e t r a d e m a r k s    

o f C i t r i x S y s t e m s , I n c .  

• H T M L , D H T M L , X M L , X H T M L a r e t r a d e m a r k s o r r e g i s t e r e d t r a d e m a r k s o f W 3 C ® , W o r l d      

W i d e W e b C o n s o r t i u m , M a s s a c h u s e t t s I n s t i t u t e o f T e c h n o l o g y .  

• J A V A ® i s a r e g i s t e r e d t r a d e m a r k o f S u n M i c r o s y s t e m s , I n c .  

• J A V A S C R I P T ® i s a r e g i s t e r e d t r a d e m a r k o f S u n M i c r o s y s t e m s , I n c . , u s e d u n d e r l i c e n s e f o r    

t e c h n o l o g y i n v e n t e d a n d i m p l e m e n t e d b y N e t s c a p e .  

• S A P , S A P L o g o , R / 2 , R I V A , R / 3 , S A P A r c h i v e L i n k , S A P B u s i n e s s W o r k o w , W e b F l o w , S A P      

E a r l y W a t c h , B A P I , S A P P H I R E , M a n a g e m e n t C o c k p i t , m y S A P . c o m L o g o a n d m y S A P . c o m          

a r e t r a d e m a r k s o r r e g i s t e r e d t r a d e m a r k s o f S A P A G i n G e r m a n y a n d i n s e v e r a l o t h e r c o u n t r i e s    

a l l o v e r t h e w o r l d . A l l o t h e r p r o d u c t s m e n t i o n e d a r e t r a d e m a r k s o r r e g i s t e r e d t r a d e m a r k s o f      

t h e i r r e s p e c t i v e c o m p a n i e s .  

D i s c l a i m e r      

T H E S E M A T E R I A L S A R E P R O V I D E D B Y S A P O N A N " A S I S " B A S I S , A N D S A P E X P R E S S L Y        

D I S C L A I M S A N Y A N D A L L W A R R A N T I E S , E X P R E S S O R A P P L I E D , I N C L U D I N G        

W I T H O U T L I M I T A T I O N W A R R A N T I E S O F M E R C H A N T A B I L I T Y A N D F I T N E S S F O R A        

P A R T I C U L A R P U R P O S E , W I T H R E S P E C T T O T H E S E M A T E R I A L S A N D T H E S E R V I C E ,    

I N F O R M A T I O N , T E X T , G R A P H I C S , L I N K S , O R A N Y O T H E R M A T E R I A L S A N D P R O D U C T S      C O N T A I N E D H E R E I N . I N N O E V E N T S H A L L S A P B E L I A B L E F O R A N Y D I R E C T ,    

I N D I R E C T , S P E C I A L , I N C I D E N T A L , C O N S E Q U E N T I A L , O R P U N I T I V E D A M A G E S O F A N Y        

K I N D W H A T S O E V E R , I N C L U D I N G W I T H O U T L I M I T A T I O N L O S T R E V E N U E S O R L O S T        

P R O F I T S , W H I C H M A Y R E S U L T F R O M T H E U S E O F T H E S E M A T E R I A L S O R I N C L U D E D        

S O F T W A R E C O M P O N E N T S .  

g 2 0 1 1 6 2 9 1 0 5 2 3 9      

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 3: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 3/472

 A b o u t T h i s H a n d b o o k     

T h i s h a n d b o o k i s i n t e n d e d t o c o m p l e m e n t t h e i n s t r u c t o r - l e d p r e s e n t a t i o n o f t h i s    

c o u r s e , a n d s e r v e a s a s o u r c e o f r e f e r e n c e . I t i s n o t s u i t a b l e f o r s e l f - s t u d y .  

T y p o g r a p h i c C o n v e n t i o n s      

A m e r i c a n E n g l i s h i s t h e s t a n d a r d u s e d i n t h i s h a n d b o o k . T h e f o l l o w i n g      

t y p o g r a p h i c c o n v e n t i o n s a r e a l s o u s e d .  

T y p e S t y l e D e s c r i p t i o n      

 E x a m p l e t e x t     W o r d s o r c h a r a c t e r s t h a t a p p e a r o n t h e s c r e e n . T h e s e      i n c l u d e e l d n a m e s , s c r e e n t i t l e s , p u s h b u t t o n s a s w e l l    

a s m e n u n a m e s , p a t h s , a n d o p t i o n s .  

A l s o u s e d f o r c r o s s - r e f e r e n c e s t o o t h e r d o c u m e n t a t i o n      

 b o t h i n t e r n a l a n d e x t e r n a l . 

E x a m p l e t e x t       E m p h a s i z e d w o r d s o r p h r a s e s i n b o d y t e x t , t i t l e s o f      

g r a p h i c s , a n d t a b l e s    

E X A M P L E T E X T N a m e s o f e l e m e n t s i n t h e s y s t e m . T h e s e i n c l u d e      

r e p o r t n a m e s , p r o g r a m n a m e s , t r a n s a c t i o n c o d e s , t a b l e      

n a m e s , a n d i n d i v i d u a l k e y w o r d s o f a p r o g r a m m i n g      l a n g u a g e , w h e n s u r r o u n d e d b y b o d y t e x t , f o r e x a m p l e      

S E L E C T a n d I N C L U D E .  

E x a m p l e t e x t           S c r e e n o u t p u t . T h i s i n c l u d e s l e a n d d i r e c t o r y n a m e s    

a n d t h e i r p a t h s , m e s s a g e s , n a m e s o f v a r i a b l e s a n d      

 p a r a m e t e r s , a n d p a s s a g e s o f t h e s o u r c e t e x t o f a   

 p r o g r a m . 

E x a m p l e t e x t         E x a c t u s e r e n t r y . T h e s e a r e w o r d s a n d c h a r a c t e r s t h a t    

y o u e n t e r i n t h e s y s t e m e x a c t l y a s t h e y a p p e a r i n t h e      

d o c u m e n t a t i o n .  

 < E x a m p l e t e x t >      V a r i a b l e u s e r e n t r y . P o i n t e d b r a c k e t s i n d i c a t e t h a t y o u      

r e p l a c e t h e s e w o r d s a n d c h a r a c t e r s w i t h a p p r o p r i a t e      

e n t r i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     i i i  

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 4: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 4/472

A b o u t T h i s H a n d b o o k B O D S 1 0      

I c o n s i n B o d y T e x t    

T h e f o l l o w i n g i c o n s a r e u s e d i n t h i s h a n d b o o k .  

I c o n M e a n i n g      

F o r m o r e i n f o r m a t i o n , t i p s , o r b a c k g r o u n d      

 N o t e o r f u r t h e r e x p l a n a t i o n o f p r e v i o u s p o i n t  

E x c e p t i o n o r c a u t i o n      

P r o c e d u r e s    

I n d i c a t e s t h a t t h e i t e m i s d i s p l a y e d i n t h e i n s t r u c t o r ' s    

 p r e s e n t a t i o n . 

i v      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 5: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 5/472

C o n t e n t s        

C o u r s e O v e r v i e w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v i i    

C o u r s e G o a l s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v i i  

C o u r s e O b j   e c t i v e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v i i  

U n i t 1 : D e n i n g D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1      

D e n i n g D a        t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2      

U n i t 2 : D e n i n g S          o u r c e a n d T a r g e t M e t a d a t a . . . . . . . . . . . . . . . . . . . . . 2 5      

D e n i n g D a        t a s t o r e s i n D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6      D e n i n g D a        t a s t o r e s i n D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9      

D e n i n g D a t a S e r v i c e s S y s t e m C o n g u r a t i o n s . . . . . . . . . . . . . . . . . . . 5 3      

D e n i   n g a D a t a S e r v i c e s F l a t F i l e F o r m a t . . . . . . . . . . . . . . . . . . . . . . . . . 5 5      

D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 7      

D e n i n g X M          L F o r m a t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7      

U n i t 3 : C r e a t      i n g B a t c h J o b s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 9      

C r e a t i n g B a t c h J o b s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 0      

U n i t 4 : T r o u b l e s h        o o t i n g B a t c h J o b s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 5      

S e t t i n g T r a c        e s a n d A d d i n g A n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 6      

S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 0      

U s i n g        t h e I n t e r a c t i v e D e b u g g e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 4      

S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e . . . . . . . . . . . . . . . . . . . . . . . 1 5 5      

U n i t 5 : U s i n g        F u n c t i o n s , S c r i p t s a n d V a r i a b l e s . . . . . . . . . . . . . . . . . . 1 6 9      

U s i n g B u i l t - I n F u n c t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 0      

U s i n g V a r i a        b l e s , P a r a m e t e r s a n d S c r i p t s . . . . . . . . . . . . . . . . . . . . . . . . . 1 9 7      

U n i t 6 : U s i n g P l a t      f o r m T r a n s f o r m s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 9      

U s i n g P l a t f o r m T r a n s f o r m s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 0      U s i n g t h e M a p O p e r a t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 4      

U s i n g t h e V a l i d a t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 1    

U s i n g        t h e M e r g e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 4      

U s i n g t h e C a s e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 0      

U s i n g t h e S          Q L T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 3      

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 3      

S e t t i n g U p E r r      o r H a n d l i n g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 4      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     v   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 6: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 6/472

C o n t e n t s B O D S 1 0      

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 5      

C a p t u r i n g C h a n g e s i n D a t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 6      

U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . . . . . . . . . . 3 2 4      U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . . . . . . . . . . . 3 4 2      

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 9      

U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s . . . . . . . . . . . . . . . . . . . . . . 3 6 0      

U s i n g t h e P i v o t T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6 6      

U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e      

O p t i m i z a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 6      

U s i n g t h e X M L P i p e l i n e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 2      

U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l ) . . . . . . . . . . . 4 0 5      

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 1      

U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 2      

v i     © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 7: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 7/472

C o u r s e O v e r v i e w            

S A P B u s i n e s s O b j e c t s ™ D a t a I n t e g r a t o r 4 . 0 e n a b l e s y o u t o i n t e g r a t e d i s p a r a t e d a t a      

s o u r c e s t o d e l i v e r m o r e t i m e l y a n d a c c u r a t e d a t a t h a t e n d u s e r s i n a n o r g a n i z a t i o n      

c a n t r u s t . I n t h i s t h r e e – d a y c o u r s e , y o u w i l l l e a r n a b o u t c r e a t i n g , e x e c u t i n g , a n d      

t r o u b l e s h o o t i n g b a t c h j o b s , u s i n g f u n c t i o n s , s c r i p t s a n d t r a n s f o r m s t o c h a n g e t h e      

s t r u c t u r e a n d f o r m a t t i n g o f d a t a , h a n d l i n g e r r o r s , a n d c a p t u r i n g c h a n g e s i n d a t a .  

A s a b u s i n e s s b e n e t , b y b e i n g a b l e t o c r e a t e e f c i e n t d a t a i n t e g r a t i o n p r o j e c t s ,    

y o u c a n u s e t h e t r a n s f o r m e d d a t a t o h e l p i m p r o v e o p e r a t i o n a l a n d s u p p l y c h a i n      

e f c i e n c i e s , e n h a n c e c u s t o m e r r e l a t i o n s h i p s , c r e a t e n e w r e v e n u e o p p o r t u n i t i e s ,    

a n d o p t i m i z e r e t u r n o n i n v e s t m e n t f r o m e n t e r p r i s e a p p l i c a t i o n s .  

T a r g e t A u d i e n c e      

T h i s c o u r s e i s i n t e n d e d f o r t h e f o l l o w i n g a u d i e n c e s :  

• S o l u t i o n c o n s u l t a n t s r e s p o n s i b l e f o r i m p l e m e n t i n g d a t a i n t e g r a t i o n p r o j e c t s .  

• P o w e r u s e r s r e s p o n s i b l e f o r i m p l e m e n t i n g , a d m i n i s t e r i n g , a n d m a n a g i n g d a t a      

i n t e g r a t i o n p r o j e c t s .  

C o u r s e P r e r e q u i s i t e s      

R e q u i r e d K n o w l e d g e      

• B a s i c k n o w l e d g e o f E T L ( E x t r a c t i o n , T r a n s f o r m a t i o n , a n d L o a d i n g ) o f d a t a      

 p r o c e s s e s  

C o u r s e G o a l s      

T h i s c o u r s e w i l l p r e p a r e y o u t o :  

• S t a g e d a t a i n a n o p e r a t i o n a l d a t a s t o r e , d a t a w a r e h o u s e , o r d a t a m a r t .  

• U p d a t e s t a g e d d a t a i n b a t c h m o d e      

• T r a n s f o r m d a t a f o r a n a l y s i s t o i m p r o v e r o p e r a t i o n a l e f c i e n c i e s    

C o u r s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s c o u r s e , y o u w i l l b e a b l e t o :  

• I n t e g r a t e d i s p a r a t e d a t a s o u r c e s    

• C r e a t e , e x e c u t e , a n d t r o u b l e s h o o t b a t c h j o b s    

• U s e f u n c t i o n s , s c r i p t s , a n d t r a n s f o r m s t o m o d i f y d a t a s t r u c t u r e s a n d f o r m a t    

d a t a      

• H a n d l e e r r o r s i n t h e e x t r a c t i o n a n d t r a n s f o r m a t i o n p r o c e s s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     v i i  

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 8: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 8/472

C o u r s e O v e r v i e w B O D S 1 0      

• C a p t u r e c h a n g e s i n d a t a f r o m d a t a s o u r c e s u s i n g d i f f e r e n t t e c h n i q u e s    

v i i i       © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 9: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 9/472

U n i t 1        D e n i n g D a t a S e r v i c e s      

U n i t O v e r v i e w          

D a t a I n t e g r a t o r p r o v i d e s a g r a p h i c a l i n t e r f a c e t h a t a l l o w s y o u t o e a s i l y c r e a t e      

 j o b s t h a t e x t r a c t d a t a f r o m h e t e r o g e n e o u s s o u r c e s , t r a n s f o r m t h a t d a t a t o m e e t  

t h e b u s i n e s s r e q u i r e m e n t s o f y o u r o r g a n i z a t i o n , a n d l o a d t h e d a t a i n t o a s i n g l e      l o c a t i o n . T h e D a t a S e r v i c e s p l a t f o r m e n a b l e s y o u t o p e r f o r m e n t e r p r i s e - l e v e l    

d a t a i n t e g r a t i o n a n d d a t a q u a l i t y f u n c t i o n s . T h i s u n i t d e s c r i b e s t h e D a t a S e r v i c e s    

 p l a t f o r m a n d i t s a r c h i t e c t u r e , D a t a S e r v i c e s o b j e c t s a n d i t s g r a p h i c a l i n t e r f a c e , t h e   

D a t a S e r v i c e s D e s i g n e r .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• D e n e D a t a S e r v i c e s o b j e c t s    

• U s e t h e D a t a S e r v i c e s D e s i g n e r i n t e r f a c e      

U n i t C o n t e n t s      

L e s s o n : D e n i n g D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 10: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 10/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

L e s s o n : D e n i n g D a t a S e r v i c e s      

L e s s o n O v e r v i e w          

D a t a S e r v i c e s i s a g r a p h i c a l i n t e r f a c e f o r c r e a t i n g a n d s t a g i n g j o b s f o r d a t a      

i n t e g r a t i o n a n d d a t a q u a l i t y p u r p o s e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• D e n e D a t a S e r v i c e s o b j e c t s    

• U s e t h e D a t a S e r v i c e s D e s i g n e r i n t e r f a c e      

B u s i n e s s E x a m p l e      

F o r r e p o r t i n g i n S A P N e t W e a v e r B u s i n e s s W a r e h o u s e , y o u r c o m p a n y n e e d s d a t a      

f r o m d i v e r s e d a t a s o u r c e s , s u c h a s S A P s y s t e m s , n o n - S A P s y s t e m s , t h e I n t e r n e t    

a n d o t h e r b u s i n e s s a p p l i c a t i o n s . Y o u s h o u l d t h e r e f o r e e x a m i n e t h e t e c h n o l o g i e s    

t h a t S A P N e t W e a v e r B W o f f e r s f o r d a t a a c q u i s i t i o n .  

D e s c r i b i n g D a t a S e r v i c e s      

B u s i n e s s O b j e c t s D a t a S e r v i c e s p r o v i d e s a g r a p h i c a l i n t e r f a c e t h a t a l l o w s y o u t o      

e a s i l y c r e a t e j o b s t h a t e x t r a c t d a t a f r o m h e t e r o g e n e o u s s o u r c e s , t r a n s f o r m t h a t    

d a t a t o m e e t t h e b u s i n e s s r e q u i r e m e n t s o f y o u r o r g a n i z a t i o n , a n d l o a d t h e d a t a      

i n t o a s i n g l e l o c a t i o n .  

N o t e :      A l t h o u g h D a t a S e r v i c e s c a n b e u s e d f o r b o t h r e a l - t i m e a n d b a t c h      

 j o b s , t h i s c o u r s e c o v e r s b a t c h j o b s o n l y . 

D a t a S e r v i c e s c o m b i n e s b o t h b a t c h a n d r e a l - t i m e d a t a m o v e m e n t a n d m a n a g e m e n t    

w i t h i n t e l l i g e n t c a c h i n g t o p r o v i d e a s i n g l e d a t a i n t e g r a t i o n p l a t f o r m f o r    

i n f o r m a t i o n m a n a g e m e n t f r o m a n y i n f o r m a t i o n s o u r c e a n d f o r a n y i n f o r m a t i o n      

u s e .  

2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 11: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 11/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 1 : D a t a S e r v i c e s A r c h i t e c t u r e – A c c e s s S e r v e r      

T h i s u n i q u e c o m b i n a t i o n a l l o w s y o u t o :  

• S t a g e d a t a i n a n o p e r a t i o n a l d a t a s t o r e , d a t a w a r e h o u s e , o r d a t a m a r t .  

• U p d a t e s t a g e d d a t a i n b a t c h o r r e a l - t i m e m o d e s .  

• C r e a t e a s i n g l e e n v i r o n m e n t f o r d e v e l o p i n g , t e s t i n g , a n d d e p l o y i n g t h e e n t i r e      

d a t a i n t e g r a t i o n p l a t f o r m .  

• M a n a g e a s i n g l e m e t a d a t a r e p o s i t o r y t o c a p t u r e t h e r e l a t i o n s h i p s b e t w e e n      

d i f f e r e n t e x t r a c t i o n a n d a c c e s s m e t h o d s a n d p r o v i d e i n t e g r a t e d l i n e a g e a n d      

i m p a c t a n a l y s i s .  

D a t a S e r v i c e s p e r f o r m s t h r e e k e y f u n c t i o n s t h a t c a n b e c o m b i n e d t o c r e a t e a      

s c a l a b l e , h i g h - p e r f o r m a n c e d a t a p l a t f o r m . I t :  

• L o a d s E n t e r p r i s e R e s o u r c e P l a n n i n g ( E R P ) o r e n t e r p r i s e a p p l i c a t i o n d a t a      

i n t o a n o p e r a t i o n a l d a t a s t o r e ( O D S ) o r a n a l y t i c a l d a t a w a r e h o u s e , a n d      

u p d a t e s i n b a t c h o r r e a l - t i m e m o d e s .  

• C r e a t e s r o u t i n g r e q u e s t s t o a d a t a w a r e h o u s e o r E R P s y s t e m u s i n g c o m p l e x      r u l e s .  

• A p p l i e s t r a n s a c t i o n s a g a i n s t E R P s y s t e m s .  

D a t a m a p p i n g a n d t r a n s f o r m a t i o n c a n b e d e n e d u s i n g t h e D a t a S e r v i c e s D e s i g n e r    

g r a p h i c a l u s e r i n t e r f a c e . D a t a S e r v i c e s a u t o m a t i c a l l y g e n e r a t e s t h e a p p r o p r i a t e      

i n t e r f a c e c a l l s t o a c c e s s t h e d a t a i n t h e s o u r c e s y s t e m .  

F o r m o s t E R P a p p l i c a t i o n s , D a t a S e r v i c e s g e n e r a t e s S Q L o p t i m i z e d f o r t h e      

s p e c i c t a r g e t d a t a b a s e ( O r a c l e , D B 2 , S Q L S e r v e r , I n f o r m i x , a n d s o o n ) .  

A u t o m a t i c a l l y - g e n e r a t e d , o p t i m i z e d c o d e r e d u c e s t h e c o s t o f m a i n t a i n i n g      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 12: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 12/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

d a t a w a r e h o u s e s a n d e n a b l e s y o u t o b u i l d d a t a s o l u t i o n s q u i c k l y , m e e t i n g      

u s e r r e q u i r e m e n t s f a s t e r t h a n o t h e r m e t h o d s ( f o r e x a m p l e , c u s t o m - c o d i n g ,    

d i r e c t - c o n n e c t c a l l s , o r P L / S Q L ) .  D a t a S e r v i c e s c a n a p p l y d a t a c h a n g e s i n a v a r i e t y o f d a t a f o r m a t s , i n c l u d i n g      

a n y c u s t o m f o r m a t u s i n g a D a t a S e r v i c e s a d a p t e r . E n t e r p r i s e u s e r s c a n a p p l y      

d a t a c h a n g e s a g a i n s t m u l t i p l e b a c k - o f c e s y s t e m s s i n g u l a r l y o r s e q u e n t i a l l y .  

B y g e n e r a t i n g c a l l s n a t i v e t o t h e s y s t e m i n q u e s t i o n , D a t a S e r v i c e s m a k e s i t    

u n n e c e s s a r y t o d e v e l o p a n d m a i n t a i n c u s t o m i z e d c o d e t o m a n a g e t h e p r o c e s s .  

Y o u c a n a l s o d e s i g n a c c e s s i n t e l l i g e n c e i n t o e a c h t r a n s a c t i o n b y a d d i n g o w l o g i c      

t h a t c h e c k s v a l u e s i n a d a t a w a r e h o u s e o r i n t h e t r a n s a c t i o n i t s e l f b e f o r e p o s t i n g i t    

t o t h e t a r g e t E R P s y s t e m .  

D a t a S e r v i c e s P a c k a g e s ( R a p i d M a r t s )    

D a t a S e r v i c e s p r o v i d e s a w i d e r a n g e o f f u n c t i o n a l i t y , d e p e n d i n g o n t h e p a c k a g e      a n d o p t i o n s s e l e c t e d :  

• D a t a I n t e g r a t o r p a c k a g e s p r o v i d e p l a t f o r m t r a n s f o r m s f o r c o r e f u n c t i o n a l i t y ,    

a n d D a t a I n t e g r a t o r t r a n s f o r m s t o e n h a n c e d a t a i n t e g r a t i o n p r o j e c t s .  

• D a t a Q u a l i t y p a c k a g e s p r o v i d e p l a t f o r m t r a n s f o r m s f o r c o r e f u n c t i o n a l i t y ,    

a n d D a t a Q u a l i t y t r a n s f o r m s t o p a r s e , s t a n d a r d i z e , c l e a n s e , e n h a n c e , m a t c h ,    

a n d c o n s o l i d a t e d a t a .  

• D a t a S e r v i c e s p a c k a g e s p r o v i d e a l l o f t h e f u n c t i o n a l i t y o f b o t h t h e D a t a      

I n t e g r a t o r a n d D a t a Q u a l i t y p a c k a g e s .  

T h e p r o c e s s t o b u i l d a r e p o r t i n g d a t a m a r t m i g h t t a k e a p p r o x i m a t e l y 6 - 1 2 m o n t h s ,    

 b u t w i t h D a t a S e r v i c e s R a p i d M a r t s , t h i s c o u l d b e d o n e i n 6 - 1 2 d a y s . 

4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 13: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 13/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 2 : S t e p s t o B u i l d i n g a R e p o r t i n g D a t a M a r t    

T h e p r o c e s s w o u l d b e g i n w i t h a c c e s s i n g t h e k e y s o u r c e t a b l e s .  

F i g u r e 3 : A c c e s s i n g t h e K e y S o u r c e T a b l e s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 14: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 14/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

O n c e t h e s o u r c e t a b l e s a r e i d e n t i e d a n d a c c e s s e d , p r e d e l i v e r e d d a t a e x t r a c t o r s ,    

t r a n s f o r m a t i o n s a n d l o a d p r o g r a m s c a n t h e n b e t e s t e d .  

F i g u r e 4 : P r e - B u i l t E T L J o b s      

I n d u s t r y s t a n d a r d s a r e u s e d t o b u i l d a p r e d e v e l o p e d d a t a m o d e l b a s e d o n b e s t     p r a c t i c e s . 

6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 15: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 15/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 5 : T a r g e t D a t a M o d e l    

F i n a l l y t o a c c e l e r a t e t h e p r o j e c t , p r e b u i l t u n i v e r s e s a n d r e p o r t s p r o v i d e a r e      

c o n t a i n e d i n e a c h R a p i d M a r t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 16: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 16/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

F i g u r e 6 : P r e - B u i l t U n i v e r s e s a n d R e p o r t s      

N o t e :      T h i s c o u r s e d o e s n o t c o v e r t h e s u b j e c t o f R a p i d M a r t s .  

T h e D a t a S e r v i c e s A r c h i t e c t u r e      

D a t a S e r v i c e s r e l i e s o n s e v e r a l u n i q u e c o m p o n e n t s t o a c c o m p l i s h t h e d a t a      

i n t e g r a t i o n a n d d a t a q u a l i t y a c t i v i t i e s r e q u i r e d t o m a n a g e y o u r c o r p o r a t e d a t a .  

D a t a S e r v i c e s i n c l u d e s t h e s t a n d a r d c o m p o n e n t s :  

• D e s i g n e r    

• R e p o s i t o r y      

• J o b S e r v e r    

• E n g i n e s    

• A c c e s s S e r v e r    

• A d a p t e r s    • R e a l - t i m e S e r v i c e s    

• A d d r e s s S e r v e r    

• C l e a n s i n g P a c k a g e s , D i c t i o n a r i e s , a n d D i r e c t o r i e s    

• M a n a g e m e n t C o n s o l e      

T h i s d i a g r a m i l l u s t r a t e s t h e r e l a t i o n s h i p s b e t w e e n t h e s e c o m p o n e n t s :  

8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 17: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 17/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 7 : D a t a S e r v i c e s A r c h i t e c t u r e      

T h e D a t a S e r v i c e s D e s i g n e r      

D a t a S e r v i c e s D e s i g n e r i s a W i n d o w s c l i e n t a p p l i c a t i o n u s e d t o c r e a t e , t e s t , a n d      

m a n u a l l y e x e c u t e j o b s t h a t t r a n s f o r m d a t a a n d p o p u l a t e a d a t a w a r e h o u s e . U s i n g      

D e s i g n e r , y o u c r e a t e d a t a m a n a g e m e n t a p p l i c a t i o n s t h a t c o n s i s t o f d a t a m a p p i n g s ,    

t r a n s f o r m a t i o n s , a n d c o n t r o l l o g i c .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 18: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 18/472

Page 19: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 19/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 9 : D a t a S e r v i c e s R e p o s i t o r y      

T h e r e a r e t h r e e t y p e s o f r e p o s i t o r i e s :  

• A l o c a l r e p o s i t o r y ( k n o w n i n D e s i g n e r a s t h e L o c a l O b j e c t L i b r a r y ) i s u s e d      

 b y a n a p p l i c a t i o n d e s i g n e r t o s t o r e d e n i t i o n s o f s o u r c e a n d t a r g e t m e t a d a t a   

a n d D a t a S e r v i c e s o b j e c t s .  

• A c e n t r a l r e p o s i t o r y ( k n o w n i n D e s i g n e r a s t h e C e n t r a l O b j e c t L i b r a r y ) i s a n      

o p t i o n a l c o m p o n e n t t h a t c a n b e u s e d t o s u p p o r t m u l t i u s e r d e v e l o p m e n t . T h e      

C e n t r a l O b j e c t L i b r a r y p r o v i d e s a s h a r e d l i b r a r y t h a t a l l o w s d e v e l o p e r s t o      

c h e c k o b j e c t s i n a n d o u t f o r d e v e l o p m e n t .  

• A p r o l e r r e p o s i t o r y i s u s e d t o s t o r e i n f o r m a t i o n t h a t i s u s e d t o d e t e r m i n e t h e      

q u a l i t y o f d a t a .  

T h e D a t a S e r v i c e s J o b S e r v e r      

E a c h r e p o s i t o r y i s a s s o c i a t e d w i t h a t l e a s t o n e D a t a S e r v i c e s J o b S e r v e r , w h i c h      

r e t r i e v e s t h e j o b f r o m i t s a s s o c i a t e d r e p o s i t o r y a n d s t a r t s t h e d a t a m o v e m e n t    

e n g i n e . T h e d a t a m o v e m e n t e n g i n e i n t e g r a t e s d a t a f r o m m u l t i p l e h e t e r o g e n e o u s    

s o u r c e s , p e r f o r m s c o m p l e x d a t a t r a n s f o r m a t i o n s , a n d m a n a g e s e x t r a c t i o n s a n d      t r a n s a c t i o n s f r o m E R P s y s t e m s a n d o t h e r s o u r c e s . T h e J o b S e r v e r c a n m o v e d a t a      

i n b a t c h o r r e a l - t i m e m o d e a n d u s e s d i s t r i b u t e d q u e r y o p t i m i z a t i o n , m u l t i t h r e a d i n g ,    

i n - m e m o r y c a c h i n g , i n - m e m o r y d a t a t r a n s f o r m a t i o n s , a n d p a r a l l e l p r o c e s s i n g t o      

d e l i v e r h i g h d a t a t h r o u g h p u t a n d s c a l a b i l i t y .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 20: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 20/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

F i g u r e 1 0 : D a t a S e r v i c e s A r c h i t e c t u r e – J o b S e r v e r      

W h i l e d e s i g n i n g a j o b , y o u c a n r u n i t f r o m t h e D e s i g n e r . I n y o u r p r o d u c t i o n      

e n v i r o n m e n t , t h e J o b S e r v e r r u n s j o b s t r i g g e r e d b y a s c h e d u l e r o r b y a r e a l - t i m e      

s e r v i c e m a n a g e d b y t h e D a t a S e r v i c e s A c c e s s S e r v e r . I n p r o d u c t i o n e n v i r o n m e n t s ,    

y o u c a n b a l a n c e j o b l o a d s b y c r e a t i n g a J o b S e r v e r G r o u p ( m u l t i p l e J o b S e r v e r s ) ,    

w h i c h e x e c u t e s j o b s a c c o r d i n g t o o v e r a l l s y s t e m l o a d .  

D a t a S e r v i c e s p r o v i d e s d i s t r i b u t e d p r o c e s s i n g c a p a b i l i t i e s t h r o u g h t h e S e r v e r    

G r o u p s . A S e r v e r G r o u p i s a c o l l e c t i o n o f J o b S e r v e r s t h a t e a c h r e s i d e o n d i f f e r e n t    

D a t a S e r v i c e s s e r v e r c o m p u t e r s . E a c h D a t a S e r v i c e s s e r v e r c a n c o n t r i b u t e o n e ,    

a n d o n l y o n e , J o b S e r v e r t o a s p e c i c S e r v e r G r o u p . E a c h J o b S e r v e r c o l l e c t s    

r e s o u r c e u t i l i z a t i o n i n f o r m a t i o n f o r i t s c o m p u t e r . T h i s i n f o r m a t i o n i s u t i l i z e d b y      

D a t a S e r v i c e s t o d e t e r m i n e w h e r e a j o b , d a t a o w o r s u b d a t a o w ( d e p e n d i n g o n      

t h e d i s t r i b u t i o n l e v e l s p e c i e d ) s h o u l d b e e x e c u t e d .  

T h e D a t a S e r v i c e s E n g i n e s    

W h e n D a t a S e r v i c e s j o b s a r e e x e c u t e d , t h e J o b S e r v e r s t a r t s D a t a S e r v i c e s    

e n g i n e p r o c e s s e s t o p e r f o r m d a t a e x t r a c t i o n , t r a n s f o r m a t i o n , a n d m o v e m e n t .  

D a t a S e r v i c e s e n g i n e p r o c e s s e s u s e p a r a l l e l p r o c e s s i n g a n d i n - m e m o r y d a t a      

t r a n s f o r m a t i o n s t o d e l i v e r h i g h d a t a t h r o u g h p u t a n d s c a l a b i l i t y .  

T h e D a t a S e r v i c e s C l e a n s i n g P a c k a g e s , D i c t i o n a r i e s , a n d D i r e c t o r i e s    

T h e D a t a Q u a l i t y C l e a n s i n g P a c k a g e s , d i c t i o n a r i e s , a n d d i r e c t o r i e s p r o v i d e      

r e f e r e n t i a l d a t a f o r t h e D a t a C l e a n s e a n d A d d r e s s C l e a n s e t r a n s f o r m s t o u s e w h e n      

 p a r s i n g , s t a n d a r d i z i n g , a n d c l e a n s i n g n a m e a n d a d d r e s s d a t a . 

1 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 21: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 21/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

F i g u r e 1 1 : D a t a S e r v i c e s A r c h i t e c t u r e – A d d r e s s S e r v e r      

C l e a n s i n g P a c k a g e s e n h a n c e t h e a b i l i t y o f D a t a C l e a n s e t o a c c u r a t e l y p r o c e s s    

v a r i o u s f o r m s o f g l o b a l d a t a b y i n c l u d i n g l a n g u a g e - s p e c i c r e f e r e n c e d a t a      

a n d p a r s i n g r u l e s . D i r e c t o r i e s p r o v i d e i n f o r m a t i o n o n a d d r e s s e s f r o m p o s t a l    

a u t h o r i t i e s ; d i c t i o n a r y l e s a r e u s e d t o i d e n t i f y , p a r s e , a n d s t a n d a r d i z e d a t a s u c h a s    n a m e s , t i t l e s , a n d r m d a t a . D i c t i o n a r i e s a l s o c o n t a i n a c r o n y m , m a t c h s t a n d a r d ,    

g e n d e r , c a p i t a l i z a t i o n , a n d a d d r e s s i n f o r m a t i o n .  

T h e D a t a S e r v i c e s M a n a g e m e n t C o n s o l e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 22: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 22/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

T h e D a t a S e r v i c e s M a n a g e m e n t C o n s o l e p r o v i d e s a c c e s s t o t h e s e f e a t u r e s :  

• A d m i n i s t r a t o r    

A d m i n i s t e r D a t a S e r v i c e s r e s o u r c e s , i n c l u d i n g :  

 – S c h e d u l i n g , m o n i t o r i n g , a n d e x e c u t i n g b a t c h j o b s  

 – C o n g u r i n g , s t a r t i n g , a n d s t o p p i n g r e a l - t i m e s e r v i c e s  

 – C o n g u r i n g J o b S e r v e r , A c c e s s S e r v e r , a n d r e p o s i t o r y u s a g e   

 – C o n g u r i n g a n d m a n a g i n g a d a p t e r s  

 – M a n a g i n g u s e r s  

 – P u b l i s h i n g b a t c h j o b s a n d r e a l - t i m e s e r v i c e s v i a w e b s e r v i c e s  

 – R e p o r t i n g o n m e t a d a t a   

• A u t o D o c u m e n t a t i o n      V i e w , a n a l y z e , a n d p r i n t g r a p h i c a l r e p r e s e n t a t i o n s o f a l l o b j e c t s a s d e p i c t e d i n      

D a t a S e r v i c e s D e s i g n e r , i n c l u d i n g t h e i r r e l a t i o n s h i p s , p r o p e r t i e s , a n d m o r e .  

• D a t a V a l i d a t i o n      

E v a l u a t e t h e r e l i a b i l i t y o f y o u r t a r g e t d a t a b a s e d o n t h e v a l i d a t i o n r u l e s y o u      

c r e a t e i n y o u r D a t a S e r v i c e s b a t c h j o b s t o q u i c k l y r e v i e w , a s s e s s , a n d i d e n t i f y      

 p o t e n t i a l i n c o n s i s t e n c i e s o r e r r o r s i n s o u r c e d a t a . 

• I m p a c t a n d L i n e a g e A n a l y s i s    

A n a l y z e e n d - t o - e n d i m p a c t a n d l i n e a g e f o r D a t a S e r v i c e s t a b l e s a n d c o l u m n s ,    

a n d S A P B u s i n e s s O b j e c t s B u s i n e s s I n t e l l i g e n c e p l a t f o r m o b j e c t s s u c h a s    u n i v e r s e s , b u s i n e s s v i e w s , a n d r e p o r t s .  

• O p e r a t i o n a l D a s h b o a r d      

V i e w d a s h b o a r d s o f s t a t u s a n d p e r f o r m a n c e e x e c u t i o n s t a t i s t i c s o f D a t a      

S e r v i c e s j o b s f o r o n e o r m o r e r e p o s i t o r i e s o v e r a g i v e n t i m e p e r i o d .  

• D a t a Q u a l i t y R e p o r t s    

U s e d a t a q u a l i t y r e p o r t s t o v i e w a n d e x p o r t S A P C r y s t a l R e p o r t s f o r b a t c h      

a n d r e a l - t i m e j o b s t h a t i n c l u d e s t a t i s t i c s - g e n e r a t i n g t r a n s f o r m s . R e p o r t t y p e s    

i n c l u d e j o b s u m m a r i e s , t r a n s f o r m - s p e c i c r e p o r t s , a n d t r a n s f o r m g r o u p      

r e p o r t s .  

T o g e n e r a t e r e p o r t s f o r M a t c h , U S R e g u l a t o r y A d d r e s s C l e a n s e , a n d G l o b a l    

A d d r e s s C l e a n s e t r a n s f o r m s , y o u m u s t e n a b l e t h e        G e n e r a t e r e p o r t d a t a      

o p t i o n i n t h e T r a n s f o r m E d i t o r .  

O t h e r D a t a S e r v i c e s T o o l s    

T h e r e a r e a l s o s e v e r a l t o o l s t o a s s i s t y o u i n m a n a g i n g y o u r D a t a S e r v i c e s    

i n s t a l l a t i o n .  

1 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 23: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 23/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

T h e D a t a S e r v i c e s R e p o s i t o r y M a n a g e r a l l o w s y o u t o c r e a t e , u p g r a d e , a n d c h e c k      

t h e v e r s i o n s o f l o c a l , c e n t r a l , a n d p r o l e r r e p o s i t o r i e s .  

T h e D a t a S e r v i c e s S e r v e r M a n a g e r a l l o w s y o u t o a d d , d e l e t e , o r e d i t t h e p r o p e r t i e s    o f J o b S e r v e r s . I t i s a u t o m a t i c a l l y i n s t a l l e d o n e a c h c o m p u t e r o n w h i c h y o u i n s t a l l    

a J o b S e r v e r .  

U s e t h e S e r v e r M a n a g e r t o d e n e l i n k s b e t w e e n J o b S e r v e r s a n d r e p o s i t o r i e s . Y o u      

c a n l i n k m u l t i p l e J o b S e r v e r s o n d i f f e r e n t m a c h i n e s t o a s i n g l e r e p o s i t o r y ( f o r l o a d      

 b a l a n c i n g ) o r e a c h J o b S e r v e r t o m u l t i p l e r e p o s i t o r i e s ( w i t h o n e d e f a u l t ) t o s u p p o r t  

i n d i v i d u a l r e p o s i t o r i e s ( f o r e x a m p l e , s e p a r a t i n g t e s t a n d p r o d u c t i o n e n v i r o n m e n t s ) .  

T h e L i c e n s e M a n a g e r d i s p l a y s t h e D a t a S e r v i c e s c o m p o n e n t s f o r w h i c h y o u      

c u r r e n t l y h a v e a l i c e n s e .  

T h e M e t a d a t a I n t e g r a t o r a l l o w s D a t a S e r v i c e s t o s e a m l e s s l y s h a r e m e t a d a t a      

w i t h S A P B u s i n e s s O b j e c t s I n t e l l i g e n c e p r o d u c t s . R u n t h e M e t a d a t a I n t e g r a t o r    t o c o l l e c t m e t a d a t a i n t o t h e D a t a S e r v i c e s r e p o s i t o r y f o r B u s i n e s s V i e w s a n d      

U n i v e r s e s u s e d b y S A P C r y s t a l R e p o r t s , D e s k t o p I n t e l l i g e n c e d o c u m e n t s , a n d      

W e b I n t e l l i g e n c e d o c u m e n t s .  

D e n i n g D a t a S e r v i c e s o b j e c t s      

D a t a S e r v i c e s p r o v i d e s y o u w i t h a v a r i e t y o f o b j e c t s t o u s e w h e n y o u a r e b u i l d i n g      

y o u r d a t a i n t e g r a t i o n a n d d a t a q u a l i t y a p p l i c a t i o n s .  

F i g u r e 1 2 : D a t a S e r v i c e s O b j e c t T y p e s      

D a t a S e r v i c e s o b j e c t s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 24: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 24/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

I n D a t a S e r v i c e s , a l l e n t i t i e s y o u a d d , d e n e , m o d i f y , o r w o r k w i t h a r e o b j e c t s .  

S o m e o f t h e m o s t f r e q u e n t l y - u s e d o b j e c t s a r e :  

• P r o j e c t s    

• J o b s    

• W o r k o w s    

• D a t a o w s    

• T r a n s f o r m s    

• S c r i p t s    

T h i s d i a g r a m s h o w s s o m e c o m m o n o b j e c t s .  

F i g u r e 1 3 : D a t a S e r v i c e s O b j e c t s      

A l l o b j e c t s h a v e o p t i o n s , p r o p e r t i e s , a n d c l a s s e s . E a c h c a n b e m o d i e d t o c h a n g e      

t h e b e h a v i o r o f t h e o b j e c t .  

O p t i o n s c o n t r o l t h e o b j e c t . F o r e x a m p l e , t o s e t u p a c o n n e c t i o n t o a d a t a b a s e , t h e      d a t a b a s e n a m e i s a n o p t i o n f o r t h e c o n n e c t i o n .  

P r o p e r t i e s d e s c r i b e t h e o b j e c t . F o r e x a m p l e , t h e n a m e a n d c r e a t i o n d a t e d e s c r i b e      

w h a t t h e o b j e c t i s u s e d f o r a n d w h e n i t b e c a m e a c t i v e . A t t r i b u t e s a r e p r o p e r t i e s    

u s e d t o l o c a t e a n d o r g a n i z e o b j e c t s .  

C l a s s e s d e n e h o w a n o b j e c t c a n b e u s e d . E v e r y o b j e c t i s e i t h e r r e u s a b l e o r    

s i n g l e - u s e .  

1 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 25: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 25/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

S i n g l e - u s e o b j e c t s a p p e a r o n l y a s c o m p o n e n t s o f o t h e r o b j e c t s . T h e y o p e r a t e o n l y      

i n t h e c o n t e x t i n w h i c h t h e y w e r e c r e a t e d . Y o u c a n n o t c o p y s i n g l e - u s e o b j e c t s .  

A r e u s a b l e o b j e c t h a s a s i n g l e d e n i t i o n a n d a l l c a l l s t o t h e o b j e c t r e f e r t o t h a t    d e n i t i o n . I f y o u c h a n g e t h e d e n i t i o n o f t h e o b j e c t i n o n e p l a c e , a n d t h e n s a v e      

t h e o b j e c t , t h e c h a n g e i s r e e c t e d t o a l l o t h e r c a l l s t o t h e o b j e c t .  

M o s t o b j e c t s c r e a t e d i n D a t a S e r v i c e s a r e a v a i l a b l e f o r r e u s e . A f t e r y o u d e n e a n d      

s a v e a r e u s a b l e o b j e c t , D a t a S e r v i c e s s t o r e s t h e d e n i t i o n i n t h e r e p o s i t o r y . Y o u      

c a n t h e n r e u s e t h e d e n i t i o n a s n e c e s s a r y b y c r e a t i n g c a l l s t o i t .  

F o r e x a m p l e , a d a t a o w w i t h i n a p r o j e c t i s a r e u s a b l e o b j e c t . M u l t i p l e j o b s , s u c h      

a s a w e e k l y l o a d j o b a n d a d a i l y l o a d j o b , c a n c a l l t h e s a m e d a t a o w . I f t h i s d a t a      

o w i s c h a n g e d , b o t h j o b s c a l l t h e n e w v e r s i o n o f t h e d a t a o w .  

Y o u c a n e d i t r e u s a b l e o b j e c t s a t a n y t i m e i n d e p e n d e n t o f t h e c u r r e n t o p e n p r o j e c t .  

F o r e x a m p l e , i f y o u o p e n a n e w p r o j e c t , y o u c a n o p e n a d a t a o w a n d e d i t i t .  H o w e v e r , t h e c h a n g e s y o u m a k e t o t h e d a t a o w a r e n o t s t o r e d u n t i l y o u s a v e t h e m .  

D e n i n g R e l a t i o n s h i p b e t w e e n O b j e c t s    

J o b s a r e c o m p o s e d o f w o r k o w s a n d / o r d a t a o w s :  

• A w o r k o w i s t h e i n c o r p o r a t i o n o f s e v e r a l d a t a o w s i n t o a s e q u e n c e .  

• A d a t a o w p r o c e s s t r a n s f o r m s s o u r c e d a t a i n t o t a r g e t d a t a .  

F i g u r e 1 4 : D a t a S e r v i c e s O b j e c t R e l a t i o n s h i p s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 26: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 26/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

A w o r k o w o r d e r s d a t a o w s a n d t h e o p e r a t i o n s t h a t s u p p o r t t h e m . I t a l s o d e n e s    

t h e i n t e r d e p e n d e n c i e s b e t w e e n d a t a o w s .  

F o r e x a m p l e , i f o n e t a r g e t t a b l e d e p e n d s o n v a l u e s f r o m o t h e r t a b l e s , y o u c a n u s e      t h e w o r k o w t o s p e c i f y t h e o r d e r i n w h i c h y o u w a n t D a t a S e r v i c e s t o p o p u l a t e      

t h e t a b l e s . Y o u c a n a l s o u s e w o r k o w s t o d e n e s t r a t e g i e s f o r h a n d l i n g e r r o r s    

t h a t o c c u r d u r i n g p r o j e c t e x e c u t i o n , o r t o d e n e c o n d i t i o n s f o r r u n n i n g s e c t i o n s    

o f a p r o j e c t .  

A d a t a o w d e n e s t h e b a s i c t a s k t h a t D a t a S e r v i c e s a c c o m p l i s h e s , w h i c h i n v o l v e s    

m o v i n g d a t a f r o m o n e o r m o r e s o u r c e s t o o n e o r m o r e t a r g e t t a b l e s o r l e s . Y o u      

d e n e d a t a o w s b y i d e n t i f y i n g t h e s o u r c e s f r o m w h i c h t o e x t r a c t d a t a , t h e      

t r a n s f o r m a t i o n s t h e d a t a s h o u l d u n d e r g o , a n d t a r g e t s .  

D e n i n g p r o j e c t s a n d j o b s    

A p r o j e c t i s t h e h i g h e s t - l e v e l o b j e c t i n D e s i g n e r . P r o j e c t s p r o v i d e a w a y t o      o r g a n i z e t h e o t h e r o b j e c t s y o u c r e a t e i n D e s i g n e r .  

A j o b i s t h e s m a l l e s t u n i t o f w o r k t h a t y o u c a n s c h e d u l e i n d e p e n d e n t l y f o r    

e x e c u t i o n . A p r o j e c t i s a s i n g l e - u s e o b j e c t t h a t a l l o w s y o u t o g r o u p j o b s . F o r    

e x a m p l e , y o u c a n u s e a p r o j e c t t o g r o u p j o b s t h a t h a v e s c h e d u l e s t h a t d e p e n d o n      

o n e a n o t h e r o r t h a t y o u w a n t t o m o n i t o r t o g e t h e r .  

P r o j e c t s h a v e t h e s e c h a r a c t e r i s t i c s :  

• P r o j e c t s a r e l i s t e d i n t h e L o c a l O b j e c t L i b r a r y .  

• O n l y o n e p r o j e c t c a n b e o p e n a t a t i m e .  

• P r o j e c t s c a n n o t b e s h a r e d a m o n g m u l t i p l e u s e r s .  

T h e o b j e c t s i n a p r o j e c t a p p e a r h i e r a r c h i c a l l y i n t h e p r o j e c t a r e a . I f a p l u s s i g n      

( + ) a p p e a r s n e x t t o a n o b j e c t , y o u c a n e x p a n d i t t o v i e w t h e l o w e r - l e v e l o b j e c t s    

c o n t a i n e d i n t h e o b j e c t . D a t a S e r v i c e s d i s p l a y s t h e c o n t e n t s a s b o t h n a m e s a n d      

i c o n s i n t h e p r o j e c t a r e a h i e r a r c h y a n d i n t h e w o r k s p a c e . J o b s m u s t b e a s s o c i a t e d      

w i t h a p r o j e c t b e f o r e t h e y c a n b e e x e c u t e d i n t h e p r o j e c t a r e a o f D e s i g n e r .  

U s i n g W o r k F l o w s    

J o b s w i t h d a t a o w s c a n b e d e v e l o p e d w i t h o u t u s i n g w o r k o w s . H o w e v e r , o n e      

s h o u l d c o n s i d e r n e s t i n g d a t a o w s i n s i d e o f w o r k o w s b y d e f a u l t . T h i s p r a c t i c e      

c a n p r o v i d e v a r i o u s b e n e t s .  

A l w a y s u s i n g w o r k o w s m a k e s j o b s m o r e a d a p t a b l e t o a d d i t i o n a l d e v e l o p m e n t    

a n d / o r s p e c i c a t i o n c h a n g e s . F o r i n s t a n c e , i f a j o b i n i t i a l l y c o n s i s t s o f f o u r d a t a      

o w s t h a t a r e t o r u n s e q u e n t i a l l y , t h e y c o u l d b e s e t u p w i t h o u t w o r k o w s . B u t    

w h a t i f s p e c i c a t i o n c h a n g e s r e q u i r e t h a t t h e y b e m e r g e d i n t o a n o t h e r j o b i n s t e a d ?      

T h e d e v e l o p e r w o u l d h a v e t o r e p l i c a t e t h e i r s e q u e n c e c o r r e c t l y i n t h e o t h e r j o b .  

I f t h e s e h a d b e e n i n i t i a l l y a d d e d t o a w o r k o w , t h e d e v e l o p e r c o u l d t h e n h a v e      

s i m p l y c o p i e d t h a t w o r k o w i n t o t h e c o r r e c t p o s i t i o n w i t h i n t h e n e w j o b . T h e r e      

w o u l d b e n o n e e d t o l e a r n , c o p y , a n d v e r i f y t h e p r e v i o u s s e q u e n c e . T h e c h a n g e      

c a n b e m a d e m o r e q u i c k l y w i t h g r e a t e r a c c u r a c y .  

1 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 27: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 27/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s      

E v e n i f t h e r e i s o n e d a t a o w p e r w o r k o w , t h e r e a r e b e n e t s t o a d a p t a b i l i t y .  

I n i t i a l l y , i t m a y h a v e b e e n d e c i d e d t h a t r e c o v e r y u n i t s a r e n o t i m p o r t a n t ; t h e      

e x p e c t a t i o n b e i n g t h a t i f t h e j o b f a i l s , t h e w h o l e p r o c e s s c o u l d s i m p l y b e r e r u n .  H o w e v e r , a s d a t a v o l u m e s t e n d t o i n c r e a s e , i t m a y b e d e t e r m i n e d t h a t a f u l l    

r e p r o c e s s i n g i s t o o t i m e c o n s u m i n g . T h e j o b m a y t h e n b e c h a n g e d t o i n c o r p o r a t e      

w o r k o w s t o b e n e t f r o m r e c o v e r y u n i t s t o b y p a s s r e p r o c e s s i n g o f s u c c e s s f u l    

s t e p s . H o w e v e r , t h e s e c h a n g e s c a n b e c o m p l e x a n d c a n c o n s u m e m o r e t i m e t h a n      

a l l o t t e d f o r i n a p r o j e c t p l a n . I t a l s o o p e n s u p t h e p o s s i b i l i t y t h a t u n i t s o f r e c o v e r y      

a r e n o t p r o p e r l y d e n e d . S e t t i n g t h e s e u p d u r i n g i n i t i a l d e v e l o p m e n t w h e n t h e f u l l    

a n a l y s i s o f t h e p r o c e s s i n g n a t u r e i s p r e f e r r e d .  

N o t e :      T h i s c o u r s e f o c u s e s o n c r e a t i n g b a t c h j o b s u s i n g d a t a b a s e      

D a t a s t o r e s a n d l e f o r m a t s .  

U s i n g t h e D a t a S e r v i c e s D e s i g n e r      

T h e D a t a S e r v i c e s D e s i g n e r i n t e r f a c e a l l o w s y o u t o p l a n a n d o r g a n i z e y o u r d a t a      

i n t e g r a t i o n a n d d a t a q u a l i t y j o b s i n a v i s u a l w a y . M o s t o f t h e c o m p o n e n t s o f D a t a      

S e r v i c e s c a n b e p r o g r a m m e d w i t h t h i s i n t e r f a c e .  

D e s c r i b i n g t h e D e s i g n e r w i n d o w        

T h e D a t a S e r v i c e s D e s i g n e r i n t e r f a c e c o n s i s t s o f a s i n g l e a p p l i c a t i o n w i n d o w a n d      

s e v e r a l e m b e d d e d s u p p o r t i n g w i n d o w s . T h e a p p l i c a t i o n w i n d o w c o n t a i n s t h e      

m e n u b a r , t o o l b a r , L o c a l O b j e c t L i b r a r y , p r o j e c t a r e a , t o o l p a l e t t e , a n d w o r k s p a c e .  

U s i n g t h e L o c a l O b j e c t L i b r a r y      

T h e L o c a l O b j e c t L i b r a r y g i v e s y o u a c c e s s t o t h e o b j e c t t y p e s l i s t e d i n t h e t a b l e      

 b e l o w . T h e t a b l e s h o w s t h e t a b o n w h i c h t h e o b j e c t t y p e a p p e a r s i n t h e L o c a l  

O b j e c t L i b r a r y a n d d e s c r i b e s t h e D a t a S e r v i c e s c o n t e x t i n w h i c h y o u c a n u s e      

e a c h t y p e o f o b j e c t .  

Y o u c a n i m p o r t o b j e c t s t o a n d e x p o r t o b j e c t s f r o m y o u r L o c a l O b j e c t L i b r a r y a s a      

l e . I m p o r t i n g o b j e c t s f r o m a l e o v e r w r i t e s e x i s t i n g o b j e c t s w i t h t h e s a m e n a m e s    

i n t h e d e s t i n a t i o n L o c a l O b j e c t L i b r a r y .  

W h o l e r e p o s i t o r i e s c a n b e e x p o r t e d i n e i t h e r . a t l o r . x m l f o r m a t . U s i n g t h e . x m l    

l e f o r m a t c a n m a k e r e p o s i t o r y c o n t e n t e a s i e r f o r y o u t o r e a d . I t a l s o a l l o w s y o u      

t o e x p o r t D a t a S e r v i c e s t o o t h e r p r o d u c t s .  

U s i n g t h e T o o l P a l e t t e      

T h e t o o l p a l e t t e i s a s e p a r a t e w i n d o w t h a t a p p e a r s b y d e f a u l t o n t h e r i g h t e d g e o f      

t h e D e s i g n e r w o r k s p a c e . Y o u c a n m o v e t h e t o o l p a l e t t e a n y w h e r e o n y o u r s c r e e n      

o r d o c k i t o n a n y e d g e o f t h e D e s i g n e r w i n d o w .  

T h e i c o n s i n t h e t o o l p a l e t t e a l l o w y o u t o c r e a t e n e w o b j e c t s i n t h e w o r k s p a c e .  

D i s a b l e d i c o n s o c c u r w h e n t h e r e a r e i n v a l i d e n t r i e s t o t h e d i a g r a m o p e n i n t h e      

w o r k s p a c e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 28: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 28/472

U n i t 1 : D e n i n g D a t a S e r v i c e s B O D S 1 0      

T o s h o w t h e n a m e o f e a c h i c o n , h o l d t h e c u r s o r o v e r t h e i c o n u n t i l t h e t o o l t i p f o r    

t h e i c o n a p p e a r s .  

W h e n y o u c r e a t e a n o b j e c t f r o m t h e t o o l p a l e t t e , y o u a r e c r e a t i n g a n e w d e n i t i o n      o f a n o b j e c t . I f a n e w o b j e c t i s r e u s a b l e , i t i s a u t o m a t i c a l l y a v a i l a b l e i n t h e L o c a l    

O b j e c t L i b r a r y a f t e r y o u c r e a t e i t .  

I f y o u s e l e c t t h e d a t a o w i c o n f r o m t h e t o o l p a l e t t e a n d d e n e a n e w d a t a o w        

c a l l e d D F 1 , y o u c a n l a t e r d r a g t h a t e x i s t i n g d a t a o w f r o m t h e L o c a l O b j e c t    

L i b r a r y a n d a d d i t t o a n o t h e r d a t a o w c a l l e d D F 2 .  

U s i n g t h e W o r k s p a c e      

W h e n y o u o p e n a j o b o r a n y o b j e c t w i t h i n a j o b h i e r a r c h y , t h e w o r k s p a c e b e c o m e s    

a c t i v e w i t h y o u r s e l e c t i o n . T h e w o r k s p a c e p r o v i d e s a p l a c e t o m a n i p u l a t e o b j e c t s    

a n d g r a p h i c a l l y a s s e m b l e d a t a m o v e m e n t p r o c e s s e s .  

T h e s e p r o c e s s e s a r e r e p r e s e n t e d b y i c o n s t h a t y o u d r a g a n d d r o p i n t o a w o r k s p a c e      

t o c r e a t e a d i a g r a m . T h i s d i a g r a m i s a v i s u a l r e p r e s e n t a t i o n o f a n e n t i r e d a t a      

m o v e m e n t a p p l i c a t i o n o r s o m e p a r t o f a d a t a m o v e m e n t a p p l i c a t i o n .  

Y o u s p e c i f y t h e o w o f d a t a b y c o n n e c t i n g o b j e c t s i n t h e w o r k s p a c e f r o m l e f t t o      

r i g h t i n t h e o r d e r y o u w a n t t h e d a t a t o b e m o v e d .  

2 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 29: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 29/472

Page 30: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 30/472

U n i t S u m m a r y B O D S 1 0      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• D e n e D a t a S e r v i c e s o b j e c t s    

• U s e t h e D a t a S e r v i c e s D e s i g n e r i n t e r f a c e      

2 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 31: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 31/472

B O D S 1 0 T e s t Y o u r K n o w l e d g e      

T e s t Y o u r K n o w l e d g e      

1 . W h i c h o f t h e s e o b j e c t s i s s i n g l e - u s e ?      

C h o o s e t h e c o r r e c t a n s w e r ( s ) .  

□ A J o b ?      

□ B P r o j e c t ?      

□ C D a t a F l o w ?      

□ D W o r k F l o w ?      

2 . P l a c e t h e s e o b j e c t s i n o r d e r b y t h e i r h i e r a r c h y : d a t a o w s , j o b s , p r o j e c t s ,    

a n d w o r k o w s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 32: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 32/472

T e s t Y o u r K n o w l e d g e B O D S 1 0      

A n s w e r s      

1 . W h i c h o f t h e s e o b j e c t s i s s i n g l e - u s e ?      

A n s w e r :      B    

J o b s , D a t a F l o w s a n d W o r k F l o w s a r e a l l r e u s a b l e .  

2 . P l a c e t h e s e o b j e c t s i n o r d e r b y t h e i r h i e r a r c h y : d a t a o w s , j o b s , p r o j e c t s ,    

a n d w o r k o w s .  

A n s w e r :      P r o j e c t s , j o b s , w o r k o w s a n d d a t a o w s .  

2 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 33: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 33/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 34: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 34/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 35: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 35/472

U n i t 2        D e n i n g S o u r c e a n d T a r g e t M e t a d a t a      

U n i t O v e r v i e w          

T o d e n e d a t a m o v e m e n t r e q u i r e m e n t s i n D a t a S e r v i c e s , y o u m u s t i m p o r t s o u r c e      

a n d t a r g e t m e t a d a t a . A d a t a s t o r e p r o v i d e s a c o n n e c t i o n o r m u l t i p l e c o n n e c t i o n s t o      

d a t a s o u r c e s s u c h a s a d a t a b a s e . T h r o u g h t h e d a t a s t o r e c o n n e c t i o n , D a t a S e r v i c e s    c a n i m p o r t t h e m e t a d a t a t h a t d e s c r i b e s t h e d a t a f r o m t h e s o u r c e . D a t a S e r v i c e s    

u s e s t h e s e d a t a s t o r e s t o r e a d d a t a f r o m s o u r c e t a b l e s o r l o a d d a t a t o t a r g e t t a b l e s .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

• D e n e s y s t e m c o n g u r a t i o n s i n D a t a S e r v i c e s    

• D e n i n g a t l e f o r m a t s a s a b a s i s f o r a D a t a s t o r e      

• C r e a t e a D a t a S e r v i c e s E x c e l l e f o r m a t    

• I m p o r t d a t a f r o m X M L d o c u m e n t s    

• U n n e s t d a t a i n X M L d o c u m e n t s    

U n i t C o n t e n t s      

L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6      

E x e r c i s e 1 : C r e a t i n g S o u r c e a n d T a r g e t D a t a s t o r e s . . . . . . . . . . . . . . . . . . . . 3 1    

L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9      

E x e r c i s e 2 : C r e a t i n g S o u r c e a n d T a r g e t D a t a s t o r e s . . . . . . . . . . . . . . . . . . . . 4 5      

L e s s o n : D e n i n g D a t a S e r v i c e s S y s t e m C o n g u r a t i o n s . . . . . . . . . . . . . . . . . . . 5 3      L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t . . . . . . . . . . . . . . . . . . . . . . . . . 5 5      

E x e r c i s e 3 : C r e a t i n g a F l a t F i l e f o r m a t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3      

L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 7      

E x e r c i s e 4 : C r e a t i n g a n E x c e l F i l e F o r m a t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3      

L e s s o n : D e n i n g X M L F o r m a t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 36: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 36/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

L e s s o n O v e r v i e w          

U s i n g D a t a s t o r e s t o h e l p d e n e d a t a m o v e m e n t r e q u i r e m e n t s i n D a t a S e r v i c e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

B u s i n e s s E x a m p l e      

Y o u a r e r e s p o n s i b l e f o r e x t r a c t i n g d a t a i n t o t h e c o m p a n y ' s S A P N e t W e a v e r    B u s i n e s s W a r e h o u s e s y s t e m a n d w a n t t o c o n v e r t t o u s i n g D a t a S e r v i c e s a s t h e n e w        

d a t a t r a n s f e r p r o c e s s .  

U s i n g D a t a s t o r e s      

A D a t a s t o r e p r o v i d e s a c o n n e c t i o n o r m u l t i p l e c o n n e c t i o n s t o d a t a s o u r c e s s u c h      

a s a d a t a b a s e . U s i n g t h e D a t a s t o r e c o n n e c t i o n , D a t a S e r v i c e s c a n i m p o r t t h e      

m e t a d a t a t h a t d e s c r i b e s t h e d a t a f r o m t h e d a t a s o u r c e .  

F i g u r e 1 5 : D a t a s t o r e      

2 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 37: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 37/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

D a t a S e r v i c e s u s e s t h e s e D a t a s t o r e s t o r e a d d a t a f r o m s o u r c e t a b l e s o r l o a d d a t a t o      

t a r g e t t a b l e s . E a c h s o u r c e o r t a r g e t m u s t b e d e n e d i n d i v i d u a l l y a n d t h e D a t a s t o r e      

o p t i o n s a v a i l a b l e d e p e n d o n w h i c h R e l a t i o n a l D a t a b a s e M a n a g e m e n t S y s t e m          ( R D B M S ) o r a p p l i c a t i o n i s u s e d f o r t h e D a t a s t o r e . D a t a b a s e D a t a s t o r e s c a n b e      

c r e a t e d f o r t h e s o u r c e s :  

• I B M D B 2 , M i c r o s o f t S Q L S e r v e r , O r a c l e , S y b a s e , a n d T e r a d a t a d a t a b a s e s    

( u s i n g n a t i v e c o n n e c t i o n s )    

• O t h e r d a t a b a s e s ( u s i n g O D B C )    

• A s i m p l e m e m o r y s t o r a g e m e c h a n i s m u s i n g a m e m o r y D a t a s t o r e      

• I M S , V S A M , a n d v a r i o u s a d d i t i o n a l l e g a c y s y s t e m s u s i n g B u s i n e s s O b j e c t s    

D a t a S e r v i c e s M a i n f r a m e I n t e r f a c e s s u c h a s A t t u n i t y a n d I B M C o n n e c t o r s    

T h e s p e c i c i n f o r m a t i o n t h a t a D a t a s t o r e c o n t a i n s d e p e n d s o n t h e c o n n e c t i o n .  

W h e n y o u r d a t a b a s e o r a p p l i c a t i o n c h a n g e s , y o u m u s t m a k e c o r r e s p o n d i n g      c h a n g e s i n t h e D a t a s t o r e i n f o r m a t i o n i n D a t a S e r v i c e s a s t h e s e s t r u c t u r a l c h a n g e s    

a r e n o t d e t e c t e d a u t o m a t i c a l l y .  

T h e r e a r e t h r e e k i n d s o f D a t a s t o r e s :  

• D a t a b a s e D a t a s t o r e s : p r o v i d e a s i m p l e w a y t o i m p o r t m e t a d a t a d i r e c t l y f r o m          

a R D B M S .  

• A p p l i c a t i o n D a t a s t o r e s : l e t u s e r s e a s i l y i m p o r t m e t a d a t a f r o m m o s t    

E n t e r p r i s e R e s o u r c e P l a n n i n g ( E R P ) s y s t e m s .  

• A d a p t e r D a t a s t o r e s : c a n p r o v i d e a c c e s s t o a n a p p l i c a t i o n ’ s d a t a a n d m e t a d a t a      

o r j u s t m e t a d a t a . F o r e x a m p l e , i f t h e d a t a s o u r c e i s S Q L - c o m p a t i b l e , t h e      

a d a p t e r m i g h t b e d e s i g n e d t o a c c e s s m e t a d a t a , w h i l e D a t a S e r v i c e s e x t r a c t s    d a t a f r o m o r l o a d s d a t a d i r e c t l y t o t h e a p p l i c a t i o n .  

U s i n g A d a p t e r s t o d e n e D a t a s t o r e s    

A d a p t e r s p r o v i d e a c c e s s t o a t h i r d - p a r t y a p p l i c a t i o n ’ s d a t a a n d m e t a d a t a .  

D e p e n d i n g o n t h e a d a p t e r i m p l e m e n t a t i o n , a d a p t e r s c a n p r o v i d e :  

• A p p l i c a t i o n m e t a d a t a b r o w s i n g      

• A p p l i c a t i o n m e t a d a t a i m p o r t i n g i n t o t h e D a t a S e r v i c e s r e p o s i t o r y      

F o r b a t c h a n d r e a l - t i m e d a t a m o v e m e n t b e t w e e n D a t a S e r v i c e s a n d a p p l i c a t i o n s ,    

S A P B u s i n e s s O b j e c t s o f f e r s a n A d a p t e r S o f t w a r e D e v e l o p m e n t K i t ( S D K ) t o      

d e v e l o p y o u r o w n c u s t o m a d a p t e r s . Y o u c a n a l s o b u y D a t a S e r v i c e s p r e p a c k a g e d      a d a p t e r s t o a c c e s s a p p l i c a t i o n d a t a a n d m e t a d a t a i n a n y a p p l i c a t i o n .  

Y o u c a n u s e t h e D a t a M a r t A c c e l e r a t o r f o r S A P C r y s t a l R e p o r t s a d a p t e r t o i m p o r t    

m e t a d a t a f r o m S A P B u s i n e s s O b j e c t s B u s i n e s s I n t e l l i g e n c e p l a t f o r m .  

Y o u n e e d t o c r e a t e a t l e a s t o n e D a t a s t o r e f o r e a c h d a t a b a s e l e s y s t e m w i t h w h i c h      

y o u a r e e x c h a n g i n g d a t a . T o c r e a t e a D a t a s t o r e , y o u m u s t h a v e a p p r o p r i a t e a c c e s s    

 p r i v i l e g e s t o t h e d a t a b a s e o r l e s y s t e m t h a t t h e D a t a s t o r e d e s c r i b e s . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 38: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 38/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

C r e a t i n g a d a t a b a s e D a t a s t o r e      

1 . O n t h e D a t a s t o r e s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e w h i t e s p a c e      

a n d s e l e c t      N e w      f r o m t h e m e n u .  

T h e     C r e a t e N e w D a t a s t o r e        d i a l o g b o x d i s p l a y s .  

2 . I n t h e        D a t a s t o r e n a m e        e l d , e n t e r t h e n a m e o f t h e n e w D a t a s t o r e . T h e n a m e      

c a n c o n t a i n a n y a l p h a n u m e r i c c h a r a c t e r s o r u n d e r s c o r e s , b u t n o t s p a c e s .  

3 . I n t h e        D a t a s t o r e T y p e        d r o p - d o w n l i s t , e n s u r e t h a t t h e d e f a u l t v a l u e o f      

 D a t a b a s e     i s s e l e c t e d .  

N o t e :      T h e v a l u e s y o u s e l e c t f o r t h e D a t a s t o r e t y p e a n d d a t a b a s e      

t y p e d e t e r m i n e t h e o p t i o n s a v a i l a b l e w h e n y o u c r e a t e a d a t a b a s e      

D a t a s t o r e .  

4 . I n t h e        D a t a b a s e t y p e        d r o p - d o w n l i s t , s e l e c t t h e R D B M S f o r t h e d a t a s o u r c e .  

5 . E n t e r t h e o t h e r c o n n e c t i o n d e t a i l s , a s r e q u i r e d .  

N o t e :      I f y o u a r e u s i n g M y S Q L , a n y O D B C c o n n e c t i o n p r o v i d e s    

a c c e s s t o a l l o f t h e a v a i l a b l e M y S Q L s c h e m a s .  

6 . L e a v e t h e        E n a b l e a u t o m a t i c d a t a t r a n s f e r        c h e c k b o x s e l e c t e d .  

7 . S e l e c t      O K       . 

C h a n g i n g a D a t a s t o r e d e n i t i o n      

L i k e a l l D a t a S e r v i c e s o b j e c t s , D a t a s t o r e s a r e d e n e d b y b o t h o p t i o n s a n d      

 p r o p e r t i e s : • O p t i o n s c o n t r o l t h e o p e r a t i o n o f o b j e c t s . T h e s e i n c l u d e t h e d a t a b a s e s e r v e r    

n a m e , d a t a b a s e n a m e , u s e r n a m e , a n d p a s s w o r d f o r t h e s p e c i c d a t a b a s e .  

T h e     E d i t D a t a s t o r e        d i a l o g b o x a l l o w s y o u t o e d i t a l l c o n n e c t i o n p r o p e r t i e s    

e x c e p t D a t a s t o r e n a m e a n d D a t a s t o r e t y p e f o r a d a p t e r a n d a p p l i c a t i o n      

D a t a s t o r e s . F o r d a t a b a s e D a t a s t o r e s , y o u c a n e d i t a l l c o n n e c t i o n p r o p e r t i e s    

e x c e p t D a t a s t o r e n a m e , D a t a s t o r e t y p e , d a t a b a s e t y p e , a n d d a t a b a s e v e r s i o n .  

• P r o p e r t i e s d o c u m e n t t h e o b j e c t . F o r e x a m p l e , t h e n a m e o f t h e D a t a s t o r e      

a n d t h e d a t e o n w h i c h i t i s c r e a t e d a r e D a t a s t o r e p r o p e r t i e s . P r o p e r t i e s a r e      

d e s c r i p t i v e o f t h e o b j e c t a n d d o n o t a f f e c t i t s o p e r a t i o n .  

2 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 39: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 39/472

Page 40: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 40/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

P r i m a r y k e y c o l u m n      T h e c o l u m n t h a t c o m p r i s e s t h e p r i m a r y k e y f o r t h e t a b l e .  

A f t e r a t a b l e h a s b e e n a d d e d t o a d a t a o w d i a g r a m , t h e s e      c o l u m n s i s i n d i c a t e d i n t h e c o l u m n l i s t b y a k e y i c o n n e x t    

t o t h e c o l u m n n a m e .  

T a b l e a t t r i b u t e I n f o r m a t i o n D a t a S e r v i c e s r e c o r d s a b o u t t h e t a b l e s u c h      

a s t h e d a t e c r e a t e d a n d d a t e m o d i e d i f t h e s e v a l u e s a r e      

a v a i l a b l e .  

O w n e r n a m e N a m e o f t h e t a b l e o w n e r .  

Y o u c a n a l s o i m p o r t s t o r e d p r o c e d u r e s f r o m D B 2 , M S S Q L S e r v e r , O r a c l e , a n d      

S y b a s e d a t a b a s e s a n d s t o r e d f u n c t i o n s a n d p a c k a g e s f r o m O r a c l e . Y o u c a n u s e      

t h e s e f u n c t i o n s a n d p r o c e d u r e s i n t h e e x t r a c t i o n s p e c i c a t i o n s y o u g i v e D a t a      S e r v i c e s .  

I m p o r t e d f u n c t i o n s a n d p r o c e d u r e s a p p e a r i n t h e F u n c t i o n b r a n c h o f e a c h      

D a t a s t o r e t r e e o n t h e D a t a s t o r e s t a b o f t h e L o c a l O b j e c t L i b r a r y .  

I m p o r t i n g m e t a d a t a f r o m d a t a s o u r c e s    

T h e e a s i e s t w a y t o i m p o r t m e t a d a t a i s b y b r o w s i n g . N o t e t h a t f u n c t i o n s c a n n o t b e      

i m p o r t e d u s i n g t h i s m e t h o d .  

T o i m p o r t m e t a d a t a b y b r o w s i n g :  

1 . O n t h e D a t a s t o r e s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e D a t a s t o r e      

a n d s e l e c t      O p e n        f r o m t h e m e n u .  T h e i t e m s a v a i l a b l e t o i m p o r t a p p e a r i n t h e w o r k s p a c e .  

2 . N a v i g a t e t o a n d s e l e c t t h e t a b l e s f o r w h i c h y o u w a n t t o i m p o r t m e t a d a t a .  

Y o u c a n h o l d d o w n t h e        C t r l      o r    S h i f t      k e y s a n d s e l e c t t o s e l e c t m u l t i p l e t a b l e s .  

3 . R i g h t - c l i c k t h e s e l e c t e d i t e m s a n d s e l e c t      I m p o r t      f r o m t h e m e n u .  

T h e w o r k s p a c e c o n t a i n s c o l u m n s t h a t i n d i c a t e w h e t h e r t h e t a b l e h a s a l r e a d y      

 b e e n i m p o r t e d i n t o D a t a S e r v i c e s ( I m p o r t e d ) a n d i f t h e t a b l e s c h e m a h a s  

c h a n g e d s i n c e i t w a s i m p o r t e d ( C h a n g e d ) . T o v e r i f y w h e t h e r t h e r e p o s i t o r y      

c o n t a i n s t h e m o s t r e c e n t m e t a d a t a f o r a n o b j e c t , r i g h t - c l i c k t h e o b j e c t a n d      

s e l e c t      R e c o n c i l e        . 4 . I n t h e L o c a l O b j e c t L i b r a r y , e x p a n d t h e D a t a s t o r e t o d i s p l a y t h e l i s t o f      

i m p o r t e d o b j e c t s , o r g a n i z e d i n t o F u n c t i o n s , T a b l e s , a n d T e m p l a t e T a b l e s .  

5 . T o v i e w d a t a f o r a n i m p o r t e d D a t a s t o r e , r i g h t - c l i c k a t a b l e a n d s e l e c t      V i e w        

 D a t a     f r o m t h e m e n u .  

3 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 41: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 41/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

E x e r c i s e 1 : C r e a t i n g S o u r c e a n d T a r g e t    

D a t a s t o r e s      E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e D a t a s t o r e s a n d i m p o r t m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s , B e t a      

B u s i n e s s e s , D e l t a , H R D a t a M a r t a n d O m e g a d a t a b a s e s    

B u s i n e s s E x a m p l e      

[ E n t e r a b u s i n e s s e x a m p l e t h a t h e l p s t h e l e a r n e r u n d e r s t a n d t h e p r a c t i c a l b u s i n e s s    

u s e o f t h i s e x e r c i s e . ]    

T a s k 1 :    

S t a r t t h e S A P B u s i n e s s O b j e c t s D a t a S e r v i c e s D e s i g n e r .  

1 . L o g i n t o t h e D a t a S e r v i c e s D e s i g n e r .  

T a s k 2 :    

C r e a t e D a t a s t o r e s a n d i m p o r t m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s , B e t a      

B u s i n e s s e s , D e l t a , H R _ D a t a M a r t a n d O m e g a d a t a b a s e s    

1 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e A l p h a      

A c q u i s i t i o n s d a t a b a s e .  

2 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e B e t a      

B u s i n e s s e s d a t a b a s e .  

3 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w D a t a s t o r e f o r t h e D e l t a s t a g i n g      

d a t a b a s e .  

4 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e H R d a t a      

m a r t .  

5 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e O m e g a      

d a t a w a r e h o u s e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 42: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 42/472

Page 43: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 43/472

Page 44: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 44/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

2 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e B e t a      

B u s i n e s s e s d a t a b a s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e B e t a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e B E T A        

U s e r n a m e s o u r c e u s e r    

P a s s w o r d s o u r c e p a s s    

c ) I m p o r t t h e m e t a d a t a f o r t h e B e t a d a t a b a s e s o u r c e t a b l e s b y s e l e c t i n g a l l    

t h e t a b l e s , r i g h t c l i c k o n t h e m a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n      

 I m p o r t   . 

• s o u r c e . a d d r e s s e s    

• s o u r c e . c a t e g o r i e s    • s o u r c e . c o u n t r y      

• s o u r c e . c u s t o m e r    

• s o u r c e . e m p l o y e e s    

• s o u r c e . o r d e r _ d e t a i l s    

• s o u r c e . o r d e r s    

• s o u r c e . p r o d u c t s    

• s o u r c e . r e g i o n      

• s o u r c e . s u p p l i e r s    

• s o u r c e . u s a _ c u s t o m e r s    d ) V i e w t h e d a t a f o r t h e u s a _ c u s t o m e r s t a b l e a n d c o n r m t h a t J a n e H a r t l e y      

f r o m P l a n v i e w I n c . i s t h e r s t c u s t o m e r r e c o r d b y r i g h t c l i c k i n g o n t h e      

t a b l e i n t h e L o c a l O b j e c t L i b r a r y a n d c h o o s e t h e o p t i o n        V i e w d a t a        . 

C o n t i n u e d o n n e x t p a g e      

3 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 45: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 45/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

3 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w D a t a s t o r e f o r t h e D e l t a s t a g i n g      

d a t a b a s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k o n      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e D e l t a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e D E L T A # # ( w h e r e # # i s t h e      

n u m b e r f r o m y o u r U s e r I D        

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s d a t a b a s e s o u r c e t a b l e s    

 b y s e l e c t i n g a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e   

o p t i o n        I m p o r t     . 

• s o u r c e . a d d r e s s e s    • s o u r c e . c a t e g o r i e s    

• s o u r c e . c o u n t r y      

• s o u r c e . c u s t o m e r    

• s o u r c e . e m p l o y e e s    

• s o u r c e . o r d e r _ d e t a i l s    

• s o u r c e . o r d e r s    

• s o u r c e . p r o d u c t s    

• s o u r c e . r e g i o n      

• s o u r c e . s u p p l i e r s    

• s o u r c e . u s a _ c u s t o m e r s    

d ) Y o u d o n o t h a v e t o i m p o r t a n y m e t a d a t a .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 46: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 46/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

4 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e H R d a t a      

m a r t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e H R _ d a t a m a r t    

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e H R _ D A T A M A R T # # ( w h e r e # #      

i s t h e n u m b e r f r o m y o u r U s e r I D )    

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e O m e g a d a t a b a s e t a r g e t t a b l e s b y s e l e c t i n g      

a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n        I m p o r t     . 

• d b o . e m p _ d e p t    

• d b o . e m p l o y e e      • d b o . h r _ c o m p _ u p d a t e      

• d b o . r e c o v e r y _ s t a t u s    

C o n t i n u e d o n n e x t p a g e      

3 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 47: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 47/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

5 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e O m e g a      

d a t a w a r e h o u s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e O m e g a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e O M E G A # # ( w h e r e # # i s t h e      

n u m b e r f r o m y o u r U s e r I D )    

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e O m e g a d a t a b a s e t a r g e t t a b l e s b y s e l e c t i n g      

a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n        I m p o r t     . 

• d b o . e m p _ d i m          

• d b o . p r o d u c t _ d i m          • d b o . p r o d u c t _ t a r g e t    

• d b o . t i m e _ d i m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 48: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 48/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

3 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 49: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 49/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

L e s s o n O v e r v i e w          

U s i n g D a t a s t o r e s t o h e l p d e n e d a t a m o v e m e n t r e q u i r e m e n t s i n D a t a S e r v i c e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

B u s i n e s s E x a m p l e      

Y o u a r e r e s p o n s i b l e f o r e x t r a c t i n g d a t a i n t o t h e c o m p a n y ' s S A P N e t W e a v e r    

B u s i n e s s W a r e h o u s e s y s t e m a n d w a n t t o c o n v e r t t o u s i n g D a t a S e r v i c e s a s t h e n e w        

d a t a t r a n s f e r p r o c e s s .  

U s i n g D a t a s t o r e s      

A D a t a s t o r e p r o v i d e s a c o n n e c t i o n o r m u l t i p l e c o n n e c t i o n s t o d a t a s o u r c e s s u c h      

a s a d a t a b a s e . U s i n g t h e D a t a s t o r e c o n n e c t i o n , D a t a S e r v i c e s c a n i m p o r t t h e      

m e t a d a t a t h a t d e s c r i b e s t h e d a t a f r o m t h e d a t a s o u r c e .  

F i g u r e 1 7 : D a t a s t o r e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 50: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 50/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

D a t a S e r v i c e s u s e s t h e s e D a t a s t o r e s t o r e a d d a t a f r o m s o u r c e t a b l e s o r l o a d d a t a t o      

t a r g e t t a b l e s . E a c h s o u r c e o r t a r g e t m u s t b e d e n e d i n d i v i d u a l l y a n d t h e D a t a s t o r e      

o p t i o n s a v a i l a b l e d e p e n d o n w h i c h R e l a t i o n a l D a t a b a s e M a n a g e m e n t S y s t e m          ( R D B M S ) o r a p p l i c a t i o n i s u s e d f o r t h e D a t a s t o r e . D a t a b a s e D a t a s t o r e s c a n b e      

c r e a t e d f o r t h e s o u r c e s :  

• I B M D B 2 , M i c r o s o f t S Q L S e r v e r , O r a c l e , S y b a s e , a n d T e r a d a t a d a t a b a s e s    

( u s i n g n a t i v e c o n n e c t i o n s )    

• O t h e r d a t a b a s e s ( u s i n g O D B C )    

• A s i m p l e m e m o r y s t o r a g e m e c h a n i s m u s i n g a m e m o r y D a t a s t o r e      

• I M S , V S A M , a n d v a r i o u s a d d i t i o n a l l e g a c y s y s t e m s u s i n g B u s i n e s s O b j e c t s    

D a t a S e r v i c e s M a i n f r a m e I n t e r f a c e s s u c h a s A t t u n i t y a n d I B M C o n n e c t o r s    

T h e s p e c i c i n f o r m a t i o n t h a t a D a t a s t o r e c o n t a i n s d e p e n d s o n t h e c o n n e c t i o n .  

W h e n y o u r d a t a b a s e o r a p p l i c a t i o n c h a n g e s , y o u m u s t m a k e c o r r e s p o n d i n g      c h a n g e s i n t h e D a t a s t o r e i n f o r m a t i o n i n D a t a S e r v i c e s a s t h e s e s t r u c t u r a l c h a n g e s    

a r e n o t d e t e c t e d a u t o m a t i c a l l y .  

T h e r e a r e t h r e e k i n d s o f D a t a s t o r e s :  

• D a t a b a s e D a t a s t o r e s : p r o v i d e a s i m p l e w a y t o i m p o r t m e t a d a t a d i r e c t l y f r o m          

a R D B M S .  

• A p p l i c a t i o n D a t a s t o r e s : l e t u s e r s e a s i l y i m p o r t m e t a d a t a f r o m m o s t    

E n t e r p r i s e R e s o u r c e P l a n n i n g ( E R P ) s y s t e m s .  

• A d a p t e r D a t a s t o r e s : c a n p r o v i d e a c c e s s t o a n a p p l i c a t i o n ’ s d a t a a n d m e t a d a t a      

o r j u s t m e t a d a t a . F o r e x a m p l e , i f t h e d a t a s o u r c e i s S Q L - c o m p a t i b l e , t h e      

a d a p t e r m i g h t b e d e s i g n e d t o a c c e s s m e t a d a t a , w h i l e D a t a S e r v i c e s e x t r a c t s    d a t a f r o m o r l o a d s d a t a d i r e c t l y t o t h e a p p l i c a t i o n .  

U s i n g A d a p t e r s t o d e n e D a t a s t o r e s    

A d a p t e r s p r o v i d e a c c e s s t o a t h i r d - p a r t y a p p l i c a t i o n ’ s d a t a a n d m e t a d a t a .  

D e p e n d i n g o n t h e a d a p t e r i m p l e m e n t a t i o n , a d a p t e r s c a n p r o v i d e :  

• A p p l i c a t i o n m e t a d a t a b r o w s i n g      

• A p p l i c a t i o n m e t a d a t a i m p o r t i n g i n t o t h e D a t a S e r v i c e s r e p o s i t o r y      

F o r b a t c h a n d r e a l - t i m e d a t a m o v e m e n t b e t w e e n D a t a S e r v i c e s a n d a p p l i c a t i o n s ,    

S A P B u s i n e s s O b j e c t s o f f e r s a n A d a p t e r S o f t w a r e D e v e l o p m e n t K i t ( S D K ) t o      

d e v e l o p y o u r o w n c u s t o m a d a p t e r s . Y o u c a n a l s o b u y D a t a S e r v i c e s p r e p a c k a g e d      a d a p t e r s t o a c c e s s a p p l i c a t i o n d a t a a n d m e t a d a t a i n a n y a p p l i c a t i o n .  

Y o u c a n u s e t h e D a t a M a r t A c c e l e r a t o r f o r S A P C r y s t a l R e p o r t s a d a p t e r t o i m p o r t    

m e t a d a t a f r o m S A P B u s i n e s s O b j e c t s B u s i n e s s I n t e l l i g e n c e p l a t f o r m .  

Y o u n e e d t o c r e a t e a t l e a s t o n e D a t a s t o r e f o r e a c h d a t a b a s e l e s y s t e m w i t h w h i c h      

y o u a r e e x c h a n g i n g d a t a . T o c r e a t e a D a t a s t o r e , y o u m u s t h a v e a p p r o p r i a t e a c c e s s    

 p r i v i l e g e s t o t h e d a t a b a s e o r l e s y s t e m t h a t t h e D a t a s t o r e d e s c r i b e s . 

4 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 51: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 51/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

C r e a t i n g a d a t a b a s e D a t a s t o r e      

1 . O n t h e D a t a s t o r e s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e w h i t e s p a c e      

a n d s e l e c t      N e w      f r o m t h e m e n u .  

T h e     C r e a t e N e w D a t a s t o r e        d i a l o g b o x d i s p l a y s .  

2 . I n t h e        D a t a s t o r e n a m e        e l d , e n t e r t h e n a m e o f t h e n e w D a t a s t o r e . T h e n a m e      

c a n c o n t a i n a n y a l p h a n u m e r i c c h a r a c t e r s o r u n d e r s c o r e s , b u t n o t s p a c e s .  

3 . I n t h e        D a t a s t o r e T y p e        d r o p - d o w n l i s t , e n s u r e t h a t t h e d e f a u l t v a l u e o f      

 D a t a b a s e     i s s e l e c t e d .  

N o t e :      T h e v a l u e s y o u s e l e c t f o r t h e D a t a s t o r e t y p e a n d d a t a b a s e      

t y p e d e t e r m i n e t h e o p t i o n s a v a i l a b l e w h e n y o u c r e a t e a d a t a b a s e      

D a t a s t o r e .  

4 . I n t h e        D a t a b a s e t y p e        d r o p - d o w n l i s t , s e l e c t t h e R D B M S f o r t h e d a t a s o u r c e .  

5 . E n t e r t h e o t h e r c o n n e c t i o n d e t a i l s , a s r e q u i r e d .  

N o t e :      I f y o u a r e u s i n g M y S Q L , a n y O D B C c o n n e c t i o n p r o v i d e s    

a c c e s s t o a l l o f t h e a v a i l a b l e M y S Q L s c h e m a s .  

6 . L e a v e t h e        E n a b l e a u t o m a t i c d a t a t r a n s f e r        c h e c k b o x s e l e c t e d .  

7 . S e l e c t      O K       . 

C h a n g i n g a D a t a s t o r e d e n i t i o n      

L i k e a l l D a t a S e r v i c e s o b j e c t s , D a t a s t o r e s a r e d e n e d b y b o t h o p t i o n s a n d      

 p r o p e r t i e s : • O p t i o n s c o n t r o l t h e o p e r a t i o n o f o b j e c t s . T h e s e i n c l u d e t h e d a t a b a s e s e r v e r    

n a m e , d a t a b a s e n a m e , u s e r n a m e , a n d p a s s w o r d f o r t h e s p e c i c d a t a b a s e .  

T h e     E d i t D a t a s t o r e        d i a l o g b o x a l l o w s y o u t o e d i t a l l c o n n e c t i o n p r o p e r t i e s    

e x c e p t D a t a s t o r e n a m e a n d D a t a s t o r e t y p e f o r a d a p t e r a n d a p p l i c a t i o n      

D a t a s t o r e s . F o r d a t a b a s e D a t a s t o r e s , y o u c a n e d i t a l l c o n n e c t i o n p r o p e r t i e s    

e x c e p t D a t a s t o r e n a m e , D a t a s t o r e t y p e , d a t a b a s e t y p e , a n d d a t a b a s e v e r s i o n .  

• P r o p e r t i e s d o c u m e n t t h e o b j e c t . F o r e x a m p l e , t h e n a m e o f t h e D a t a s t o r e      

a n d t h e d a t e o n w h i c h i t i s c r e a t e d a r e D a t a s t o r e p r o p e r t i e s . P r o p e r t i e s a r e      

d e s c r i p t i v e o f t h e o b j e c t a n d d o n o t a f f e c t i t s o p e r a t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 52: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 52/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

P r o p e r t i e s T a b D e s c r i p t i o n      

G e n e r a l C o n t a i n s t h e n a m e a n d d e s c r i p t i o n o f t h e D a t a s t o r e , i f      

a v a i l a b l e . T h e D a t a s t o r e n a m e a p p e a r s o n t h e o b j e c t i n      

t h e L o c a l O b j e c t L i b r a r y a n d i n c a l l s t o t h e o b j e c t . Y o u      

c a n n o t c h a n g e t h e n a m e o f a D a t a s t o r e a f t e r c r e a t i o n .  

A t t r i b u t e s I n c l u d e s t h e d a t e y o u c r e a t e d t h e D a t a s t o r e . T h i s v a l u e i s    

n o t c h a n g e a b l e .  

C l a s s A t t r i b u t e s I n c l u d e s o v e r a l l D a t a s t o r e i n f o r m a t i o n s u c h a s d e s c r i p t i o n      

a n d d a t e c r e a t e d .  

I m p o r t i n g m e t a d a t a f r o m d a t a s o u r c e s    

D a t a S e r v i c e s d e t e r m i n e s a n d s t o r e s a s p e c i c s e t o f m e t a d a t a i n f o r m a t i o n f o r    

t a b l e s . Y o u c a n i m p o r t m e t a d a t a b y n a m e , s e a r c h i n g , a n d b r o w s i n g . A f t e r    

i m p o r t i n g m e t a d a t a , y o u c a n e d i t c o l u m n n a m e s , d e s c r i p t i o n s , a n d d a t a t y p e s . T h e      

e d i t s a r e p r o p a g a t e d t o a l l o b j e c t s t h a t c a l l t h e s e o b j e c t s .  

F i g u r e 1 8 : D a t a s t o r e M e t a d a t a      

M e t a d a t a D e s c r i p t i o n      

T a b l e n a m e T h e n a m e o f t h e t a b l e a s i t a p p e a r s i n t h e d a t a b a s e .  

T a b l e d e s c r i p t i o n T h e d e s c r i p t i o n o f t h e t a b l e .  

C o l u m n n a m e T h e n a m e o f t h e t a b l e c o l u m n .  

C o l u m n d e s c r i p t i o n T h e d e s c r i p t i o n o f t h e c o l u m n .  

C o l u m n d a t a t y p e T h e d a t a t y p e f o r e a c h c o l u m n .  

I f a c o l u m n i s d e n e d a s a n u n s u p p o r t e d d a t a t y p e ( s e e      

d a t a t y p e s l i s t e d b e l o w ) D a t a S e r v i c e s c o n v e r t s t h e d a t a      

t y p e t o o n e t h a t i s s u p p o r t e d . I n s o m e c a s e s , i f D a t a      

S e r v i c e s c a n n o t c o n v e r t t h e d a t a t y p e , i t i g n o r e s t h e      

c o l u m n e n t i r e l y .  

S u p p o r t e d d a t a t y p e s a r e : B L O B , C L O B , d a t e , d a t e t i m e ,    

d e c i m a l , d o u b l e , i n t , i n t e r v a l , l o n g , n u m e r i c , r e a l , t i m e ,    

t i m e s t a m p , a n d v a r c h a r .  

4 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 53: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 53/472

Page 54: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 54/472

Page 55: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 55/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

E x e r c i s e 2 : C r e a t i n g S o u r c e a n d T a r g e t    

D a t a s t o r e s      E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e D a t a s t o r e s a n d i m p o r t m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s , B e t a      

B u s i n e s s e s , D e l t a , H R D a t a M a r t a n d O m e g a d a t a b a s e s    

B u s i n e s s E x a m p l e      

[ E n t e r a b u s i n e s s e x a m p l e t h a t h e l p s t h e l e a r n e r u n d e r s t a n d t h e p r a c t i c a l b u s i n e s s    

u s e o f t h i s e x e r c i s e . ]    

T a s k 1 :    

S t a r t t h e S A P B u s i n e s s O b j e c t s D a t a S e r v i c e s D e s i g n e r .  

1 . L o g i n t o t h e D a t a S e r v i c e s D e s i g n e r .  

T a s k 2 :    

C r e a t e D a t a s t o r e s a n d i m p o r t m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s , B e t a      

B u s i n e s s e s , D e l t a , H R _ D a t a M a r t a n d O m e g a d a t a b a s e s    

1 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e A l p h a      

A c q u i s i t i o n s d a t a b a s e .  

2 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e B e t a      

B u s i n e s s e s d a t a b a s e .  

3 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w D a t a s t o r e f o r t h e D e l t a s t a g i n g      

d a t a b a s e .  

4 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e H R d a t a      

m a r t .  

5 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e O m e g a      

d a t a w a r e h o u s e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 56: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 56/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

S o l u t i o n 2 : C r e a t i n g S o u r c e a n d T a r g e t    

D a t a s t o r e s      T a s k 1 :    

S t a r t t h e S A P B u s i n e s s O b j e c t s D a t a S e r v i c e s D e s i g n e r .  

1 . L o g i n t o t h e D a t a S e r v i c e s D e s i g n e r .  

a ) F r o m t h e W i n d o w s T e r m i n a l S e r v e r ( W T S ) t r a i n i n g e n v i r o n m e n t    

d e s k t o p , u s e t h e m e n u p a t h        S t a r t → P r o g r a m s → S A P B u s i n e s s O b j e c t s    

 D a t a S e r v i c e s 4 . 0 S P 1 → D a t a S e r v i c e s D e s i g n e r     . 

 b ) I n t h e d i a l o g b o x , e n t e r y o u r a s s i g n e d U s e r I D . 

c ) E n t e r y o u r p a s s w o r d w h i c h i s t h e s a m e a s y o u r U s e r I D .  

d ) S e l e c t t h e        L o g o n        b u t t o n .  

e ) I n t h e l i s t o f r e p o s i t o r i e s , s e l e c t y o u r r e p o s i t o r y        D S R E P O # #        w h e r e        # #   i s t h e n u m b e r p o r t i o n o f y o u r U s e r I D .  

f ) S e l e c t t h e        O K      b u t t o n .  

T a s k 2 :    

C r e a t e D a t a s t o r e s a n d i m p o r t m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s , B e t a      

B u s i n e s s e s , D e l t a , H R _ D a t a M a r t a n d O m e g a d a t a b a s e s    

1 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e A l p h a      A c q u i s i t i o n s d a t a b a s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      

t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

N o t e :      W h e n y o u s e l e c t t h e        D a t a s t o r e s      t a b y o u w i l l n o t i c e      

t h a t t h e        C D _ D S _ d 0 c a f a e 2        d a t a s t o r e a l r e a d y e x i s t s . T h i s i s    

a n i n t e r n a l d a t a s t o r e w h i c h D a t a S e r v i c e s u s e s f o r e x e c u t i n g      

d a t a q u a l i t y j o b s o n l y . T h e D a t a S e r v i c e s I n t e g r a t o r d o e s    

n o t u s e t h i s i n t e r n a l d a t a s t o r e .    D o n o t d e l e t e o r a l t e r t h e      

C D _ D S _ d 0 c a f a e 2        d a t a s t o r e i n a n y w a y .    

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e A l p h a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

C o n t i n u e d o n n e x t p a g e      

4 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 57: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 57/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e A L P H A        

U s e r n a m e s o u r c e u s e r    

P a s s w o r d s o u r c e p a s s    

c ) I m p o r t t h e m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s d a t a b a s e s o u r c e t a b l e s    

 b y s e l e c t i n g a l l t h e t a b l e s , r i g h t c l i c k o n t h e m a n d f r o m t h e m e n u ,  

c h o o s e t h e o p t i o n        I m p o r t     . 

• s o u r c e . c a t e g o r y      

• s o u r c e . c i t y      

• s o u r c e . c o u n t r y      

• s o u r c e . c u s t o m e r    

• s o u r c e . d e p a r t m e n t    

• s o u r c e . e m p l o y e e      

• s o u r c e . h r _ c o m p _ d e t a i l s    

• s o u r c e . o r d e r _ d e t a i l s    

• s o u r c e . o r d e r s    

• s o u r c e . p r o d u c t    

• s o u r c e . r e g i o n      

d ) V i e w t h e d a t a f o r t h e c a t e g o r y t a b l e a n d c o n r m t h a t t h e r e a r e f o u r    r e c o r d s b y r i g h t c l i c k i n g o n t h e t a b l e i n t h e L o c a l O b j e c t L i b r a r y a n d      

c h o o s e t h e o p t i o n        V i e w d a t a        . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 58: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 58/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

2 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w s o u r c e D a t a s t o r e f o r t h e B e t a      

B u s i n e s s e s d a t a b a s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e B e t a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e B E T A        

U s e r n a m e s o u r c e u s e r    

P a s s w o r d s o u r c e p a s s    

c ) I m p o r t t h e m e t a d a t a f o r t h e B e t a d a t a b a s e s o u r c e t a b l e s b y s e l e c t i n g a l l    

t h e t a b l e s , r i g h t c l i c k o n t h e m a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n      

 I m p o r t   . 

• s o u r c e . a d d r e s s e s    

• s o u r c e . c a t e g o r i e s    • s o u r c e . c o u n t r y      

• s o u r c e . c u s t o m e r    

• s o u r c e . e m p l o y e e s    

• s o u r c e . o r d e r _ d e t a i l s    

• s o u r c e . o r d e r s    

• s o u r c e . p r o d u c t s    

• s o u r c e . r e g i o n      

• s o u r c e . s u p p l i e r s    

• s o u r c e . u s a _ c u s t o m e r s    d ) V i e w t h e d a t a f o r t h e u s a _ c u s t o m e r s t a b l e a n d c o n r m t h a t J a n e H a r t l e y      

f r o m P l a n v i e w I n c . i s t h e r s t c u s t o m e r r e c o r d b y r i g h t c l i c k i n g o n t h e      

t a b l e i n t h e L o c a l O b j e c t L i b r a r y a n d c h o o s e t h e o p t i o n        V i e w d a t a        . 

C o n t i n u e d o n n e x t p a g e      

4 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 59: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 59/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

3 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w D a t a s t o r e f o r t h e D e l t a s t a g i n g      

d a t a b a s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k o n      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e D e l t a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e D E L T A # # ( w h e r e # # i s t h e      

n u m b e r f r o m y o u r U s e r I D        

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e A l p h a A c q u i s i t i o n s d a t a b a s e s o u r c e t a b l e s    

 b y s e l e c t i n g a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e   

o p t i o n        I m p o r t     . 

• s o u r c e . a d d r e s s e s    • s o u r c e . c a t e g o r i e s    

• s o u r c e . c o u n t r y      

• s o u r c e . c u s t o m e r    

• s o u r c e . e m p l o y e e s    

• s o u r c e . o r d e r _ d e t a i l s    

• s o u r c e . o r d e r s    

• s o u r c e . p r o d u c t s    

• s o u r c e . r e g i o n      

• s o u r c e . s u p p l i e r s    

• s o u r c e . u s a _ c u s t o m e r s    

d ) Y o u d o n o t h a v e t o i m p o r t a n y m e t a d a t a .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 60: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 60/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

4 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e H R d a t a      

m a r t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e H R _ d a t a m a r t    

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e H R _ D A T A M A R T # # ( w h e r e # #      

i s t h e n u m b e r f r o m y o u r U s e r I D )    

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e O m e g a d a t a b a s e t a r g e t t a b l e s b y s e l e c t i n g      

a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n        I m p o r t     . 

• d b o . e m p _ d e p t    

• d b o . e m p l o y e e      • d b o . h r _ c o m p _ u p d a t e      

• d b o . r e c o v e r y _ s t a t u s    

C o n t i n u e d o n n e x t p a g e      

5 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 61: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 61/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e s i n D a t a S e r v i c e s      

5 . I n y o u r L o c a l O b j e c t L i b r a r y , c r e a t e a n e w t a r g e t D a t a s t o r e f o r t h e O m e g a      

d a t a w a r e h o u s e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d r i g h t c l i c k      t h e     D a t a b a s e s      n o d e t o s e l e c t t h e        N e w      o p t i o n .  

 b ) I n t h e r e s u l t i n g d i a l o g b o x , u s e t h e o p t i o n s : 

F i e l d V a l u e      

D a t a s t o r e n a m e O m e g a      

D a t a s t o r e t y p e D a t a b a s e      

D a t a b a s e t y p e M i c r o s o f t S Q L S e r v e r    

D a t a b a s e v e r s i o n M i c r o s o f t S Q L S e r v e r 2 0 0 5      

D a t a b a s e s e r v e r n a m e S u p p l i e d b y t h e I n s t r u c t o r    

D a t a b a s e n a m e O M E G A # # ( w h e r e # # i s t h e      

n u m b e r f r o m y o u r U s e r I D )    

U s e r n a m e s t u d e n t # #      

P a s s w o r d s t u d e n t # #      

c ) I m p o r t t h e m e t a d a t a f o r t h e O m e g a d a t a b a s e t a r g e t t a b l e s b y s e l e c t i n g      

a l l t h e t a b l e s , r i g h t c l i c k a n d f r o m t h e m e n u , c h o o s e t h e o p t i o n        I m p o r t     . 

• d b o . e m p _ d i m          

• d b o . p r o d u c t _ d i m          • d b o . p r o d u c t _ t a r g e t    

• d b o . t i m e _ d i m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 62: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 62/472

Page 63: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 63/472

B O D S 1 0 L e s s o n : D e n i n g D a t a S e r v i c e s S y s t e m C o n g u r a t i o n s      

L e s s o n : D e n i n g D a t a S e r v i c e s S y s t e m C o n g u r a t i o n s      

L e s s o n O v e r v i e w          

T o d e n e s y s t e m c o n g u r a t i o n s t o e n a b l e d i f f e r e n t c o n n e c t i o n s f o r a m u l t i - u s e      

e n v i r o n m e n t ( d e v e l o p m e n t , t e s t a n d p r o d u c t i o n ) .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• D e n e s y s t e m c o n g u r a t i o n s i n D a t a S e r v i c e s    

B u s i n e s s E x a m p l e      

Y o u a r e r e s p o n s i b l e f o r e x t r a c t i n g d a t a i n t o t h e c o m p a n y ' s S A P N e t W e a v e r    

B u s i n e s s W a r e h o u s e s y s t e m a n d w a n t t o c o n v e r t t o u s i n g D a t a S e r v i c e s a s t h e n e w        

d a t a t r a n s f e r p r o c e s s . T o s u p p o r t a m u l t i u s e e n v i r o n m e n t ( d e v e l o p m e n t , t e s t a n d      

 p r o d u c t i o n ) , y o u w a n t t o k n o w h o w t o c r e a t e s y s t e m c o n g u r a t i o n s . 

U s i n g D a t a S e r v i c e s s y s t e m c o n g u r a t i o n s      

D a t a S e r v i c e s s u p p o r t s m u l t i p l e D a t a s t o r e c o n g u r a t i o n s , w h i c h a l l o w y o u t o      

c h a n g e y o u r D a t a s t o r e s d e p e n d i n g o n t h e e n v i r o n m e n t i n w h i c h y o u a r e w o r k i n g .  

A c o n g u r a t i o n i s a p r o p e r t y o f a D a t a s t o r e t h a t r e f e r s t o a s e t o f c o n g u r a b l e      

o p t i o n s ( s u c h a s d a t a b a s e c o n n e c t i o n n a m e , d a t a b a s e t y p e , u s e r n a m e , p a s s w o r d ,    

a n d l o c a l e ) a n d t h e i r v a l u e s . W h e n y o u c r e a t e a D a t a s t o r e , y o u c a n s p e c i f y o n e      

D a t a s t o r e c o n g u r a t i o n a t a t i m e a n d s p e c i f y o n e a s t h e d e f a u l t . D a t a S e r v i c e s    

u s e s t h e d e f a u l t c o n g u r a t i o n t o i m p o r t m e t a d a t a a n d e x e c u t e j o b s . Y o u c a n c r e a t e      

a d d i t i o n a l D a t a s t o r e c o n g u r a t i o n s u s i n g t h e A d v a n c e d o p t i o n i n t h e D a t a s t o r e      

e d i t o r . Y o u c a n c o m b i n e m u l t i p l e c o n g u r a t i o n s i n t o a s y s t e m c o n g u r a t i o n t h a t i s    

s e l e c t a b l e w h e n e x e c u t i n g o r s c h e d u l i n g a j o b . M u l t i p l e c o n g u r a t i o n s a n d s y s t e m          

c o n g u r a t i o n s m a k e p o r t a b i l i t y o f y o u r j o b m u c h e a s i e r ( f o r e x a m p l e , d i f f e r e n t    

c o n n e c t i o n s f o r d e v e l o p m e n t , t e s t , a n d p r o d u c t i o n e n v i r o n m e n t s ) .  

W h e n y o u a d d a n e w c o n g u r a t i o n , D a t a S e r v i c e s m o d i e s t h e l a n g u a g e o f d a t a       o w s t h a t c o n t a i n t a b l e t a r g e t s a n d S Q L t r a n s f o r m s i n t h e D a t a s t o r e b a s e d o n w h a t    

y o u d e n e d i n t h e n e w c o n g u r a t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 64: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 64/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • D e n e s y s t e m c o n g u r a t i o n s i n D a t a S e r v i c e s    

5 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 65: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 65/472

B O D S 1 0 L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

L e s s o n O v e r v i e w          

U s i n g a t l e f o r m a t s t o c r e a t e D a t a s t o r e s t o h e l p d e n e d a t a m o v e m e n t    

r e q u i r e m e n t s i n D a t a S e r v i c e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• D e n i n g a t l e f o r m a t s a s a b a s i s f o r a D a t a s t o r e      

B u s i n e s s E x a m p l e      

Y o u a r e r e s p o n s i b l e f o r e x t r a c t i n g a t l e d a t a i n t o t h e c o m p a n y ' s S A P N e t W e a v e r    

B u s i n e s s W a r e h o u s e s y s t e m a n d w a n t t o c o n v e r t t o u s i n g D a t a S e r v i c e s a s t h e n e w        

d a t a t r a n s f e r p r o c e s s . Y o u n e e d t o k n o w h o w t o c r e a t e a t l e f o r m a t s a s t h e      

 b a s i s f o r c r e a t i n g a D a t a s t o r e . 

D e n i n g l e f o r m a t s f o r a t l e s      

F i l e f o r m a t s a r e c o n n e c t i o n s t o a t l e s i n t h e s a m e w a y t h a t D a t a s t o r e a r e      

c o n n e c t i o n s t o d a t a b a s e s .  

E x p l a i n i n g l e f o r m a t s    

A l e f o r m a t i s a g e n e r i c d e s c r i p t i o n t h a t c a n b e u s e d t o d e s c r i b e o n e l e o r    

m u l t i p l e d a t a l e s i f t h e y s h a r e t h e s a m e f o r m a t . I t i s a s e t o f p r o p e r t i e s d e s c r i b i n g      

t h e s t r u c t u r e o f a a t l e ( A S C I I ) . F i l e f o r m a t s a r e u s e d t o c o n n e c t t o s o u r c e o r    

t a r g e t d a t a w h e n t h e d a t a i s s t o r e d i n a a t l e . T h e L o c a l O b j e c t L i b r a r y s t o r e s    

l e f o r m a t t e m p l a t e s t h a t y o u u s e t o d e n e s p e c i c l e f o r m a t s a s s o u r c e s a n d      

t a r g e t s i n d a t a o w s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 66: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 66/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

F i g u r e 1 9 : F i l e F o r m a t E d i t o r      

F i l e f o r m a t o b j e c t s c a n d e s c r i b e l e s i n :  

• D e l i m i t e d f o r m a t — d e l i m i t e r c h a r a c t e r s s u c h a s c o m m a s o r t a b s s e p a r a t e      

e a c h e l d .  • F i x e d w i d t h f o r m a t — t h e x e d c o l u m n w i d t h i s s p e c i e d b y t h e u s e r .  

• S A P E R P f o r m a t — t h i s i s u s e d w i t h t h e p r e d e n e d T r a n s p o r t _ F o r m a t o r    

w i t h a c u s t o m S A P E R P f o r m a t .  

C r e a t i n g l e f o r m a t s    

U s e t h e l e f o r m a t e d i t o r t o s e t p r o p e r t i e s f o r l e f o r m a t t e m p l a t e s a n d s o u r c e a n d      

t a r g e t l e f o r m a t s . T h e l e f o r m a t e d i t o r h a s t h r e e w o r k a r e a s :  

• P r o p e r t y V a l u e : E d i t l e f o r m a t p r o p e r t y v a l u e s . E x p a n d a n d c o l l a p s e t h e      

 p r o p e r t y g r o u p s b y c l i c k i n g t h e l e a d i n g p l u s o r m i n u s . 

• C o l u m n A t t r i b u t e s : E d i t a n d d e n e c o l u m n s o r e l d s i n t h e l e . F i e l d - s p e c i c      

f o r m a t s o v e r r i d e t h e d e f a u l t f o r m a t s e t i n t h e P r o p e r t i e s - V a l u e s a r e a .  

• D a t a P r e v i e w : V i e w h o w t h e s e t t i n g s a f f e c t s a m p l e d a t a .  

T h e p r o p e r t i e s a n d a p p e a r a n c e o f t h e w o r k a r e a s v a r y w i t h t h e f o r m a t o f t h e l e .  

D a t e f o r m a t s    

I n t h e P r o p e r t y V a l u e s w o r k a r e a , y o u c a n o v e r r i d e d e f a u l t d a t e f o r m a t s f o r l e s a t    

t h e e l d l e v e l . T h e d a t a f o r m a t c o d e s c a n b e u s e d :  

5 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 67: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 67/472

B O D S 1 0 L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

C o d e D e s c r i p t i o n      

D D 2 - d i g i t d a y o f t h e m o n t h      

M M 2 - d i g i t m o n t h      

M O N T H F u l l n a m e o f t h e m o n t h      

M O N 3 - c h a r a c t e r n a m e o f t h e m o n t h      

Y Y 2 - d i g i t y e a r    

Y Y Y Y 4 - d i g i t y e a r    

H H 2 4 2 - d i g i t h o u r o f t h e d a y ( 0 - 2 3 )    

M I 2 - d i g i t m i n u t e ( 0 - 5 9 )    

S S 2 - d i g i t s e c o n d ( 0 - 5 9 )    

F F U p t o 9 - d i g i t s u b s e c o n d s    

T o c r e a t e a n e w l e f o r m a t    

• O n t h e F o r m a t s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k        F l a t F i l e s      a n d   

s e l e c t      N e w      f r o m t h e m e n u t o o p e n t h e        F i l e F o r m a t E d i t o r .    

T o m a k e s u r e y o u r l e f o r m a t d e n i t i o n w o r k s p r o p e r l y , n i s h i n p u t t i n g t h e      

v a l u e s f o r t h e l e p r o p e r t i e s b e f o r e m o v i n g o n t o t h e C o l u m n A t t r i b u t e s    

w o r k a r e a .  

• I n t h e        T y p e        e l d , s p e c i f y t h e l e t y p e :  

 – D e l i m i t e d : s e l e c t t h i s l e t y p e i f t h e l e u s e s a c h a r a c t e r s e q u e n c e t o   

s e p a r a t e c o l u m n s .  

 – F i x e d w i d t h : s e l e c t t h i s l e t y p e i f t h e l e u s e s s p e c i e d w i d t h s f o r  

e a c h c o l u m n .  

I f a x e d - w i d t h l e f o r m a t u s e s a m u l t i b y t e c o d e p a g e , t h e n n o d a t a i s    

d i s p l a y e d i n t h e D a t a P r e v i e w s e c t i o n o f t h e l e f o r m a t e d i t o r f o r i t s l e s .  

• I n t h e        N a m e        e l d , e n t e r a n a m e t h a t d e s c r i b e s t h i s l e f o r m a t t e m p l a t e .  

O n c e t h e n a m e h a s b e e n c r e a t e d , i t c a n n o t b e c h a n g e d . I f a n e r r o r i s m a d e ,    

t h e l e f o r m a t m u s t b e d e l e t e d a n d a n e w f o r m a t c r e a t e d .  

• S p e c i f y t h e l o c a t i o n i n f o r m a t i o n o f t h e d a t a l e i n c l u d i n g        L o c a t i o n        ,    R o o t    

d i r e c t o r y        , a n d        F i l e n a m e        . 

T h e G r o u p F i l e R e a d c a n r e a d m u l t i p l e a t l e s w i t h i d e n t i c a l f o r m a t s w i t h a      

s i n g l e l e f o r m a t . B y s u b s t i t u t i n g a w i l d c a r d c h a r a c t e r o r l i s t o f l e n a m e s    

f o r t h e s i n g l e l e n a m e , m u l t i p l e l e s c a n b e r e a d .  

• S e l e c t      Y e s    t o o v e r w r i t e t h e e x i s t i n g s c h e m a .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 68: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 68/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

T h i s h a p p e n s a u t o m a t i c a l l y w h e n y o u o p e n a l e .  

• C o m p l e t e t h e o t h e r p r o p e r t i e s t o d e s c r i b e l e s t h a t t h i s t e m p l a t e r e p r e s e n t s .  

O v e r w r i t e t h e e x i s t i n g s c h e m a a s r e q u i r e d .  

• F o r s o u r c e l e s , s p e c i f y t h e s t r u c t u r e o f e a c h c o l u m n i n t h e C o l u m n      

A t t r i b u t e s w o r k a r e a :  

C o l u m n D e s c r i p t i o n      

F i e l d N a m e E n t e r t h e n a m e o f t h e c o l u m n .  

D a t a T y p e S e l e c t t h e a p p r o p r i a t e d a t a t y p e f r o m t h e d r o p d o w n l i s t .  

F i e l d S i z e F o r c o l u m n s w i t h a d a t a t y p e o f v a r c h a r , s p e c i f y t h e      

l e n g t h o f t h e e l d .  

P r e c i s i o n F o r c o l u m n s w i t h a d a t a t y p e o f d e c i m a l o r n u m e r i c ,    s p e c i f y t h e p r e c i s i o n o f t h e e l d .  

S c a l e F o r c o l u m n s w i t h a d a t a t y p e o f d e c i m a l o r n u m e r i c ,    

s p e c i f y t h e s c a l e o f t h e e l d .  

F o r m a t F o r c o l u m n s w i t h a n y d a t a t y p e b u t v a r c h a r , s e l e c t    

a f o r m a t f o r t h e e l d , i f d e s i r e d . T h i s i n f o r m a t i o n      

o v e r r i d e s t h e d e f a u l t f o r m a t s e t i n t h e P r o p e r t y V a l u e s    

w o r k a r e a f o r t h a t d a t a t y p e .  

Y o u d o n o t n e e d t o s p e c i f y c o l u m n s f o r l e s u s e d a s t a r g e t s . I f y o u d o s p e c i f y      

c o l u m n s a n d t h e y d o n o t m a t c h t h e o u t p u t s c h e m a f r o m t h e p r e c e d i n g t r a n s f o r m ,    

D a t a S e r v i c e s w r i t e s t o t h e t a r g e t l e u s i n g t h e t r a n s f o r m ’ s o u t p u t s c h e m a .  F o r a d e c i m a l o r r e a l d a t a t y p e , i f y o u o n l y s p e c i f y a s o u r c e c o l u m n f o r m a t . I f      

t h e c o l u m n n a m e s a n d d a t a t y p e s i n t h e t a r g e t s c h e m a d o n o t m a t c h t h o s e i n t h e      

s o u r c e s c h e m a , D a t a S e r v i c e s c a n n o t u s e t h e s o u r c e c o l u m n f o r m a t s p e c i e d .  

I n s t e a d , i t d e f a u l t s t o t h e f o r m a t u s e d b y t h e c o d e p a g e o n t h e c o m p u t e r w h e r e t h e      

J o b S e r v e r i s i n s t a l l e d .  

• S e l e c t      S a v e & C l o s e        t o s a v e t h e l e f o r m a t a n d c l o s e t h e l e f o r m a t e d i t o r .  

• I n t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e l e f o r m a t a n d s e l e c t      V i e w D a t a      

f r o m t h e m e n u t o s e e t h e d a t a .  

T o c r e a t e a l e f o r m a t f r o m a n e x i s t i n g l e f o r m a t    

1 . O n t h e F o r m a t s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k a n e x i s t i n g l e      

f o r m a t a n d s e l e c t      R e p l i c a t e        . 

T h e     F i l e F o r m a t E d i t o r        o p e n s , d i s p l a y i n g t h e s c h e m a o f t h e c o p i e d l e      

f o r m a t .  

2 . I n t h e        N a m e        e l d , e n t e r a u n i q u e n a m e f o r t h e r e p l i c a t e d l e f o r m a t .  

5 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 69: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 69/472

B O D S 1 0 L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

D a t a S e r v i c e s d o e s n o t a l l o w y o u t o s a v e t h e r e p l i c a t e d l e w i t h t h e s a m e      

n a m e a s t h e o r i g i n a l ( o r a n y o t h e r e x i s t i n g F i l e F o r m a t o b j e c t ) . A f t e r i t i s    

s a v e d , y o u c a n n o t m o d i f y t h e n a m e a g a i n .  3 . E d i t t h e o t h e r p r o p e r t i e s a s d e s i r e d .  

4 . S e l e c t      S a v e & C l o s e        t o s a v e t h e l e f o r m a t a n d c l o s e t h e l e f o r m a t e d i t o r .  

T o r e a d m u l t i p l e a t l e s w i t h i d e n t i c a l f o r m a t s w i t h a s i n g l e l e f o r m a t    

1 . O n t h e F o r m a t s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k a n e x i s t i n g l e      

f o r m a t a n d s e l e c t      E d i t      f r o m t h e m e n u .  

T h e f o r m a t m u s t b e b a s e d o n o n e s i n g l e l e t h a t s h a r e s t h e s a m e s c h e m a      

a s t h e o t h e r l e s .  

2 . I n t h e l o c a t i o n e l d o f t h e f o r m a t w i z a r d , e n t e r o n e o f :  

• R o o t d i r e c t o r y ( o p t i o n a l t o a v o i d r e t y p i n g )    

• L i s t o f l e n a m e s , s e p a r a t e d b y c o m m a s    

• F i l e n a m e c o n t a i n i n g a w i l d c h a r a c t e r ( * )    

W h e n y o u u s e t h e ( * ) t o c a l l t h e n a m e o f s e v e r a l l e f o r m a t s , D a t a S e r v i c e s r e a d s    

o n e l e f o r m a t , c l o s e s i t a n d t h e n p r o c e e d s t o r e a d t h e n e x t o n e . F o r e x a m p l e , i f      

y o u s p e c i f y t h e l e n a m e r e v e n u e * . t x t , D a t a S e r v i c e s r e a d s a l l a t l e s s t a r t i n g      

w i t h r e v e n u e i n t h e l e n a m e .  

T h e r e a r e n e w          u n s t r u c t u r e d _ t e x        t a n d        u n s t r u c t u r e d _ b i n a r y      l e r e a d e r t y p e s f o r    

r e a d i n g a l l l e s i n a s p e c i c f o l d e r a s l o n g / B L O B r e c o r d s . T h e r e i s a l s o a n o p t i o n      

f o r t r i m m i n g x e d w i d t h l e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     5 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 70: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 70/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

F i g u r e 2 0 : F i l e R e a d e r E n h a n c e m e n t s .    

H a n d l i n g e r r o r s i n l e f o r m a t s    

O n e o f t h e f e a t u r e s a v a i l a b l e i n t h e        F i l e F o r m a t E d i t o r        i s e r r o r h a n d l i n g .  

F i g u r e 2 1 : F l a t F i l e E r r o r H a n d l i n g      

6 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 71: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 71/472

B O D S 1 0 L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

W h e n y o u e n a b l e e r r o r h a n d l i n g f o r a l e f o r m a t , D a t a S e r v i c e s :  

• C h e c k s f o r t h e t w o t y p e s o f a t - l e s o u r c e e r r o r s :  

 – D a t a t y p e c o n v e r s i o n e r r o r s . F o r e x a m p l e , a e l d m i g h t b e d e n e d i n   

t h e     F i l e F o r m a t E d i t o r        a s h a v i n g a d a t a t y p e o f i n t e g e r b u t t h e d a t a      

e n c o u n t e r e d i s a c t u a l l y v a r c h a r .  

 – R o w - f o r m a t e r r o r s . F o r e x a m p l e , i n t h e c a s e o f a x e d - w i d t h l e , D a t a   

S e r v i c e s i d e n t i e s a r o w t h a t d o e s n o t m a t c h t h e e x p e c t e d w i d t h v a l u e .  

• S t o p s p r o c e s s i n g t h e s o u r c e l e a f t e r r e a c h i n g a s p e c i e d n u m b e r o f i n v a l i d      

r o w s .  

• L o g s e r r o r s t o t h e D a t a S e r v i c e s e r r o r l o g . Y o u c a n l i m i t t h e n u m b e r o f l o g      

e n t r i e s a l l o w e d w i t h o u t s t o p p i n g t h e j o b .  

Y o u c a n c h o o s e t o w r i t e r o w s w i t h e r r o r s t o a n e r r o r l e , w h i c h i s a      s e m i c o l o n - d e l i m i t e d t e x t l e t h a t y o u c r e a t e o n t h e s a m e m a c h i n e a s t h e J o b      

S e r v e r .  

E n t r i e s i n a n e r r o r l e h a v e t h i s s y n t a x :  

 s o u r c e l e p a t h a n d n a m e ; r o w n u m b e r i n s o u r c e l e ; D a t a S e r v i c e s e r r o r ; c o l u m n   

n u m b e r w h e r e t h e e r r o r o c c u r r e d ; a l l c o l u m n s f r o m t h e i n v a l i d r o w        

T o e n a b l e a t l e e r r o r h a n d l i n g i n t h e F i l e F o r m a t E d i t o r    

1 . O n t h e F o r m a t s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e l e f o r m a t    

a n d s e l e c t      E d i t      f r o m t h e m e n u .  

2 . U n d e r t h e E r r o r h a n d l i n g s e c t i o n , i n t h e        C a p t u r e d a t a c o n v e r s i o n e r r o r s    

d r o p d o w n l i s t , s e l e c t Y e s .  

3 . I n t h e        C a p t u r e r o w f o r m a t e r r o r s      d r o p d o w n l i s t , s e l e c t Y e s .  

4 . I n t h e        W r i t e e r r o r r o w s t o l e        d r o p d o w n l i s t , s e l e c t Y e s .  

Y o u c a n a l s o s p e c i f y t h e m a x i m u m w a r n i n g s t o l o g a n d t h e m a x i m u m e r r o r s    

 b e f o r e a j o b i s s t o p p e d . 

5 . I n t h e        E r r o r l e r o o t d i r e c t o r y        e l d , s e l e c t t h e f o l d e r i c o n t o b r o w s e t o t h e      

d i r e c t o r y i n w h i c h y o u h a v e s t o r e d t h e e r r o r h a n d l i n g t e x t l e y o u c r e a t e d .  

6 . I n t h e        E r r o r l e n a m e        e l d , e n t e r t h e n a m e f o r t h e t e x t l e y o u c r e a t e d t o      

c a p t u r e t h e a t l e e r r o r l o g s i n t h a t d i r e c t o r y .  

7 . S e l e c t      S a v e & C l o s e .    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     6 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 72: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 72/472

Page 73: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 73/472

B O D S 1 0 L e s s o n : D e n i n g a D a t a S e r v i c e s F l a t F i l e F o r m a t    

E x e r c i s e 3 : C r e a t i n g a F l a t F i l e f o r m a t    

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e a l e f o r m a t f o r t h e o r d e r s a t l e s o y o u c a n u s e t h e m a s s o u r c e      

o b j e c t s f o r e x t r a c t i o n      

B u s i n e s s E x a m p l e      

I n a d d i t i o n t o t h e m a i n d a t a b a s e s f o r s o u r c e i n f o r m a t i o n , r e c o r d s f o r s o m e o f t h e      

o r d e r s f o r A l p h a A c q u i s i t i o n s a r e s t o r e d i n a t l e s . Y o u n e e d t o e x t r a c t d a t a f r o m          

t h e s e a t l e s a n d y o u w a n t t o c r e a t e t h e a p p r o p r i a t e l e f o r m a t f o r t h e e x t r a c t i o n .  

T a s k :    

C r e a t e a l e f o r m a t f o r t h e o r d e r s a t l e s o y o u c a n u s e t h e m a s s o u r c e o b j e c t s    

f o r e x t r a c t i o n .  

1 . C r e a t e a l e f o r m a t      O r d e r s _ F o r m a t        , f o r t h e o r d e r s a t l e s o y o u c a n u s e      

t h e m a s s o u r c e o b j e c t s f o r e x t r a c t i o n .  

2 . A d j u s t t h e d a t a t y p e s f o r t h e c o l u m n s p r o p o s e d b y t h e D e s i g n e r b a s e d o n      

t h e i r c o n t e n t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     6 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 74: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 74/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

S o l u t i o n 3 : C r e a t i n g a F l a t F i l e f o r m a t    

T a s k :    

C r e a t e a l e f o r m a t f o r t h e o r d e r s a t l e s o y o u c a n u s e t h e m a s s o u r c e o b j e c t s    

f o r e x t r a c t i o n .  

1 . C r e a t e a l e f o r m a t      O r d e r s _ F o r m a t        , f o r t h e o r d e r s a t l e s o y o u c a n u s e      

t h e m a s s o u r c e o b j e c t s f o r e x t r a c t i o n .  

a ) I n t h e L o c a l O b j e c t s L i b r a r y , s e l e c t t h e t a b        F i l e F o r m a t s      . 

 b ) R i g h t c l i c k t h e     F l a t F i l e        n o d e a n d c h o o s e t h e o p t i o n        N e w .  

c ) E n t e r      O r d e r s _ F o r m a t        a s t h e f o r m a t n a m e .  

d ) T o s e l e c t t h e s o u r c e d i r e c t o r y , c l i c k t h e f o l d e r i c o n t o s e l e c t      M y   D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e     . 

e ) T o s e l e c t t h e a p p r o p r i a t e l e , c l i c k t h e l e i c o n t o s e l e c t t h e s o u r c e      

l e     o r d e r s _ 1 2 _ 2 1 _ 0 6 . t x t        . 

f ) C h a n g e t h e v a l u e o f t h e c o l u m n d e l i m i t e r t o a s e m i c o l o n b y t y p i n g      

i n a s e m i c o l o n .  

g ) C h a n g e t h e r o w d e l i m i t e d b y c l i c k i n g i n t h e v a l u e f o r t h i s p r o p e r t y a n d      

u s i n g t h e d r o p - d o w n b o x t o c h o o s e t h e v a l u e        W i n d o w s n e w l i n e        . 

h ) C h a n g e t h e d a t e f o r m a t b y t y p i n g i n t h e v a l u e        y y y y . m m . d d        . 

i ) S e t t h e v a l u e f o r s k i p p i n g t h e r o w h e a d e r t o        1     . 

C o n t i n u e d o n n e x t p a g e      

6 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 75: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 75/472

Page 76: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 76/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • D e n i n g a t l e f o r m a t s a s a b a s i s f o r a D a t a s t o r e      

6 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 77: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 77/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s      

L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s      

L e s s o n O v e r v i e w          

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• C r e a t e a D a t a S e r v i c e s E x c e l l e f o r m a t    

B u s i n e s s E x a m p l e      

I t i s p o s s i b l e t o c o n n e c t t o E x c e l w o r k b o o k s n a t i v e l y a s a s o u r c e , w i t h o u t a n      

O D B C c o n n e c t i o n s e t u p a n d c o n g u r a t i o n n e e d e d . Y o u w a n t t o s e l e c t s p e c i c      

d a t a i n t h e w o r k b o o k u s i n g c u s t o m r a n g e s o r a u t o d e t e c t . Y o u a l s o w a n t t o l e a r n      

h o w t o s p e c i f y v a r i a b l e s f o r l e a n d s h e e t n a m e s f o r m o r e e x i b i l i t y .  

D e n i n g l e f o r m a t s f o r E x c e l l e s      

Y o u c a n c r e a t e l e f o r m a t s f o r E x c e l l e s i n t h e s a m e w a y t h a t y o u w o u l d f o r    

a t l e s .  

I t i s p o s s i b l e t o c o n n e c t t o E x c e l w o r k b o o k s n a t i v e l y a s a s o u r c e , w i t h n o O D B C        

c o n n e c t i o n s e t u p a n d c o n g u r a t i o n n e e d e d . Y o u c a n s e l e c t s p e c i c d a t a i n t h e      

w o r k b o o k u s i n g c u s t o m r a n g e s o r a u t o - d e t e c t , a n d y o u c a n s p e c i f y v a r i a b l e f o r l e      

a n d s h e e t n a m e s f o r m o r e e x i b i l i t y .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     6 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 78: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 78/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

F i g u r e 2 2 : E x c e l F i l e F o r m a t E d i t o r 1      

A s w i t h l e f o r m a t s a n d D a t a s t o r e s , t h e s e E x c e l f o r m a t s s h o w u p a s s o u r c e s i n      

i m p a c t a n d l i n e a g e a n a l y s i s r e p o r t s .  

6 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 79: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 79/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s      

F i g u r e 2 3 : E x c e l F i l e F o r m a t E d i t o r 2      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     6 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 80: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 80/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

T o i m p o r t a n d c o n g u r e a n E x c e l s o u r c e      

• O n t h e F o r m a t s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k        E x c e l    

W o r k b o o k s      a n d s e l e c t      N e w      f r o m t h e m e n u .  

T h e I m p o r t      E x c e l W o r k b o o k          d i a l o g b o x d i s p l a y s .  

• I n t h e        F o r m a t n a m e        e l d , e n t e r a n a m e f o r t h e f o r m a t .  

T h e n a m e m a y c o n t a i n u n d e r s c o r e s b u t n o t s p a c e s .  

• O n t h e F o r m a t t a b , s e l e c t t h e d r o p - d o w n b u t t o n b e s i d e t h e        D i r e c t o r y        e l d      

a n d s e l e c t      < S e l e c t f o l d e r . . . >          . 

• N a v i g a t e t o a n d s e l e c t a n e w d i r e c t o r y , a n d t h e n s e l e c t      O K       . 

• S e l e c t t h e d r o p - d o w n b u t t o n b e s i d e t h e F i l e n a m e e l d a n d s e l e c t      < S e l e c t    

f o l d e r . . . >        

• N a v i g a t e t o a n d s e l e c t a n E x c e l l e , a n d t h e n c l i c k        O p e n .    

• T o s e l e c t d a t a i n t h e w o r k b o o k :  

 – S e l e c t t h e     N a m e d r a n g e        r a d i o b u t t o n a n d e n t e r a v a l u e i n t h e e l d      

 p r o v i d e d . 

 – S e l e c t t h e W o r k s h e e t r a d i o b u t t o n a n d t h e n s e l e c t t h e     A l l e l d s      r a d i o      

 b u t t o n . 

 – S e l e c t t h e     W o r k s h e e t      r a d i o b u t t o n a n d t h e        C u s t o m r a n g e        r a d i o b u t t o n ,    

s e l e c t t h e        e l l i p s e s ( . . . )      b u t t o n , s e l e c t t h e c e l l s , a n d c l o s e t h e E x c e l l e      

 b y c l i c k i n g X i n t h e t o p r i g h t c o r n e r o f t h e w o r k s h e e t . 

• I f r e q u i r e d , s e l e c t t h e        E x t e n d r a n g e        c h e c k b o x .  T h e     E x t e n d r a n g e        c h e c k b o x p r o v i d e s a m e a n s t o e x t e n d t h e s p r e a d s h e e t    

w h e n a d d i t i o n a l r o w s o f d a t a a p p e a r a t a l a t e r t i m e . I f t h i s c h e c k b o x i s    

c h e c k e d , a t e x e c u t i o n t i m e , D a t a S e r v i c e s s e a r c h e s r o w b y r o w u n t i l a n u l l    

v a l u e r o w i s r e a c h e d . A l l r o w s a b o v e t h e n u l l v a l u e r o w a r e i n c l u d e d .  

• I f a p p l i c a b l e , s e l e c t t h e        U s e r s t r o w v a l u e s a s c o l u m n n a m e s      o p t i o n .  

I f t h i s o p t i o n i s s e l e c t e d , e l d n a m e s a r e b a s e d o n t h e r s t r o w o f t h e      

i m p o r t e d E x c e l s h e e t .  

• C l i c k        I m p o r t s c h e m a        . 

T h e s c h e m a i s d i s p l a y e d a t t h e t o p o f t h e d i a l o g b o x .  • S p e c i f y t h e s t r u c t u r e o f e a c h c o l u m n :  

C o l u m n D e s c r i p t i o n      

F i e l d N a m e E n t e r t h e n a m e o f t h e c o l u m n .  

D a t a T y p e S e l e c t t h e a p p r o p r i a t e d a t a t y p e f r o m t h e d r o p - d o w n l i s t .  

F i e l d S i z e F o r c o l u m n s w i t h a d a t a t y p e o f v a r c h a r , s p e c i f y t h e      

l e n g t h o f t h e e l d .  

7 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 81: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 81/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s      

P r e c i s i o n F o r c o l u m n s w i t h a d a t a t y p e o f d e c i m a l o r n u m e r i c ,    

s p e c i f y t h e p r e c i s i o n o f t h e e l d .  

S c a l e F o r c o l u m n s w i t h a d a t a t y p e o f d e c i m a l o r n u m e r i c ,    s p e c i f y t h e s c a l e o f t h e e l d .  

D e s c r i p t i o n I f d e s i r e d , e n t e r a d e s c r i p t i o n o f t h e c o l u m n .  

• I f r e q u i r e d , o n t h e D a t a A c c e s s t a b , e n t e r a n y c h a n g e s t h a t a r e r e q u i r e d .  

T h e D a t a A c c e s s t a b p r o v i d e s o p t i o n s t o r e t r i e v e t h e l e v i a F T P o r e x e c u t e a      

c u s t o m a p p l i c a t i o n ( s u c h a s u n z i p p i n g a l e ) b e f o r e r e a d i n g t h e l e .  

• S e l e c t      O K       . 

T h e n e w l y i m p o r t e d l e f o r m a t a p p e a r s i n t h e L o c a l O b j e c t s L i b r a r y w i t h      

t h e o t h e r E x c e l w o r k b o o k s . T h e s h e e t i s n o w a v a i l a b l e t o b e s e l e c t e d f o r    

u s e a s a n a t i v e d a t a s o u r c e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     7 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 82: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 82/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

7 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 83: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 83/472

B O D S 1 0 L e s s o n : D e n i n g D a t a s t o r e E x c e l F i l e F o r m a t s      

E x e r c i s e 4 : C r e a t i n g a n E x c e l F i l e F o r m a t    

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e a l e f o r m a t t o e n a b l e y o u t o u s e t h e c o m p e n s a t i o n s p r e a d s h e e t a s    

a s o u r c e o b j e c t    

B u s i n e s s E x a m p l e      

C o m p e n s a t i o n i n f o r m a t i o n i n t h e A l p h a A c q u i s i t i o n s d a t a b a s e i s s t o r e d i n a n      

E x c e l s p r e a d s h e e t . T o u s e t h e i n f o r m a t i o n i n d a t a o w s , y o u n e e d t o c r e a t e a      

l e f o r m a t f o r t h i s E x c e l l e .  

T a s k :    

C r e a t e a l e f o r m a t t o e n a b l e y o u t o u s e t h e c o m p e n s a t i o n s p r e a d s h e e t a s a s o u r c e      

o b j e c t    

1 . I n t h e L o c a l O b j e c t L i b r a r y c r e a t e a n e w l e f o r m a t f o r a n E x c e l w o r k b o o k      

c a l l e d        C o m p _ H R          . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     7 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 84: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 84/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

S o l u t i o n 4 : C r e a t i n g a n E x c e l F i l e F o r m a t    

T a s k :    

C r e a t e a l e f o r m a t t o e n a b l e y o u t o u s e t h e c o m p e n s a t i o n s p r e a d s h e e t a s a s o u r c e      

o b j e c t    

1 . I n t h e L o c a l O b j e c t L i b r a r y c r e a t e a n e w l e f o r m a t f o r a n E x c e l w o r k b o o k      

c a l l e d        C o m p _ H R          . 

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        F i l e F o r m a t      t a b .  

 b ) R i g h t c l i c k t h e E x c e l n o d e t o s e l e c t t h e o p t i o n     N e w      . 

c ) U s e        C o m p _ H R          a s t h e n a m e f o r t h e E x c e l f o r m a t .  

d ) T o c h a n g e t h e s o u r c e f o l d e r , c l i c k t h e f o l d e r i c o n a n d n a v i g a t e t o t h e      f o l d e r      M y D o c u m e n t s → B O I 3 0 0 → A c t i v i t y _ S o u r c e        . 

e ) T o s e l e c t t h e E x c e l l e , c l i c k t h e l e i c o n t o s e l e c t t h e l e      

C o m p _ H R . x l s        . 

f ) S e l e c t t h e        W o r k s h e e t      r a d i o b u t t o n .  

g ) F r o m t h e        W o r k s h e e t      d r o p - d o w n l i s t , s e l e c t t h e        C o m p _ H R          w o r k s h e e t .  

h ) C l i c k t h e        E l l l i p s e s ( . . . )    b u t t o n .  

i ) S e l e c t a l l t h e c e l l s t h a t c o n t a i n d a t a i n c l u d i n g t h e r s t r o w ( h e a d e r r o w )    

a n d c l o s e t h e s p r e a d s h e e t    

H i n t :      T h e r e s h o u l d b e a p p r o x i m a t e l y 2 8 6 r o w s .  

 j ) C l i c k t h e c h e c k b o x o p t i o n t o     E x t e n d t h e r a n g e        . 

k ) U s e t h e r s t r o w v a l u e s f o r t h e c o l u m n n a m e s .  

l ) I m p o r t t h e s c h e m a a n d a d j u s t t h e d a t a t y p e s f o r t h e c o l u m n s :  

C o l u m n D a t a t y p e      

E m p l o y e e I D v a r c h a r ( 1 0 )    

E m p _ S a l a r y i n t    E m p _ B o n u s i n t    

E m p _ V a c a t i o n D a y s i n t    

d a t e _ u p d a t e d d a t e t i m e      

m ) S a v e t h e f o r m a t .  

n ) R i g h t c l i c k y o u r f o r m a t      C o m p _ H R          a n d c h o o s e t h e o p t i o n        V i e w d a t a        . 

C o n t i n u e d o n n e x t p a g e      

7 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 85: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 85/472

Page 86: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 86/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • C r e a t e a D a t a S e r v i c e s E x c e l l e f o r m a t    

7 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 87: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 87/472

B O D S 1 0 L e s s o n : D e n i n g X M L F o r m a t s      

L e s s o n : D e n i n g X M L F o r m a t s      

L e s s o n O v e r v i e w          

D a t a S e r v i c e s a l l o w s y o u t o i m p o r t a n d e x p o r t m e t a d a t a f o r X M L d o c u m e n t s t h a t    

y o u c a n u s e a s s o u r c e s o r t a r g e t s i n j o b s . .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• I m p o r t d a t a f r o m X M L d o c u m e n t s    

• U n n e s t d a t a i n X M L d o c u m e n t s    

B u s i n e s s E x a m p l e      

D a t a i n c l u d e d i n X M L l e s i s a s o u r c e o f d a t a f o r y o u r d a t a w a r e h o u s e . D a t a      

S e r v i c e s c a n i m p o r t X M L d a t a o n c e a n X M L f o r m a t h a s b e e n c r e a t e d i n t h e      

L o c a l O b j e c t L i b r a r y . Y o u n e e d t o k n o w h o w t o d e s c r i b e t h i s d a t a u s i n g e i t h e r a      

d o c u m e n t t y p e d e n i t i o n ( . d t d ) o r X M L S c h e m a ( . x s d ) . D u e t o t h e h i e r a r c h i c a l    

n a t u r e o f X M L d a t a , y o u n e e d t o k n o w h o w t o u n n e s t X M L d a t a d u r i n g t h e      

e x t r a c t i o n p r o c e s s .  

D e n i n g l e f o r m a t s f o r X M L l e s      D a t a S e r v i c e s a l l o w s y o u t o i m p o r t a n d e x p o r t m e t a d a t a f o r X M L d o c u m e n t s t h a t    

y o u c a n u s e a s s o u r c e s o r t a r g e t s i n j o b s .  

X M L d o c u m e n t s a r e h i e r a r c h i c a l a n d t h e s e t o f p r o p e r t i e s d e s c r i b i n g t h e i r    

s t r u c t u r e i s s t o r e d i n s e p a r a t e f o r m a t l e s . T h e s e f o r m a t l e s d e s c r i b e t h e d a t a      

c o n t a i n e d i n t h e X M L d o c u m e n t a n d t h e r e l a t i o n s h i p s a m o n g t h e d a t a e l e m e n t s ,    

t h e s c h e m a . T h e f o r m a t o f a n X M L l e o r m e s s a g e ( . x m l ) c a n b e s p e c i e d u s i n g      

e i t h e r a d o c u m e n t t y p e d e n i t i o n ( . d t d ) o r X M L S c h e m a ( . x s d ) .  

D a t a o w s c a n r e a d a n d w r i t e d a t a t o m e s s a g e s o r l e s b a s e d o n a s p e c i e d D T D        

f o r m a t o r X M L S c h e m a . Y o u c a n u s e t h e s a m e D T D f o r m a t o r X M L S c h e m a t o      

d e s c r i b e m u l t i p l e X M L s o u r c e s o r t a r g e t s .  

D a t a S e r v i c e s u s e s N e s t e d R e l a t i o n a l D a t a M o d e l i n g ( N R D M ) t o s t r u c t u r e      

i m p o r t e d m e t a d a t a f r o m f o r m a t d o c u m e n t s , s u c h a s x s d o r d t d l e s , i n t o a n      

i n t e r n a l s c h e m a t o u s e f o r h i e r a r c h i c a l d o c u m e n t s .  

I m p o r t i n g m e t a d a t a f r o m a D T D l e      

A s a n e x a m p l e , a n X M L d o c u m e n t t h a t c o n t a i n s i n f o r m a t i o n t o p l a c e a s a l e s o r d e r ,    

s u c h a s o r d e r h e a d e r , c u s t o m e r , a n d l i n e i t e m s , t h e c o r r e s p o n d i n g D T D i n c l u d e s    

t h e o r d e r s t r u c t u r e a n d t h e r e l a t i o n s h i p b e t w e e n t h e d a t a e l e m e n t s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     7 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 88: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 88/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

Y o u c a n i m p o r t m e t a d a t a f r o m e i t h e r a n e x i s t i n g X M L l e ( w i t h a r e f e r e n c e t o a      

D T D ) o r a D T D l e . I f y o u i m p o r t t h e m e t a d a t a f r o m a n X M L l e , D a t a S e r v i c e s    

a u t o m a t i c a l l y r e t r i e v e s t h e D T D f o r t h a t X M L l e .  W h e n i m p o r t i n g a D T D f o r m a t , D a t a S e r v i c e s r e a d s t h e d e n e d e l e m e n t s a n d      

a t t r i b u t e s , a n d i g n o r e s o t h e r p a r t s , s u c h a s t e x t a n d c o m m e n t s , f r o m t h e l e      

d e n i t i o n . T h i s a l l o w s y o u t o m o d i f y i m p o r t e d X M L d a t a a n d e d i t t h e d a t a t y p e a s    

n e e d e d .  

I m p o r t i n g m e t a d a t a f r o m a n X M L s c h e m a      

F o r a n X M L d o c u m e n t t h a t c o n t a i n s , f o r e x a m p l e , i n f o r m a t i o n t o p l a c e a s a l e s    

o r d e r , s u c h a s o r d e r h e a d e r , c u s t o m e r , a n d l i n e i t e m s , t h e c o r r e s p o n d i n g X M L        

s c h e m a i n c l u d e s t h e o r d e r s t r u c t u r e a n d t h e r e l a t i o n s h i p b e t w e e n t h e d a t a a s s h o w n :  

F i g u r e 2 4 : I m p o r t i n g M e t a d a t a f r o m a n X M L S c h e m a      

W h e n i m p o r t i n g a n X M L S c h e m a , D a t a S e r v i c e s r e a d s t h e d e n e d e l e m e n t s a n d      

a t t r i b u t e s , a n d i m p o r t s :  • D o c u m e n t s t r u c t u r e      

• T a b l e a n d c o l u m n n a m e s    

• D a t a t y p e o f e a c h c o l u m n      

• N e s t e d t a b l e a n d c o l u m n a t t r i b u t e s    

N o t e :      W h i l e X M L S c h e m a s m a k e a d i s t i n c t i o n b e t w e e n e l e m e n t s a n d a t t r i b u t e s ,    

D a t a S e r v i c e s i m p o r t s a n d c o n v e r t s t h e m a l l t o n e s t e d t a b l e a n d c o l u m n a t t r i b u t e s .  

N e s t e d d a t a i n X M L l e s    

7 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 89: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 89/472

B O D S 1 0 L e s s o n : D e n i n g X M L F o r m a t s      

S a l e s o r d e r s a r e p r e s e n t e d u s i n g n e s t e d d a t a . F o r e x a m p l e , t h e l i n e i t e m s i n a s a l e s    

o r d e r a r e r e l a t e d t o a s i n g l e h e a d e r a n d a r e r e p r e s e n t e d u s i n g a n e s t e d s c h e m a .  

E a c h r o w o f t h e s a l e s o r d e r d a t a s e t c o n t a i n s a n e s t e d l i n e i t e m s c h e m a a s s h o w n :  

F i g u r e 2 5 : E x a m p l e o f N e s t e d D a t a 1      

U s i n g t h e n e s t e d d a t a m e t h o d c a n b e m o r e c o n c i s e ( n o r e p e a t e d i n f o r m a t i o n ) , a n d      

c a n s c a l e t o p r e s e n t a d e e p e r l e v e l o f h i e r a r c h i c a l c o m p l e x i t y .  

F i g u r e 2 6 : E x a m p l e o f N e s t e d D a t a 2      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     7 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 90: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 90/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

T o e x p a n d o n t h e e x a m p l e a b o v e , c o l u m n s i n s i d e a n e s t e d s c h e m a c a n a l s o c o n t a i n      

c o l u m n s .  

T h e r e i s a u n i q u e i n s t a n c e o f e a c h n e s t e d s c h e m a f o r e a c h r o w a t e a c h l e v e l o f t h e      r e l a t i o n s h i p a s s h o w n :  

G e n e r a l i z i n g f u r t h e r w i t h n e s t e d d a t a , e a c h r o w a t e a c h l e v e l c a n h a v e a n y n u m b e r    

o f c o l u m n s c o n t a i n i n g n e s t e d s c h e m a s .  

D a t a S e r v i c e s m a p s n e s t e d d a t a t o a s e p a r a t e s c h e m a i m p l i c i t l y r e l a t e d t o a s i n g l e      

r o w a n d c o l u m n o f t h e p a r e n t s c h e m a . T h i s m e c h a n i s m i s c a l l e d N e s t e d R e l a t i o n a l    

D a t a M o d e l i n g ( N R D M ) . N R D M p r o v i d e s a w a y t o v i e w a n d m a n i p u l a t e      

h i e r a r c h i c a l r e l a t i o n s h i p s w i t h i n d a t a o w s o u r c e s , t a r g e t s , a n d t r a n s f o r m s .  

I n D a t a S e r v i c e s , y o u c a n s e e t h e s t r u c t u r e o f n e s t e d d a t a i n t h e i n p u t a n d o u t p u t    

s c h e m a s o f s o u r c e s , t a r g e t s , a n d t r a n s f o r m s i n d a t a o w s .  

U n n e s t i n g d a t a      

L o a d i n g a d a t a s e t t h a t c o n t a i n s n e s t e d s c h e m a s i n t o a r e l a t i o n a l t a r g e t r e q u i r e s    

t h a t t h e n e s t e d r o w s b e u n n e s t e d .  

F o r e x a m p l e , a s a l e s o r d e r m a y u s e a n e s t e d s c h e m a t o d e n e t h e r e l a t i o n s h i p      

 b e t w e e n t h e o r d e r h e a d e r a n d t h e o r d e r l i n e i t e m s . T o l o a d t h e d a t a i n t o r e l a t i o n a l  

s c h e m a s , t h e m u l t i l e v e l s o f d a t a m u s t b e u n n e s t e d .  

U n n e s t i n g a s c h e m a p r o d u c e s a c r o s s - p r o d u c t o f t h e t o p - l e v e l s c h e m a ( p a r e n t )    

a n d t h e n e s t e d s c h e m a ( c h i l d ) .  

F i g u r e 2 7 : U n n e s t i n g D a t a 1      

8 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 91: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 91/472

Page 92: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 92/472

U n i t 2 : D e n i n g S o u r c e a n d T a r g e t M e t a d a t a B O D S 1 0      

K e e p i n m i n d t h a t u n n e s t i n g a l l s c h e m a s t o c r e a t e a c r o s s p r o d u c t o f a l l d a t a m i g h t    

n o t p r o d u c e t h e r e s u l t s y o u i n t e n d . F o r e x a m p l e , i f a n o r d e r i n c l u d e s m u l t i p l e      

c u s t o m e r v a l u e s s u c h a s s h i p - t o a n d b i l l - t o a d d r e s s e s , a t t e n i n g a s a l e s o r d e r     b y u n n e s t i n g c u s t o m e r a n d l i n e - i t e m s c h e m a s p r o d u c e s r o w s o f d a t a t h a t m i g h t  

n o t b e u s e f u l f o r p r o c e s s i n g t h e o r d e r .  

8 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 93: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 93/472

B O D S 1 0 L e s s o n : D e n i n g X M L F o r m a t s      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • I m p o r t d a t a f r o m X M L d o c u m e n t s    

• U n n e s t d a t a i n X M L d o c u m e n t s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     8 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 94: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 94/472

U n i t S u m m a r y B O D S 1 0      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

• C r a t e v a r i o u s t y p e s o f D a t a s t o r e s    

• D e n e s y s t e m c o n g u r a t i o n s i n D a t a S e r v i c e s    

• D e n i n g a t l e f o r m a t s a s a b a s i s f o r a D a t a s t o r e      

• C r e a t e a D a t a S e r v i c e s E x c e l l e f o r m a t    

• I m p o r t d a t a f r o m X M L d o c u m e n t s    

• U n n e s t d a t a i n X M L d o c u m e n t s    

8 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 95: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 95/472

Page 96: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 96/472

T e s t Y o u r K n o w l e d g e B O D S 1 0      

7 . W h i c h i s n o t a D a t a s t o r e t y p e ?      

C h o o s e t h e c o r r e c t a n s w e r ( s ) .  

□ A D a t a b a s e ?      

□ B A p p l i c a t i o n      

□ C A d a p t e r    

□ D F i l e F o r m a t    

8 . W h a t i s t h e d i f f e r e n c e b e t w e e n a r e p o s i t o r y a n d a D a t a s t o r e ?      

8 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 97: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 97/472

B O D S 1 0 T e s t Y o u r K n o w l e d g e      

A n s w e r s      

1 . W h a t i s t h e d i f f e r e n c e b e t w e e n a D a t a s t o r e a n d a r e p o s i t o r y ?      

A n s w e r :      A D a t a s t o r e i s a c o n n e c t i o n t o a d a t a b a s e .  

2 . W h a t a r e t h e t w o m e t h o d s i n w h i c h m e t a d a t a c a n b e m a n i p u l a t e d i n D a t a      

S e r v i c e s o b j e c t s a n d w h a t d o e s e a c h o f t h e s e d o ?      

A n s w e r :      Y o u c a n u s e a n o b j e c t ' s o p t i o n s a n d p r o p e r t i e s s e t t i n g s t o      

m a n i p u l a t e D a t a S e r v i c e s o b j e c t s . O p t i o n s c o n t r o l t h e o p e r a t i o n o f o b j e c t s .  

P r o p e r t i e s d o c u m e n t t h e o b j e c t .  

3 . W h i c h i s n o t a D a t a s t o r e t y p e ?      

A n s w e r :      D    

T h e F i l e F o r m a t i s u s e d t o c r e a t e a D a t a s t o r e a n d i s n o t a t y p e .  

4 . W h a t i s t h e d i f f e r e n c e b e t w e e n a r e p o s i t o r y a n d a D a t a s t o r e ?      

A n s w e r :      A r e p o s i t o r y i s a s e t o f t a b l e s t h a t h o l d s y s t e m o b j e c t s , s o u r c e      

a n d t a r g e t m e t a d a t a , a n d t r a n s f o r m a t i o n r u l e s . A D a t a s t o r e i s a n a c t u a l    

c o n n e c t i o n t o a d a t a b a s e t h a t h o l d s d a t a .  

5 . W h a t i s t h e d i f f e r e n c e b e t w e e n a D a t a s t o r e a n d a r e p o s i t o r y ?      

A n s w e r :      A D a t a s t o r e i s a c o n n e c t i o n t o a d a t a b a s e .  

6 . W h a t a r e t h e t w o m e t h o d s i n w h i c h m e t a d a t a c a n b e m a n i p u l a t e d i n D a t a      

S e r v i c e s o b j e c t s a n d w h a t d o e s e a c h o f t h e s e d o ?      

A n s w e r :      Y o u c a n u s e a n o b j e c t ' s o p t i o n s a n d p r o p e r t i e s s e t t i n g s t o      

m a n i p u l a t e D a t a S e r v i c e s o b j e c t s . O p t i o n s c o n t r o l t h e o p e r a t i o n o f o b j e c t s .  

P r o p e r t i e s d o c u m e n t t h e o b j e c t .  

7 . W h i c h i s n o t a D a t a s t o r e t y p e ?      

A n s w e r :      D    

T h e F i l e F o r m a t i s u s e d t o c r e a t e a D a t a s t o r e a n d i s n o t a t y p e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     8 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 98: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 98/472

T e s t Y o u r K n o w l e d g e B O D S 1 0      

8 . W h a t i s t h e d i f f e r e n c e b e t w e e n a r e p o s i t o r y a n d a D a t a s t o r e ?      

A n s w e r :      A r e p o s i t o r y i s a s e t o f t a b l e s t h a t h o l d s y s t e m o b j e c t s , s o u r c e      a n d t a r g e t m e t a d a t a , a n d t r a n s f o r m a t i o n r u l e s . A D a t a s t o r e i s a n a c t u a l    

c o n n e c t i o n t o a d a t a b a s e t h a t h o l d s d a t a .  

8 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 99: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 99/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 100: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 100/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 101: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 101/472

Page 102: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 102/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

L e s s o n : C r e a t i n g B a t c h J o b s      

L e s s o n O v e r v i e w          

O n c e m e t a d a t a h a s b e e n i m p o r t e d f o r y o u r d a t a s t o r e s , y o u c a n c r e a t e d a t a o w s t o      

d e n e d a t a m o v e m e n t r e q u i r e m e n t s . D a t a o w s c o n s i s t o f a s o u r c e a n d a t a r g e t    

c o n n e c t e d w i t h a t r a n s f o r m . D a t a o w s c a n t h e n b e p l a c e d i n t o a w o r k o w a s a n      

o p t i o n a l o b j e c t . D a t a o w s m u s t b e p l a c e d i n a j o b f o r e x e c u t i o n .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• C r e a t e a p r o j e c t    

• C r e a t e a n d e x e c u t e a j o b      • C r e a t e a d a t a o w w i t h s o u r c e a n d t a r g e t t a b l e s    

• U s e t h e Q u e r y t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y w o u l d l i k e t o s e t u p r e p o r t i n g o n s a l e s a n d p u r c h a s i n g d a t a f r o m          

y o u r S A P s o u r c e s y s t e m i n S A P N e t W e a v e r B u s i n e s s W a r e h o u s e . T h e e x t r a c t i o n      

o f d a t a w i t h a D a t a I n t e g r a t o r d a t a o w i s t h e r s t s t e p t o s e c u r i n g t h i s d a t a f o r    

r e p o r t i n g . Y o u n e e d t o k n o w h o w t o b u i l d a d a t a o w w i t h s o u r c e a n d t a r g e t    

t a b l e s a n d a s i m p l e Q u e r y t r a n s f o r m . Y o u a l s o n e e d t o k n o w h o w t o e x e c u t e t h i s    

d a t a o w m a n u a l l y p r i o r t o s c h e d u l i n g .  

W o r k i n g w i t h D a t a I n t e g r a t o r O b j e c t s      

D a t a o w s d e n e h o w i n f o r m a t i o n i s m o v e d f r o m a s o u r c e t o a t a r g e t . D a t a o w s    

a r e o r g a n i z e d i n t o e x e c u t a b l e j o b s , w h i c h a r e g r o u p e d i n t o p r o j e c t s .  

9 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 103: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 103/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

F i g u r e 3 0 : D a t a S e r v i c e s P r o j e c t A r e a      

C r e a t i n g a p r o j e c t    

A p r o j e c t i s a s i n g l e - u s e o b j e c t t h a t a l l o w s y o u t o g r o u p j o b s . I t i s t h e h i g h e s t    

l e v e l o f o r g a n i z a t i o n o f f e r e d b y S A P B u s i n e s s O b j e c t s D a t a S e r v i c e s . O p e n i n g a      

 p r o j e c t m a k e s o n e g r o u p o f o b j e c t s e a s i l y a c c e s s i b l e i n t h e u s e r i n t e r f a c e . O n l y   

o n e p r o j e c t c a n b e o p e n a t a t i m e .  

F i g u r e 3 1 : D a t a S e r v i c e s P r o j e c t    

A p r o j e c t i s u s e d s o l e l y f o r o r g a n i z a t i o n a l p u r p o s e s . F o r e x a m p l e , y o u c a n u s e      a p r o j e c t t o g r o u p j o b s t h a t h a v e s c h e d u l e s t h a t d e p e n d o n o n e a n o t h e r o r t h a t    

y o u w a n t t o m o n i t o r t o g e t h e r .  

T h e o b j e c t s i n a p r o j e c t a p p e a r h i e r a r c h i c a l l y i n t h e p r o j e c t a r e a i n D e s i g n e r . I f      

a p l u s s i g n a p p e a r s n e x t t o a n o b j e c t , y o u c a n e x p a n d i t t o v i e w t h e l o w e r - l e v e l    

o b j e c t s .  

C r e a t i n g a j o b      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 104: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 104/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

A j o b i s t h e o n l y e x e c u t a b l e o b j e c t i n D a t a S e r v i c e s . W h e n y o u a r e d e v e l o p i n g      

y o u r d a t a o w s , y o u c a n m a n u a l l y e x e c u t e a n d t e s t j o b s d i r e c t l y i n D a t a S e r v i c e s .  

I n p r o d u c t i o n , y o u c a n s c h e d u l e b a t c h j o b s a n d s e t u p r e a l - t i m e j o b s a s s e r v i c e s    t h a t e x e c u t e a p r o c e s s w h e n D a t a S e r v i c e s r e c e i v e s a m e s s a g e r e q u e s t .  

F i g u r e 3 2 : D a t a S e r v i c e s J o b      

A j o b i s m a d e u p o f s t e p s t h a t a r e e x e c u t e d t o g e t h e r . E a c h s t e p i s r e p r e s e n t e d b y      

a n o b j e c t i c o n t h a t y o u p l a c e i n t h e w o r k s p a c e t o c r e a t e a j o b d i a g r a m . A j o b      

d i a g r a m i s m a d e u p o f t w o o r m o r e o b j e c t s c o n n e c t e d t o g e t h e r . Y o u c a n i n c l u d e      

a n y o f t h e s e o b j e c t s i n a j o b d e n i t i o n :  

• W o r k o w s    

• S c r i p t s    

• C o n d i t i o n a l s    

• W h i l e l o o p s    

• T r y / c a t c h b l o c k s    

• D a t a o w s    

 – S o u r c e o b j e c t s  

 – T a r g e t o b j e c t s  

 – T r a n s f o r m s  

I f a j o b b e c o m e s c o m p l e x , y o u c a n o r g a n i z e i t s c o n t e n t i n t o i n d i v i d u a l w o r k o w s ,    

a n d t h e n c r e a t e a s i n g l e j o b t h a t c a l l s t h o s e w o r k o w s .  

H i n t :      F o l l o w t h e r e c o m m e n d e d c o n s i s t e n t n a m i n g c o n v e n t i o n s t o      f a c i l i t a t e o b j e c t i d e n t i c a t i o n a c r o s s a l l s y s t e m s i n y o u r e n t e r p r i s e .  

A d d i n g , c o n n e c t i n g , a n d d e l e t i n g o b j e c t s i n t h e w o r k s p a c e      

A f t e r c r e a t i n g a j o b , y o u c a n a d d o b j e c t s t o t h e j o b w o r k s p a c e a r e a u s i n g e i t h e r t h e      

L o c a l O b j e c t L i b r a r y o r t h e t o o l p a l e t t e .  

9 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 105: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 105/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

T o a d d o b j e c t s f r o m t h e L o c a l O b j e c t L i b r a r y t o t h e w o r k s p a c e      

1 . I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b f o r t h e t y p e o f o b j e c t y o u w a n t t o      

a d d .  

2 . S e l e c t a n d d r a g t h e s e l e c t e d o b j e c t o n t o t h e w o r k s p a c e .  

T o a d d o b j e c t s f r o m t h e t o o l p a l e t t e t o t h e w o r k s p a c e , i n t o o l p a l e t t e , s e l e c t t h e      

d e s i r e d o b j e c t , m o v e t h e c u r s o r t o t h e w o r k s p a c e , a n d t h e n s e l e c t t h e w o r k s p a c e      

t o a d d t h e o b j e c t .  

C r e a t i n g a w o r k o w        

A w o r k o w i s a n o p t i o n a l o b j e c t t h a t d e n e s t h e d e c i s i o n - m a k i n g p r o c e s s f o r    

e x e c u t i n g o t h e r o b j e c t s .  

F i g u r e 3 3 : D a t a S e r v i c e s W o r k o w          

F o r e x a m p l e , e l e m e n t s i n a w o r k o w c a n d e t e r m i n e t h e p a t h o f e x e c u t i o n b a s e d      

o n a v a l u e s e t b y a p r e v i o u s j o b o r c a n i n d i c a t e a n a l t e r n a t i v e p a t h i f s o m e t h i n g      

g o e s w r o n g i n t h e p r i m a r y p a t h . U l t i m a t e l y , t h e p u r p o s e o f a w o r k o w i s t o      

 p r e p a r e f o r e x e c u t i n g d a t a o w s a n d t o s e t t h e s t a t e o f t h e s y s t e m a f t e r t h e d a t a   

o w s a r e c o m p l e t e .  

N o t e :      J o b s a r e j u s t w o r k o w s t h a t c a n b e e x e c u t e d . A l m o s t a l l o f t h e      

f e a t u r e s d o c u m e n t e d f o r w o r k o w s a l s o a p p l y t o j o b s .  

W o r k o w s c a n c o n t a i n d a t a o w s , c o n d i t i o n a l s , w h i l e l o o p s , t r y / c a t c h b l o c k s ,    

a n d s c r i p t s . T h e y c a n a l s o c a l l o t h e r w o r k o w s , a n d y o u c a n n e s t c a l l s t o a n y      

d e p t h . A w o r k o w c a n e v e n c a l l i t s e l f .  

T o c o n n e c t o b j e c t s i n t h e w o r k s p a c e a r e a , s e l e c t a n d d r a g f r o m t h e t r i a n g l e o r    

s q u a r e o f a n o b j e c t t o t h e t r i a n g l e o r s q u a r e o f t h e n e x t o b j e c t i n t h e o w t o      

c o n n e c t t h e o b j e c t s .  

T o d i s c o n n e c t o b j e c t s i n t h e w o r k s p a c e a r e a , s e l e c t t h e c o n n e c t i n g l i n e b e t w e e n      

t h e o b j e c t s a n d p r e s s      D e l e t e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 106: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 106/472

Page 107: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 107/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

E a c h s t e p i n a d a t a o w , u p t o t h e t a r g e t d e n i t i o n , p r o d u c e s a n i n t e r m e d i a t e      

r e s u l t . F o r e x a m p l e , t h e r e s u l t s o f a S Q L s t a t e m e n t c o n t a i n a W H E R E c l a u s e t h a t    

o w s t o t h e n e x t s t e p i n t h e d a t a o w . T h e i n t e r m e d i a t e r e s u l t c o n s i s t s o f a s e t o f      r o w s f r o m t h e p r e v i o u s o p e r a t i o n a n d t h e s c h e m a i n w h i c h t h e r o w s a r e a r r a n g e d .  

T h i s r e s u l t i s c a l l e d a d a t a s e t . T h i s d a t a s e t m a y , i n t u r n , b e f u r t h e r l t e r e d a n d      

d i r e c t e d i n t o y e t a n o t h e r d a t a s e t .  

D a t a o w s a r e c l o s e d o p e r a t i o n s , e v e n w h e n t h e y a r e s t e p s i n a w o r k o w . A n y      

d a t a s e t c r e a t e d w i t h i n a d a t a o w i s n o t a v a i l a b l e t o o t h e r s t e p s i n t h e w o r k o w .  

A w o r k o w d o e s n o t o p e r a t e o n d a t a s e t s a n d c a n n o t p r o v i d e m o r e d a t a t o a      

d a t a o w ; h o w e v e r , a w o r k o w c a n :  

• C a l l d a t a o w s t o p e r f o r m d a t a m o v e m e n t o p e r a t i o n s .  

• D e n e t h e c o n d i t i o n s a p p r o p r i a t e t o r u n d a t a o w s .  

• P a s s p a r a m e t e r s t o a n d f r o m d a t a o w s .  

C h a n g i n g d a t a o w p r o p e r t i e s    

Y o u c a n s p e c i f y t h e s e a d v a n c e d d a t a p r o p e r t i e s f o r a d a t a o w :  

D a t a F l o w        

P r o p e r t y      

D e s c r i p t i o n      

E x e c u t e o n l y o n c e      

W h e n y o u s p e c i f y t h a t a d a t a o w s h o u l d o n l y e x e c u t e      

o n c e , a b a t c h j o b w i l l n e v e r r e - e x e c u t e t h a t d a t a o w        

a f t e r t h e d a t a o w c o m p l e t e s s u c c e s s f u l l y . E v e n i f t h e      

d a t a o w i s c o n t a i n e d i n a w o r k o w t h a t i s a r e c o v e r y      

u n i t t h a t r e - e x e c u t e s . Y o u s h o u l d n o t s e l e c t t h i s o p t i o n i f      

t h e p a r e n t w o r k o w i s a r e c o v e r y u n i t .  

U s e d a t a b a s e l i n k s    

D a t a b a s e l i n k s a r e c o m m u n i c a t i o n p a t h s b e t w e e n o n e      

d a t a b a s e s e r v e r a n d a n o t h e r . D a t a b a s e l i n k s a l l o w l o c a l    

u s e r s t o a c c e s s d a t a o n a r e m o t e d a t a b a s e , w h i c h c a n b e      

o n t h e l o c a l o r a r e m o t e c o m p u t e r o f t h e s a m e o r d i f f e r e n t    

d a t a b a s e t y p e .  

D e g r e e o f      

 p a r a l l e l i s m     

D e g r e e o f p a r a l l e l i s m ( D O ) i s a p r o p e r t y o f a d a t a o w        

t h a t d e n e s h o w m a n y t i m e s e a c h t r a n s f o r m w i t h i n a d a t a      

o w r e p l i c a t e s t o p r o c e s s a p a r a l l e l s u b s e t o f d a t a .  

C a c h e t y p e      

Y o u c a n c a c h e d a t a t o i m p r o v e p e r f o r m a n c e o f o p e r a t i o n s    

s u c h a s j o i n s , g r o u p s , s o r t s , l t e r i n g , l o o k u p s , a n d t a b l e      

c o m p a r i s o n s . S e l e c t o n e o f t h e s e v a l u e s :  

• I n M e m o r y : C h o o s e t h i s v a l u e i f y o u r d a t a o w        

 p r o c e s s e s a s m a l l a m o u n t o f d a t a t h a t c a n t i n t h e   

a v a i l a b l e m e m o r y .  

• P a g e a b l e : C h o o s e t h i s v a l u e i f y o u w a n t t o r e t u r n      

o n l y a s u b s e t o f d a t a a t a t i m e t o l i m i t t h e r e s o u r c e s    

r e q u i r e d . T h i s i s t h e d e f a u l t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 108: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 108/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

E x p l a i n i n g s o u r c e a n d t a r g e t o b j e c t s    

A d a t a o w d i r e c t l y r e a d s d a t a f r o m s o u r c e o b j e c t s a n d l o a d s d a t a t o t a r g e t o b j e c t s .  

B e f o r e y o u c a n a d d s o u r c e a n d t a r g e t o b j e c t s t o a d a t a o w , y o u m u s t r s t c r e a t e      

t h e d a t a s t o r e a n d i m p o r t t h e t a b l e m e t a d a t a f o r a n y d a t a b a s e s , o r c r e a t e t h e l e      

f o r m a t f o r a t l e s .  

O b j e c t D e s c r i p t i o n T y p e      

T a b l e A l e f o r m a t t e d w i t h c o l u m n s a n d      

r o w s a s u s e d i n r e l a t i o n a l d a t a b a s e s .  

S o u r c e a n d t a r g e t    

T e m p l a t e t a b l e A t e m p l a t e t a b l e t h a t h a s b e e n      

c r e a t e d a n d s a v e d i n a n o t h e r d a t a      

o w ( u s e d i n d e v e l o p m e n t ) .  

S o u r c e a n d t a r g e t    

F i l e A d e l i m i t e d o r x e d - w i d t h a t l e . S o u r c e a n d t a r g e t    

D o c u m e n t A l e w i t h a n a p p l i c a t i o n - s p e c i c      

f o r m a t ( n o t r e a d a b l e b y S Q L o r X M L        

 p a r s e r ) . 

S o u r c e a n d t a r g e t    

X M L l e A l e f o r m a t t e d w i t h X M L t a g s . S o u r c e a n d t a r g e t    

X M L m e s s a g e A s o u r c e i n r e a l - t i m e j o b s . S o u r c e o n l y      

X M L t e m p l a t e      

l e   

A n X M L l e w h o s e f o r m a t i s b a s e d      

o n t h e p r e c e d i n g t r a n s f o r m o u t p u t    

( u s e d i n d e v e l o p m e n t , p r i m a r i l y f o r    

d e b u g g i n g d a t a o w s ) .  

T a r g e t o n l y      

T r a n s f o r m A p r e b u i l t s e t o f o p e r a t i o n s t h a t c a n      

c r e a t e n e w d a t a , s u c h a s t h e D a t e      

G e n e r a t i o n t r a n s f o r m .  

S o u r c e o n l y      

U s i n g t h e q u e r y t r a n s f o r m          

T h e Q u e r y t r a n s f o r m i s t h e m o s t c o m m o n l y - u s e d t r a n s f o r m , a n d i s i n c l u d e d i n      

m o s t d a t a o w s . I t e n a b l e s y o u t o s e l e c t d a t a f r o m a s o u r c e a n d l t e r o r r e f o r m a t i t    

a s i t m o v e s t o t h e t a r g e t .  

9 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 109: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 109/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

F i g u r e 3 5 : Q u e r y T r a n s f o r m          

D e s c r i b i n g t h e t r a n s f o r m e d i t o r      T h e t r a n s f o r m e d i t o r i s a g r a p h i c a l i n t e r f a c e f o r d e n i n g t h e p r o p e r t i e s o f      

t r a n s f o r m s . T h e w o r k s p a c e c a n c o n t a i n t h e s e a r e a s :  

• I n p u t s c h e m a a r e a      

• O u t p u t s c h e m a a r e a      

• P a r a m e t e r s a r e a      

F i g u r e 3 6 : Q u e r y T r a n s f o r m E d i t o r      

T h e i n p u t s c h e m a a r e a d i s p l a y s t h e s c h e m a o f t h e i n p u t d a t a s e t . F o r s o u r c e      

o b j e c t s a n d s o m e t r a n s f o r m s , t h i s a r e a i s n o t a v a i l a b l e .  

T h e o u t p u t s c h e m a a r e a d i s p l a y s t h e s c h e m a o f t h e o u t p u t d a t a s e t , i n c l u d i n g a n y      

f u n c t i o n s . F o r t e m p l a t e t a b l e s , t h e o u t p u t s c h e m a c a n b e d e n e d b a s e d o n y o u r     p r e f e r e n c e s . 

F o r a n y d a t a t h a t n e e d s t o m o v e f r o m s o u r c e t o t a r g e t , a r e l a t i o n s h i p m u s t b e      

d e n e d b e t w e e n t h e i n p u t a n d o u t p u t s c h e m a s . T o c r e a t e t h i s r e l a t i o n s h i p , y o u      

m u s t m a p e a c h i n p u t c o l u m n t o t h e c o r r e s p o n d i n g o u t p u t c o l u m n .  

B e l o w t h e i n p u t a n d o u t p u t s c h e m a a r e a s i s t h e p a r a m e t e r s a r e a . T h e o p t i o n s    

a v a i l a b l e o n t h i s t a b d i f f e r s b a s e d o n w h i c h t r a n s f o r m o r o b j e c t y o u a r e m o d i f y i n g .  

E x p l a i n i n g t h e Q u e r y t r a n s f o r m          

T h e Q u e r y t r a n s f o r m i s u s e d s o f r e q u e n t l y t h a t i t i s i n c l u d e d i n t h e t o o l p a l e t t e      

w i t h o t h e r s t a n d a r d o b j e c t s . I t r e t r i e v e s a d a t a s e t t h a t s a t i s e s c o n d i t i o n s t h a t y o u      s p e c i f y , s i m i l a r t o a S Q L S E L E C T s t a t e m e n t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 110: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 110/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

T h e Q u e r y t r a n s f o r m c a n p e r f o r m t h e s e o p e r a t i o n s :  

• F i l t e r t h e d a t a e x t r a c t e d f r o m s o u r c e s .  

• J o i n d a t a f r o m m u l t i p l e s o u r c e s .  

• M a p c o l u m n s f r o m i n p u t t o o u t p u t s c h e m a s .  

• P e r f o r m t r a n s f o r m a t i o n s a n d f u n c t i o n s o n t h e d a t a .  

• P e r f o r m d a t a n e s t i n g a n d u n n e s t i n g .  

• A d d n e w c o l u m n s , n e s t e d s c h e m a s , a n d f u n c t i o n r e s u l t s t o t h e o u t p u t s c h e m a .  

• A s s i g n p r i m a r y k e y s t o o u t p u t c o l u m n s .  

I n t h e p a s t , y o u n e e d e d t h r e e t a b s t o d e n e j o i n s : F R O M ( t a b l e s ) , W H E R E ( j o i n      

c o n d i t i o n s ) a n d O U T E R J O I N . N o w a l l i n f o r m a t i o n i s c o m b i n e d i n o n e t a b      

( F R O M ) . T h e W H E R E t a b i s s t i l l t h e r e a n d i s s t i l l u s e d f o r r e a l r e s t r i c t i o n s / l t e r s .  

F i g u r e 3 7 : Q u e r y T r a n s f o r m E d i t o r f o r J o i n s      

 J o i n R a n k s    a n d     C a c h e        s e t t i n g s w e r e m o v e d t o t h e F R O M t a b . I n a d d i t i o n , o u t e r    

a n d i n n e r j o i n s c a n a p p e a r i n t h e s a m e F R O M c l a u s e .  

9 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 111: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 111/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

F i g u r e 3 8 : Q u e r y T r a n s f o r m : J o i n R a n k s a n d C a c h e S e t t i n g s      

F o r e x a m p l e , y o u c o u l d u s e t h e Q u e r y t r a n s f o r m t o s e l e c t a s u b s e t o f t h e d a t a i n a      

t a b l e t o s h o w o n l y t h o s e r e c o r d s f r o m a s p e c i c r e g i o n .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e Q u e r y t r a n s f o r m .  

I n p u t / O u t p u t    

T h e d a t a i n p u t i s a d a t a s e t f r o m o n e o r m o r e s o u r c e s w i t h r o w s a g g e d w i t h      

a N O R M A L o p e r a t i o n c o d e .  

T h e N O R M A L o p e r a t i o n c o d e c r e a t e s a n e w r o w i n t h e t a r g e t . A l l t h e r o w s i n      

a d a t a s e t a r e a g g e d a s N O R M A L w h e n t h e y a r e e x t r a c t e d b y a s o u r c e t a b l e o r    

l e . I f a r o w i s a g g e d a s N O R M A L w h e n l o a d e d i n t o a t a r g e t t a b l e o r l e , i t    

i s i n s e r t e d a s a n e w r o w i n t h e t a r g e t .  

T h e d a t a o u t p u t i s a d a t a s e t b a s e d o n t h e c o n d i t i o n s y o u s p e c i f y a n d u s i n g t h e      

s c h e m a s p e c i e d i n t h e o u t p u t s c h e m a a r e a .  

N o t e :      W h e n w o r k i n g w i t h n e s t e d d a t a f r o m a n X M L l e , y o u c a n u s e t h e      

Q u e r y t r a n s f o r m t o u n n e s t t h e d a t a u s i n g t h e r i g h t - c l i c k m e n u f o r t h e      

o u t p u t s c h e m a , w h i c h p r o v i d e s o p t i o n s f o r u n n e s t i n g .  

T h e i n p u t s c h e m a a r e a d i s p l a y s a l l s c h e m a s i n p u t t o t h e Q u e r y t r a n s f o r m a s a      

h i e r a r c h i c a l t r e e . E a c h i n p u t s c h e m a c a n c o n t a i n m u l t i p l e c o l u m n s .  

O u t p u t s c h e m a a r e a d i s p l a y s t h e s c h e m a o u t p u t f r o m t h e Q u e r y t r a n s f o r m a s a      

h i e r a r c h i c a l t r e e . T h e o u t p u t s c h e m a c a n c o n t a i n m u l t i p l e c o l u m n s a n d f u n c t i o n s .  

T h e p a r a m e t e r s a r e a o f t h e Q u e r y t r a n s f o r m i n c l u d e s t h e s e t a b s :  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     9 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 112: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 112/472

Page 113: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 113/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

U s i n g t a r g e t t a b l e s      

T h e t a r g e t o b j e c t f o r y o u r d a t a o w c a n b e e i t h e r a p h y s i c a l t a b l e o r l e , o r a      

t e m p l a t e t a b l e .  

W h e n y o u r t a r g e t o b j e c t i s a p h y s i c a l t a b l e i n a d a t a b a s e , t h e t a r g e t t a b l e e d i t o r    

o p e n s i n t h e w o r k s p a c e w i t h d i f f e r e n t t a b s w h e r e y o u c a n s e t d a t a b a s e t y p e      

 p r o p e r t i e s , t a b l e l o a d i n g o p t i o n s , a n d t u n i n g t e c h n i q u e s f o r l o a d i n g a j o b . 

N o t e :      M o s t o f t h e t a b s i n t h e t a r g e t t a b l e e d i t o r f o c u s o n m i g r a t i o n o r    

 p e r f o r m a n c e - t u n i n g t e c h n i q u e s , w h i c h a r e o u t s i d e t h e s c o p e o f t h i s c o u r s e . 

Y o u c a n s e t t h e s e t a b l e l o a d i n g o p t i o n s i n t h e O p t i o n s t a b o f t h e t a r g e t t a b l e e d i t o r :  

O p t i o n D e s c r i p t i o n      

R o w s p e r c o m m i t S p e c i e s t h e t r a n s a c t i o n s i z e i n n u m b e r o f r o w s .  

C o l u m n      

c o m p a r i s o n      

S p e c i e s h o w t h e i n p u t c o l u m n s a r e m a p p e d t o o u t p u t    

c o l u m n s . T h e r e a r e t w o o p t i o n s :  

• C o m p a r e _ b y _ p o s i t i o n — d i s r e g a r d s t h e c o l u m n      

n a m e s a n d m a p s s o u r c e c o l u m n s t o t a r g e t c o l u m n s    

 b y p o s i t i o n . 

• C o m p a r e _ b y _ n a m e — m a p s s o u r c e c o l u m n s t o t a r g e t    

c o l u m n s b y n a m e .  

V a l i d a t i o n e r r o r s o c c u r i f t h e d a t a t y p e s o f t h e c o l u m n s d o      

n o t m a t c h .  D e l e t e d a t a f r o m          

t a b l e b e f o r e      

l o a d i n g      

S e n d s a T R U N C A T E s t a t e m e n t t o c l e a r t h e c o n t e n t s o f t h e      

t a b l e b e f o r e l o a d i n g d u r i n g b a t c h j o b s . D e f a u l t s t o n o t    

s e l e c t e d .  

 N u m b e r o f l o a d e r s  

S p e c i e s t h e n u m b e r o f l o a d e r s ( t o a m a x i m u m o f v e ) a n d      

t h e n u m b e r o f r o w s p e r c o m m i t t h a t e a c h l o a d e r r e c e i v e s    

d u r i n g p a r a l l e l l o a d i n g .  

F o r e x a m p l e , i f y o u c h o o s e a R o w s p e r c o m m i t o f 1 0 0 0 a n d      

s e t t h e n u m b e r o f l o a d e r s t o t h r e e , t h e r s t 1 0 0 0 r o w s a r e      

s e n t t o t h e r s t l o a d e r . T h e s e c o n d 1 0 0 0 r o w s a r e s e n t t o      

t h e s e c o n d l o a d e r , t h e t h i r d 1 0 0 0 r o w s t o t h e t h i r d l o a d e r ,    

a n d t h e n e x t 1 0 0 0 r o w s b a c k t o t h e r s t l o a d e r .  

U s e o v e r o w l e      

W r i t e s r o w s t h a t c a n n o t b e l o a d e d t o t h e o v e r o w l e f o r    

r e c o v e r y p u r p o s e s . O p t i o n s a r e e n a b l e d f o r t h e l e n a m e      

a n d l e f o r m a t . T h e o v e r o w f o r m a t c a n i n c l u d e t h e d a t a      

r e j e c t e d a n d t h e o p e r a t i o n b e i n g p e r f o r m e d ( w r i t e _ d a t a ) o r    

t h e S Q L c o m m a n d u s e d t o p r o d u c e t h e r e j e c t e d o p e r a t i o n      

( w r i t e _ s q l ) .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 0 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 114: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 114/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

I g n o r e c o l u m n s    

w i t h v a l u e      

S p e c i e s a v a l u e t h a t m i g h t a p p e a r i n a s o u r c e c o l u m n      

t h a t y o u d o n o t w a n t u p d a t e d i n t h e t a r g e t t a b l e . W h e n      

t h i s v a l u e a p p e a r s i n t h e s o u r c e c o l u m n , t h e c o r r e s p o n d i n g      t a r g e t c o l u m n i s n o t u p d a t e d d u r i n g a u t o c o r r e c t l o a d i n g .  

Y o u c a n e n t e r s p a c e s .  

I g n o r e c o l u m n s    

w i t h n u l l    

E n s u r e s t h a t N U L L s o u r c e c o l u m n s a r e n o t u p d a t e d i n t h e      

t a r g e t t a b l e d u r i n g a u t o c o r r e c t l o a d i n g .  

U s e i n p u t k e y s    

E n a b l e s D a t a I n t e g r a t o r t o u s e t h e p r i m a r y k e y s f r o m t h e      

s o u r c e t a b l e . B y d e f a u l t , D a t a I n t e g r a t o r u s e s t h e p r i m a r y      

k e y o f t h e t a r g e t t a b l e .  

U p d a t e k e y      

c o l u m n s    

U p d a t e s k e y c o l u m n v a l u e s w h e n i t l o a d s d a t a t o t h e t a r g e t .  

A u t o c o r r e c t l o a d      

E n s u r e s t h a t t h e s a m e r o w i s n o t d u p l i c a t e d i n a t a r g e t t a b l e .  T h i s i s p a r t i c u l a r l y u s e f u l f o r d a t a r e c o v e r y o p e r a t i o n s .  

W h e n A u t o c o r r e c t l o a d i s s e l e c t e d , D a t a I n t e g r a t o r r e a d s a      

r o w f r o m t h e s o u r c e a n d c h e c k s i f a r o w e x i s t s i n t h e t a r g e t    

t a b l e w i t h t h e s a m e v a l u e s i n t h e p r i m a r y k e y . I f a m a t c h i n g      

r o w d o e s n o t e x i s t , i t i n s e r t s t h e n e w r o w r e g a r d l e s s o f      

o t h e r o p t i o n s . I f a m a t c h i n g r o w e x i s t s , i t u p d a t e s t h e r o w        

d e p e n d i n g o n t h e v a l u e s o f I g n o r e c o l u m n s w i t h v a l u e a n d      

I g n o r e c o l u m n s w i t h n u l l .  

I n c l u d e i n      

t r a n s a c t i o n      

I n d i c a t e s t h a t t h i s t a r g e t i s i n c l u d e d i n t h e t r a n s a c t i o n      

 p r o c e s s e d b y a b a t c h o r r e a l - t i m e j o b . T h i s o p t i o n a l l o w s  

y o u t o c o m m i t d a t a t o m u l t i p l e t a b l e s a s p a r t o f t h e s a m e      

t r a n s a c t i o n . I f l o a d i n g f a i l s f o r a n y o n e o f t h e t a b l e s , n o      

d a t a i s c o m m i t t e d t o a n y o f t h e t a b l e s .  

T r a n s a c t i o n a l l o a d i n g c a n r e q u i r e r o w s t o b e b u f f e r e d t o      

e n s u r e t h e c o r r e c t l o a d o r d e r . I f t h e d a t a b e i n g b u f f e r e d i s    

l a r g e r t h a n t h e v i r t u a l m e m o r y a v a i l a b l e , D a t a I n t e g r a t o r    

r e p o r t s a m e m o r y e r r o r .  

T h e t a b l e s m u s t b e f r o m t h e s a m e d a t a s t o r e .  

I f y o u c h o o s e t o e n a b l e t r a n s a c t i o n a l l o a d i n g , t h e s e o p t i o n s    

a r e n o t a v a i l a b l e : R o w s p e r c o m m i t , U s e o v e r o w l e ,    

a n d o v e r o w l e s p e c i c a t i o n , N u m b e r o f l o a d e r s , E n a b l e      

 p a r t i t i o n i n g , a n d D e l e t e d a t a f r o m t a b l e b e f o r e l o a d i n g . 

D a t a I n t e g r a t o r a l s o d o e s n o t p a r a m e t e r i z e S Q L o r p u s h      

o p e r a t i o n s t o t h e d a t a b a s e i f t r a n s a c t i o n a l l o a d i n g i s    

e n a b l e d .  

T r a n s a c t i o n o r d e r    I n d i c a t e s w h e r e t h i s t a b l e f a l l s i n t h e l o a d i n g o r d e r o f t h e      

t a b l e s b e i n g l o a d e d . B y d e f a u l t , t h e r e i s n o o r d e r i n g .  

1 0 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 115: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 115/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

A l l l o a d e r s h a v e a t r a n s a c t i o n o r d e r o f z e r o . I f y o u s p e c i f y      

o r d e r s a m o n g t h e t a b l e s , t h e l o a d i n g o p e r a t i o n s a r e a p p l i e d      

a c c o r d i n g t o t h e o r d e r . T a b l e s w i t h t h e s a m e t r a n s a c t i o n      

o r d e r a r e l o a d e d t o g e t h e r . T a b l e s w i t h a t r a n s a c t i o n o r d e r    

o f z e r o a r e l o a d e d a t t h e d i s c r e t i o n o f t h e d a t a o w p r o c e s s .  

U s i n g t e m p l a t e t a b l e s    

D u r i n g t h e i n i t i a l d e s i g n o f a n a p p l i c a t i o n , y o u m i g h t n d i t c o n v e n i e n t t o u s e      

t e m p l a t e t a b l e s t o r e p r e s e n t d a t a b a s e t a b l e s . T e m p l a t e t a b l e s a r e p a r t i c u l a r l y u s e f u l    

i n e a r l y a p p l i c a t i o n d e v e l o p m e n t w h e n y o u a r e d e s i g n i n g a n d t e s t i n g a p r o j e c t .  

W i t h t e m p l a t e t a b l e s , y o u d o n o t h a v e t o i n i t i a l l y c r e a t e a n e w t a b l e i n y o u r    

H A R D P A N S a n d i m p o r t t h e m e t a d a t a i n t o D a t a S e r v i c e s . I n s t e a d , D a t a S e r v i c e s    

a u t o m a t i c a l l y c r e a t e s t h e t a b l e i n t h e d a t a b a s e w i t h t h e s c h e m a d e n e d b y t h e d a t a       o w w h e n y o u e x e c u t e a j o b .  

F i g u r e 3 9 : T e m p l a t e T a b l e s      

A f t e r c r e a t i n g a t e m p l a t e t a b l e a s a t a r g e t i n o n e d a t a o w , y o u c a n u s e i t a s a      

s o u r c e i n o t h e r d a t a o w s . A l t h o u g h a t e m p l a t e t a b l e c a n b e u s e d a s a s o u r c e t a b l e      

i n m u l t i p l e d a t a o w s , i t c a n b e u s e d o n l y a s a t a r g e t i n o n e d a t a o w .  

Y o u c a n m o d i f y t h e s c h e m a o f t h e t e m p l a t e t a b l e i n t h e d a t a o w w h e r e t h e t a b l e      

i s u s e d a s a t a r g e t . A n y c h a n g e s a r e a u t o m a t i c a l l y a p p l i e d t o a n y o t h e r i n s t a n c e s    

o f t h e t e m p l a t e t a b l e .  

A f t e r a t e m p l a t e t a b l e i s c r e a t e d i n t h e d a t a b a s e , y o u c a n c o n v e r t t h e t e m p l a t e t a b l e      

i n t h e r e p o s i t o r y t o a r e g u l a r t a b l e . Y o u m u s t c o n v e r t t e m p l a t e t a b l e s s o t h a t y o u      

c a n u s e t h e n e w t a b l e i n e x p r e s s i o n s , f u n c t i o n s , a n d t r a n s f o r m o p t i o n s . A f t e r a      

t e m p l a t e t a b l e i s c o n v e r t e d , y o u c a n n o l o n g e r a l t e r t h e s c h e m a .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 0 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 116: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 116/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

E x e c u t i n g a j o b      

A f t e r y o u c r e a t e y o u r p r o j e c t , j o b s , a n d a s s o c i a t e d d a t a o w s , y o u c a n e x e c u t e      

t h e j o b i n D a t a S e r v i c e s t o t h e d a t a m o v e f r o m s o u r c e t o t a r g e t . Y o u c a n r u n       j o b s t w o w a y s : 

• I m m e d i a t e j o b s    

D a t a S e r v i c e s i n i t i a t e s b o t h b a t c h a n d r e a l - t i m e j o b s a n d r u n s t h e m          

i m m e d i a t e l y f r o m w i t h i n t h e D e s i g n e r . F o r t h e s e j o b s , b o t h t h e D e s i g n e r a n d      

d e s i g n a t e d J o b S e r v e r ( w h e r e t h e j o b e x e c u t e s , u s u a l l y o n t h e s a m e m a c h i n e )    

m u s t b e r u n n i n g . Y o u r u n i m m e d i a t e j o b s o n l y d u r i n g t h e d e v e l o p m e n t c y c l e .  

• S c h e d u l e d j o b s    

B a t c h j o b s a r e s c h e d u l e d . T o s c h e d u l e a j o b , u s e t h e D a t a S e r v i c e s    

M a n a g e m e n t C o n s o l e o r u s e a t h i r d - p a r t y s c h e d u l e r . T h e J o b S e r v e r m u s t     b e r u n n i n g . 

N o t e :      I f a j o b h a s s y n t a x e r r o r s , i t d o e s n o t e x e c u t e .  

S e t t i n g e x e c u t i o n p r o p e r t i e s    

W h e n y o u e x e c u t e a j o b , t h e f o l l o w i n g o p t i o n s a r e a v a i l a b l e i n t h e E x e c u t i o n      

P r o p e r t i e s w i n d o w :  

O p t i o n D e s c r i p t i o n      

P r i n t a l l t r a c e      

m e s s a g e s    

R e c o r d s a l l t r a c e m e s s a g e s i n t h e l o g .  

D i s a b l e d a t a      

v a l i d a t i o n      

s t a t i s t i c s    

c o l l e c t i o n      

D o e s n o t c o l l e c t a u d i t s t a t i s t i c s f o r t h i s s p e c i c j o b      

e x e c u t i o n .  

E n a b l e a u d i t i n g C o l l e c t s a u d i t s t a t i s t i c s f o r t h i s s p e c i c j o b e x e c u t i o n .  

E n a b l e r e c o v e r y      

E n a b l e s t h e a u t o m a t i c r e c o v e r y f e a t u r e . W h e n e n a b l e d ,    

D a t a S e r v i c e s s a v e s t h e r e s u l t s f r o m c o m p l e t e d s t e p s a n d      

a l l o w s y o u t o r e s u m e f a i l e d j o b s .  

R e c o v e r f r o m l a s t    

f a i l e d e x e c u t i o n      

R e s u m e s a f a i l e d j o b . D a t a S e r v i c e s r e t r i e v e s t h e r e s u l t s    

f r o m a n y s t e p s t h a t w e r e p r e v i o u s l y e x e c u t e d s u c c e s s f u l l y      a n d r e - e x e c u t e s a n y o t h e r s t e p s .  

T h i s o p t i o n i s a r u n t i m e p r o p e r t y . T h i s o p t i o n i s n o t    

a v a i l a b l e w h e n a j o b h a s n o t y e t b e e n e x e c u t e d o r w h e n      

r e c o v e r y m o d e w a s d i s a b l e d d u r i n g t h e p r e v i o u s r u n .  

C o l l e c t s t a t i s t i c s    

f o r o p t i m i z a t i o n      

C o l l e c t s s t a t i s t i c s t h a t t h e D a t a S e r v i c e s o p t i m i z e r u s e s t o      

c h o o s e a n o p t i m a l c a c h e t y p e ( i n - m e m o r y o r p a g e a b l e ) .  

1 0 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 117: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 117/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

C o l l e c t s t a t i s t i c s    

f o r m o n i t o r i n g      

D i s p l a y s c a c h e s t a t i s t i c s i n t h e P e r f o r m a n c e M o n i t o r i n      

A d m i n i s t r a t o r .  

U s e c o l l e c t e d      

s t a t i s t i c s    

O p t i m i z e s D a t a S e r v i c e s t o u s e t h e c a c h e s t a t i s t i c s c o l l e c t e d      

o n a p r e v i o u s e x e c u t i o n o f t h e j o b .  

S y s t e m          

c o n g u r a t i o n      

S p e c i e s t h e s y s t e m c o n g u r a t i o n t o u s e w h e n e x e c u t i n g      

t h i s j o b . A s y s t e m c o n g u r a t i o n d e n e s a s e t o f d a t a s t o r e      

c o n g u r a t i o n s , w h i c h d e n e t h e d a t a s t o r e c o n n e c t i o n s .  

I f a s y s t e m c o n g u r a t i o n i s n o t s p e c i e d , D a t a S e r v i c e s    

u s e s t h e d e f a u l t d a t a s t o r e c o n g u r a t i o n f o r e a c h d a t a s t o r e .  

T h i s o p t i o n i s a r u n t i m e p r o p e r t y t h a t i s o n l y a v a i l a b l e i f      

t h e r e a r e s y s t e m c o n g u r a t i o n s d e n e d i n t h e r e p o s i t o r y .  

J o b S e r v e r o r    S e r v e r G r o u p       S p e c i e s t h e J o b S e r v e r o r s e r v e r g r o u p t o e x e c u t e t h i s j o b .  

D i s t r i b u t i o n l e v e l    

A l l o w s a j o b t o b e d i s t r i b u t e d t o m u l t i p l e J o b S e r v e r s f o r    

 p r o c e s s i n g . T h e o p t i o n s a r e : 

• J o b - T h e e n t i r e j o b e x e c u t e s o n o n e s e r v e r .  

• D a t a o w - E a c h d a t a o w w i t h i n t h e j o b e x e c u t e s    

o n a s e p a r a t e s e r v e r .  

• S u b d a t a o w - E a c h s u b d a t a o w ( c a n b e a s e p a r a t e      

t r a n s f o r m o r f u n c t i o n ) w i t h i n a d a t a o w e x e c u t e s o n      

a s e p a r a t e J o b s e r v e r .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 0 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 118: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 118/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

1 0 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 119: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 119/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

E x e r c i s e 5 : C r e a t i n g a B a s i c D a t a F l o w          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e Q u e r y t r a n s f o r m t o c h a n g e t h e s c h e m a o f t h e A l p h a A c q u i s i t i o n s    

C u s t o m e r t a b l e      

• M o v e t h e d a t a f r o m A l p h a A c q u i s i t i o n s i n t o t h e D e l t a s t a g i n g d a t a b a s e      

B u s i n e s s E x a m p l e      

A f t e r a n a l y z i n g t h e s o u r c e d a t a , y o u d e t e r m i n e t h a t t h e s t r u c t u r e o f t h e c u s t o m e r    

d a t a f o r B e t a B u s i n e s s e s i s t h e a p p r o p r i a t e s t r u c t u r e f o r t h e c u s t o m e r d a t a i n t h e      

O m e g a d a t a w a r e h o u s e . Y o u m u s t c h a n g e t h e s t r u c t u r e o f t h e A l p h a A c q u i s i t i o n s    c u s t o m e r d a t a t o u s e t h e s a m e s t r u c t u r e i n p r e p a r a t i o n f o r m e r g i n g d a t a f r o m          

 b o t h d a t a s t o r e s . S i n c e t h e t a r g e t t a b l e m a y l a t e r b e p r o c e s s e d b y a D a t a Q u a l i t y   

t r a n s f o r m , y o u a l s o d e n e C o n t e n t T y p e s f o r t h e a p p r o p r i a t e c o l u m n s i n t h e      

t a r g e t . t a b l e .  

T a s k 1 :    

U s e t h e Q u e r y t r a n s f o r m t o c h a n g e t h e s c h e m a o f t h e A l p h a A c q u i s i t i o n s    

C u s t o m e r t a b l e .  

1 . C r e a t e a n e w p r o j e c t c a l l e d        O m e g a        . 

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ C u s t o m e r s _ J o b      w i t h a n e w d a t a o w c a l l e d        A l p h a _ C u s t o m e r s _ D F        . 

3 . I n t h e w o r k s p a c e f o r      A l p h a _ C u s t o m e r s _ D F        , a d d t h e C u s t o m e r s t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

4 . C r e a t e a n e w t e m p l a t e t a b l e        a l p h a _ c u s t o m e r s        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

5 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e b e t w e e n t h e s o u r c e a n d t a r g e t .  

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s .  

7 . M a p t h e i n p u t c o l u m n s t o t h e o u t p u t c o l u m n s i n t h e Q u e r y t r a n s f o r m a n d s e t    

t h e o u t p u t e l d        C u s t o m e r I D          a s t h e p r i m a r y k e y .  

T a s k 2 :    

E x e c u t e t h e j o b w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a f t e r s a v i n g a l l c r e a t e d      

o b j e c t s .  

1 . E x e c u t e t h e j o b w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a f t e r s a v i n g a l l c r e a t e d      

o b j e c t s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 0 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 120: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 120/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

S o l u t i o n 5 : C r e a t i n g a B a s i c D a t a F l o w          

T a s k 1 :    

U s e t h e Q u e r y t r a n s f o r m t o c h a n g e t h e s c h e m a o f t h e A l p h a A c q u i s i t i o n s    

C u s t o m e r t a b l e .  

1 . C r e a t e a n e w p r o j e c t c a l l e d        O m e g a        . 

a ) F r o m t h e        P r o j e c t      m e n u , c h o o s e t h e o p t i o n        N e w → P r o j e c t     . 

 b ) W h e n t h e     P r o j e c t N e w          d i a l o g b o x a p p e a r s , e n t e r      O m e g a        i n t h e        P r o j e c t    

n a m e        e l d .  

c ) C l i c k        C r e a t e        s o t h a t t h e n e w p r o j e c t a p p e a r s i n t h e        P r o j e c t      a r e a .  

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ C u s t o m e r s _ J o b      w i t h a n e w d a t a o w c a l l e d        A l p h a _ C u s t o m e r s _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ C u s t o m e r s _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ C u s t o m e r s _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) C l i c k t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ C u s t o m e r s _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

3 . I n t h e w o r k s p a c e f o r      A l p h a _ C u s t o m e r s _ D F        , a d d t h e C u s t o m e r s t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e C u s t o m e r s t a b l e f r o m t h e A l p h a d a t a s t o r e .  

 b ) C l i c k a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

C o n t i n u e d o n n e x t p a g e      

1 0 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 121: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 121/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

4 . C r e a t e a n e w t e m p l a t e t a b l e        a l p h a _ c u s t o m e r s        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

a ) I n t h e T o o l P a l e t t e , c l i c k t h e        T e m p l a t e T a b l e        i c o n a n d c l i c k t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      a l p h a _ c u s t o m e r s        a s t h e      

t e m p l a t e t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n .  

d ) C l i c k        O K      . 

5 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e b e t w e e n t h e s o u r c e a n d t a r g e t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d c l i c k t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e s o u r c e t a b l e t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g t h e s o u r c e   

t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e Q u e r y      

t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n .  

c ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e t a r g e t t e m p l a t e t a b l e b y s e l e c t i n g      

t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e      

c u r s o r t o t h e t a r g e t t a b l e . T h e n r e l e a s e t h e m o u s e b u t t o n .  

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) I n t h e     S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        Q u e r y      t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      a n d e n t e r t h e I t e m n a m e        C u s t o m e r I D        w i t h D a t a      

T y p e        i n t     . 

c ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        C u s t o m e r I D        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        F i r m          w i t h D a t a T y p e        v a r c h a r ( 5 0 )    a n d C o n t e n t T y p e        F i r m          . 

d ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        F i r m          t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        C o n t a c t N a m e        w i t h D a t a T y p e        v a r c h a r ( 5 0 )    

a n d C o n t e n t T y p e        N a m e        . 

e ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        N a m e        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w        

a n d e n t e r t h e I t e m n a m e        T i t l e        w i t h D a t a T y p e        v a r c h a r ( 3 0 )      a n d   

C o n t e n t T y p e        T i t l e        . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 0 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 122: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 122/472

U n i t 3 : C r e a t i n g B a t c h J o b s B O D S 1 0      

f ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        T i t l e        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w        

a n d e n t e r t h e I t e m n a m e        A d d r e s s 1        w i t h D a t a T y p e        v a r c h a r ( 5 0 )    a n d C o n t e n t T y p e        T i t l e        . 

g ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        A d d r e s s 1        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        C i t y        w i t h D a t a T y p e        v a r c h a r ( 5 0 )    a n d C o n t e n t T y p e        L o c a l i t y        . 

h ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        C i t y        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w        

a n d e n t e r t h e I t e m n a m e        R e g i o n        w i t h D a t a T y p e        v a r c h a r ( 2 5 )    a n d C o n t e n t T y p e        R e g i o n        . 

i ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        R e g i o n        t o c h o o s e t h e o p t i o n       N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        P o s t a l C o d e        w i t h D a t a T y p e        v a r c h a r ( 2 5 )    a n d C o n t e n t T y p e        P o s t c o d e        . 

 j ) I n t h e     S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        P o s t a l C o d e        t o c h o o s e      

t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        C o u n t r y        w i t h D a t a T y p e      

v a r c h a r ( 5 0 )      a n d C o n t e n t T y p e        C o u n t r y        . 

k ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        C o u n t r y        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        P h o n e        w i t h D a t a T y p e        v a r c h a r ( 2 5 )    a n d C o n t e n t T y p e        P h o n e        . 

l ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t c l i c k        P h o n e        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w        

a n d e n t e r t h e I t e m n a m e        F a x     w i t h D a t a T y p e        v a r c h a r ( 2 5 )      a n d   

C o n t e n t T y p e        P h o n e        . 

C o n t i n u e d o n n e x t p a g e      

1 1 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 123: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 123/472

B O D S 1 0 L e s s o n : C r e a t i n g B a t c h J o b s      

7 . M a p t h e i n p u t c o l u m n s t o t h e o u t p u t c o l u m n s i n t h e Q u e r y t r a n s f o r m a n d s e t    

t h e o u t p u t e l d        C u s t o m e r I D          a s t h e p r i m a r y k e y .  

a ) D r a g t h e e l d i n t h e o u t p u t s c h e m a t o t h e c o r r e s p o n d i n g e l d i n t h e      i n p u t s c h e m a a c c o r d i n g t o t h e f o l l o w i n g t a b l e :  

S c h e m a I n S c h e m a O u t    

C U S T O M E R I D C u s t o m e r I D        

C O M P A N Y N A M E F i r m          

C O N T A C T N A M E C o n t a c t N a m e      

C O N T A C T T I T L E T i t l e      

A D D R E S S A d d r e s s 1    

C I T Y C i t y      

R E G I O N I D R e g i o n      

P O S T A L C O D E P o s t a l C o d e      

C O U N T R Y I D C o u n t r y      

P H O N E P h o n e      

F A X F a x      

 b ) R i g h t c l i c k t h e e l d     C u s t o m e r I D          a n d f r o m t h e m e n u c h o o s e t h e o p t i o n      

S e t a s p r i m a r y k e y      . 

c ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e t r a n s f o r m e d i t o r .  

T a s k 2 :    

E x e c u t e t h e j o b w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a f t e r s a v i n g a l l c r e a t e d      

o b j e c t s .  

1 . E x e c u t e t h e j o b w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a f t e r s a v i n g a l l c r e a t e d      

o b j e c t s .  

a ) I n t h e        P r o j e c t      a r e a , r i g h t c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        a n d   

s e l e c t      E x e c u t e        f r o m t h e m e n u .  

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   s a v e d . S e l e c t      O K      . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K      . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e t a r g e t t a b l e d a t a t o      

c o n r m t h a t 2 5 r e c o r d s w e r e l o a d e d b y r i g h t c l i c k i n g t h e t a r g e t t a b l e      

a n d c h o o s i n g t h e o p t i o n        V i e w D a t a        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 124: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 124/472

Page 125: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 125/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• C r e a t e a p r o j e c t    

• C r e a t e a n d e x e c u t e a j o b      

• C r e a t e a d a t a o w w i t h s o u r c e a n d t a r g e t t a b l e s    

• U s e t h e Q u e r y t r a n s f o r m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 126: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 126/472

U n i t S u m m a r y B O D S 1 0      

1 1 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 127: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 127/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 128: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 128/472

Page 129: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 129/472

U n i t 4        T r o u b l e s h o o t i n g B a t c h J o b s      

U n i t O v e r v i e w          

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n v a l i d a t e a n d a d d a n n o t a t i o n s t o y o u r j o b s , w o r k o w , a n d d a t a o w s . 

I n a d d i t i o n , y o u c a n s e t v a r i o u s t r a c e o p t i o n s a n d s e e t h e t r a c e r e s u l t s i n d i f f e r e n t    l o g s . Y o u c a n a l s o u s e t h e I n t e r a c t i v e D e b u g g e r a s a m e t h o d o f t r o u b l e s h o o t i n g .  

S e t t i n g u p a u d i t p o i n t s , l a b e l , a n d r u l e s h e l p y o u t o e n s u r e t h e c o r r e c t d a t a i s    

l o a d e d t o t h e t a r g e t .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    • S e t t i n g t r a c e s o n j o b s    

• U s e t h e V i e w D a t a F u n c t i o n      

• U s e t h e I n t e r a c t i v e D e b u g g e r    

• U s e a u d i t i n g i n d a t a o w s    

U n i t C o n t e n t s      

L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 6      

E x e r c i s e 6 : S e t t i n g t r a c e s a n d a n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 7      

L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 0      

E x e r c i s e 7 : S e t t i n g t r a c e s a n d a n n o t a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 1    L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 4      

E x e r c i s e 8 : U s i n g t h e I n t e r a c t i v e D e b u g g e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 1    

L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e . . . . . . . . . . . . . . . . . . . . . . . . 1 5 5      

E x e r c i s e 9 : U s i n g A u d i t i n g i n a D a t a o w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 3      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 130: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 130/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

L e s s o n O v e r v i e w          

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n v a l i d a t e a n d a d d a n n o t a t i o n s t o j o b s , w o r k o w s , a n d d a t a o w s ,  

s e t t r a c e o p t i o n s , a n d d e b u g y o u r j o b s . Y o u c a n a l s o s e t u p a u d i t r u l e s t o e n s u r e      

t h e c o r r e c t d a t a i s l o a d e d t o t h e t a r g e t .  

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n v a l i d a t e a n d a d d a n n o t a t i o n s t o j o b s , w o r k o w s , a n d d a t a o w s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y h a s r e c o g n i z e d h o w u s e f u l i t c a n b e t o i n t e g r a t e p e o p l e , i n f o r m a t i o n      

a n d b u s i n e s s p r o c e s s e s i n a h e t e r o g e n e o u s s y s t e m l a n d s c a p e a n d w o u l d l i k e      

t o o b t a i n t h i s b e n e t . P r a c t i c e h a s s h o w n , t h o u g h , t h a t l o a d i n g l a r g e d a t a s e t s    

m a k e s c o n s i d e r a b l e d e m a n d s o n h a r d w a r e a n d s y s t e m p e r f o r m a n c e . I t i s t h e r e f o r e      

n e c e s s a r y t o e x a m i n e i f a n d h o w t h e d a t a r e c o r d s c a n b e l o a d e d i n t o S A P      

 N e t W e a v e r B u s i n e s s W a r e h o u s e w i t h a d e l t a p r o c e s s a n d t o u n d e r s t a n d t h e m o d e s  o f o p e r a t i o n a n d t h e d i f f e r e n t v a r i a n t s o f a d e l t a l o a d i n g p r o c e s s .  

U s i n g d e s c r i p t i o n s a n d a n n o t a t i o n s      

D e s c r i p t i o n s a n d a n n o t a t i o n s a r e a c o n v e n i e n t w a y t o a d d c o m m e n t s t o o b j e c t s    

a n d w o r k s p a c e d i a g r a m s .  

1 1 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 131: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 131/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

F i g u r e 4 0 : A n n o t a t i o n s a n d D e s c r i p t i o n s      

U s i n g d e s c r i p t i o n s w i t h o b j e c t s    

A d e s c r i p t i o n i s a s s o c i a t e d w i t h a p a r t i c u l a r o b j e c t . W h e n y o u i m p o r t o r e x p o r t a      

r e p o s i t o r y o b j e c t , y o u a l s o i m p o r t o r e x p o r t i t s d e s c r i p t i o n .  

D e s i g n e r d e t e r m i n e s w h e n t o s h o w o b j e c t d e s c r i p t i o n s b a s e d o n a s y s t e m - l e v e l    

s e t t i n g a n d a n o b j e c t - l e v e l s e t t i n g . B o t h s e t t i n g s m u s t b e a c t i v a t e d t o v i e w t h e      

d e s c r i p t i o n f o r a p a r t i c u l a r o b j e c t .  

N o t e :      T h e s y s t e m - l e v e l s e t t i n g i s u n i q u e t o y o u r s e t u p .  

T h e r e a r e t h r e e r e q u i r e m e n t s f o r d i s p l a y i n g d e s c r i p t i o n s :  

• A d e s c r i p t i o n h a s b e e n e n t e r e d i n t o t h e p r o p e r t i e s o f t h e o b j e c t .  

• T h e d e s c r i p t i o n i s e n a b l e d o n t h e p r o p e r t i e s o f t h a t o b j e c t .  

• T h e g l o b a l      V i e w E n a b l e d O b j e c t D e s c r i p t i o n s      o p t i o n i s e n a b l e d .  

T o s h o w o b j e c t d e s c r i p t i o n s a t t h e s y s t e m l e v e l    

• F r o m t h e        V i e w          m e n u , s e l e c t      E n a b l e d D e s c r i p t i o n s .    

N o t e :      T h e     E n a b l e d D e s c r i p t i o n s      o p t i o n i s o n l y a v a i l a b l e i f i t i s a v i a b l e      

o p t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 132: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 132/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o a d d a d e s c r i p t i o n t o a n o b j e c t    

1 . I n t h e p r o j e c t a r e a o r t h e w o r k s p a c e , r i g h t - c l i c k a n o b j e c t a n d s e l e c t    

P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . I n t h e        D e s c r i p t i o n        t e x t b o x , e n t e r y o u r c o m m e n t s .  

3 . S e l e c t      O K       . 

I f y o u a r e m o d i f y i n g t h e d e s c r i p t i o n o f a r e u s a b l e o b j e c t , D a t a S e r v i c e s    

 p r o v i d e s a w a r n i n g m e s s a g e t h a t a l l i n s t a n c e s o f t h e r e u s a b l e o b j e c t a r e   

a f f e c t e d b y t h e c h a n g e .  

4 . S e l e c t      Y e s .    

T h e d e s c r i p t i o n f o r t h e o b j e c t d i s p l a y s i n t h e L o c a l O b j e c t L i b r a r y .  T o d i s p l a y a d e s c r i p t i o n i n t h e w o r k s p a c e      

• I n t h e w o r k s p a c e , r i g h t - c l i c k t h e o b j e c t i n t h e w o r k s p a c e a n d s e l e c t      E n a b l e      

O b j e c t D e s c r i p t i o n        f r o m t h e m e n u .  

T h e d e s c r i p t i o n d i s p l a y s i n t h e w o r k s p a c e u n d e r t h e o b j e c t .  

U s i n g a n n o t a t i o n s t o d e s c r i b e o b j e c t s    

A n a n n o t a t i o n i s a n o b j e c t i n t h e w o r k s p a c e t h a t d e s c r i b e s a o w , p a r t o f a o w , o r    

a d i a g r a m . A n a n n o t a t i o n i s a s s o c i a t e d w i t h t h e o b j e c t w h e r e i t a p p e a r s . W h e n      

y o u i m p o r t o r e x p o r t a j o b , w o r k o w , o r d a t a o w t h a t i n c l u d e s a n n o t a t i o n s , y o u      

a l s o i m p o r t o r e x p o r t a s s o c i a t e d a n n o t a t i o n s .  T o a d d a n a n n o t a t i o n t o t h e w o r k s p a c e      

1 . I n t h e w o r k s p a c e , f r o m t h e t o o l p a l e t t e , s e l e c t t h e        A n n o t a t i o n        i c o n a n d t h e n      

s e l e c t t h e w o r k s p a c e .  

A n a n n o t a t i o n a p p e a r s o n t h e d i a g r a m .  

2 . D o u b l e - c l i c k t h e a n n o t a t i o n .  

3 . A d d t e x t t o t h e a n n o t a t i o n .  

4 . S e l e c t t h e c u r s o r o u t s i d e o f t h e a n n o t a t i o n t o c o m m i t t h e c h a n g e s .  

Y o u c a n r e s i z e a n d m o v e t h e a n n o t a t i o n b y c l i c k i n g a n d d r a g g i n g .  

Y o u c a n n o t h i d e a n n o t a t i o n s t h a t y o u h a v e a d d e d t o t h e w o r k s p a c e . H o w e v e r ,    

y o u c a n m o v e t h e m o u t o f t h e w a y o r d e l e t e t h e m .  

V a l i d a t i n g a n d t r a c i n g j o b s      

V a l i d a t i n g j o b s    

1 1 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 133: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 133/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

I t i s a g o o d i d e a t o v a l i d a t e y o u r j o b s w h e n y o u a r e r e a d y f o r j o b e x e c u t i o n t o      

e n s u r e t h e r e a r e n o e r r o r s . Y o u c a n a l s o s e l e c t a n d s e t s p e c i c t r a c e p r o p e r t i e s ,    

w h i c h a l l o w y o u t o u s e t h e v a r i o u s l o g l e s t o h e l p y o u r e a d j o b e x e c u t i o n s t a t u s    o r t r o u b l e s h o o t j o b e r r o r s .  

A s a b e s t p r a c t i c e , y o u w a n t t o v a l i d a t e y o u r w o r k a s y o u b u i l d o b j e c t s s o t h a t    

y o u a r e n o t c o n f r o n t e d w i t h t o o m a n y w a r n i n g s a n d e r r o r s a t o n e t i m e . Y o u c a n      

v a l i d a t e y o u r o b j e c t s a s y o u c r e a t e a j o b o r y o u c a n a u t o m a t i c a l l y v a l i d a t e a l l    

y o u r j o b s b e f o r e e x e c u t i n g t h e m .  

F i g u r e 4 1 : V a l i d a t i n g J o b s      

T o v a l i d a t e j o b s a u t o m a t i c a l l y b e f o r e j o b e x e c u t i o n      

1 . F r o m t h e        T o o l s      m e n u , s e l e c t      O p t i o n s      . 

T h e     O p t i o n s      d i a l o g b o x d i s p l a y s .  

2 . I n t h e C a t e g o r y p a n e , e x p a n d t h e        D e s i g n e r        b r a n c h a n d s e l e c t      G e n e r a l .    

3 . S e l e c t t h e        P e r f o r m c o m p l e t e v a l i d a t i o n b e f o r e j o b e x e c u t i o n        o p t i o n .  

4 . S e l e c t      O K .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 1 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 134: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 134/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o v a l i d a t e o b j e c t s o n d e m a n d      

1 . F r o m t h e        V a l i d a t i o n        m e n u , s e l e c t      V a l i d a t e        →        C u r r e n t V i e w o r A l l O b j e c t s    

i n V i e w          . 

T h e     O u t p u t      d i a l o g b o x d i s p l a y s .  

2 . T o n a v i g a t e t o t h e o b j e c t w h e r e a n e r r o r o c c u r r e d , r i g h t - c l i c k t h e v a l i d a t i o n      

e r r o r m e s s a g e a n d s e l e c t      G o T o E r r o r        f r o m t h e m e n u .  

T r a c i n g j o b s    

U s e t r a c e p r o p e r t i e s t o s e l e c t t h e i n f o r m a t i o n t h a t D a t a S e r v i c e s m o n i t o r s a n d      

w r i t e s t o t h e t r a c e l o g l e d u r i n g a j o b . D a t a S e r v i c e s w r i t e s t r a c e m e s s a g e s t o      

t h e t r a c e l o g a s s o c i a t e d w i t h t h e c u r r e n t J o b S e r v e r a n d w r i t e s e r r o r m e s s a g e s t o      

t h e e r r o r l o g a s s o c i a t e d w i t h t h e c u r r e n t J o b S e r v e r .  

F i g u r e 4 2 : S e t t i n g T r a c e s i n J o b E x e c u t i o n P r o p e r t i e s      

T h e s e t r a c e o p t i o n s a r e a v a i l a b l e .  

T r a c e D e s c r i p t i o n      

R o w      W r i t e s a m e s s a g e w h e n a t r a n s f o r m i m p o r t s o r e x p o r t s    

a r o w .  

S e s s i o n      

W r i t e s a m e s s a g e w h e n t h e j o b d e s c r i p t i o n i s r e a d f r o m          

t h e r e p o s i t o r y , w h e n t h e j o b i s o p t i m i z e d , a n d w h e n t h e      

 j o b r u n s . 

1 2 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 135: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 135/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

W o r k o w        

W r i t e s a m e s s a g e w h e n t h e w o r k o w d e s c r i p t i o n i s r e a d      

f r o m t h e r e p o s i t o r y , w h e n t h e w o r k o w i s o p t i m i z e d ,    

w h e n t h e w o r k o w r u n s , a n d w h e n t h e w o r k o w e n d s .  

D a t a o w          W r i t e s a m e s s a g e w h e n t h e d a t a o w s t a r t s a n d w h e n t h e      

d a t a o w s u c c e s s f u l l y n i s h e s o r t e r m i n a t e s d u e t o e r r o r .  

T r a n s f o r m            W r i t e s a m e s s a g e w h e n a t r a n s f o r m s t a r t s a n d c o m p l e t e s    

o r t e r m i n a t e s .  

C u s t o m T r a n s f o r m            W r i t e s a m e s s a g e w h e n a c u s t o m t r a n s f o r m s t a r t s a n d      

c o m p l e t e s s u c c e s s f u l l y .  

C u s t o m F u n c t i o n         W r i t e s a m e s s a g e o f a l l u s e r i n v o c a t i o n s o f t h e      

A E _ L o g M e s s a g e f u n c t i o n f r o m c u s t o m C c o d e .  

S Q L F u n c t i o n s    

W r i t e s d a t a r e t r i e v e d b e f o r e S Q L f u n c t i o n s :  

• E v e r y r o w r e t r i e v e d b y t h e n a m e d q u e r y b e f o r e t h e      

S Q L i s s u b m i t t e d i n t h e k e y _ g e n e r a t i o n f u n c t i o n .  

• E v e r y r o w r e t r i e v e d b y t h e n a m e d q u e r y b e f o r e t h e      

S Q L i s s u b m i t t e d i n t h e l o o k u p f u n c t i o n ( b u t o n l y      

i f P R E _ L O A D _ C A C H E i s n o t s p e c i e d ) .  

• W h e n m a i l i s s e n t u s i n g t h e m a i l _ t o f u n c t i o n .  

S Q L T r a n s f o r m s    

W r i t e s a m e s s a g e ( u s i n g t h e T a b l e C o m p a r i s o n      

t r a n s f o r m ) a b o u t w h e t h e r a r o w e x i s t s i n t h e t a r g e t t a b l e      

t h a t c o r r e s p o n d s t o a n i n p u t r o w f r o m t h e s o u r c e t a b l e .  

S Q L R e a d e r s    

W r i t e s t h e S Q L q u e r y b l o c k t h a t a s c r i p t , q u e r y      

t r a n s f o r m , o r S Q L f u n c t i o n s u b m i t s t o t h e s y s t e m a n d      w r i t e s t h e S Q L r e s u l t s .  

S Q L L o a d e r s    

W r i t e s a m e s s a g e w h e n t h e b u l k l o a d e r s t a r t s , s u b m i t s    

a w a r n i n g m e s s a g e , o r c o m p l e t e s s u c c e s s f u l l y o r    

u n s u c c e s s f u l l y .  

M e m o r y S o u r c e        W r i t e s a m e s s a g e f o r e v e r y r o w r e t r i e v e d f r o m t h e      

m e m o r y t a b l e .  

M e m o r y T a r g e t      W r i t e s a m e s s a g e f o r e v e r y r o w i n s e r t e d i n t o t h e      

m e m o r y t a b l e .  

O p t i m i z e d D a t a F l o w        

  F o r S A P B u s i n e s s O b j e c t s c o n s u l t i n g a n d t e c h n i c a l    

s u p p o r t u s e .  

T a b l e s W r i t e s a m e s s a g e w h e n a t a b l e i s c r e a t e d o r d r o p p e d .  

S c r i p t s a n d S c r i p t    

F u n c t i o n s    

W r i t e s a m e s s a g e w h e n a s c r i p t i s c a l l e d , a f u n c t i o n i s    

c a l l e d b y a s c r i p t , a n d a s c r i p t s u c c e s s f u l l y c o m p l e t e s .  

T r a c e P a r a l l e l    

E x e c u t i o n      

W r i t e s m e s s a g e s d e s c r i b i n g h o w d a t a i n a d a t a o w i s    

 p a r a l l e l p r o c e s s e d . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 2 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 136: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 136/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

A c c e s s S e r v e r    

C o m m u n i c a t i o n      W r i t e s m e s s a g e s e x c h a n g e d b e t w e e n t h e A c c e s s S e r v e r    

a n d a s e r v i c e p r o v i d e r .  

S t o r e d P r o c e d u r e         W r i t e s a m e s s a g e w h e n a s t o r e d p r o c e d u r e s t a r t s a n d       n i s h e s , a n d i n c l u d e s k e y v a l u e s .  

A u d i t D a t a        W r i t e s a m e s s a g e t h a t c o l l e c t s a s t a t i s t i c a t a n a u d i t p o i n t    

a n d d e t e r m i n e s i f a n a u d i t r u l e p a s s e s o r f a i l s .  

T o s e t t r a c e o p t i o n s    

1 . F r o m t h e p r o j e c t a r e a , r i g h t - c l i c k t h e j o b n a m e a n d d o o n e o f t h e s e a c t i o n s : :  

• T o s e t t r a c e o p t i o n s f o r a s i n g l e i n s t a n c e o f t h e j o b , s e l e c t      E x e c u t e      

f r o m t h e m e n u .  

• T o s e t t r a c e o p t i o n s f o r e v e r y e x e c u t i o n o f t h e j o b , s e l e c t      P r o p e r t i e s    f r o m t h e m e n u .  

S a v e a l l l e s .  

D e p e n d i n g o n w h i c h o p t i o n y o u s e l e c t e d , t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g      

 b o x o r t h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . S e l e c t t h e        T r a c e        t a b .  

3 . U n d e r t h e n a m e c o l u m n , s e l e c t a t r a c e o b j e c t n a m e .  

T h e     V a l u e        d r o p d o w n l i s t i s e n a b l e d w h e n y o u s e l e c t a t r a c e o b j e c t n a m e .  

4 . F r o m t h e        V a l u e        d r o p d o w n l i s t , s e l e c t      Y e s    t o t u r n t h e t r a c e o n .  

5 . S e l e c t      O K       . 

U s i n g l o g l e s    

A s a j o b e x e c u t e s , D a t a S e r v i c e s p r o d u c e s t h r e e l o g l e s . Y o u c a n v i e w t h e s e f r o m          

t h e p r o j e c t a r e a . T h e l o g l e s a r e , b y d e f a u l t , a l s o s e t t o d i s p l a y a u t o m a t i c a l l y i n      

t h e w o r k s p a c e w h e n y o u e x e c u t e a j o b .  

Y o u c a n s e l e c t t h e T r a c e , M o n i t o r , a n d E r r o r i c o n s t o v i e w t h e l o g l e s , w h i c h a r e      

c r e a t e d d u r i n g j o b e x e c u t i o n .  

E x a m i n i n g t r a c e l o g s    

U s e t h e t r a c e l o g s t o d e t e r m i n e w h e r e a n e x e c u t i o n f a i l e d , w h e t h e r t h e e x e c u t i o n      

s t e p s o c c u r i n t h e o r d e r y o u e x p e c t , a n d w h i c h p a r t s o f t h e e x e c u t i o n a r e t h e m o s t    t i m e c o n s u m i n g .  

1 2 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 137: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 137/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

F i g u r e 4 3 : U s i n g t h e T r a c e L o g      

E x a m i n i n g m o n i t o r l o g s    

U s e m o n i t o r l o g s t o q u a n t i f y t h e a c t i v i t i e s o f t h e c o m p o n e n t s o f t h e j o b . I t l i s t s    

t h e t i m e s p e n t i n a g i v e n c o m p o n e n t o f a j o b a n d t h e n u m b e r o f d a t a r o w s t h a t    

s t r e a m e d t h r o u g h t h e c o m p o n e n t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 2 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 138: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 138/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

F i g u r e 4 4 : U s i n g t h e M o n i t o r a n d E r r o r L o g s      

E x a m i n i n g e r r o r l o g s    

U s e t h e e r r o r l o g s t o d e t e r m i n e h o w a n e x e c u t i o n f a i l e d . I f t h e e x e c u t i o n      

c o m p l e t e d w i t h o u t e r r o r , t h e e r r o r l o g i s b l a n k .  

U s i n g t h e M o n i t o r t a b      

T h e M o n i t o r t a b l i s t s t h e t r a c e l o g s o f a l l c u r r e n t o r m o s t r e c e n t e x e c u t i o n s o f a j o b .  

T h e t r a f c - l i g h t i c o n s i n t h e M o n i t o r t a b i n d i c a t e :  

• G r e e n l i g h t i n d i c a t e s t h a t t h e j o b i s r u n n i n g .  

Y o u c a n r i g h t - c l i c k a n d s e l e c t K i l l J o b t o s t o p a j o b t h a t i s s t i l l r u n n i n g .  

• R e d l i g h t i n d i c a t e s t h a t t h e j o b h a s s t o p p e d .  

Y o u c a n r i g h t - c l i c k a n d s e l e c t P r o p e r t i e s t o a d d a d e s c r i p t i o n f o r a s p e c i c      

t r a c e l o g . T h i s d e s c r i p t i o n i s s a v e d w i t h t h e l o g w h i c h c a n b e a c c e s s e d l a t e r    

f r o m t h e L o g t a b .  

• R e d c r o s s i n d i c a t e s t h a t t h e j o b e n c o u n t e r e d a n e r r o r .  

U s i n g t h e L o g t a b      

Y o u c a n a l s o s e l e c t t h e L o g t a b t o v i e w a j o b ’ s l o g h i s t o r y .  

1 2 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 139: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 139/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

T o v i e w l o g l e s f r o m t h e p r o j e c t a r e a      

1 . I n t h e p r o j e c t a r e a , s e l e c t t h e        L o g     t a b .  

2 . S e l e c t t h e j o b f o r w h i c h y o u w a n t t o v i e w t h e l o g s .  

3 . I n t h e w o r k s p a c e , i n t h e        F i l t e r        d r o p d o w n l i s t , s e l e c t t h e t y p e o f l o g y o u      

w a n t t o v i e w .  

4 . I n t h e l i s t o f l o g s , d o u b l e - c l i c k t h e l o g t o v i e w d e t a i l s .  

5 . T o c o p y l o g c o n t e n t f r o m a n o p e n l o g , s e l e c t o n e o r m o r e l i n e s a n d u s e t h e      

k e y c o m m a n d s [ C t r l + C ] .  

D e t e r m i n i n g t h e s u c c e s s o f t h e j o b      

T h e b e s t m e a s u r e o f t h e s u c c e s s o f a j o b i s t h e s t a t e o f t h e t a r g e t d a t a . A l w a y s    

e x a m i n e y o u r d a t a t o m a k e s u r e t h e d a t a m o v e m e n t o p e r a t i o n p r o d u c e d t h e r e s u l t s    

y o u e x p e c t .  

F i g u r e 4 5 : V i e w D a t a i n D a t a F l o w          

B e s u r e t h a t :  

• D a t a i s n o t c o n v e r t e d t o i n c o m p a t i b l e t y p e s o r t r u n c a t e d .  

• D a t a i s n o t d u p l i c a t e d i n t h e t a r g e t .  

• D a t a i s n o t l o s t b e t w e e n u p d a t e s o f t h e t a r g e t .  

• G e n e r a t e d k e y s h a v e b e e n p r o p e r l y i n c r e m e n t e d .  

• U p d a t e d v a l u e s w e r e h a n d l e d p r o p e r l y .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 2 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 140: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 140/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

I f a j o b f a i l s t o e x e c u t e , c h e c k t h e J o b s e r v e r i c o n i n t h e s t a t u s b a r t o v e r i f y t h a t    

t h e J o b S e r v i c e i s r u n n i n g . C h e c k t h a t t h e p o r t n u m b e r i n D e s i g n e r m a t c h e s t h e      

n u m b e r s p e c i e d i n S e r v e r M a n a g e r . I f n e c e s s a r y , y o u c a n u s e t h e S e r v e r M a n a g e r    R e s y n c b u t t o n t o r e s e t t h e p o r t n u m b e r i n t h e L o c a l O b j e c t L i b r a r y .  

1 2 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 141: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 141/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

E x e r c i s e 6 : S e t t i n g t r a c e s a n d a n n o t a t i o n s      

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

B u s i n e s s E x a m p l e      

Y o u a r e s h a r i n g y o u r j o b s w i t h o t h e r d e v e l o p e r s d u r i n g t h e p r o j e c t , s o y o u w a n t t o      

m a k e s u r e t h a t y o u i d e n t i f y t h e p u r p o s e o f t h e j o b y o u c r e a t e d . Y o u a l s o w a n t t o      

e n s u r e t h a t t h e j o b i s h a n d l i n g t h e m o v e m e n t o f e a c h r o w a p p r o p r i a t e l y .  

T a s k :    

Y o u a d d a n a n n o t a t i o n t o t h e d a t a o w w i t h a n e x p l a n a t i o n o f t h e p u r p o s e o f      

t h e j o b .  

1 . A d d a n a n n o t a t i o n t o t h e w o r k s p a c e o f t h e j o b y o u h a v e a l r e a d y c r e a t e d .  

2 . E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b a f t e r e n a b l i n g t h e t r a c i n g o f r o w s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 2 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 142: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 142/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

S o l u t i o n 6 : S e t t i n g t r a c e s a n d a n n o t a t i o n s      

T a s k :    

Y o u a d d a n a n n o t a t i o n t o t h e d a t a o w w i t h a n e x p l a n a t i o n o f t h e p u r p o s e o f      

t h e j o b .  

1 . A d d a n a n n o t a t i o n t o t h e w o r k s p a c e o f t h e j o b y o u h a v e a l r e a d y c r e a t e d .  

a ) O p e n t h e w o r k s p a c e o f t h e        A l p h a _ C u s t o m e r s _ J o b        b y s e l e c t i n g      

t h e j o b .  

 b ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e i c o n f o r a n A n n o t a t i o n i t e m a n d d r a g   

i t i n t o t h e w o r k s p a c e b e s i d e t h e d a t a o w . T h e n c l i c k t h e w o r k s p a c e t o      

a d d t h e A n n o t a t i o n .  

c ) T y p e i n a n e x p l a n a t i o n o f t h e p u r p o s e o f t h e j o b , s u c h a s : “ T h e p u r p o s e      

o f t h i s j o b i s t o m o v e r e c o r d s f r o m t h e C u s t o m e r t a b l e f r o m t h e A l p h a      

d a t a s t o r e t o a t e m p l a t e t a b l e , A l p h a _ c u s t o m e r s i n t h e D e l t a s t a g i n g      

d a t a s t o r e . ”      

d ) S a v e a l l o b j e c t s y o u h a v e c r e a t e d b y u s i n g t h e i c o n        S a v e A l l     . 

2 . E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b a f t e r e n a b l i n g t h e t r a c i n g o f r o w s .  

a ) R i g h t c l i c k t h e A l p h a _ C u s t o m e r s _ J o b a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) I n t h e     E x e c u t i o n P r o p e r t i e s      d i a l o g b o x , s e l e c t t h e        T r a c e        t a b a n d s e l e c t    

t h e     T r a c e r o w s      o p t i o n .  

c ) S e l e c t      O K      i n t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x .  

d ) I n t h e T r a c e l o g , y o u s h o u l d s e e a n e n t r y f o r e a c h r o w a d d e d t o t h e l o g      

t o i n d i c a t e h o w i t i s b e i n g h a n d l e d b y t h e d a t a o w .  

1 2 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 143: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 143/472

Page 144: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 144/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

L e s s o n O v e r v i e w          

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n v a l i d a t e a n d a d d a n n o t a t i o n s t o j o b s , w o r k o w s , a n d d a t a o w s ,  

s e t t r a c e o p t i o n s , a n d d e b u g y o u r j o b s . Y o u c a n a l s o s e t u p a u d i t r u l e s t o e n s u r e      

t h e c o r r e c t d a t a i s l o a d e d t o t h e t a r g e t .  

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n v a l i d a t e a n d a d d a n n o t a t i o n s t o j o b s , w o r k o w s , a n d d a t a o w s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y h a s r e c o g n i z e d h o w u s e f u l i t c a n b e t o i n t e g r a t e p e o p l e , i n f o r m a t i o n      

a n d b u s i n e s s p r o c e s s e s i n a h e t e r o g e n e o u s s y s t e m l a n d s c a p e a n d w o u l d l i k e      

t o o b t a i n t h i s b e n e t . P r a c t i c e h a s s h o w n , t h o u g h , t h a t l o a d i n g l a r g e d a t a s e t s    

m a k e s c o n s i d e r a b l e d e m a n d s o n h a r d w a r e a n d s y s t e m p e r f o r m a n c e . I t i s t h e r e f o r e      n e c e s s a r y t o e x a m i n e i f a n d h o w t h e d a t a r e c o r d s c a n b e l o a d e d i n t o S A P      

 N e t W e a v e r B u s i n e s s W a r e h o u s e w i t h a d e l t a p r o c e s s a n d t o u n d e r s t a n d t h e m o d e s  

o f o p e r a t i o n a n d t h e d i f f e r e n t v a r i a n t s o f a d e l t a l o a d i n g p r o c e s s .  

U s i n g d e s c r i p t i o n s a n d a n n o t a t i o n s      

D e s c r i p t i o n s a n d a n n o t a t i o n s a r e a c o n v e n i e n t w a y t o a d d c o m m e n t s t o o b j e c t s    

a n d w o r k s p a c e d i a g r a m s .  

1 3 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 145: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 145/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

F i g u r e 4 6 : A n n o t a t i o n s a n d D e s c r i p t i o n s      

U s i n g d e s c r i p t i o n s w i t h o b j e c t s    

A d e s c r i p t i o n i s a s s o c i a t e d w i t h a p a r t i c u l a r o b j e c t . W h e n y o u i m p o r t o r e x p o r t a      

r e p o s i t o r y o b j e c t , y o u a l s o i m p o r t o r e x p o r t i t s d e s c r i p t i o n .  

D e s i g n e r d e t e r m i n e s w h e n t o s h o w o b j e c t d e s c r i p t i o n s b a s e d o n a s y s t e m - l e v e l    

s e t t i n g a n d a n o b j e c t - l e v e l s e t t i n g . B o t h s e t t i n g s m u s t b e a c t i v a t e d t o v i e w t h e      

d e s c r i p t i o n f o r a p a r t i c u l a r o b j e c t .  

N o t e :      T h e s y s t e m - l e v e l s e t t i n g i s u n i q u e t o y o u r s e t u p .  

T h e r e a r e t h r e e r e q u i r e m e n t s f o r d i s p l a y i n g d e s c r i p t i o n s :  

• A d e s c r i p t i o n h a s b e e n e n t e r e d i n t o t h e p r o p e r t i e s o f t h e o b j e c t .  

• T h e d e s c r i p t i o n i s e n a b l e d o n t h e p r o p e r t i e s o f t h a t o b j e c t .  

• T h e g l o b a l      V i e w E n a b l e d O b j e c t D e s c r i p t i o n s      o p t i o n i s e n a b l e d .  

T o s h o w o b j e c t d e s c r i p t i o n s a t t h e s y s t e m l e v e l    

• F r o m t h e        V i e w          m e n u , s e l e c t      E n a b l e d D e s c r i p t i o n s .    

N o t e :      T h e     E n a b l e d D e s c r i p t i o n s      o p t i o n i s o n l y a v a i l a b l e i f i t i s a v i a b l e      

o p t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 3 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 146: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 146/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o a d d a d e s c r i p t i o n t o a n o b j e c t    

1 . I n t h e p r o j e c t a r e a o r t h e w o r k s p a c e , r i g h t - c l i c k a n o b j e c t a n d s e l e c t    

P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . I n t h e        D e s c r i p t i o n        t e x t b o x , e n t e r y o u r c o m m e n t s .  

3 . S e l e c t      O K       . 

I f y o u a r e m o d i f y i n g t h e d e s c r i p t i o n o f a r e u s a b l e o b j e c t , D a t a S e r v i c e s    

 p r o v i d e s a w a r n i n g m e s s a g e t h a t a l l i n s t a n c e s o f t h e r e u s a b l e o b j e c t a r e   

a f f e c t e d b y t h e c h a n g e .  

4 . S e l e c t      Y e s .    

T h e d e s c r i p t i o n f o r t h e o b j e c t d i s p l a y s i n t h e L o c a l O b j e c t L i b r a r y .  T o d i s p l a y a d e s c r i p t i o n i n t h e w o r k s p a c e      

• I n t h e w o r k s p a c e , r i g h t - c l i c k t h e o b j e c t i n t h e w o r k s p a c e a n d s e l e c t      E n a b l e      

O b j e c t D e s c r i p t i o n        f r o m t h e m e n u .  

T h e d e s c r i p t i o n d i s p l a y s i n t h e w o r k s p a c e u n d e r t h e o b j e c t .  

U s i n g a n n o t a t i o n s t o d e s c r i b e o b j e c t s    

A n a n n o t a t i o n i s a n o b j e c t i n t h e w o r k s p a c e t h a t d e s c r i b e s a o w , p a r t o f a o w , o r    

a d i a g r a m . A n a n n o t a t i o n i s a s s o c i a t e d w i t h t h e o b j e c t w h e r e i t a p p e a r s . W h e n      

y o u i m p o r t o r e x p o r t a j o b , w o r k o w , o r d a t a o w t h a t i n c l u d e s a n n o t a t i o n s , y o u      

a l s o i m p o r t o r e x p o r t a s s o c i a t e d a n n o t a t i o n s .  T o a d d a n a n n o t a t i o n t o t h e w o r k s p a c e      

1 . I n t h e w o r k s p a c e , f r o m t h e t o o l p a l e t t e , s e l e c t t h e        A n n o t a t i o n        i c o n a n d t h e n      

s e l e c t t h e w o r k s p a c e .  

A n a n n o t a t i o n a p p e a r s o n t h e d i a g r a m .  

2 . D o u b l e - c l i c k t h e a n n o t a t i o n .  

3 . A d d t e x t t o t h e a n n o t a t i o n .  

4 . S e l e c t t h e c u r s o r o u t s i d e o f t h e a n n o t a t i o n t o c o m m i t t h e c h a n g e s .  

Y o u c a n r e s i z e a n d m o v e t h e a n n o t a t i o n b y c l i c k i n g a n d d r a g g i n g .  

Y o u c a n n o t h i d e a n n o t a t i o n s t h a t y o u h a v e a d d e d t o t h e w o r k s p a c e . H o w e v e r ,    

y o u c a n m o v e t h e m o u t o f t h e w a y o r d e l e t e t h e m .  

V a l i d a t i n g a n d t r a c i n g j o b s      

V a l i d a t i n g j o b s    

1 3 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 147: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 147/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

I t i s a g o o d i d e a t o v a l i d a t e y o u r j o b s w h e n y o u a r e r e a d y f o r j o b e x e c u t i o n t o      

e n s u r e t h e r e a r e n o e r r o r s . Y o u c a n a l s o s e l e c t a n d s e t s p e c i c t r a c e p r o p e r t i e s ,    

w h i c h a l l o w y o u t o u s e t h e v a r i o u s l o g l e s t o h e l p y o u r e a d j o b e x e c u t i o n s t a t u s    o r t r o u b l e s h o o t j o b e r r o r s .  

A s a b e s t p r a c t i c e , y o u w a n t t o v a l i d a t e y o u r w o r k a s y o u b u i l d o b j e c t s s o t h a t    

y o u a r e n o t c o n f r o n t e d w i t h t o o m a n y w a r n i n g s a n d e r r o r s a t o n e t i m e . Y o u c a n      

v a l i d a t e y o u r o b j e c t s a s y o u c r e a t e a j o b o r y o u c a n a u t o m a t i c a l l y v a l i d a t e a l l    

y o u r j o b s b e f o r e e x e c u t i n g t h e m .  

F i g u r e 4 7 : V a l i d a t i n g J o b s      

T o v a l i d a t e j o b s a u t o m a t i c a l l y b e f o r e j o b e x e c u t i o n      

1 . F r o m t h e        T o o l s      m e n u , s e l e c t      O p t i o n s      . 

T h e     O p t i o n s      d i a l o g b o x d i s p l a y s .  

2 . I n t h e C a t e g o r y p a n e , e x p a n d t h e        D e s i g n e r        b r a n c h a n d s e l e c t      G e n e r a l .    

3 . S e l e c t t h e        P e r f o r m c o m p l e t e v a l i d a t i o n b e f o r e j o b e x e c u t i o n        o p t i o n .  

4 . S e l e c t      O K .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 3 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 148: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 148/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o v a l i d a t e o b j e c t s o n d e m a n d      

1 . F r o m t h e        V a l i d a t i o n        m e n u , s e l e c t      V a l i d a t e        →        C u r r e n t V i e w o r A l l O b j e c t s    

i n V i e w          . 

T h e     O u t p u t      d i a l o g b o x d i s p l a y s .  

2 . T o n a v i g a t e t o t h e o b j e c t w h e r e a n e r r o r o c c u r r e d , r i g h t - c l i c k t h e v a l i d a t i o n      

e r r o r m e s s a g e a n d s e l e c t      G o T o E r r o r        f r o m t h e m e n u .  

T r a c i n g j o b s    

U s e t r a c e p r o p e r t i e s t o s e l e c t t h e i n f o r m a t i o n t h a t D a t a S e r v i c e s m o n i t o r s a n d      

w r i t e s t o t h e t r a c e l o g l e d u r i n g a j o b . D a t a S e r v i c e s w r i t e s t r a c e m e s s a g e s t o      

t h e t r a c e l o g a s s o c i a t e d w i t h t h e c u r r e n t J o b S e r v e r a n d w r i t e s e r r o r m e s s a g e s t o      

t h e e r r o r l o g a s s o c i a t e d w i t h t h e c u r r e n t J o b S e r v e r .  

F i g u r e 4 8 : S e t t i n g T r a c e s i n J o b E x e c u t i o n P r o p e r t i e s      

T h e s e t r a c e o p t i o n s a r e a v a i l a b l e .  

T r a c e D e s c r i p t i o n      

R o w      W r i t e s a m e s s a g e w h e n a t r a n s f o r m i m p o r t s o r e x p o r t s    

a r o w .  

S e s s i o n      

W r i t e s a m e s s a g e w h e n t h e j o b d e s c r i p t i o n i s r e a d f r o m          

t h e r e p o s i t o r y , w h e n t h e j o b i s o p t i m i z e d , a n d w h e n t h e      

 j o b r u n s . 

1 3 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 149: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 149/472

Page 150: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 150/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

A c c e s s S e r v e r    

C o m m u n i c a t i o n      W r i t e s m e s s a g e s e x c h a n g e d b e t w e e n t h e A c c e s s S e r v e r    

a n d a s e r v i c e p r o v i d e r .  

S t o r e d P r o c e d u r e         W r i t e s a m e s s a g e w h e n a s t o r e d p r o c e d u r e s t a r t s a n d       n i s h e s , a n d i n c l u d e s k e y v a l u e s .  

A u d i t D a t a        W r i t e s a m e s s a g e t h a t c o l l e c t s a s t a t i s t i c a t a n a u d i t p o i n t    

a n d d e t e r m i n e s i f a n a u d i t r u l e p a s s e s o r f a i l s .  

T o s e t t r a c e o p t i o n s    

1 . F r o m t h e p r o j e c t a r e a , r i g h t - c l i c k t h e j o b n a m e a n d d o o n e o f t h e s e a c t i o n s : :  

• T o s e t t r a c e o p t i o n s f o r a s i n g l e i n s t a n c e o f t h e j o b , s e l e c t      E x e c u t e      

f r o m t h e m e n u .  

• T o s e t t r a c e o p t i o n s f o r e v e r y e x e c u t i o n o f t h e j o b , s e l e c t      P r o p e r t i e s    f r o m t h e m e n u .  

S a v e a l l l e s .  

D e p e n d i n g o n w h i c h o p t i o n y o u s e l e c t e d , t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g      

 b o x o r t h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . S e l e c t t h e        T r a c e        t a b .  

3 . U n d e r t h e n a m e c o l u m n , s e l e c t a t r a c e o b j e c t n a m e .  

T h e     V a l u e        d r o p d o w n l i s t i s e n a b l e d w h e n y o u s e l e c t a t r a c e o b j e c t n a m e .  

4 . F r o m t h e        V a l u e        d r o p d o w n l i s t , s e l e c t      Y e s    t o t u r n t h e t r a c e o n .  

5 . S e l e c t      O K       . 

U s i n g l o g l e s    

A s a j o b e x e c u t e s , D a t a S e r v i c e s p r o d u c e s t h r e e l o g l e s . Y o u c a n v i e w t h e s e f r o m          

t h e p r o j e c t a r e a . T h e l o g l e s a r e , b y d e f a u l t , a l s o s e t t o d i s p l a y a u t o m a t i c a l l y i n      

t h e w o r k s p a c e w h e n y o u e x e c u t e a j o b .  

Y o u c a n s e l e c t t h e T r a c e , M o n i t o r , a n d E r r o r i c o n s t o v i e w t h e l o g l e s , w h i c h a r e      

c r e a t e d d u r i n g j o b e x e c u t i o n .  

E x a m i n i n g t r a c e l o g s    

U s e t h e t r a c e l o g s t o d e t e r m i n e w h e r e a n e x e c u t i o n f a i l e d , w h e t h e r t h e e x e c u t i o n      

s t e p s o c c u r i n t h e o r d e r y o u e x p e c t , a n d w h i c h p a r t s o f t h e e x e c u t i o n a r e t h e m o s t    t i m e c o n s u m i n g .  

1 3 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 151: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 151/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

F i g u r e 4 9 : U s i n g t h e T r a c e L o g      

E x a m i n i n g m o n i t o r l o g s    

U s e m o n i t o r l o g s t o q u a n t i f y t h e a c t i v i t i e s o f t h e c o m p o n e n t s o f t h e j o b . I t l i s t s    

t h e t i m e s p e n t i n a g i v e n c o m p o n e n t o f a j o b a n d t h e n u m b e r o f d a t a r o w s t h a t    

s t r e a m e d t h r o u g h t h e c o m p o n e n t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 3 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 152: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 152/472

Page 153: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 153/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

T o v i e w l o g l e s f r o m t h e p r o j e c t a r e a      

1 . I n t h e p r o j e c t a r e a , s e l e c t t h e        L o g     t a b .  

2 . S e l e c t t h e j o b f o r w h i c h y o u w a n t t o v i e w t h e l o g s .  

3 . I n t h e w o r k s p a c e , i n t h e        F i l t e r        d r o p d o w n l i s t , s e l e c t t h e t y p e o f l o g y o u      

w a n t t o v i e w .  

4 . I n t h e l i s t o f l o g s , d o u b l e - c l i c k t h e l o g t o v i e w d e t a i l s .  

5 . T o c o p y l o g c o n t e n t f r o m a n o p e n l o g , s e l e c t o n e o r m o r e l i n e s a n d u s e t h e      

k e y c o m m a n d s [ C t r l + C ] .  

D e t e r m i n i n g t h e s u c c e s s o f t h e j o b      

T h e b e s t m e a s u r e o f t h e s u c c e s s o f a j o b i s t h e s t a t e o f t h e t a r g e t d a t a . A l w a y s    

e x a m i n e y o u r d a t a t o m a k e s u r e t h e d a t a m o v e m e n t o p e r a t i o n p r o d u c e d t h e r e s u l t s    

y o u e x p e c t .  

F i g u r e 5 1 : V i e w D a t a i n D a t a F l o w          

B e s u r e t h a t :  

• D a t a i s n o t c o n v e r t e d t o i n c o m p a t i b l e t y p e s o r t r u n c a t e d .  

• D a t a i s n o t d u p l i c a t e d i n t h e t a r g e t .  

• D a t a i s n o t l o s t b e t w e e n u p d a t e s o f t h e t a r g e t .  

• G e n e r a t e d k e y s h a v e b e e n p r o p e r l y i n c r e m e n t e d .  

• U p d a t e d v a l u e s w e r e h a n d l e d p r o p e r l y .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 3 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 154: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 154/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

I f a j o b f a i l s t o e x e c u t e , c h e c k t h e J o b s e r v e r i c o n i n t h e s t a t u s b a r t o v e r i f y t h a t    

t h e J o b S e r v i c e i s r u n n i n g . C h e c k t h a t t h e p o r t n u m b e r i n D e s i g n e r m a t c h e s t h e      

n u m b e r s p e c i e d i n S e r v e r M a n a g e r . I f n e c e s s a r y , y o u c a n u s e t h e S e r v e r M a n a g e r    R e s y n c b u t t o n t o r e s e t t h e p o r t n u m b e r i n t h e L o c a l O b j e c t L i b r a r y .  

1 4 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 155: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 155/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

E x e r c i s e 7 : S e t t i n g t r a c e s a n d a n n o t a t i o n s      

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

B u s i n e s s E x a m p l e      

Y o u a r e s h a r i n g y o u r j o b s w i t h o t h e r d e v e l o p e r s d u r i n g t h e p r o j e c t , s o y o u w a n t t o      

m a k e s u r e t h a t y o u i d e n t i f y t h e p u r p o s e o f t h e j o b y o u c r e a t e d . Y o u a l s o w a n t t o      

e n s u r e t h a t t h e j o b i s h a n d l i n g t h e m o v e m e n t o f e a c h r o w a p p r o p r i a t e l y .  

T a s k :    

Y o u a d d a n a n n o t a t i o n t o t h e d a t a o w w i t h a n e x p l a n a t i o n o f t h e p u r p o s e o f      

t h e j o b .  

1 . A d d a n a n n o t a t i o n t o t h e w o r k s p a c e o f t h e j o b y o u h a v e a l r e a d y c r e a t e d .  

2 . E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b a f t e r e n a b l i n g t h e t r a c i n g o f r o w s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 4 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 156: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 156/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

S o l u t i o n 7 : S e t t i n g t r a c e s a n d a n n o t a t i o n s      

T a s k :    

Y o u a d d a n a n n o t a t i o n t o t h e d a t a o w w i t h a n e x p l a n a t i o n o f t h e p u r p o s e o f      

t h e j o b .  

1 . A d d a n a n n o t a t i o n t o t h e w o r k s p a c e o f t h e j o b y o u h a v e a l r e a d y c r e a t e d .  

a ) O p e n t h e w o r k s p a c e o f t h e        A l p h a _ C u s t o m e r s _ J o b        b y s e l e c t i n g      

t h e j o b .  

 b ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e i c o n f o r a n A n n o t a t i o n i t e m a n d d r a g   

i t i n t o t h e w o r k s p a c e b e s i d e t h e d a t a o w . T h e n c l i c k t h e w o r k s p a c e t o      

a d d t h e A n n o t a t i o n .  

c ) T y p e i n a n e x p l a n a t i o n o f t h e p u r p o s e o f t h e j o b , s u c h a s : “ T h e p u r p o s e      

o f t h i s j o b i s t o m o v e r e c o r d s f r o m t h e C u s t o m e r t a b l e f r o m t h e A l p h a      

d a t a s t o r e t o a t e m p l a t e t a b l e , A l p h a _ c u s t o m e r s i n t h e D e l t a s t a g i n g      

d a t a s t o r e . ”      

d ) S a v e a l l o b j e c t s y o u h a v e c r e a t e d b y u s i n g t h e i c o n        S a v e A l l     . 

2 . E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b a f t e r e n a b l i n g t h e t r a c i n g o f r o w s .  

a ) R i g h t c l i c k t h e A l p h a _ C u s t o m e r s _ J o b a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) I n t h e     E x e c u t i o n P r o p e r t i e s      d i a l o g b o x , s e l e c t t h e        T r a c e        t a b a n d s e l e c t    

t h e     T r a c e r o w s      o p t i o n .  

c ) S e l e c t      O K      i n t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x .  

d ) I n t h e T r a c e l o g , y o u s h o u l d s e e a n e n t r y f o r e a c h r o w a d d e d t o t h e l o g      

t o i n d i c a t e h o w i t i s b e i n g h a n d l e d b y t h e d a t a o w .  

1 4 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 157: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 157/472

B O D S 1 0 L e s s o n : S e t t i n g T r a c e s a n d A d d i n g A n n o t a t i o n s      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 4 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 158: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 158/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

L e s s o n O v e r v i e w          

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n s e t t r a c e o p t i o n s , a n d d e b u g y o u r j o b s u s i n g t h e I n t e r a c t i v e D e b u g g e r . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e V i e w D a t a F u n c t i o n      

• U s e t h e I n t e r a c t i v e D e b u g g e r    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y h a s r e c o g n i z e d h o w u s e f u l i t c a n b e t o i n t e g r a t e p e o p l e , i n f o r m a t i o n      

a n d b u s i n e s s p r o c e s s e s i n a h e t e r o g e n e o u s s y s t e m l a n d s c a p e a n d w o u l d l i k e t o      

 b e n e t f r o m t h i s . P r a c t i c e h a s s h o w n , t h o u g h , t h a t l o a d i n g l a r g e d a t a s e t s m a k e s  

c o n s i d e r a b l e d e m a n d s o n h a r d w a r e a n d s y s t e m p e r f o r m a n c e . I t i s t h e r e f o r e      

n e c e s s a r y t o e x a m i n e i f a n d h o w t h e d a t a r e c o r d s c a n b e l o a d e d i n t o S A P      

 N e t W e a v e r B u s i n e s s W a r e h o u s e w i t h a d e l t a p r o c e s s . Y o u m u s t u n d e r s t a n d t h e   

m o d e s o f o p e r a t i o n a n d t h e d i f f e r e n t v a r i a n t s o f a d e l t a l o a d i n g p r o c e s s .  

U s i n g V i e w D a t a a n d t h e I n t e r a c t i v e D e b u g g e r      

Y o u c a n d e b u g j o b s i n D a t a S e r v i c e s u s i n g t h e V i e w D a t a a n d I n t e r a c t i v e      

D e b u g g e r f e a t u r e s . W i t h V i e w D a t a , y o u c a n v i e w s a m p l e s o f s o u r c e a n d t a r g e t    

d a t a f o r y o u r j o b s . U s i n g t h e I n t e r a c t i v e D e b u g g e r , y o u c a n e x a m i n e w h a t h a p p e n s    

t o t h e d a t a a f t e r e a c h t r a n s f o r m o r o b j e c t i n t h e o w .  

A f t e r c o m p l e t i n g t h i s u n i t , y o u c a n :  

• U s e V i e w D a t a w i t h s o u r c e s a n d t a r g e t s    

• U s e t h e I n t e r a c t i v e D e b u g g e r    

• S e t l t e r s a n d b r e a k p o i n t s f o r a d e b u g s e s s i o n      U s i n g V i e w D a t a w i t h s o u r c e s a n d t a r g e t s    

W i t h t h e V i e w D a t a f e a t u r e , y o u c a n c h e c k t h e s t a t u s o f d a t a a t a n y p o i n t a f t e r y o u      

i m p o r t t h e m e t a d a t a f o r a d a t a s o u r c e , a n d b e f o r e o r a f t e r y o u p r o c e s s y o u r d a t a      

o w s . Y o u c a n c h e c k t h e d a t a w h e n y o u d e s i g n a n d t e s t j o b s t o e n s u r e t h a t y o u r    

d e s i g n r e t u r n s t h e r e s u l t s y o u e x p e c t .  

1 4 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 159: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 159/472

B O D S 1 0 L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

F i g u r e 5 2 : V i e w D a t a i n D a t a F l o w          

V i e w D a t a a l l o w s y o u t o s e e s o u r c e d a t a b e f o r e y o u e x e c u t e a j o b . U s i n g d a t a      

d e t a i l s y o u c a n :  

• C r e a t e h i g h e r q u a l i t y j o b d e s i g n s .  

• S c a n a n d a n a l y z e i m p o r t e d t a b l e a n d l e d a t a f r o m t h e L o c a l O b j e c t L i b r a r y .  

• S e e t h e d a t a f o r t h o s e s a m e o b j e c t s w i t h i n e x i s t i n g j o b s .  

• R e f e r b a c k t o t h e s o u r c e d a t a a f t e r y o u e x e c u t e t h e j o b .  

V i e w D a t a a l s o a l l o w s y o u t o c h e c k y o u r t a r g e t d a t a b e f o r e e x e c u t i n g y o u r j o b ,    

t h e n l o o k a t t h e c h a n g e d d a t a a f t e r t h e j o b e x e c u t e s . I n a d a t a o w , y o u c a n u s e      

o n e o r m o r e V i e w D a t a p a n e l s t o c o m p a r e d a t a b e t w e e n t r a n s f o r m s a n d w i t h i n      

s o u r c e a n d t a r g e t o b j e c t s .  

V i e w D a t a d i s p l a y s y o u r d a t a i n t h e r o w s a n d c o l u m n s o f a d a t a g r i d . T h e p a t h f o r    

t h e s e l e c t e d o b j e c t d i s p l a y s a t t h e t o p o f t h e p a n e . T h e n u m b e r o f r o w s d i s p l a y e d      

i s d e t e r m i n e d b y a c o m b i n a t i o n o f s e v e r a l c o n d i t i o n s :  

• S a m p l e s i z e : t h e n u m b e r o f r o w s s a m p l e d i n m e m o r y . D e f a u l t s a m p l e s i z e i s    

1 0 0 0 r o w s f o r i m p o r t e d s o u r c e , t a r g e t s , a n d t r a n s f o r m s .  

• F i l t e r i n g : t h e l t e r i n g o p t i o n s t h a t a r e s e l e c t e d . I f y o u r o r i g i n a l d a t a s e t i s    

s m a l l e r o r i f y o u u s e l t e r s , t h e n u m b e r o f r e t u r n e d r o w s c o u l d b e l e s s t h a n      

t h e d e f a u l t .  

K e e p i n m i n d t h a t y o u c a n h a v e o n l y t w o V i e w D a t a w i n d o w s o p e n a t a n y t i m e . i f      

y o u a l r e a d y h a v e t w o w i n d o w s o p e n a n d t r y t o o p e n a t h i r d , y o u a r e p r o m p t e d t o      

s e l e c t w h i c h t o c l o s e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 4 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 160: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 160/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o u s e V i e w D a t a i n s o u r c e a n d t a r g e t t a b l e s    

• O n t h e D a t a s t o r e t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k a t a b l e a n d      

s e l e c t      V i e w D a t a        f r o m t h e m e n u .  

T h e     V i e w D a t a        d i a l o g b o x d i s p l a y s .  

T o o p e n a V i e w D a t a p a n e i n a d a t a o w w o r k s p a c e      

1 . I n t h e d a t a o w w o r k s p a c e , s e l e c t t h e m a g n i f y i n g g l a s s b u t t o n o n a d a t a      

o w o b j e c t .  

A l a r g e V i e w D a t a p a n e a p p e a r s b e n e a t h t h e c u r r e n t w o r k s p a c e a r e a .  

2 . T o c o m p a r e d a t a , s e l e c t t h e m a g n i f y i n g g l a s s b u t t o n f o r a n o t h e r o b j e c t .  

A s e c o n d p a n e a p p e a r s b e l o w t h e w o r k s p a c e a r e a , a n d t h e r s t p a n e a r e a      

s h r i n k s t o a c c o m m o d a t e i t .  

W h e n b o t h p a n e s a r e l l e d a n d y o u s e l e c t a n o t h e r V i e w D a t a b u t t o n , a s m a l l    

m e n u a p p e a r s c o n t a i n i n g w i n d o w p l a c e m e n t i c o n s . T h e b l a c k a r e a i n e a c h      

i c o n i n d i c a t e s t h e p a n e y o u w a n t t o r e p l a c e w i t h a n e w s e t o f d a t a . W h e n      

y o u s e l e c t a m e n u o p t i o n , t h e d a t a f r o m t h e l a t e s t s e l e c t e d o b j e c t r e p l a c e s    

t h e d a t a i n t h e c o r r e s p o n d i n g p a n e .  

U s i n g t h e I n t e r a c t i v e D e b u g g e r      

D e s i g n e r i n c l u d e s a n I n t e r a c t i v e D e b u g g e r t h a t a l l o w s y o u t o t r o u b l e s h o o t y o u r    

 j o b s b y p l a c i n g l t e r s a n d b r e a k p o i n t s o n l i n e s i n a d a t a o w d i a g r a m . T h i s e n a b l e s  

y o u t o e x a m i n e a n d m o d i f y d a t a r o w b y r o w d u r i n g a d e b u g m o d e j o b e x e c u t i o n .  

T h e I n t e r a c t i v e D e b u g g e r c a n a l s o b e u s e d w i t h o u t l t e r s a n d b r e a k p o i n t s .  

R u n n i n g t h e j o b i n d e b u g m o d e a n d t h e n n a v i g a t i n g t o t h e d a t a o w w h i l e      

r e m a i n i n g i n d e b u g m o d e e n a b l e s y o u t o d r i l l i n t o e a c h s t e p o f t h e d a t a o w a n d      

v i e w t h e d a t a .  

W h e n y o u e x e c u t e a j o b i n d e b u g m o d e , D e s i g n e r d i s p l a y s s e v e r a l a d d i t i o n a l    

w i n d o w s t h a t m a k e u p t h e I n t e r a c t i v e D e b u g g e r : C a l l s t a c k , T r a c e , V a r i a b l e s ,    

a n d V i e w D a t a p a n e s .  

1 4 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 161: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 161/472

B O D S 1 0 L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

F i g u r e 5 3 : T h e I n t e r a c t i v e D e b u g g e r      

T h e l e f t V i e w D a t a p a n e s h o w s t h e d a t a i n t h e s o u r c e t a b l e , a n d t h e r i g h t p a n e      

s h o w s t h e r o w s t h a t h a v e b e e n p a s s e d t o t h e q u e r y u p t o t h e b r e a k p o i n t .  

T o s t a r t t h e I n t e r a c t i v e D e b u g g e r    

1 . I n t h e p r o j e c t a r e a , r i g h t - c l i c k t h e j o b a n d s e l e c t      S t a r t d e b u g        f r o m t h e m e n u .  

T h e D e b u g P r o p e r t i e s d i a l o g b o x d i s p l a y s .  

2 . S e t p r o p e r t i e s f o r t h e e x e c u t i o n .  

Y o u c a n s p e c i f y m a n y o f t h e s a m e p r o p e r t i e s a s y o u c a n w h e n e x e c u t i n g a      

 j o b w i t h o u t d e b u g g i n g . I n a d d i t i o n , y o u c a n s p e c i f y t h e n u m b e r o f r o w s t o   

s a m p l e i n t h e D a t a s a m p l e r a t e e l d .  

3 . S e l e c t      O K .  

T h e d e b u g m o d e b e g i n s .  

W h i l e i n d e b u g m o d e , a l l o t h e r D e s i g n e r f e a t u r e s a r e s e t t o r e a d - o n l y . A        D e b u g i c o n i s v i s i b l e i n t h e t a s k b a r w h i l e t h e d e b u g i s i n p r o g r e s s .  

4 . I f y o u h a v e s e t b r e a k p o i n t s , i n t h e I n t e r a c t i v e D e b u g g e r t o o l b a r , s e l e c t      G e t  

n e x t r o w          t o m o v e t o t h e n e x t b r e a k p o i n t .  

5 . T o e x i t t h e        d e b u g        m o d e , f r o m t h e D e b u g m e n u , s e l e c t      S t o p D e b u g        . 

S e t t i n g l t e r s a n d b r e a k p o i n t s f o r a d e b u g s e s s i o n      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 4 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 162: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 162/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

Y o u c a n s e t l t e r s a n d b r e a k p o i n t s o n l i n e s i n a d a t a o w d i a g r a m b e f o r e y o u      

s t a r t a d e b u g g i n g s e s s i o n t h a t a l l o w y o u t o e x a m i n e a n d m o d i f y d a t a r o w - b y - r o w        

d u r i n g a d e b u g m o d e j o b e x e c u t i o n .  A d e b u g l t e r f u n c t i o n s t h e s a m e a s a s i m p l e Q u e r y t r a n s f o r m w i t h a W H E R E        

c l a u s e . Y o u c a n u s e a l t e r i f y o u w a n t t o r e d u c e a d a t a s e t i n a d e b u g j o b      

e x e c u t i o n . T h e d e b u g l t e r d o e s n o t s u p p o r t c o m p l e x e x p r e s s i o n s .  

A b r e a k p o i n t i s t h e l o c a t i o n w h e r e a d e b u g j o b e x e c u t i o n p a u s e s a n d r e t u r n s    

c o n t r o l t o y o u . A b r e a k p o i n t c a n b e b a s e d o n a c o n d i t i o n , o r i t c a n b e s e t t o b r e a k      

a f t e r a s p e c i c n u m b e r o f r o w s .  

Y o u c a n p l a c e a l t e r o r b r e a k p o i n t o n t h e l i n e b e t w e e n a s o u r c e a n d a t r a n s f o r m          

o r t w o t r a n s f o r m s . I f y o u s e t a l t e r a n d a b r e a k p o i n t o n t h e s a m e l i n e , D a t a      

S e r v i c e s a p p l i e s t h e l t e r r s t , w h i c h m e a n s t h a t t h e b r e a k p o i n t a p p l i e s t o t h e      

l t e r e d r o w s o n l y .  

F i g u r e 5 4 : S e t t i n g F i l t e r s a n d B r e a k p o i n t s i n t h e D a t a F l o w          

1 4 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 163: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 163/472

B O D S 1 0 L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

T o s e t l t e r s a n d b r e a k p o i n t s    

1 . I n t h e d a t a o w w o r k s p a c e , r i g h t - c l i c k t h e l i n e t h a t c o n n e c t s t w o o b j e c t s a n d      

s e l e c t      S e t F i l t e r / B r e a k p o i n t      f r o m t h e m e n u .  

2 . I n t h e        B r e a k p o i n t      w i n d o w i n t h e        C o l u m n        d r o p d o w n l i s t , s e l e c t t h e c o l u m n      

t o w h i c h t h e l t e r o r b r e a k p o i n t a p p l i e s .  

3 . I n t h e        O p e r a t o r        d r o p d o w n l i s t , s e l e c t t h e o p e r a t o r f o r t h e e x p r e s s i o n .  

4 . I n t h e        V a l u e        e l d , e n t e r t h e v a l u e t o c o m p l e t e t h e e x p r e s s i o n .  

T h e c o n d i t i o n f o r l t e r s / b r e a k p o i n t s d o n o t u s e a d e l i m i t e r f o r s t r i n g s .  

5 . I f y o u a r e u s i n g m u l t i p l e c o n d i t i o n s , r e p e a t s t e p 3 t o s t e p 5 f o r a l l c o n d i t i o n s    

a n d s e l e c t t h e a p p r o p r i a t e o p e r a t o r f r o m t h e        C o n c a t e n a t e a l l c o n d i t i o n s    

u s i n g        d r o p d o w n l i s t .  

6 . S e l e c t      O K .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 4 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 164: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 164/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

1 5 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 165: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 165/472

B O D S 1 0 L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

E x e r c i s e 8 : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e V i e w D a t a F u n c t i o n      

• U s e t h e I n t e r a c t i v e D e b u g g e r    

B u s i n e s s E x a m p l e      

T o e n s u r e t h a t y o u r j o b i s p r o c e s s i n g t h e d a t a c o r r e c t l y , y o u w a n t t o r u n t h e j o b i n      

d e b u g m o d e . T o m i n i m i z e t h e d a t a y o u h a v e t o r e v i e w i n t h e I n t e r a c t i v e D e b u g g e r ,    

y o u s e t t h e d e b u g o p t i o n p r o c e s s t o s h o w o n l y r e c o r d s f r o m a n i n d i v i d u a l    

C o u n t r y I D          e l d v a l u e .  

T a s k 1 :    

E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b i n d e b u g m o d e w i t h a s u b s e t o f r e c o r d s .  

1 . I n t h e w o r k s p a c e f o r t h e        A l p h a _ C u s t o m e r s _ J o b        , a d d a l t e r b e t w e e n      

t h e s o u r c e a n d t h e Q u e r y t r a n s f o r m t o l t e r t h e r e c o r d s s o t h a t o n l y c u s t o m e r s    

f r o m t h e U S A a r e i n c l u d e d i n t h e d e b u g s e s s i o n .  

T a s k 2 :    

O n c e y o u h a v e c o n r m e d t h a t t h e s t r u c t u r e a p p e a r s c o r r e c t , y o u e x e c u t e a n o t h e r    

d e b u g s e s s i o n w i t h a l l r e c o r d s , b r e a k i n g a f t e r e v e r y r o w .  

1 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        a g a i n i n d e b u g m o d e u s i n g a      

 b r e a k p o i n t t o s t o p t h e d e b u g p r o c e s s a f t e r a n u m b e r o f r o w s . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 166: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 166/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

S o l u t i o n 8 : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

T a s k 1 :    

E x e c u t e t h e A l p h a _ C u s t o m e r s _ J o b i n d e b u g m o d e w i t h a s u b s e t o f r e c o r d s .  

1 . I n t h e w o r k s p a c e f o r t h e        A l p h a _ C u s t o m e r s _ J o b        , a d d a l t e r b e t w e e n      

t h e s o u r c e a n d t h e Q u e r y t r a n s f o r m t o l t e r t h e r e c o r d s s o t h a t o n l y c u s t o m e r s    

f r o m t h e U S A a r e i n c l u d e d i n t h e d e b u g s e s s i o n .  

a ) O p e n t h e w o r k s p a c e f o r t h e A l p h a _ C u s t o m e r s _ J o b a n d r i g h t c l i c k t h e      

c o n n e c t i o n b e t w e e n t h e s o u r c e t a b l e a n d t h e Q u e r y t r a n s f o r m a n d f r o m          

t h e c o n t e x t m e n u , c h o o s e        S e t F i l t e r      

 b ) I n t h e     F i l t e r        w i n d o w , i n t h e        C o l u m n        d r o p - d o w n l i s t , s e l e c t t h e c o l u m n      

t o w h i c h t h e l t e r a p p l i e s .  

c ) I n t h e        O p e r a t o r        d r o p - d o w n l i s t , s e l e c t t h e “ E q u a l s ( = ) ” o p e r a t o r f o r    

t h e e x p r e s s i o n .  

d ) I n t h e        V a l u e        e l d , e n t e r t h e v a l u e        1     r e p r e s e n t i n g t h e c o u n t r y        U S A     . 

e ) S e l e c t      O K      . 

f ) R i g h t - c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        a n d s e l e c t      S t a r t d e b u g      

f r o m t h e m e n u .  

g ) I n t h e        D e b u g P r o p e r t i e s      d i a l o g b o x , s e t p r o p e r t i e s f o r t h e e x e c u t i o n      

a n d t h e n s e l e c t      O K      . 

D e b u g m o d e b e g i n s a n d a l l o t h e r D e s i g n e r f e a t u r e s a r e s e t t o r e a d - o n l y .  

A D e b u g i c o n i s v i s i b l e i n t h e t a s k b a r w h i l e t h e d e b u g i s i n p r o g r e s s .  

Y o u c a n s p e c i f y m a n y o f t h e s a m e p r o p e r t i e s a s y o u c a n w h e n e x e c u t i n g      

a j o b w i t h o u t d e b u g g i n g . I n a d d i t i o n , y o u c a n s p e c i f y t h e n u m b e r o f      

r o w s t o s a m p l e i n t h e        D a t a s a m p l e r a t e        e l d .  

h ) Y o u s h o u l d s e e o n l y v e r e c o r d s r e t u r n e d t o t h e t e m p l a t e t a b l e .  

i ) E x i t f r o m d e b u g m o d e b y u s i n g t h e m e n u o p t i o n        D e b u g → E x i t     . 

C o n t i n u e d o n n e x t p a g e      

1 5 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 167: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 167/472

B O D S 1 0 L e s s o n : U s i n g t h e I n t e r a c t i v e D e b u g g e r      

T a s k 2 :    

O n c e y o u h a v e c o n r m e d t h a t t h e s t r u c t u r e a p p e a r s c o r r e c t , y o u e x e c u t e a n o t h e r    

d e b u g s e s s i o n w i t h a l l r e c o r d s , b r e a k i n g a f t e r e v e r y r o w .  

1 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        a g a i n i n d e b u g m o d e u s i n g a      

 b r e a k p o i n t t o s t o p t h e d e b u g p r o c e s s a f t e r a n u m b e r o f r o w s . 

a ) I n t h e w o r k s p a c e f o r t h e        A l p h a _ C u s t o m e r s _ J o b        , r i g h t c l i c k t h e      

c o n n e c t i o n b e t w e e n t h e s o u r c e t a b l e a n d t h e Q u e r y t r a n s f o r m t o c h o o s e      

t h e o p t i o n        R e m o v e F i l t e r        . 

 b ) R i g h t c l i c k t h e c o n n e c t i o n b e t w e e n t h e s o u r c e t a b l e a n d t h e Q u e r y   

t r a n s f o r m a n d f r o m t h e c o n t e x t m e n u , c h o o s e        S e t B r e a k p o i n t     . 

c ) I n t h e        B r e a k p o i n t      w i n d o w , s e l e c t t h e c h e c k b o x        B r e a k a f t e r n u m b e r o f    

r o w s      t o e n a b l e b r e a k i n g t h e d e b u g s e s s i o n d u r i n g p r o c e s s i n g a n d e n t e r    2 0     i n t h e e l d        B r e a k a f t e r n u m b e r o f r o w s    

d ) S e l e c t      O K      . 

e ) R i g h t c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        a n d s e l e c t      S t a r t d e b u g      

f r o m t h e m e n u c h o o s e        S t a r t d e b u g        . 

f ) I n t h e        D e b u g P r o p e r t i e s      d i a l o g b o x , s e t p r o p e r t i e s f o r t h e e x e c u t i o n      

a n d t h e n s e l e c t      O K      . 

g ) D e b u g m o d e b e g i n s a n d t h e n s t o p s a f t e r p r o c e s s i n g 2 0 r o w s . U s e t h e      

m e n u p a t h        D e b u g → S t e p o v e r      

h ) D i s c a r d t h e l a s t r o w p r o c e s s e d f r o m t h e t a r g e t t a b l e b y s e l e c t i n g t h e l a s t    r o w d i s p l a y e d a n d s e l e c t t h e        D i s c a r d        i c o n i n t h e r e c o r d d i s p l a y . Y o u      

w i l l s e e t h a t t h e r e c o r d e l d s v a l u e s n o w a p p e a r a s i f a l i n e h a s b e e n      

d r a w n t h r o u g h e a c h v a l u e .  

i ) C o n t i n u e p r o c e s s i n g b y u s i n g t h e m e n u p a t h        D e b u g → G e t n e x t r o w        

a n d n o w t h e n e x t r o w i s d i s p l a y e d . C o n t i n u e u s i n g t h e m e n u p a t h u n t i l    

y o u g e t a m e s s a g e t h a t t h e j o b i s n i s h e d .  

 j ) E x i t f r o m d e b u g m o d e b y u s i n g t h e m e n u o p t i o n     D e b u g → E x i t     . 

k ) R e m o v e t h e b r e a k p o i n t f r o m t h e d a t a o w b y r i g h t - c l i c k i n g o n i t t o      

s e l e c t      D e l e t e        f r o m t h e m e n u .  

l ) U s e t h e b u t t o n i n t h e T o o l B a r      S a v e A l l     . 

m ) I n t h e d a t a o w w o r k s p a c e , s e l e c t t h e m a g n i f y i n g g l a s s f o r t h e t a r g e t    

t a b l e t o v i e w t h e t a b l e r e c o r d s . N o t e t h a t o n l y 2 4 o f 2 5 r o w s w e r e      

r e t u r n e d , b e c a u s e y o u r e j e c t e d o n e r e c o r d .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 168: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 168/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e V i e w D a t a F u n c t i o n      

• U s e t h e I n t e r a c t i v e D e b u g g e r    

1 5 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 169: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 169/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

L e s s o n O v e r v i e w          

T o d o c u m e n t d e c i s i o n s a n d t r o u b l e s h o o t a n y i s s u e s t h a t a r i s e w h e n e x e c u t i n g y o u r    

 j o b s , y o u c a n s e t u p a u d i t r u l e s t o e n s u r e t h e c o r r e c t d a t a i s l o a d e d t o t h e t a r g e t . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e a u d i t i n g i n d a t a o w s    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y h a s r e c o g n i z e d h o w u s e f u l i t c a n b e t o i n t e g r a t e p e o p l e , i n f o r m a t i o n      

a n d b u s i n e s s p r o c e s s e s i n a h e t e r o g e n e o u s s y s t e m l a n d s c a p e a n d w o u l d l i k e t o      

 b e n e t f r o m t h i s . P r a c t i c e h a s s h o w n , t h o u g h , t h a t l o a d i n g l a r g e d a t a s e t s m a k e s  

c o n s i d e r a b l e d e m a n d s o n h a r d w a r e a n d s y s t e m p e r f o r m a n c e . I t i s n e c e s s a r y t o      

e x a m i n e i f a n d h o w t h e d a t a r e c o r d s c a n b e l o a d e d i n t o S A P N e t W e a v e r B u s i n e s s    

W a r e h o u s e w i t h a d e l t a p r o c e s s . Y o u m u s t u n d e r s t a n d t h e m o d e s o f o p e r a t i o n a n d      

t h e d i f f e r e n t v a r i a n t s o f a d e l t a l o a d i n g p r o c e s s .  

S e t t i n g u p a u d i t i n g      Y o u c a n c o l l e c t a u d i t s t a t i s t i c s o n t h e d a t a t h a t o w s o u t o f a n y D a t a S e r v i c e s    

o b j e c t , s u c h a s a s o u r c e , t r a n s f o r m , o r t a r g e t . I f a t r a n s f o r m h a s m u l t i p l e d i s t i n c t    

o r d i f f e r e n t o u t p u t s ( s u c h a s V a l i d a t i o n o r C a s e ) , y o u c a n a u d i t e a c h o u t p u t    

i n d e p e n d e n t l y .  

S e t t i n g u p a u d i t i n g      

W h e n y o u a u d i t d a t a o w s , y o u :  

1 . D e n e a u d i t p o i n t s t o c o l l e c t r u n t i m e s t a t i s t i c s a b o u t t h e d a t a t h a t o w s o u t    

o f o b j e c t s . T h e s e a u d i t s t a t i s t i c s a r e s t o r e d i n t h e D a t a S e r v i c e s r e p o s i t o r y .  

2 . D e n e r u l e s w i t h t h e s e a u d i t s t a t i s t i c s t o e n s u r e t h a t t h e d a t a e x t r a c t e d f r o m          s o u r c e s , p r o c e s s e d b y t r a n s f o r m s , a n d l o a d e d i n t o t a r g e t s i s w h a t y o u e x p e c t .  

3 . G e n e r a t e a r u n t i m e n o t i c a t i o n t h a t i n c l u d e s t h e a u d i t r u l e t h a t f a i l e d a n d t h e      

v a l u e s o f t h e a u d i t s t a t i s t i c s a t t h e t i m e o f f a i l u r e .  

4 . D i s p l a y t h e a u d i t s t a t i s t i c s a f t e r t h e j o b e x e c u t i o n t o h e l p i d e n t i f y t h e o b j e c t    

i n t h e d a t a o w t h a t m i g h t h a v e p r o d u c e d i n c o r r e c t d a t a .  

D e n i n g a u d i t p o i n t s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 170: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 170/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

A n a u d i t p o i n t r e p r e s e n t s t h e o b j e c t i n a d a t a o w w h e r e y o u c o l l e c t s t a t i s t i c s . Y o u      

c a n a u d i t a s o u r c e , a t r a n s f o r m , o r a t a r g e t i n a d a t a o w .  

W h e n y o u d e n e a u d i t p o i n t s o n o b j e c t s i n a d a t a o w , y o u s p e c i f y a n a u d i t    f u n c t i o n . A n a u d i t f u n c t i o n r e p r e s e n t s t h e a u d i t s t a t i s t i c t h a t D a t a S e r v i c e s c o l l e c t s    

f o r a t a b l e , o u t p u t s c h e m a , o r c o l u m n . Y o u c a n c h o o s e f r o m t h e s e a u d i t f u n c t i o n s :  

D a t a o b j e c t F u n c t i o n D e s c r i p t i o n      

T a b l e o r    

o u t p u t s c h e m a      

C o u n t T h i s f u n c t i o n c o l l e c t s t w o s t a t i s t i c s :  

• G o o d c o u n t f o r r o w s t h a t w e r e      

s u c c e s s f u l l y p r o c e s s e d .  

• E r r o r c o u n t f o r r o w s t h a t g e n e r a t e d      

s o m e t y p e o f e r r o r i f y o u e n a b l e d      

e r r o r h a n d l i n g .  

T h e d a t a t y p e f o r t h i s f u n c t i o n i s i n t e g e r .  

C o l u m n S u m S u m o f t h e n u m e r i c v a l u e s i n t h e c o l u m n .  

T h i s f u n c t i o n o n l y i n c l u d e s t h e g o o d      

r o w s .  

T h i s f u n c t i o n a p p l i e s o n l y t o c o l u m n s    

w i t h a d a t a t y p e o f i n t e g e r , d e c i m a l ,    

d o u b l e , a n d r e a l .  

C o l u m n A v e r a g e A v e r a g e o f t h e n u m e r i c v a l u e s i n t h e      

c o l u m n . T h i s f u n c t i o n o n l y i n c l u d e s t h e      

g o o d r o w s .  

T h i s f u n c t i o n a p p l i e s o n l y t o c o l u m n s    

w i t h a d a t a t y p e o f i n t e g e r , d e c i m a l ,    

d o u b l e , a n d r e a l .  

C o l u m n C h e c k s u m D e t e c t e r r o r s i n t h e v a l u e s i n t h e c o l u m n      

 b y u s i n g t h e c h e c k s u m v a l u e . 

T h i s f u n c t i o n a p p l i e s o n l y t o c o l u m n s    

w i t h a d a t a t y p e o f v a r c h a r .  

D e n i n g a u d i t l a b e l s    

A n a u d i t l a b e l r e p r e s e n t s t h e u n i q u e n a m e i n t h e d a t a o w t h a t D a t a S e r v i c e s    

g e n e r a t e s f o r t h e a u d i t s t a t i s t i c s c o l l e c t e d f o r e a c h a u d i t f u n c t i o n t h a t y o u d e n e .  

Y o u u s e t h e s e l a b e l s t o d e n e a u d i t r u l e s f o r t h e d a t a o w .  

1 5 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 171: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 171/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

F i g u r e 5 5 : U s i n g A u d i t i n g P o i n t s , L a b e l a n d F u n c t i o n s      

I f t h e a u d i t p o i n t i s o n a t a b l e o r o u t p u t s c h e m a , t h e s e t w o l a b e l s a r e g e n e r a t e d      

f o r t h e C o u n t a u d i t f u n c t i o n :  

$ C o u n t _ o b j e c t n a m e      

$ C o u n t E r r o r _ o b j e c t n a m e      

I f t h e a u d i t p o i n t i s o n a c o l u m n , t h e a u d i t l a b e l i s g e n e r a t e d w i t h t h i s f o r m a t :  

$ a u d i t f u n c t i o n _ o b j e c t n a m e      

N o t e :      A n a u d i t l a b e l c a n b e c o m e i n v a l i d i f y o u d e l e t e o r r e n a m e a n o b j e c t t h a t    

h a d a n a u d i t p o i n t d e n e d o n i t . I n v a l i d l a b e l s a r e l i s t e d a s a s e p a r a t e n o d e o n t h e      

L a b e l s t a b . T o r e s o l v e t h e i s s u e , y o u m u s t r e - c r e a t e t h e l a b e l s a n d t h e n d e l e t e      

t h e i n v a l i d i t e m s .  

D e n i n g a u d i t r u l e s    

U s e a u d i t i n g r u l e s i f y o u w a n t t o c o m p a r e a u d i t s t a t i s t i c s f o r o n e o b j e c t a g a i n s t    

a n o t h e r o b j e c t . F o r e x a m p l e , y o u c a n u s e a n a u d i t r u l e i f y o u w a n t t o v e r i f y t h a t    t h e c o u n t o f r o w s f r o m t h e s o u r c e t a b l e i s e q u a l t o t h e r o w s i n t h e t a r g e t t a b l e .  

A n a u d i t r u l e i s a B o o l e a n e x p r e s s i o n , w h i c h c o n s i s t s o f a l e f t - h a n d - s i d e ( L H S ) , a      

B o o l e a n o p e r a t o r , a n d a r i g h t - h a n d - s i d e ( R H S ) . T h e L H S c a n b e a s i n g l e a u d i t    

l a b e l , m u l t i p l e a u d i t l a b e l s t h a t f o r m a n e x p r e s s i o n w i t h o n e o r m o r e m a t h e m a t i c a l    

o p e r a t o r s , o r a f u n c t i o n w i t h a u d i t l a b e l s a s p a r a m e t e r s . I n a d d i t i o n t o t h e s e , t h e      

R H S c a n a l s o b e a c o n s t a n t . T h e s e a r e e x a m p l e s o f a u d i t r u l e s :  

$ C o u n t _ C U S T O M E R = $ C o u n t _ C U S T D W            

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 172: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 172/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

$ S u m _ O R D E R _ U S + $ S u m _ O R D E R _ E U R O P E = $ S u m _ O R D E R _ D W            

r o u n d ( $ A v g _ O R D E R _ T O T A L ) > = 1 0 0 0 0      

D e n i n g a u d i t a c t i o n s    

Y o u c a n c h o o s e a n y c o m b i n a t i o n o f t h e a c t i o n s l i s t e d f o r n o t i c a t i o n o f a n a u d i t    

f a i l u r e :  

• E - m a i l t o l i s t : D a t a S e r v i c e s s e n d s a n o t i c a t i o n o f w h i c h a u d i t r u l e f a i l e d t o      

t h e E - m a i l a d d r e s s e s t h a t y o u l i s t i n t h i s o p t i o n . U s e a c o m m a t o s e p a r a t e t h e      

l i s t o f m a i l a d d r e s s e s . Y o u c a n s p e c i f y a v a r i a b l e f o r t h e m a i l l i s t .  

T h i s o p t i o n u s e s t h e s m t p _ t o f u n c t i o n t o s e n d E - m a i l . Y o u m u s t d e n e t h e      

s e r v e r a n d s e n d e r f o r t h e S i m p l e M a i l T o o l P r o t o c o l ( S M T P ) i n t h e D a t a      

S e r v i c e s S e r v e r M a n a g e r .  

• S c r i p t : D a t a S e r v i c e s e x e c u t e s t h e c u s t o m s c r i p t t h a t y o u c r e a t e i n t h i s o p t i o n .  

• R a i s e e x c e p t i o n : W h e n a n a u d i t r u l e f a i l s , t h e E r r o r L o g s h o w s t h e r u l e t h a t    

f a i l e d . T h e j o b s t o p s a t t h e r s t a u d i t r u l e t h a t f a i l s . T h i s i s a n e x a m p l e o f a      

m e s s a g e i n t h e E r r o r L o g :  

 A u d i t r u l e f a i l e d < ( $ C h e c k s u m _ O D S _ C U S T O M E R = $ C o u n t _ C U S T _ D I M ) >    

 f o r o r D e m o _ D F > . 

T h i s a c t i o n i s t h e d e f a u l t . I f y o u c l e a r t h i s a c t i o n a n d a n a u d i t r u l e f a i l s ,    

t h e j o b c o m p l e t e s s u c c e s s f u l l y a n d t h e a u d i t d o e s n o t w r i t e m e s s a g e s t o      

t h e j o b l o g .  

I f y o u c h o o s e a l l t h r e e a c t i o n s , D a t a S e r v i c e s e x e c u t e s t h e m i n t h e o r d e r p r e s e n t e d .  Y o u c a n s e e t h e a u d i t s t a t u s i n o n e o f t h e s e p l a c e s :  

P l a c e s w h e r e y o u c a n v i e w a u d i t i n f o r m a t i o n A c t i o n o n F a i l u r e      

J o b E r r o r L o g , M e t a d a t a R e p o r t s R a i s e a n e x c e p t i o n      

E - m a i l m e s s a g e , M e t a d a t a R e p o r t s E - m a i l t o l i s t    

W h e r e v e r t h e c u s t o m s c r i p t s e n d s t h e a u d i t m e s s a g e s ,    

M e t a d a t a R e p o r t s    

S c r i p t    

1 5 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 173: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 173/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

F i g u r e 5 6 : D e n i n g A u d i t R u l e s a n d A c t i o n s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 5 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 174: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 174/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

T o d e n e a u d i t p o i n t s a n d r u l e s i n a d a t a o w :  

1 . O n t h e D a t a F l o w t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k a d a t a o w a n d      

s e l e c t      A u d i t      f r o m t h e m e n u .  

T h e     A u d i t      d i a l o g b o x d i s p l a y s w i t h a l i s t o f t h e o b j e c t s y o u c a n a u d i t , w i t h      

a n y a u d i t f u n c t i o n s a n d l a b e l s f o r t h o s e o b j e c t s .  

2 . O n t h e L a b e l t a b , r i g h t - c l i c k t h e o b j e c t y o u w a n t t o a u d i t a n d s e l e c t    

P r o p e r t i e s f r o m t h e m e n u .  

T h e     S c h e m a P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

3 . I n t h e        A u d i t      t a b o f t h e        S c h e m a P r o p e r t i e s      d i a l o g b o x , i n t h e        A u d i t f u n c t i o n      

d r o p d o w n l i s t , s e l e c t t h e a u d i t f u n c t i o n y o u w a n t t o u s e a g a i n s t t h i s d a t a      

o b j e c t t y p e . T h e a u d i t f u n c t i o n s d i s p l a y e d i n t h e d r o p d o w n m e n u d e p e n d o n      

t h e d a t a o b j e c t t y p e t h a t y o u h a v e s e l e c t e d .  

D e f a u l t v a l u e s a r e a s s i g n e d t o t h e a u d i t l a b e l s , w h i c h c a n b e c h a n g e d i f      

r e q u i r e d .  

4 . S e l e c t      O K .  

5 . R e p e a t s t e p 2 t o s t e p 4 f o r a l l a u d i t p o i n t s .  

6 . O n t h e R u l e t a b , u n d e r A u d i t i n g R u l e s , s e l e c t      A d d .    

T h e e x p r e s s i o n e d i t o r a c t i v a t e s a n d t h e C u s t o m o p t i o n s b e c o m e a v a i l a b l e f o r    

u s e . T h e e x p r e s s i o n e d i t o r c o n t a i n s t h r e e d r o p d o w n l i s t s w h e r e y o u s p e c i f y      

t h e a u d i t l a b e l s f o r t h e o b j e c t s y o u w a n t t o a u d i t a n d c h o o s e t h e B o o l e a n      

e x p r e s s i o n t o u s e b e t w e e n t h e s e l a b e l s .  

7 . I n t h e l e f t - h a n d - s i d e d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t t h e a u d i t    

l a b e l f o r t h e o b j e c t y o u w a n t t o a u d i t .  

8 . I n t h e o p e r a t o r d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t a B o o l e a n      

o p e r a t o r .  

9 . I n t h e r i g h t - h a n d - s i d e d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t t h e a u d i t    

l a b e l f o r t h e s e c o n d o b j e c t y o u w a n t t o a u d i t .  

I f y o u w a n t t o c o m p a r e a u d i t s t a t i s t i c s f o r o n e o r m o r e o b j e c t s a g a i n s t    

s t a t i s t i c s f o r m u l t i p l e o t h e r o b j e c t s o r a c o n s t a n t , s e l e c t t h e C u s t o m r a d i o      

 b u t t o n , a n d s e l e c t t h e e l l i p s i s b u t t o n b e s i d e F u n c t i o n s . T h i s o p e n s u p t h e   

f u l l - s i z e s m a r t e d i t o r w h e r e y o u c a n d r a g d i f f e r e n t f u n c t i o n s a n d l a b e l s t o      

u s e f o r a u d i t i n g .  

1 0 . R e p e a t s t e p 7 t o s t e p 1 0 f o r a l l a u d i t r u l e s .  

1 1 . U n d e r A c t i o n o n F a i l u r e , s e l e c t t h e a c t i o n y o u w a n t .  

1 2 . S e l e c t      C l o s e .    

1 6 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 175: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 175/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

T o t r a c e a u d i t d a t a      

1 . I n t h e p r o j e c t a r e a , r i g h t - c l i c k t h e j o b a n d s e l e c t      E x e c u t e        f r o m t h e m e n u .  

2 . I n t h e        E x e c u t i o n P r o p e r t i e s      w i n d o w , s e l e c t t h e        T r a c e        t a b .  

3 . S e l e c t      T r a c e A u d i t D a t a .    

4 . I n t h e        V a l u e        d r o p d o w n l i s t , s e l e c t Y e s .  

5 . S e l e c t      O K .  

T h e j o b e x e c u t e s a n d t h e j o b l o g d i s p l a y s t h e A u d i t m e s s a g e s b a s e d o n t h e      

a u d i t f u n c t i o n t h a t i s u s e d f o r t h e a u d i t o b j e c t .  

C h o o s i n g a u d i t p o i n t s    

W h e n y o u c h o o s e a u d i t p o i n t s , c o n s i d e r :  

• T h e D a t a S e r v i c e s o p t i m i z e r c a n n o t p u s h d o w n o p e r a t i o n s a f t e r t h e a u d i t     p o i n t . T h e r e f o r e , i f t h e p e r f o r m a n c e o f a q u e r y t h a t i s p u s h e d t o t h e d a t a b a s e   

s e r v e r i s m o r e i m p o r t a n t t h a n g a t h e r i n g a u d i t s t a t i s t i c s f r o m t h e s o u r c e ,    

d e n e t h e r s t a u d i t p o i n t o n t h e q u e r y o r l a t e r i n t h e d a t a o w .  

F o r e x a m p l e , s u p p o s e y o u r d a t a o w h a s a s o u r c e , a Q u e r y t r a n s f o r m , a n d a      

t a r g e t . T h e Q u e r y h a s a W H E R E c l a u s e t h a t i s p u s h e d t o t h e d a t a b a s e s e r v e r    

t h a t s i g n i c a n t l y r e d u c e s t h e a m o u n t o f d a t a t h a t r e t u r n s t o D a t a S e r v i c e s .  

D e n e t h e r s t a u d i t p o i n t o n t h e Q u e r y , r a t h e r t h a n o n t h e s o u r c e , t o o b t a i n      

a u d i t s t a t i s t i c s o n t h e r e s u l t s .  

• I f a p u s h d o w n _ s q l f u n c t i o n i s a f t e r a n a u d i t p o i n t , D a t a S e r v i c e s c a n n o t    

e x e c u t e i t .  

• T h e a u d i t i n g f e a t u r e i s d i s a b l e d w h e n y o u r u n a j o b w i t h t h e d e b u g g e r .  

• I f y o u u s e t h e C H E C K S U M a u d i t f u n c t i o n i n a j o b t h a t e x e c u t e s i n p a r a l l e l ,    

D a t a S e r v i c e s d i s a b l e s t h e D e g r e e s o f P a r a l l e l i s m ( D O P ) f o r t h e w h o l e d a t a      

o w . T h e o r d e r o f r o w s i s i m p o r t a n t f o r t h e r e s u l t o f C H E C K S U M , a n d D O P      

 p r o c e s s e s t h e r o w s i n a d i f f e r e n t o r d e r t h a n i n t h e s o u r c e . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 6 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 176: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 176/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

1 6 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 177: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 177/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

E x e r c i s e 9 : U s i n g A u d i t i n g i n a D a t a o w          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e a u d i t p o i n t s , l a b e l s a n d r u l e s t o v a l i d a t e t h e a c c u r a c y o f a d a t a o w j o b      

B u s i n e s s E x a m p l e      

Y o u m u s t e n s u r e t h a t a l l r e c o r d s f r o m t h e C u s t o m e r t a b l e i n t h e A l p h a d a t a b a s e      

a r e b e i n g m o v e d t o t h e D e l t a s t a g i n g d a t a b a s e u s i n g t h e a u d i t l o g s .  

T a s k :    

I n t h e L o c a l O b j e c t L i b r a r y , s e t u p a u d i t i n g o n t h e d a t a o w A l p h a _ C u s t o m e r s _ D F      

 b y a d d i n g a n a u d i t p o i n t s t o c o m p a r e t h e t o t a l n u m b e r o f r e c o r d s i n t h e s o u r c e   

a n d t a r g e t t a b l e s .  

1 . A d d a n a u d i t p o i n t i n t h e        A l p h a _ C u s t o m e r s _ D F        d a t a o w t o c o u n t t h e      

t o t a l n u m b e r o f r e c o r d s i n t h e s o u r c e t a b l e      

2 . A d d a n a u d i t p o i n t i n t h e        A l p h a _ C u s t o m e r s _ D F        d a t a o w t o c o u n t t h e      

t o t a l n u m b e r o f r e c o r d s i n t h e t a r g e t t a b l e      

3 . C o n s t r u c t a n a u d i t r u l e t h a t a n e x c e p t i o n m u s t b e e n t e r e d i n t o t h e l o g i f t h e      

c o u n t f r o m b o t h t a b l e s i s n o t t h e s a m e .  

4 . E n a b l e a u d i t i n g f o r t h e e x e c u t i o n o f t h e        A l p h a _ C u s t o m e r s _ J o b        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 6 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 178: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 178/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

S o l u t i o n 9 : U s i n g A u d i t i n g i n a D a t a o w          

T a s k :    

I n t h e L o c a l O b j e c t L i b r a r y , s e t u p a u d i t i n g o n t h e d a t a o w A l p h a _ C u s t o m e r s _ D F      

 b y a d d i n g a n a u d i t p o i n t s t o c o m p a r e t h e t o t a l n u m b e r o f r e c o r d s i n t h e s o u r c e   

a n d t a r g e t t a b l e s .  

1 . A d d a n a u d i t p o i n t i n t h e        A l p h a _ C u s t o m e r s _ D F        d a t a o w t o c o u n t t h e      

t o t a l n u m b e r o f r e c o r d s i n t h e s o u r c e t a b l e      

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a F l o w          t a b a n d t h e n r i g h t    

c l i c k t h e d a t a o w A l p h a _ C u s t o m e r s _ D F t o s e l e c t t h e o p t i o n        A u d i t     . 

 b ) T h e     A u d i t      d i a l o g b o x d i s p l a y s w i t h a l i s t o f t h e o b j e c t s y o u c a n a u d i t    

w i t h a n y a u d i t f u n c t i o n s a n d l a b e l s f o r t h o s e o b j e c t s .  

O n t h e        L a b e l      t a b , r i g h t c l i c k t h e s o u r c e t a b l e “ C u s t o m e r ” a n d s e l e c t    

 P r o p e r t i e s    f r o m t h e m e n u . T h e        S c h e m a P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

c ) I n t h e        A u d i t      t a b o f t h e        S c h e m a P r o p e r t i e s      d i a l o g b o x , g o t o t h e e l d      

 A u d i t f u n c t i o n     . U s e t h e d r o p - d o w n l i s t t o s e l e c t t h e a u d i t f u n c t i o n      

C o u n t     . T h e n s e l e c t      O K      . 

2 . A d d a n a u d i t p o i n t i n t h e        A l p h a _ C u s t o m e r s _ D F        d a t a o w t o c o u n t t h e      

t o t a l n u m b e r o f r e c o r d s i n t h e t a r g e t t a b l e      

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a F l o w          t a b a n d t h e n r i g h t    

c l i c k t h e d a t a o w A l p h a _ C u s t o m e r s _ D F t o s e l e c t t h e o p t i o n        A u d i t     . 

 b ) T h e     A u d i t      d i a l o g b o x d i s p l a y s w i t h a l i s t o f t h e o b j e c t s y o u c a n a u d i t    

w i t h a n y a u d i t f u n c t i o n s a n d l a b e l s f o r t h o s e o b j e c t s .  

O n t h e        L a b e l      t a b , r i g h t c l i c k t h e t a r g e t t a b l e a n d s e l e c t      P r o p e r t i e s      f r o m          

t h e m e n u . T h e        S c h e m a P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

c ) I n t h e        A u d i t      t a b o f t h e        S c h e m a P r o p e r t i e s      d i a l o g b o x , g o t o t h e e l d      

 A u d i t f u n c t i o n     . U s e t h e d r o p - d o w n l i s t t o s e l e c t t h e a u d i t f u n c t i o n      

C o u n t     . T h e n s e l e c t      O K      . 

C o n t i n u e d o n n e x t p a g e      

1 6 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 179: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 179/472

B O D S 1 0 L e s s o n : S e t t i n g u p a n d U s i n g t h e A u d i t i n g F e a t u r e      

3 . C o n s t r u c t a n a u d i t r u l e t h a t a n e x c e p t i o n m u s t b e e n t e r e d i n t o t h e l o g i f t h e      

c o u n t f r o m b o t h t a b l e s i s n o t t h e s a m e .  

a ) I n t h e        R u l e        t a b , u n d e r      A u d i t i n g R u l e s      , s e l e c t      A d d     . 

 b ) T h e e x p r e s s i o n e d i t o r o p e n s a n d c o n t a i n s t h r e e d r o p - d o w n l i s t s w h e r e   

y o u s p e c i f y t h e a u d i t l a b e l s f o r t h e o b j e c t s y o u w a n t t o a u d i t a n d c h o o s e      

t h e B o o l e a n e x p r e s s i o n t o u s e b e t w e e n t h e s e l a b e l s .  

I n t h e l e f t - h a n d s i d e d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t t h e      

a u d i t l a b e l f o r t h e s o u r c e t a b l e .  

c ) I n t h e o p e r a t o r d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t e i t h e r t h e      

B o o l e a n o p e r a t o r      L e s s t h a n ( < )      o r    G r e a t e r t h a n ( > )      . 

d ) I n t h e r i g h t - h a n d d r o p d o w n l i s t i n t h e e x p r e s s i o n e d i t o r , s e l e c t t h e a u d i t    

l a b e l f o r t h e t a r g e t t a b l e .  e ) I n t h e e x p r e s s i o n e d i t o r , u n d e r      A c t i o n o n f a i l u r e        , s e l e c t t h e c h e c k b o x      

f o r t h e o p t i o n        R a i s e e x c e p t i o n .    T h e n s e l e c t      C l o s e        . 

4 . E n a b l e a u d i t i n g f o r t h e e x e c u t i o n o f t h e        A l p h a _ C u s t o m e r s _ J o b        . 

a ) R i g h t - c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        t o s e l e c t      E x e c u t e        . 

 b ) I n t h e     E x e c u t i o n P r o p e r t i e s      d i a l o g b o x , g o t o t h e        E x e c u t i o n O p t i o n s      t a b   

a n d s e l e c t t h e c h e c k b o x f o r      E n a b l e a u d i t i n g        . 

c ) I n t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x , g o t o t h e        T r a c e        t a b a n d e n a b l e      

t h e o p t i o n        T r a c e a u d i t d a t a        . 

d ) T h e n s e l e c t      O K      a n d y o u s e e t h a t t h e a u d i t r u l e p a s s e s v a l i d a t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 6 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 180: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 180/472

U n i t 4 : T r o u b l e s h o o t i n g B a t c h J o b s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e a u d i t i n g i n d a t a o w s    

R e l a t e d I n f o r m a t i o n      

F o r m o r e i n f o r m a t i o n o n D O P , s e e “ U s i n g P a r a l l e l E x e c u t i o n ” a n d “ M a x i m i z i n g      

t h e n u m b e r o f p u s h - d o w n o p e r a t i o n s ” i n t h e        D a t a S e r v i c e s P e r f o r m a n c e      

O p t i m i z a t i o n G u i d e .  

1 6 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 181: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 181/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

• U s e d e s c r i p t i o n s a n d a n n o t a t i o n s    

• S e t t i n g t r a c e s o n j o b s    

• U s e t h e V i e w D a t a F u n c t i o n      

• U s e t h e I n t e r a c t i v e D e b u g g e r    

• U s e a u d i t i n g i n d a t a o w s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 6 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 182: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 182/472

U n i t S u m m a r y B O D S 1 0      

1 6 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 183: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 183/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 184: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 184/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 185: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 185/472

U n i t 5        U s i n g F u n c t i o n s , S c r i p t s a n d      

V a r i a b l e s      

U n i t O v e r v i e w          

D a t a S e r v i c e s g i v e s y o u t h e a b i l i t y t o p e r f o r m c o m p l e x o p e r a t i o n s u s i n g b u i l t - i n      f u n c t i o n s . Y o u c a n e x t e n d t h e e x i b i l i t y a n d r e u s a b i l i t y o f o b j e c t s b y w r i t i n g      

s c r i p t s , c u s t o m f u n c t i o n s , a n d e x p r e s s i o n s u s i n g D a t a S e r v i c e s s c r i p t i n g l a n g u a g e      

a n d v a r i a b l e s .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e s e a r c h _ r e p l a c e f u n c t i o n      

• U s e t h e l o o k u p _ e x t f u n c t i o n      • U s e t h e d e c o d e f u n c t i o n      

• U s e v a r i a b l e s a n d p a r a m e t e r s    

• U s e D a t a S e r v i c e s s c r i p t i n g l a n g u a g e      

• C r e a t e a c u s t o m f u n c t i o n      

U n i t C o n t e n t s      

L e s s o n : U s i n g B u i l t - I n F u n c t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 0      

E x e r c i s e 1 0 : U s i n g t h e s e a r c h _ r e p l a c e f u n c t i o n . . . . . . . . . . . . . . . . . . . . . . . 1 8 1    

E x e r c i s e 1 1 : U s i n g t h e l o o k u p _ e x t ( ) f u n c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 5      

E x e r c i s e 1 2 : U s i n g t h e d e c o d e f u n c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 9      L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s . . . . . . . . . . . . . . . . . . . . . . . . . 1 9 7      

E x e r c i s e 1 3 : C r e a t i n g a c u s t o m f u n c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 1    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 6 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 186: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 186/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

L e s s o n O v e r v i e w          

D a t a S e r v i c e s g i v e s y o u t h e a b i l i t y t o p e r f o r m c o m p l e x o p e r a t i o n s u s i n g f u n c t i o n s    

a n d t o e x t e n d t h e e x i b i l i t y a n d r e u s a b i l i t y o f b u i l t - i n f u n c t i o n s u s i n g o t h e r D a t a      

S e r v i c e s f e a t u r e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e s e a r c h _ r e p l a c e f u n c t i o n      

• U s e t h e l o o k u p _ e x t f u n c t i o n      

• U s e t h e d e c o d e f u n c t i o n      

B u s i n e s s E x a m p l e      

Y o u w a n t t o l o a d d a t a f r o m a n e x t e r n a l s y s t e m i n t o S A P N e t W e a v e r B u s i n e s s    

W a r e h o u s e u s i n g a t l e s . Y o u a l s o w a n t t o c o n s i d e r t h e o p t i o n o f l o a d i n g d a t a      

 b y d e l t a u p l o a d . Y o u a l s o c o n s i d e r a n a l t e r n a t i v e m e t h o d . Y o u c a n u s e t h e D B    

C o n n e c t f u n c t i o n s f o r d i r e c t d a t a e x t r a c t i o n i n t o B W f r o m t a b l e s a n d v i e w s o f a      

d a t a b a s e m a n a g e m e n t s y s t e m t h a t i s d i r e c t l y c o n n e c t e d t o B W .  

U s i n g f u n c t i o n s      

D e n i n g f u n c t i o n s    

N o t e :      D a t a S e r v i c e s d o e s n o t s u p p o r t f u n c t i o n s t h a t i n c l u d e t a b l e s a s    

i n p u t o r o u t p u t p a r a m e t e r s , e x c e p t f u n c t i o n s i m p o r t e d f r o m S A P E R P .  

L i s t i n g t h e t y p e s o f o p e r a t i o n s f o r f u n c t i o n s    

F u n c t i o n s a r e g r o u p e d i n t o d i f f e r e n t c a t e g o r i e s :  

T y p e D e s c r i p t i o n      

A g g r e g a t e F u n c t i o n s P e r f o r m s c a l c u l a t i o n s o n n u m e r i c v a l u e s .  

C o n v e r s i o n F u n c t i o n s C o n v e r t s v a l u e s t o s p e c i c d a t a t y p e s .  

C u s t o m F u n c t i o n s P e r f o r m s f u n c t i o n s d e n e d b y t h e u s e r .  

D a t a b a s e F u n c t i o n s P e r f o r m s o p e r a t i o n s s p e c i c t o d a t a b a s e s .  

D a t e F u n c t i o n s      P e r f o r m s c a l c u l a t i o n s a n d c o n v e r s i o n s o n      

d a t e v a l u e s .  

1 7 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 187: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 187/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

E n v i r o n m e n t F u n c t i o n s      P e r f o r m s o p e r a t i o n s s p e c i c t o y o u r D a t a      

S e r v i c e s e n v i r o n m e n t .  

L o o k U p F u n c t i o n s L o o k s u p d a t a i n o t h e r t a b l e s .  

M a t h F u n c t i o n s      P e r f o r m s c o m p l e x m a t h e m a t i c a l    

o p e r a t i o n s o n n u m e r i c v a l u e s .  

M i s c e l l a n e o u s F u n c t i o n s P e r f o r m s v a r i o u s o p e r a t i o n s    

S t r i n g F u n c t i o n s      P e r f o r m s o p e r a t i o n s o n a l p h a n u m e r i c      

s t r i n g s o f d a t a .  

S y s t e m F u n c t i o n s P e r f o r m s s y s t e m o p e r a t i o n s .  

V a l i d a t i o n F u n c t i o n s V a l i d a t e s s p e c i c t y p e s o f v a l u e s .  

O t h e r t y p e s o f f u n c t i o n s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 188: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 188/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

I n a d d i t i o n t o t h e s e l i s t e d b u i l t - i n f u n c t i o n s , y o u c a n a l s o u s e t h e s e f u n c t i o n s :  

• D a t a b a s e a n d a p p l i c a t i o n f u n c t i o n s :  

T h e s e f u n c t i o n s a r e s p e c i c t o y o u r R D B M S . Y o u c a n i m p o r t t h e m e t a d a t a      

f o r d a t a b a s e a n d a p p l i c a t i o n f u n c t i o n s a n d u s e t h e m i n D a t a S e r v i c e s    

a p p l i c a t i o n s . A t r u n t i m e , D a t a S e r v i c e s p a s s e s t h e a p p r o p r i a t e i n f o r m a t i o n t o      

t h e d a t a b a s e o r a p p l i c a t i o n f r o m w h i c h t h e f u n c t i o n w a s i m p o r t e d .  

T h e m e t a d a t a f o r a f u n c t i o n i n c l u d e s t h e i n p u t , o u t p u t , a n d t h e i r d a t a t y p e s .  

I f t h e r e a r e r e s t r i c t i o n s o n d a t a p a s s e d t o t h e f u n c t i o n , s u c h a s r e q u i r i n g      

u p p e r c a s e v a l u e s o r l i m i t i n g d a t a t o a s p e c i c r a n g e , y o u m u s t e n f o r c e t h e s e      

r e s t r i c t i o n s i n t h e i n p u t . Y o u c a n e i t h e r t e s t t h e d a t a b e f o r e e x t r a c t i o n o r    

i n c l u d e l o g i c i n t h e d a t a o w t h a t c a l l s t h e f u n c t i o n .  

Y o u c a n i m p o r t s t o r e d p r o c e d u r e s f r o m D B 2 , M i c r o s o f t S Q L S e r v e r , O r a c l e ,    

a n d S y b a s e d a t a b a s e s . Y o u c a n a l s o i m p o r t s t o r e d p a c k a g e s f r o m O r a c l e .  

S t o r e d f u n c t i o n s f r o m S Q L S e r v e r c a n a l s o b e i m p o r t e d .  

• C u s t o m f u n c t i o n s :  

T h e s e a r e f u n c t i o n s t h a t y o u d e n e . Y o u c a n c r e a t e y o u r o w n f u n c t i o n s b y      

w r i t i n g s c r i p t f u n c t i o n s u s i n g D a t a S e r v i c e s s c r i p t i n g l a n g u a g e .  

• N e w c r y p t o g r a p h i c f u n c t i o n s t o e n c r y p t a n d d e c r y p t d a t a u s i n g t h e A E S      

a l g o r i t h m :  

T h e k e y l e n g t h u s e d f o r t h e e n c r y p t i o n c a n b e s p e c i e d a s a p a r a m e t e r    

( 1 2 8 , 1 9 2 , o r 2 5 6 ) . B a s e d o n t h e p a s s p h r a s e , a k e y w i t h t h e r e q u i r e d      

l e n g t h w i l l b e g e n e r a t e d . T h e p a s s p h r a s e i s n e e d e d t o d e c r y p t t h e d a t a      a g a i n . T h e o u t p u t o f t h e e n c r y p t i o n f u n c t i o n w i l l r e s u l t i n a s t r i n g o f      

l e n g t h : ( s i z e _ o f _ i n p u t _ s t r i n g + 1 6 ) * 1 . 3 . T h e s y n t a x i s : e n c r y p t _ A E S      

( i n p u t _ s t r i n g , p a s s p h r a s e , k e y _ l e n g t h ) d e c r y p t _ A E S ( i n p u t _ s t r i n g ,    

 p a s s p h r a s e , k e y _ l e n g t h ) . 

• N e w g e n _ U U I D f u n c t i o n :  

T h i s i s u s e d t o g e n e r a t e U n i v e r s a l l y U n i q u e I d e n t i e r s U n i q u e a c r o s s s p a c e      

( h o s t , p r o c e s s , t h r e a d ) a n d t i m e . B a s e d o n R F C 4 1 2 2 - V e r s i o n 1 ( T i m e s t a m p      

 b a s e d ) , t h e G e n e r a t e d I D i s a V A R C H A R t h a t i s 3 2 c h a r a c t e r s l o n g . 

U s i n g f u n c t i o n s i n e x p r e s s i o n s      F u n c t i o n s c a n b e u s e d i n e x p r e s s i o n s t o m a p r e t u r n v a l u e s a s n e w c o l u m n s ,    

w h i c h a l l o w s c o l u m n s t h a t a r e n o t i n t h e i n i t i a l i n p u t d a t a s e t t o b e s p e c i e d i n      

t h e o u t p u t d a t a s e t .  

D e n i n g f u n c t i o n s i n e x p r e s s i o n s    

1 7 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 189: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 189/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

F u n c t i o n s a r e t y p i c a l l y u s e d t o a d d c o l u m n s b a s e d o n s o m e o t h e r v a l u e ( l o o k u p      

f u n c t i o n ) o r g e n e r a t e d k e y e l d s . Y o u c a n u s e f u n c t i o n s i n :  

• T r a n s f o r m s : T h e Q u e r y , C a s e , a n d S Q L t r a n s f o r m s s u p p o r t f u n c t i o n s .  

• S c r i p t s : T h e s e a r e s i n g l e - u s e o b j e c t s u s e d t o c a l l f u n c t i o n s a n d a s s i g n v a l u e s    

t o v a r i a b l e s i n a w o r k o w .  

• C o n d i t i o n a l s : T h e s e a r e s i n g l e - u s e o b j e c t s u s e d t o i m p l e m e n t b r a n c h l o g i c      

i n a w o r k o w .  

• O t h e r c u s t o m f u n c t i o n s : T h e s e a r e f u n c t i o n s t h a t y o u c r e a t e a s r e q u i r e d .  

B e f o r e y o u u s e a f u n c t i o n , y o u n e e d t o k n o w i f t h e f u n c t i o n ’ s o p e r a t i o n m a k e s    

s e n s e i n t h e e x p r e s s i o n y o u a r e c r e a t i n g . F o r e x a m p l e , t h e “ m a x ” f u n c t i o n c a n n o t    

 b e u s e d i n a s c r i p t o r c o n d i t i o n a l w h e r e t h e r e i s n o c o l l e c t i o n o f v a l u e s o n w h i c h   

t o o p e r a t e .  

Y o u c a n a d d e x i s t i n g f u n c t i o n s i n a n e x p r e s s i o n b y u s i n g t h e S m a r t E d i t o r o r t h e      

F u n c t i o n w i z a r d . T h e S m a r t E d i t o r o f f e r s y o u m a n y o p t i o n s , i n c l u d i n g v a r i a b l e s ,    

d a t a t y p e s , k e y b o a r d s h o r t c u t s , a n d s o o n .  

F i g u r e 5 7 : F u n c t i o n s : S m a r t E d i t o r      

T h e F u n c t i o n w i z a r d a l l o w s y o u t o d e n e p a r a m e t e r s f o r a n e x i s t i n g f u n c t i o n a n d      

i s r e c o m m e n d e d f o r d e n i n g c o m p l e x f u n c t i o n s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 190: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 190/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

F i g u r e 5 8 : F u n c t i o n s : F u n c t i o n W i z a r d      

T o u s e t h e S m a r t E d i t o r    

1 . O p e n t h e o b j e c t i n w h i c h y o u w a n t t o u s e a n e x p r e s s i o n .  

2 . S e l e c t t h e        e l l i p s e s ( . . . )      b u t t o n a n d t h e S m a r t E d i t o r a p p e a r s .  

3 . S e l e c t t h e        F u n c t i o n s      t a b a n d e x p a n d a f u n c t i o n c a t e g o r y .  

T o u s e t h e F u n c t i o n w i z a r d      

1 . O p e n t h e o b j e c t i n w h i c h y o u w a n t t o u s e a n e x p r e s s i o n .  

2 . S e l e c t      F u n c t i o n s      . 

T h e     S e l e c t F u n c t i o n        d i a l o g b o x o p e n s .  

3 . I n t h e        F u n c t i o n        l i s t , s e l e c t a c a t e g o r y .  

U s i n g t h e l o o k u p f u n c t i o n s      

L o o k u p f u n c t i o n s a l l o w y o u t o l o o k u p v a l u e s i n o t h e r t a b l e s t o p o p u l a t e c o l u m n s .  

U s i n g l o o k u p t a b l e s    

L o o k u p f u n c t i o n s a l l o w y o u t o u s e v a l u e s f r o m t h e s o u r c e t a b l e t o l o o k u p v a l u e s    

i n o t h e r t a b l e s t o g e n e r a t e t h e d a t a t h a t p o p u l a t e s t h e t a r g e t t a b l e .  

1 7 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 191: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 191/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

F i g u r e 5 9 : U s i n g t h e L o o k u p F u n c t i o n      

L o o k u p s e n a b l e y o u t o s t o r e r e u s a b l e v a l u e s i n m e m o r y t o s p e e d u p t h e p r o c e s s .  

L o o k u p s a r e u s e f u l f o r v a l u e s t h a t r a r e l y c h a n g e .  

T h e l o o k u p , l o o k u p _ s e q , a n d l o o k u p _ e x t f u n c t i o n s a l l p r o v i d e a s p e c i a l i z e d t y p e      

o f j o i n , s i m i l a r t o a n S Q L o u t e r j o i n . W h i l e a S Q L o u t e r j o i n m a y r e t u r n m u l t i p l e      

m a t c h e s f o r a s i n g l e r e c o r d i n t h e o u t e r t a b l e , l o o k u p f u n c t i o n s a l w a y s r e t u r n      

e x a c t l y t h e s a m e n u m b e r o f r e c o r d s t h a t a r e i n t h e s o u r c e t a b l e .  

W h i l e a l l l o o k u p f u n c t i o n s r e t u r n o n e r o w f o r e a c h r o w i n t h e s o u r c e , t h e y d i f f e r    

i n h o w t h e y c h o o s e w h i c h o f s e v e r a l m a t c h i n g r o w s t o r e t u r n :  

• L o o k u p d o e s n o t p r o v i d e a d d i t i o n a l o p t i o n s f o r t h e l o o k u p e x p r e s s i o n .  

• L o o k u p _ e x t a l l o w s y o u t o s p e c i f y a n O r d e r b y c o l u m n a n d R e t u r n p o l i c y      

( M i n , M a x ) t o r e t u r n t h e r e c o r d w i t h t h e h i g h e s t / l o w e s t v a l u e i n a g i v e n      

e l d ( f o r e x a m p l e , a s u r r o g a t e k e y ) .  

• L o o k u p _ s e q s e a r c h e s i n m a t c h i n g r e c o r d s t o r e t u r n a e l d f r o m t h e r e c o r d      

w h e r e t h e s e q u e n c e c o l u m n ( f o r e x a m p l e , e f f e c t i v e _ d a t e ) i s c l o s e s t t o b u t n o t    

g r e a t e r t h a n a s p e c i e d s e q u e n c e v a l u e ( f o r e x a m p l e , a t r a n s a c t i o n d a t e ) .  

T h e l o o k u p _ e x t f u n c t i o n i s r e c o m m e n d e d f o r l o o k u p o p e r a t i o n s b e c a u s e o f i t s    e n h a n c e d o p t i o n s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 192: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 192/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

F i g u r e 6 0 : C o m p a r i s o n : L o o k u p a n d L o o k u p _ e x t    

1 7 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 193: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 193/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

Y o u c a n u s e t h i s f u n c t i o n t o r e t r i e v e a v a l u e i n a t a b l e o r l e b a s e d o n t h e v a l u e s    

i n a d i f f e r e n t s o u r c e t a b l e o r l e . T h i s f u n c t i o n a l s o e x t e n d s f u n c t i o n a l i t y b y      

a l l o w i n g y o u t o :  

• R e t u r n m u l t i p l e c o l u m n s f r o m a s i n g l e l o o k u p .  

• C h o o s e f r o m m o r e o p e r a t o r s t o s p e c i f y a l o o k u p c o n d i t i o n .  

• S p e c i f y a r e t u r n p o l i c y f o r y o u r l o o k u p .  

• P e r f o r m m u l t i p l e ( i n c l u d i n g r e c u r s i v e ) l o o k u p s .  

• C a l l l o o k u p _ e x t i n s c r i p t s a n d c u s t o m f u n c t i o n s . T h i s a l s o l e t s y o u r e u s e      

t h e l o o k u p s p a c k a g e d i n s i d e s c r i p t s .  

• D e n e c u s t o m S Q L u s i n g t h e S Q L _ o v e r r i d e p a r a m e t e r t o p o p u l a t e t h e      

l o o k u p c a c h e , n a r r o w i n g l a r g e q u a n t i t i e s o f d a t a f o r o n l y t h e s e c t i o n s    

r e l e v a n t f o r y o u r l o o k u p ( s ) .  

• U s e l o o k u p _ e x t t o d y n a m i c a l l y e x e c u t e S Q L .  

• C a l l l o o k u p _ e x t , u s i n g t h e F u n c t i o n w i z a r d , i n t h e q u e r y o u t p u t m a p p i n g t o      

r e t u r n m u l t i p l e c o l u m n s i n a Q u e r y t r a n s f o r m .  

• D e s i g n j o b s t o u s e l o o k u p _ e x t w i t h o u t h a v i n g t o h a r d c o d e t h e n a m e o f t h e      

t r a n s l a t i o n l e a t d e s i g n t i m e .  

• U s e l o o k u p _ e x t w i t h m e m o r y d a t a s t o r e t a b l e s .  

H i n t :      T h e r e a r e t w o w a y s t o u s e t h e l o o k u p _ e x t f u n c t i o n i n a Q u e r y      

o u t p u t s c h e m a .  

T h e r s t w a y i s t o m a p t o a s i n g l e o u t p u t c o l u m n i n t h e o u t p u t s c h e m a .  I n t h i s c a s e , t h e l o o k u p _ e x t i s l i m i t e d t o r e t u r n i n g v a l u e s f r o m a s i n g l e      

c o l u m n f r o m t h e l o o k u p ( t r a n s l a t e ) t a b l e .  

T h e s e c o n d w a y i s t o s p e c i f y a “ N e w O u t p u t F u n c t i o n C a l l ” ( r i g h t m o u s e      

s e l e c t o p t i o n ) i n t h e Q u e r y o u t p u t s c h e m a , w h i c h o p e n s t h e F u n c t i o n      

W i z a r d . Y o u c a n t h e n c o n g u r e t h e l o o k u p _ e x t w i t h m u l t i p l e c o l u m n s    

 b e i n g r e t u r n e d f r o m t h e l o o k u p ( t r a n s l a t e ) t a b l e f r o m a s i n g l e l o o k u p . 

T h i s h a s p e r f o r m a n c e b e n e t s a s w e l l a s a l l o w i n g y o u t o e a s i l y m o d i f y      

t h e f u n c t i o n c a l l a f t e r t h e i n i t i a l d e n i t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 194: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 194/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

T o c r e a t e a l o o k u p _ e x t e x p r e s s i o n      

1 . O p e n t h e Q u e r y t r a n s f o r m .  

T h e Q u e r y t r a n s f o r m s h o u l d h a v e a t l e a s t o n e m a i n s o u r c e t a b l e a n d o n e      

l o o k u p t a b l e , a n d i t m u s t b e c o n n e c t e d t o a s i n g l e t a r g e t o b j e c t .  

2 . S e l e c t t h e o u t p u t s c h e m a c o l u m n f o r w h i c h t h e l o o k u p f u n c t i o n i s b e i n g      

 p e r f o r m e d . 

3 . I n t h e M a p p i n g t a b , s e l e c t      F u n c t i o n s      . 

T h e     S e l e c t F u n c t i o n        w i n d o w o p e n s .  

4 . I n t h e        F u n c t i o n        l i s t , s e l e c t      L o o k u p F u n c t i o n s      . 

5 . I n t h e        F u n c t i o n        n a m e l i s t , s e l e c t      l o o k u p _ e x t     . 

6 . S e l e c t      N e x t     . T h e     L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x d i s p l a y s a s i n t h e g r a p h i c      

 b e l o w . 

F i g u r e 6 1 : L o o k u p _ e x t F u n c t i o n P a r a m e t e r s      

T h e L o o k u p _ e x t f u n c t i o n s e t s t h e c a c h e p a r a m e t e r t o t h e v a l u e        P R E - L O A F        

C A C H E          b y d e f a u l t . T h i s a f f e c t s h o w D a t a S e r v i c e s u s e s t h e r e c o r d s o f t h e l o o k u p      

t a b l e i n t h e c a c h e a n d h a s a d i r e c t r e l a t i o n s h i p t o t h e p e r f o r m a n c e o f t h e l o o k u p j o b .  

1 7 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 195: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 195/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

F i g u r e 6 2 : C a c h e S p e c i c a t i o n f o r L o o k u p        

D a t a S e r v i c e s h a s c a c h e s e t t i n g s a t v a r i o u s p o i n t s t o e f f e c t t h e p e r f o r m a n c e o f      

t h e j o b s .  

F i g u r e 6 3 : C a c h e G u i d e l i n e s      

U s i n g t h e d e c o d e f u n c t i o n      

Y o u c a n u s e t h e d e c o d e f u n c t i o n a s a n a l t e r n a t i v e t o n e s t e d i f / t h e n / e l s e c o n d i t i o n s .  

E x p l a i n i n g t h e d e c o d e f u n c t i o n      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 7 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 196: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 196/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

Y o u c a n u s e t h e d e c o d e f u n c t i o n t o r e t u r n a n e x p r e s s i o n b a s e d o n t h e r s t    

c o n d i t i o n i n t h e s p e c i e d l i s t o f c o n d i t i o n s a n d e x p r e s s i o n s t h a t e v a l u a t e s a s    

T R U E . I t p r o v i d e s a n a l t e r n a t e w a y t o w r i t e n e s t e d i f t h e n e l s e f u n c t i o n s .  U s e t h i s f u n c t i o n t o a p p l y m u l t i p l e c o n d i t i o n s w h e n y o u m a p c o l u m n s o r s e l e c t    

c o l u m n s i n a q u e r y . F o r e x a m p l e , y o u c a n u s e t h i s f u n c t i o n t o p u t c u s t o m e r s    

i n t o d i f f e r e n t g r o u p i n g s .  

T h e s y n t a x o f t h e d e c o d e f u n c t i o n u s e s t h e f o r m a t :  

d e c o d e ( c o n d i t i o n _ a n d _ e x p r e s s i o n _ l i s t , d e f a u l t _ e x p r e s s i o n )  

T h e d e c o d e f u n c t i o n p r o v i d e s a n e a s i e r w a y t o w r i t e n e s t e d i f t h e n e l s e f u n c t i o n s .  

I n n e s t e d i f t h e n e l s e f u n c t i o n s , y o u m u s t w r i t e n e s t e d c o n d i t i o n s a n d e n s u r e t h a t    

t h e p a r e n t h e s e s a r e i n t h e c o r r e c t p l a c e s a s i n t h i s e x a m p l e :  

i f t h e n e l s e ( ( E M P N O = 1 ) , ' 1 1 1 ' ,  

i f t h e n e l s e ( ( E M P N O = 2 ) , ' 2 2 2 ' ,  

i f t h e n e l s e ( ( E M P N O = 3 ) , ' 3 3 3 ' ,  

i f t h e n e l s e ( ( E M P N O = 4 ) , ' 4 4 4 ' ,  

' N O _ I D ' ) ) ) )  

I n t h e d e c o d e f u n c t i o n , y o u l i s t t h e c o n d i t i o n s a s i n t h i s e x a m p l e :  

d e c o d e ( ( E M P N O = 1 ) , ' 1 1 1 ' ,  

( E M P N O = 2 ) , ' 2 2 2 ' ,  

( E M P N O = 3 ) , ' 3 3 3 ' ,  

( E M P N O = 4 ) , ' 4 4 4 ' ,  

' ' N O _ I D ' )  

T h e d e c o d e f u n c t i o n i s l e s s p r o n e t o e r r o r t h a n n e s t e d i f t h e n e l s e f u n c t i o n s .  

T o i m p r o v e p e r f o r m a n c e , D a t a S e r v i c e s p u s h e s t h i s f u n c t i o n t o t h e d a t a b a s e s e r v e r    

w h e n p o s s i b l e s o t h a t t h e d a t a b a s e s e r v e r , r a t h e r t h a n D a t a I n t e g r a t o r , e v a l u a t e s    

t h e d e c o d e f u n c t i o n .  

1 8 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 197: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 197/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

E x e r c i s e 1 0 : U s i n g t h e s e a r c h _ r e p l a c e      

f u n c t i o n      E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e s e a r c h _ r e p l a c e f u n c t i o n i n a n e x p r e s s i o n t o c h a n g e i n c o r r e c t t i t l e s i n      

y o u r s o u r c e d a t a      

B u s i n e s s E x a m p l e      

W h e n e v a l u a t i n g t h e c u s t o m e r d a t a f o r A l p h a A c q u i s i t i o n s , y o u d i s c o v e r a      

d a t a e n t r y e r r o r . T h e c o n t a c t t i t l e o f “ A c c o u n t M a n a g e r ” h a s b e e n e n t e r e d a s    

“ A c c o u n t i n g M a n a g e r ” . Y o u w a n t t o c o r r e c t t h e s e e n t r i e s b e f o r e i t i s m o v e d      

t o t h e d a t a w a r e h o u s e .  

T a s k :    

U s e t h e s e a r c h _ r e p l a c e f u n c t i o n i n a n e x p r e s s i o n t o c h a n g e t h e c o n t a c t t i t l e f r o m          

“ A c c o u n t i n g M a n a g e r ” t o “ A c c o u n t M a n a g e r ” .  

1 . I n t h e        A l p h a _ C u s t o m e r s _ D F        w o r k s p a c e , d e l e t e a n e x i s t i n g e x p r e s s i o n      

f o r t h e        T i t l e        c o l u m n i n t h e Q u e r y t r a n s f o r m .  

2 . U s i n g t h e F u n c t i o n w i z a r d , c r e a t e a n e w e x p r e s s i o n f o r t h e        T i t l e        c o l u m n u s i n g      t h e s e a r c h _ r e p l a c e f u n c t i o n f o u n d u n d e r t h e c a t e g o r y o f “ S t r i n g ” f u n c t i o n s .  

3 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s a f t e r s a v i n g a l l o b j e c t s y o u h a v e c r e a t e d . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 8 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 198: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 198/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

S o l u t i o n 1 0 : U s i n g t h e s e a r c h _ r e p l a c e      

f u n c t i o n      T a s k :    

U s e t h e s e a r c h _ r e p l a c e f u n c t i o n i n a n e x p r e s s i o n t o c h a n g e t h e c o n t a c t t i t l e f r o m          

“ A c c o u n t i n g M a n a g e r ” t o “ A c c o u n t M a n a g e r ” .  

1 . I n t h e        A l p h a _ C u s t o m e r s _ D F        w o r k s p a c e , d e l e t e a n e x i s t i n g e x p r e s s i o n      

f o r t h e        T i t l e        c o l u m n i n t h e Q u e r y t r a n s f o r m .  

a ) I n t h e        A l p h a _ C u s t o m e r s _ D F        w o r k s p a c e , o p e n t h e t r a n s f o r m e d i t o r    

f o r t h e Q u e r y t r a n s f o r m b y d o u b l e - c l i c k i n g t h e Q u e r y t r a n s f o r m .  

 b ) I n t h e Q u e r y t r a n s f o r m , s e l e c t t h e e l d     T i t l e        i n t h e o u t p u t s c h e m a .  

c ) G o t o t h e        M a p p i n g        t a b f o r t h e        T i t l e        e l d a n d d e l e t e t h e e x i s t i n g      

e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e        b u t t o n o n y o u r    

k e y b o a r d .  

2 . U s i n g t h e F u n c t i o n w i z a r d , c r e a t e a n e w e x p r e s s i o n f o r t h e        T i t l e        c o l u m n u s i n g      

t h e s e a r c h _ r e p l a c e f u n c t i o n f o u n d u n d e r t h e c a t e g o r y o f “ S t r i n g ” f u n c t i o n s .  

a ) S e l e c t t h e        F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ S t r i n g F u n c t i o n s ” .  

 b ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e     s e a r c h _ r e p l a c e        f u n c t i o n      

a n d s e l e c t t h e        N e x t      b u t t o n .  

c ) I n t h e        D e n e I n p u t P a r a m e t e r s      d i a l o g b o x , s e l e c t t h e d r o p - d o w n a r r o w        

n e x t t o t h e e l d        I n p u t s t r i n g        . 

d ) I n t h e        I n p u t P a r a m e t e r s      d i a l o g b o x , s e l e c t b y d o u b l e - c l i c k i n g t h e s o u r c e      

o b j e c t      s o u r c e . c u s t o m e r        a n d c o l u m n        T i t l e        f o r t h e f u n c t i o n .  

e ) T y p e i n t h e f u l l s t r i n g f o r r e p l a c e m e n t a s      A c c o u n t i n g M a n a g e r      a n d t h e r e p l a c e m e n t s t r i n g a s      A c c o u n t M a n a g e r        . 

f ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

1 8 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 199: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 199/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

3 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s a f t e r s a v i n g a l l o b j e c t s y o u h a v e c r e a t e d . 

a ) R i g h t c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        l i s t e d u n d e r t h e        O m e g a       p r o j e c t a n d s e l e c t t h e o p t i o n     E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d b y s e l e c t i n g t h e        O K      b u t t o n i n t h e        S a v e a l l c h a n g e s a n d e x e c u t e      

d i a l o g b o x .  

c ) U s e t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a n d s e l e c t t h e        O K      b u t t o n .  

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d r i g h t c l i c k t h e t a r g e t t a b l e      

t o c h o o s e t h e o p t i o n        V i e w d a t a        . N o t e t h a t t h e t i t l e s f o r t h e a f f e c t e d      

c o n t a c t s a r e c h a n g e d .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 8 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 200: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 200/472

Page 201: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 201/472

Page 202: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 202/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

S o l u t i o n 1 1 : U s i n g t h e l o o k u p _ e x t ( )    

f u n c t i o n      T a s k :    

U s e t h e l o o k u p _ e x t f u n c t i o n t o e x c h a n g e t h e I D f o r t h e c o u n t r y n a m e i n t h e      

C u s t o m e r s t a b l e f o r A l p h a A c q u i s i t i o n s w i t h t h e a c t u a l v a l u e f r o m t h e C o u n t r i e s    

t a b l e .  

1 . I n t h e        A l p h a _ C u s t o m e r s _ D F        w o r k s p a c e , d e l e t e a n e x i s t i n g e x p r e s s i o n      

f o r t h e        C o u n t r y      c o l u m n i n t h e Q u e r y t r a n s f o r m .  

a ) I n t h e        A l p h a _ C u s t o m e r s _ D F        w o r k s p a c e , o p e n t h e t r a n s f o r m e d i t o r    

f o r t h e Q u e r y t r a n s f o r m b y d o u b l e - c l i c k i n g t h e Q u e r y t r a n s f o r m .  

 b ) I n t h e Q u e r y t r a n s f o r m , s e l e c t t h e e l d     C o u n t r y      i n t h e o u t p u t s c h e m a .  

c ) G o t o t h e        M a p p i n g        t a b f o r t h e        C o u n t r y      e l d a n d d e l e t e t h e e x i s t i n g      

e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e        b u t t o n o n y o u r    

k e y b o a r d .  

2 . U s e t h e F u n c t i o n s w i z a r d t o c r e a t e a n e w l o o k u p e x p r e s s i o n u s i n g t h e      

l o o k u p _ e x t f u n c t i o n .  

a ) S e l e c t t h e        F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

 b ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e     l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

c ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C O U N T R Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C O U N T R Y I D      

O p . ( & )       =   

E x p r e s s i o n         c u s t o m e r . C O U N T R Y I D      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         C O U N T R Y N A M E      

d ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

1 8 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 203: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 203/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

3 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s a f t e r s a v i n g a l l o b j e c t s y o u h a v e c r e a t e d . 

a ) R i g h t c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        l i s t e d u n d e r t h e        O m e g a       p r o j e c t a n d s e l e c t t h e o p t i o n     E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d b y s e l e c t i n g t h e        O K      b u t t o n i n t h e        S a v e a l l c h a n g e s a n d e x e c u t e      

d i a l o g b o x .  

c ) U s e t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a n d s e l e c t t h e        O K      b u t t o n .  

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d r i g h t c l i c k t h e t a r g e t t a b l e t o      

c h o o s e t h e o p t i o n        V i e w d a t a        . N o t e t h a t t h e c o u n t r y c o d e s a r e r e p l a c e d      

 b y t h e c o u n t r y n a m e s . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 8 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 204: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 204/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

1 8 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 205: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 205/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

E x e r c i s e 1 2 : U s i n g t h e d e c o d e f u n c t i o n      

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e d e c o d e f u n c t i o n      

B u s i n e s s E x a m p l e      

Y o u n e e d t o c a l c u l a t e t h e t o t a l v a l u e o f a l l o r d e r s , i n c l u d i n g t h e i r d i s c o u n t s , f o r    

r e p o r t i n g p u r p o s e s . C u r r e n t l y t h e s e d e t a i l s a r e f o u n d i n d i f f e r e n t t a b l e s .  

T a s k :    U s e t h e s u m a n d d e c o d e f u n c t i o n s t o c a l c u l a t e t h e t o t a l v a l u e o f o r d e r s i n t h e      

O r d e r _ D e t a i l s t a b l e .  

1 . C r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ O r d e r _ S u m _ J o b        w i t h a d a t a o w        

 A l p h a _ O r d e r _ S u m _ D F     . 

2 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , p r o p o s e a j o i n b e t w e e n      

t h e t w o s o u r c e t a b l e s .  

3 . I n t h e Q u e r y t r a n s f o r m , c r e a t e a n e w o u t p u t c o l u m n        T O T A L _ V A L U E        w h i c h      

w i l l h o l d t h e n e w c a l c u l a t i o n .  

4 . O n t h e        M a p p i n g        t a b o f t h e n e w o u t p u t c o l u m n , c o n s t r u c t a n e x p r e s s i o n t o      c a l c u l a t e t h e t o t a l v a l u e o f t h e o r d e r s u s i n g t h e d e c o d e a n d s u m f u n c t i o n s .  

T h e d i s c o u n t a n d o r d e r t o t a l c a n b e m u l t i p l i e d t o d e t e r m i n e t h e t o t a l a f t e r    

d i s c o u n t . T h e d e c o d e f u n c t i o n a l l o w s y o u t o a v o i d m u l t i p l y i n g o r d e r s w i t h      

z e r o d i s c o u n t b y z e r o .  

U s e t h e F u n c t i o n w i z a r d t o c o n s t r u c t t h e d e c o d e p o r t i o n o f t h e m a p p i n g .  

T h e n u s e t h e S m a r t E d i t o r t o w r a p t h e s u m f u n c t i o n a r o u n d t h e e x p r e s s i o n .  

T h e e x p r e s s i o n m u s t s p e c i f y t h a t i f t h e v a l u e i n t h e D I S C O U N T c o l u m n i s    

n o t z e r o , t h e n t h e t o t a l v a l u e o f t h e o r d e r i s c a l c u l a t e d b y m u l t i p l y i n g t h e      

Q U A N T I T Y f r o m t h e o r d e r _ d e t a i l s t a b l e b y t h e C O S T f r o m t h e p r o d u c t    

t a b l e . T h e n t h a t s u m i s m u l t i p l i e d b y t h e v a l u e o f t h e D I S C O U N T .  O t h e r w i s e t h e t o t a l v a l u e o f t h e o r d e r i s c a l c u l a t e d s i m p l y b y m u l t i p l y i n g t h e      

Q U A N I T I T Y f r o m t h e o r d e r _ d e t a i l s t a b l e b y t h e C O S T f r o m t h e p r o d u c t    

t a b l e .  

O n c e t h e s e v a l u e s a r e c a l c u l a t e d f o r e a c h o r d e r , a s u m m u s t b e c a l c u l a t e d      

f o r t h e e n t i r e c o l l e c t i o n o f o r d e r s .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 8 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 206: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 206/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

5 . N o w t h a t t h e e x p r e s s i o n c a n c a l c u l a t e t h e t o t a l o f t h e o r d e r v a l u e s , m a k e i t    

 p o s s i b l e f o r t h e Q u e r y t r a n s f o r m t o b e g i n a t t h e r s t o r d e r t h r o u g h t h e e n d o f   

t h e r e c o r d s i n t h e t a b l e b y u s i n g t h e        G o u p B y      t a b .  6 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s a f t e r s a v i n g a l l o b j e c t s y o u h a v e c r e a t e d . 

1 9 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 207: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 207/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

S o l u t i o n 1 2 : U s i n g t h e d e c o d e f u n c t i o n      

T a s k :    

U s e t h e s u m a n d d e c o d e f u n c t i o n s t o c a l c u l a t e t h e t o t a l v a l u e o f o r d e r s i n t h e      

O r d e r _ D e t a i l s t a b l e .  

1 . C r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ O r d e r _ S u m _ J o b        w i t h a d a t a o w        

 A l p h a _ O r d e r _ S u m _ D F     . 

a ) I n t h e P r o j e c t a r e a , r i g h t c l i c k y o u r O m e g a p r o j e c t a n d s e l e c t t h e o p t i o n      

 N e w b a t c h j o b     a n d e n t e r t h e n a m e        A l p h a _ O r d e r _ S u m _ J o b        . 

 b ) R i g h t c l i c k t h e     A l p h a _ O r d e r _ S u m _ J o b        t o s e l e c t t h e o p t i o n        N e w    

d a t a o w          a n d e n t e r t h e n a m e        A l p h a _ O r d e r _ S u m _ D F        . 

c ) F r o m t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b        D a t a s t o r e s      a n d l o c a t e      

t h e A l p h a d a t a s t o r e . F r o m t h e A l p h a d a t a s t o r e , d r a g a n d d r o p      

t h e     O r d e r _ D e t a i l s        t a b l e i n t o t h e        A l p h a _ O r d e r _ S u m _ D F      w o r k s p a c e . I n t h e d i a l o g b o x , c h o o s e t h e o p t i o n        M a k e S o u r c e        . . 

d ) F r o m t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b        D a t a s t o r e s      a n d l o c a t e      

t h e A l p h a d a t a s t o r e . F r o m t h e A l p h a d a t a s t o r e , d r a g a n d d r o p t h e      

P r o d u c t s        t a b l e i n t o t h e        A l p h a _ O r d e r _ S u m _ D F        w o r k s p a c e . I n      

t h e d i a l o g b o x , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

e ) F r o m t h e t o o l p a l e t t e , s e l e c t t h e i c o n f o r a        T e m p l a t e t a b l e        a n d t h e n      

c l i c k i n t h e        A l p h a _ O r d e r _ S u m _ D F        w o r k s p a c e t o p l a c e t h e t e m p l a t e      

t a b l e . E n t e r      o r d e r _ s u m          a s t h e t a b l e n a m e i n t h e        D e l t a        d a t a s t o r e .  

f ) F r o m t h e t o o l p a l e t t e , s e l e c t t h e i c o n f o r a        Q u e r y t r a n s f o r m          a n d t h e n      

c l i c k i n t h e        A l p h a _ O r d e r _ S u m _ D F        w o r k s p a c e t o p l a c e i t .  

g ) C o n n e c t t h e        O r d e r _ D e t a i l s        t a b l e t o t h e Q u e r y t r a n s f o r m b y      

s e l e c t i n g t h e s o u r c e t a b l e w h i l e h o l d i n g d o w n t h e m o u s e b u t t o n . D r a g      

t o t h e Q u e r y t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n .  

h ) C o n n e c t t h e        P r o d u c t s        t a b l e t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g t h e      

s o u r c e t a b l e w h i l e h o l d i n g d o w n t h e m o u s e b u t t o n . D r a g t o t h e Q u e r y      

t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n .  

i ) C o n n e c t t h e Q u e r y t r a n s f o r m b y s e l e c t i n g t h e t r a n s f o r m w h i l e h o l d i n g      

d o w n t h e m o u s e b u t t o n . D r a g t o t h e        o r d e r _ s u m          t a b l e a n d r e l e a s e t h e      

m o u s e b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 208: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 208/472

Page 209: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 209/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

c ) I n t h e e l d        C o n d i t i o n a l e x p r e s s i o n        n o w t y p e i n t h e        l e s s t h a n      s y m b o l f o l l o w e d b y t h e        g r e a t e r t h a n        s y m b o l .  

H i n t :      T h i s r e p r e s e n t s t h e e x p r e s s i o n “ i s n o t e q u a l t o ” .  

F i n a l l y , t y p e i n t h e n u m b e r      z e r o        . 

C l o s e t h i s e x p r e s s i o n b y t y p i n g a c l o s e p a r e n t h e s i s      )    . 

N o t e :      T h i s e x p r e s s i o n        ( O R D E R _ D E T A I L S . D I S O U N T < > 0 )  

t e s t s e a c h r e c o r d t o s e e i f t h e o r d e r h a s a n o n - z e r o d i s c o u n t .  

d ) I n t h e e l d        C a s e e x p r e s s i o n        t y p e i n t w o o p e n p a r e n t h e s e s      ( (     a n d t h e n      

s e l e c t t h e d r o p d o w n b o x a r r o w a n d d o u b l e - c l i c k t h e        O r d e r _ D e t a i l s    

t a b l e . T h e n s e l e c t t h e e l d        Q u a n t i t y      a n d t h e n s e l e c t      O K      . B a c k i n t h e      

d e c o d e        f u n c t i o n d i a l o g b o x , t y p e i n a n a s t e r i s k        *     w h i c h i s t h e s y m b o l    

f o r m u l t i p l i c a t i o n .  

S t i l l I n t h e e l d        C a s e e x p r e s s i o n        s e l e c t t h e d r o p d o w n b o x a r r o w        

a n d d o u b l e - c l i c k t h e        P r o d u c t s      t a b l e . T h e n s e l e c t t h e e l d        C o s t      a n d   

t h e n s e l e c t      O K      . B a c k i n t h e        d e c o d e        f u n c t i o n d i a l o g b o x , t y p e i n a      

c l o s e p a r e n t h e s i s      )    f o l l o w e d b y a n a s t e r i s k        *     w h i c h i s t h e s y m b o l f o r    

m u l t i p l i c a t i o n .  

S t i l l I n t h e e l d        C a s e e x p r e s s i o n        s e l e c t t h e d r o p d o w n b o x a r r o w a n d      

d o u b l e - c l i c k t h e        O r d e r _ D e t a i l s      t a b l e . T h e n s e l e c t t h e e l d        D i s c o u n t    

a n d t h e n s e l e c t      O K      . 

C l o s e t h i s e x p r e s s i o n b y t y p i n g a c l o s e p a r e n t h e s i s      )    . 

N o t e :      T h i s e x p r e s s i o n        ( ( O R D E R _ D E T A I L S . Q U A N T I T Y *      

 P R O D U C T . C O S T ) * O R D E R _ D E T A I L S . D I S C O U N T )   i s t h e      

e x p r e s s i o n w h i c h s h o u l d b e e x e c u t e d i f t h e d i s c o u n t i s n o t z e r o .  

e ) I n t h e e l d        D e f a u l t e x p r e s s i o n        t y p e i n a n o p e n p a r e n t h e s i s      (     a n d t h e n      

s e l e c t t h e d r o p d o w n b o x a r r o w a n d d o u b l e - c l i c k t h e        O r d e r _ D e t a i l s    

t a b l e . T h e n s e l e c t t h e e l d        Q u a n t i t y      a n d t h e n s e l e c t      O K      . B a c k i n t h e      

d e c o d e        f u n c t i o n d i a l o g b o x , t y p e i n a n a s t e r i s k        *     w h i c h i s t h e s y m b o l    

f o r m u l t i p l i c a t i o n .  S t i l l I n t h e e l d        C a s e e x p r e s s i o n        s e l e c t t h e d r o p d o w n b o x a r r o w a n d      

d o u b l e - c l i c k t h e        P r o d u c t s      t a b l e . T h e n s e l e c t t h e e l d        C o s t      a n d t h e n      

s e l e c t      O K      . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 210: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 210/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

C l o s e t h i s e x p r e s s i o n b y t y p i n g a c l o s e p a r e n t h e s i s      )    . 

N o t e :      T h e e x p r e s s i o n        ( O R D E R _ D E T A I L S . Q U A N T I T Y *       P R O D U C T . C O S T )   i s t h e e x p r e s s i o n e v a l u a t e d f o r e a c h r e c o r d      

w h i c h h a s a z e r o d i s c o u n t .  

N o t e :      T h e n a l e x p r e s s i o n s h o u l d b e :  

s u m ( d e c o d e ( o r d e r _ d e t a i l s . d i s c o u n t       < > 0 , ( o r d e r _ d e t a i l s . q u a n t i t y * p r o d -   u c t . c o s t ) * o r d e r _ d e t a i l s . d i s c o u n t ,    o r d e r _ d e t a i l s . q u a n t i t y * p r o d u c t . c o s t ) )    

f ) S e l e c t t h e        F i n i s h        b u t t o n a n d t o r e t u r n t o t h e        M a p p i n g        t a b o f t h e Q u e r y      t r a n s f o r m .  

g ) I n t h e        M a p p i n g        t a b o f t h e q u e r y t r a n s f o r m , p l a c e t h e c u r s o r a t t h e      

 b e g i n n i n g o f t h e e x p r e s s i o n a n d s e l e c t t h e S m a r t E d i t o r r e p r e s e n t e d b y   

t h e b u t t o n w i t h t h e e l i p s i s .  

I n t h e S m a r t E d i t o r , s e l e c t t h e        F u n c t i o n s      t a b a n d o p e n t h e        A g g r e g a t e      

c a t e g o r y n o d e b y s e l e c t i n g t h e p l u s s i g n t o i t s l e f t .  

 N o w s e l e c t t h e     s u m      f u n c t i o n a n d t h e n s e l e c t t h e        O K      b u t t o n .  

N o t e :      T h i s w i l l p l a c e t h e s u m f u n c t i o n a t t h e b e g i n n i n g o f t h e      

e x p r e s s i o n f o l l o w e d b y a n o p e n p a r e n t h e s i s . I f y o u s c r o l l t o t h e      e n d o f t h e e x p r e s s i o n , y o u w i l l n d t h a t t h e S m a r t E d i t o r h a s    

 p r o p e r l y p l a c e d a c l o s e p a r e n t h e s i s . 

H i n t :      I f y o u v a l i d a t e t h e e x p r e s s i o n , t h e v a l i d a t i o n w i l l f a i l .  

O n c e y o u c o m p l e t e t h e n e x t s t e p , t h e v a l i d a t i o n w i l l p a s s .  

5 . N o w t h a t t h e e x p r e s s i o n c a n c a l c u l a t e t h e t o t a l o f t h e o r d e r v a l u e s , m a k e i t    

 p o s s i b l e f o r t h e Q u e r y t r a n s f o r m t o b e g i n a t t h e r s t o r d e r t h r o u g h t h e e n d o f   

t h e r e c o r d s i n t h e t a b l e b y u s i n g t h e        G o u p B y      t a b .  

a ) I n t h e Q u e r y t r a n s f o r m e d i t o r , s e l e c t t h e        G r o u p B y      t a b .  

 b ) I n t h e     S c h e m a I n        c o l u m n , s e l e c t t h e        O R D E R I D          e l d f r o m t h e      

O R D E R _ D E T A I L S        t a b l e a n d d r a g i t i n t o t h e        G r o u p B y      t a b .  

c ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

1 9 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 211: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 211/472

B O D S 1 0 L e s s o n : U s i n g B u i l t - I n F u n c t i o n s      

6 . E x e c u t e t h e        A l p h a _ C u s t o m e r s _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s a f t e r s a v i n g a l l o b j e c t s y o u h a v e c r e a t e d . 

a ) R i g h t c l i c k t h e        A l p h a _ C u s t o m e r s _ J o b        l i s t e d u n d e r t h e        O m e g a       p r o j e c t a n d s e l e c t t h e o p t i o n     E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d b y s e l e c t i n g t h e        O K      b u t t o n i n t h e        S a v e a l l c h a n g e s a n d e x e c u t e      

d i a l o g b o x .  

c ) U s e t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a n d s e l e c t t h e        O K      b u t t o n .  

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w d a t a f o r t h e t a r g e t t a b l e t o      

c o n r m t h a t o r d e r      1 1 1 4 6        h a s    2 0 4 0 0 0 . 0 0        a s a t o t a l v a l u e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 212: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 212/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e s e a r c h _ r e p l a c e f u n c t i o n      

• U s e t h e l o o k u p _ e x t f u n c t i o n      

• U s e t h e d e c o d e f u n c t i o n      

R e l a t e d I n f o r m a t i o n      

F o r m o r e i n f o r m a t i o n o n i m p o r t i n g f u n c t i o n s , s e e “ C u s t o m D a t a s t o r e s ” , i n      

C h a p t e r 5 , i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

1 9 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 213: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 213/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

L e s s o n O v e r v i e w          

T o a p p l y d e c i s i o n - m a k i n g a n d b r a n c h l o g i c t o w o r k o w s , y o u u s e a c o m b i n a t i o n      

o f s c r i p t s , v a r i a b l e s , a n d p a r a m e t e r s t o c a l c u l a t e a n d p a s s i n f o r m a t i o n b e t w e e n      

t h e o b j e c t s i n y o u r j o b s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e v a r i a b l e s a n d p a r a m e t e r s    

• U s e D a t a S e r v i c e s s c r i p t i n g l a n g u a g e      

• C r e a t e a c u s t o m f u n c t i o n      

B u s i n e s s E x a m p l e      

Y o u w a n t t o l o a d d a t a f r o m a n e x t e r n a l s y s t e m i n t o S A P N e t W e a v e r B u s i n e s s    

W a r e h o u s e u s i n g a t l e s . Y o u a l s o w a n t t o c o n s i d e r t h e o p t i o n o f l o a d i n g d a t a      

 b y d e l t a u p l o a d . Y o u a l s o c o n s i d e r a n a l t e r n a t i v e m e t h o d . Y o u c a n u s e t h e D B    

C o n n e c t f u n c t i o n s f o r d i r e c t d a t a e x t r a c t i o n i n t o B W f r o m t a b l e s a n d v i e w s o f a      

d a t a b a s e m a n a g e m e n t s y s t e m t h a t i s d i r e c t l y c o n n e c t e d t o B W .  

U s i n g s c r i p t s , v a r i a b l e s a n d p a r a m e t e r s      

W i t h t h e D a t a S e r v i c e s s c r i p t i n g l a n g u a g e , y o u c a n a s s i g n v a l u e s t o v a r i a b l e s ,    

c a l l f u n c t i o n s , a n d u s e s t a n d a r d s t r i n g a n d m a t h e m a t i c a l o p e r a t o r s t o t r a n s f o r m          

d a t a a n d m a n a g e w o r k o w .  

D e n i n g v a r i a b l e s    

A v a r i a b l e i s c o m m o n c o m p o n e n t i n s c r i p t s t h a t a c t s a s a p l a c e h o l d e r t o r e p r e s e n t    

v a l u e s t h a t h a v e t h e p o t e n t i a l t o c h a n g e e a c h t i m e a j o b i s e x e c u t e d . T o m a k e t h e m          

e a s y t o i d e n t i f y i n a n e x p r e s s i o n , v a r i a b l e n a m e s s t a r t w i t h a d o l l a r s i g n ( $ ) . T h e y      

c a n b e o f a n y d a t a t y p e s u p p o r t e d b y D a t a S e r v i c e s .  

Y o u c a n u s e v a r i a b l e s i n e x p r e s s i o n s i n s c r i p t s o r t r a n s f o r m s t o f a c i l i t a t e d e c i s i o n      

m a k i n g o r d a t a m a n i p u l a t i o n ( u s i n g a r i t h m e t i c o r c h a r a c t e r s u b s t i t u t i o n ) . A        v a r i a b l e c a n b e u s e d i n a L O O P o r I F s t a t e m e n t t o c h e c k a v a r i a b l e ' s v a l u e t o      

d e c i d e w h i c h s t e p t o p e r f o r m .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 214: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 214/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

 N o t e t h a t v a r i a b l e s c a n b e u s e d t o e n a b l e t h e s a m e e x p r e s s i o n t o b e u s e d f o r  

m u l t i p l e o u t p u t l e s . V a r i a b l e s c a n b e u s e d a s l e n a m e s f o r :  

• F l a t l e s o u r c e s a n d t a r g e t s    

• X M L l e s o u r c e s a n d t a r g e t s    

• X M L m e s s a g e t a r g e t s ( e x e c u t e d i n t h e D e s i g n e r i n t e s t m o d e )    

• D o c u m e n t l e s o u r c e s a n d t a r g e t s ( i n a n S A P E R P e n v i r o n m e n t )    

• D o c u m e n t m e s s a g e s o u r c e s a n d t a r g e t s ( S A P E R P e n v i r o n m e n t )    

I n a d d i t i o n t o s c r i p t s , y o u c a n a l s o u s e v a r i a b l e s i n a c a t c h o r a c o n d i t i o n a l . A        

c a t c h i s p a r t o f a s e r i a l s e q u e n c e c a l l e d a t r y / c a t c h b l o c k . T h e t r y / c a t c h b l o c k      

a l l o w s y o u t o s p e c i f y a l t e r n a t i v e w o r k o w s i f e r r o r s o c c u r w h i l e D a t a S e r v i c e s i s    

e x e c u t i n g a j o b . A c o n d i t i o n a l i s a s i n g l e - u s e o b j e c t a v a i l a b l e i n w o r k o w s t h a t    

a l l o w s y o u t o b r a n c h t h e e x e c u t i o n l o g i c b a s e d o n t h e r e s u l t s o f a n e x p r e s s i o n .  

T h e c o n d i t i o n a l t a k e s t h e f o r m o f a n i f / t h e n / e l s e s t a t e m e n t .  

D e n i n g p a r a m e t e r s    

A p a r a m e t e r i s a n o t h e r t y p e o f p l a c e h o l d e r t h a t c a l l s a v a r i a b l e . T h i s c a l l a l l o w s    

t h e v a l u e f r o m t h e v a r i a b l e i n a j o b o r w o r k o w t o b e p a s s e d t o t h e p a r a m e t e r    

i n a d e p e n d e n t w o r k o w o r d a t a o w . P a r a m e t e r s a r e m o s t c o m m o n l y u s e d i n      

W H E R E c l a u s e s .  

F i g u r e 6 4 : V a r i a b l e s c o m p a r e d t o P a r a m e t e r s      

D e n i n g g l o b a l v e r s u s l o c a l v a r i a b l e s    

T h e r e a r e t w o t y p e s o f v a r i a b l e s : l o c a l a n d g l o b a l .  

1 9 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 215: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 215/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

L o c a l v a r i a b l e s a r e r e s t r i c t e d t o t h e j o b o r w o r k o w i n w h i c h t h e y a r e c r e a t e d .  

Y o u m u s t u s e p a r a m e t e r s t o p a s s l o c a l v a r i a b l e s t o t h e w o r k o w s a n d d a t a o w s    

i n t h e o b j e c t .  G l o b a l v a r i a b l e s a r e a l s o r e s t r i c t e d t o t h e j o b i n w h i c h t h e y a r e c r e a t e d . H o w e v e r ,    

t h e y d o n o t r e q u i r e p a r a m e t e r s t o b e p a s s e d t o w o r k o w s a n d d a t a o w s i n t h a t    

 j o b . I n s t e a d , y o u c a n r e f e r e n c e t h e g l o b a l v a r i a b l e d i r e c t l y i n e x p r e s s i o n s i n a n y   

o b j e c t i n t h a t j o b .  

G l o b a l v a r i a b l e s c a n s i m p l i f y y o u r w o r k . Y o u c a n s e t v a l u e s f o r g l o b a l v a r i a b l e s    

i n s c r i p t o b j e c t s o r u s i n g e x t e r n a l j o b , e x e c u t i o n , o r s c h e d u l e p r o p e r t i e s . F o r    

e x a m p l e , d u r i n g p r o d u c t i o n , y o u c a n c h a n g e v a l u e s f o r d e f a u l t g l o b a l v a r i a b l e s a t    

r u n t i m e f r o m a j o b ' s s c h e d u l e w i t h o u t h a v i n g t o o p e n a j o b i n t h e D e s i g n e r .  

W h e t h e r y o u u s e g l o b a l v a r i a b l e s o r l o c a l v a r i a b l e s a n d p a r a m e t e r s d e p e n d s o n      

h o w a n d w h e r e y o u n e e d t o u s e t h e v a r i a b l e s . I f y o u n e e d t o u s e t h e v a r i a b l e a t    m u l t i p l e l e v e l s o f a s p e c i c j o b , w e r e c o m m e n d t h a t y o u c r e a t e a g l o b a l v a r i a b l e .  

H o w e v e r , t h e r e a r e i m p l i c a t i o n s t o u s i n g g l o b a l v a r i a b l e s i n w o r k o w s a n d d a t a      

o w s t h a t a r e r e u s e d i n o t h e r j o b s . A l o c a l v a r i a b l e i s i n c l u d e d a s p a r t o f t h e      

d e n i t i o n o f t h e w o r k o w o r d a t a o w , a n d s o i t i s p o r t a b l e b e t w e e n j o b s . S i n c e a      

g l o b a l v a r i a b l e i s p a r t o f t h e d e n i t i o n o f t h e j o b t o w h i c h t h e w o r k o w o r d a t a      

o w b e l o n g s , i t i s n o t i n c l u d e d w h e n t h e o b j e c t i s r e u s e d .  

T h i s t a b l e s u m m a r i z e s t h e t y p e o f v a r i a b l e s a n d p a r a m e t e r s y o u c a n c r e a t e f o r    

e a c h t y p e o f o b j e c t .  

O b j e c t T y p e U s e d b y      

J o b G l o b a l v a r i a b l e A n y o b j e c t i n t h e j o b .  

J o b L o c a l v a r i a b l e A s c r i p t o r c o n d i t i o n a l i n t h e j o b .  

W o r k o w L o c a l v a r i a b l e      

T h i s w o r k o w o r p a s s e d d o w n      

t o o t h e r w o r k o w s o r d a t a o w s    

u s i n g a p a r a m e t e r .  

W o r k o w P a r a m e t e r    

P a r e n t o b j e c t s t o p a s s l o c a l    

v a r i a b l e s . W o r k o w s m a y a l s o      

r e t u r n v a r i a b l e s o r p a r a m e t e r s t o      

 p a r e n t o b j e c t s . 

D a t a o w P a r a m e t e r    A W H E R E c l a u s e , c o l u m n      m a p p i n g , o r f u n c t i o n i n t h e d a t a      

o w . D a t a o w s c a n n o t r e t u r n      

o u t p u t v a l u e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     1 9 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 216: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 216/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

T o e n s u r e c o n s i s t e n c y a c r o s s p r o j e c t s a n d m i n i m i z e t r o u b l e s h o o t i n g e r r o r s , a      

 b e s t p r a c t i c e i s t o u s e a c o n s i s t e n t n a m i n g c o n v e n t i o n f o r y o u r v a r i a b l e a n d   

 p a r a m e t e r s . K e e p i n m i n d t h a t n a m e s c a n i n c l u d e a n y a l p h a o r n u m e r i c c h a r a c t e r  o r u n d e r s c o r e s , b u t c a n n o t c o n t a i n b l a n k s p a c e s . T o d i f f e r e n t i a t e b e t w e e n t h e      

t y p e s o f o b j e c t s , s t a r t a l l n a m e s w i t h a d o l l a r s i g n ( $ ) , a n d u s e t h e p r e x e s :  

T y p e N a m i n g c o n v e n t i o n      

G l o b a l v a r i a b l e         $ G _   

L o c a l v a r i a b l e         $ L _   

P a r a m e t e r       $ P _   

T o d e n e a g l o b a l v a r i a b l e , l o c a l v a r i a b l e , o r p a r a m e t e r    

1 . S e l e c t t h e o b j e c t i n t h e p r o j e c t a r e a .  

F o r a g l o b a l v a r i a b l e , t h e o b j e c t m u s t b e a j o b . F o r a l o c a l v a r i a b l e , i t c a n      

 b e a j o b o r a w o r k o w . F o r a p a r a m e t e r , i t c a n b e e i t h e r a w o r k o w o r  

a d a t a o w .  

2 . F r o m t h e        T o o l s      m e n u , s e l e c t      V a r i a b l e s      . 

T h e     V a r i a b l e s a n d P a r a m e t e r s      d i a l o g b o x a p p e a r s .  

Y o u c a n c r e a t e a r e l a t i o n s h i p b e t w e e n a l o c a l v a r i a b l e a n d t h e p a r a m e t e r b y      

s p e c i f y i n g t h a t t h e n a m e o f t h e l o c a l v a r i a b l e a s t h e v a l u e i n t h e p r o p e r t i e s o f      

t h e p a r a m e t e r i n t h e C a l l s t a b .  

T o d e n e t h e r e l a t i o n s h i p b e t w e e n a l o c a l v a r i a b l e a n d a p a r a m e t e r    

1 . S e l e c t t h e d e p e n d e n t o b j e c t i n t h e p r o j e c t a r e a .  

2 . F r o m t h e        T o o l s      m e n u , s e l e c t      V a r i a b l e s      t o o p e n t h e        V a r i a b l e s a n d      

P a r a m e t e r s      d i a l o g b o x .  

3 . S e l e c t t h e        C a l l s      t a b .  

A n y p a r a m e t e r s t h a t e x i s t i n d e p e n d e n t o b j e c t s d i s p l a y o n t h e C a l l s t a b .  

4 . R i g h t - c l i c k t h e p a r a m e t e r a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P a r a m e t e r V a l u e        d i a l o g b o x a p p e a r s .  

5 . I n t h e        V a l u e        e l d , e n t e r t h e n a m e o f t h e l o c a l v a r i a b l e y o u w a n t t h e p a r a m e t e r    t o c a l l o r a c o n s t a n t v a l u e .  

I f y o u e n t e r a v a r i a b l e , i t m u s t o f t h e s a m e d a t a t y p e a s t h e p a r a m e t e r .  

6 . S e l e c t      O K       . 

S e t t i n g g l o b a l v a r i a b l e s u s i n g j o b p r o p e r t i e s    

2 0 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 217: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 217/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

I n a d d i t i o n t o s e t t i n g a v a r i a b l e i n s i d e a j o b u s i n g a s c r i p t , y o u c a n a l s o s e t a n d      

m a i n t a i n g l o b a l v a r i a b l e v a l u e s o u t s i d e a j o b u s i n g p r o p e r t i e s . V a l u e s s e t o u t s i d e      

a j o b a r e p r o c e s s e d t h e s a m e w a y a s t h o s e s e t i n a s c r i p t . H o w e v e r , i f y o u s e t a      v a l u e f o r t h e s a m e v a r i a b l e b o t h i n s i d e a n d o u t s i d e a j o b , t h e v a l u e f r o m t h e s c r i p t    

o v e r r i d e s t h e v a l u e f r o m t h e p r o p e r t y .  

V a l u e s f o r g l o b a l v a r i a b l e s c a n b e s e t a s a j o b p r o p e r t y o r a s a n e x e c u t i o n o r    

s c h e d u l e p r o p e r t y .  

A l l v a l u e s d e n e d a s j o b p r o p e r t i e s a r e s h o w n i n t h e        P r o p e r t i e s      w i n d o w . B y      

s e t t i n g v a l u e s o u t s i d e a j o b , y o u c a n r e l y o n t h e        P r o p e r t i e s      w i n d o w f o r v i e w i n g      

v a l u e s t h a t h a v e b e e n s e t f o r g l o b a l v a r i a b l e s a n d e a s i l y e d i t v a l u e s w h e n t e s t i n g      

o r s c h e d u l i n g a j o b .  

T o s e t a g l o b a l v a r i a b l e v a l u e a s a j o b p r o p e r t y      

1 . R i g h t - c l i c k a j o b i n t h e L o c a l O b j e c t L i b r a r y o r p r o j e c t a r e a a n d s e l e c t    

P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P r o p e r t i e s      d i a l o g b o x a p p e a r s .  

2 . S e l e c t t h e        G l o b a l V a r i a b l e        t a b .  

A l l g l o b a l v a r i a b l e s f o r t h e j o b a r e l i s t e d .  

3 . I n t h e        V a l u e        c o l u m n f o r t h e g l o b a l v a r i a b l e , e n t e r a c o n s t a n t v a l u e o r a n      

e x p r e s s i o n , a s r e q u i r e d .  

4 . S e l e c t      O K       . 

Y o u c a n a l s o v i e w a n d e d i t t h e s e d e f a u l t v a l u e s i n t h e        E x e c u t i o n P r o p e r t i e s    d i a l o g o f t h e D e s i g n e r . T h i s a l l o w s y o u t o o v e r r i d e j o b p r o p e r t y v a l u e s a t    

r u n t i m e . D a t a S e r v i c e s s a v e s v a l u e s i n t h e r e p o s i t o r y a s j o b p r o p e r t i e s .  

D e n i n g s u b s t i t u t i o n p a r a m e t e r s    

S u b s t i t u t i o n p a r a m e t e r s p r o v i d e a w a y t o d e n e p a r a m e t e r s t h a t h a v e a c o n s t a n t    

v a l u e f o r o n e e n v i r o n m e n t , b u t m i g h t n e e d t o g e t c h a n g e d i n c e r t a i n s i t u a t i o n s . I n      

c a s e a c h a n g e i s n e e d e d , i t c a n b e c h a n g e d i n o n e l o c a t i o n t o a f f e c t a l l j o b s . Y o u      

c a n o v e r r i d e t h e p a r a m e t e r f o r p a r t i c u l a r j o b e x e c u t i o n s .  

T h e t y p i c a l u s e c a s e i s f o r l e l o c a t i o n s ( d i r e c t o r y l e s o r s o u r c e / t a r g e t / e r r o r    

l e s ) t h a t a r e c o n s t a n t i n o n e e n v i r o n m e n t , b u t c h a n g e s w h e n a j o b i s m i g r a t e d t o      

a n o t h e r e n v i r o n m e n t ( l i k e m i g r a t i n g a j o b f r o m t e s t t o p r o d u c t i o n ) .  A s w i t h v a r i a b l e s a n d p a r a m e t e r s , t h e n a m e c a n i n c l u d e a n y a l p h a o r n u m e r i c      

c h a r a c t e r o r u n d e r s c o r e s , b u t c a n n o t c o n t a i n b l a n k s p a c e s . F o l l o w t h e s a m e      

n a m i n g c o n v e n t i o n a n d a l w a y s b e g i n t h e n a m e f o r a s u b s t i t u t i o n p a r a m e t e r w i t h      

d o u b l e d o l l a r s i g n s ( $ $ ) a n d a n S _ p r e x t o d i f f e r e n t i a t e f r o m o u t - o f - t h e - b o x      

s u b s t i t u t i o n p a r a m e t e r s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 0 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 218: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 218/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

F i g u r e 6 5 : S u b s t i t u t i o n P a r a m e t e r s a n d V a r i a b l e s      

T o c r e a t e a s u b s t i t u t i o n p a r a m e t e r c o n g u r a t i o n ,    

1 . F r o m t h e        T o o l s      m e n u , s e l e c t      S u b s t i t u t i o n P a r a m e t e r C o n g u r a t i o n s    

N o t e :      W h e n e x p o r t i n g a j o b ( t o a l e o r a r e p o s i t o r y ) , t h e s u b s t i t u t i o n       p a r a m e t e r c o n g u r a t i o n s ( v a l u e s ) a r e n o t e x p o r t e d w i t h t h e m . Y o u n e e d t o   

e x p o r t s u b s t i t u t i o n p a r a m e t e r s v i a a s e p a r a t e c o m m a n d t o a t e x t l e a n d      

u s e t h i s t e x t l e t o i m p o r t i n t o a n o t h e r r e p o s i t o r y .  

U s i n g D a t a S e r v i c e s s c r i p t i n g l a n g u a g e      

D e n i n g s c r i p t s    

A s c r i p t i s a s i n g l e - u s e o b j e c t t h a t i s u s e d t o c a l l f u n c t i o n s a n d a s s i g n v a l u e s i n      

a w o r k o w .  

T y p i c a l l y , a s c r i p t i s e x e c u t e d b e f o r e d a t a o w s f o r i n i t i a l i z a t i o n s t e p s a n d u s e d      w i t h c o n d i t i o n a l s t o d e t e r m i n e e x e c u t i o n p a t h s . A s c r i p t m a y a l s o b e u s e d a f t e r    

w o r k o w s o r d a t a o w s t o r e c o r d e x e c u t i o n i n f o r m a t i o n s u c h a s t i m e , o r a c h a n g e      

i n t h e n u m b e r o f r o w s i n a d a t a s e t .  

U s e a s c r i p t w h e n y o u w a n t t o c a l c u l a t e v a l u e s t h a t a r e p a s s e d o n t o o t h e r p a r t s o f      

t h e w o r k o w . U s e s c r i p t s t o a s s i g n v a l u e s t o v a r i a b l e s a n d e x e c u t e f u n c t i o n s .  

2 0 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 219: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 219/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

A s c r i p t c a n c o n t a i n t h e s e s t a t e m e n t s :  

• F u n c t i o n c a l l s    

• I f s t a t e m e n t s    

• W h i l e s t a t e m e n t s    

• A s s i g n m e n t s t a t e m e n t s    

• O p e r a t o r s    

F i g u r e 6 6 : S c r i p t i n g L a n g u a g e      

W i t h D a t a S e r v i c e s s c r i p t i n g l a n g u a g e , y o u c a n a s s i g n v a l u e s t o v a r i a b l e s , c a l l    

f u n c t i o n s , a n d u s e s t a n d a r d s t r i n g a n d m a t h e m a t i c a l o p e r a t o r s . T h e s y n t a x c a n b e      

u s e d i n b o t h e x p r e s s i o n s ( s u c h a s W H E R E c l a u s e s ) a n d s c r i p t s .  

U s i n g b a s i c s y n t a x      

E x p r e s s i o n s a r e a c o m b i n a t i o n o f c o n s t a n t s , o p e r a t o r s , f u n c t i o n s , a n d v a r i a b l e s    

t h a t e v a l u a t e t o a v a l u e o f a g i v e n d a t a t y p e . E x p r e s s i o n s c a n b e u s e d i n s i d e s c r i p t    

s t a t e m e n t s o r a d d e d t o d a t a o w o b j e c t s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 0 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 220: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 220/472

Page 221: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 221/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

T h e c o l u m n s t a r t _ d a t e m u s t b e i n t h e i n p u t s c h e m a o f t h e q u e r y . I f t h e r e i s m o r e      

t h a n o n e c o l u m n w i t h t h e s a m e n a m e i n t h e i n p u t s c h e m a o f a q u e r y , i n d i c a t e      

w h i c h c o l u m n i s i n c l u d e d i n a n e x p r e s s i o n b y q u a l i f y i n g t h e c o l u m n n a m e w i t h      t h e t a b l e n a m e . F o r e x a m p l e , i n d i c a t e t h e c o l u m n s t a r t _ d a t e i n t h e t a b l e s t a t u s a s :  

 s t a t u s . s t a r t _ d a t e   

C o l u m n a n d t a b l e n a m e s a s p a r t o f S Q L s t r i n g s m a y r e q u i r e s p e c i a l s y n t a x b a s e d      

o n t h e R D B M S t h a t t h e S Q L i s e v a l u a t e d b y . F o r e x a m p l e , s e l e c t a l l r o w s f r o m          

t h e L A S T _ N A M E c o l u m n o f t h e C U S T O M E R t a b l e a s :  

 s q l ( ' o r a c l e _ d s ' , ' s e l e c t C U S T O M E R . L A S T _ N A M E f r o m C U S T O M E R ' ) 

U s i n g o p e r a t o r s    

T h e o p e r a t o r s y o u c a n u s e i n e x p r e s s i o n s a r e l i s t e d i n t h i s t a b l e i n o r d e r o f      

 p r e c e d e n c e . N o t e t h a t w h e n o p e r a t i o n s a r e p u s h e d t o a R D B M S t o p e r f o r m , t h e    p r e c e d e n c e i s d e t e r m i n e d b y t h e r u l e s o f t h e R D B M S . 

O p e r a t o r D e s c r i p t i o n      

+ A d d i t i o n      

- S u b t r a c t i o n      

* M u l t i p l i c a t i o n      

/ D i v i s i o n      

= C o m p a r i s o n , e q u a l s    

< C o m p a r i s o n , i s l e s s t h a n      < = C o m p a r i s o n , i s l e s s t h a n o r e q u a l t o      

> C o m p a r i s o n , i s g r e a t e r t h a n      

> = C o m p a r i s o n , i s g r e a t e r t h a n o r e q u a l t o      

! = C o m p a r i s o n , i s n o t e q u a l t o      

| | C o n c a t e n a t e      

A N D L o g i c a l A N D        

O R L o g i c a l O R        

 N O T L o g i c a l N O T    

I S N U L L C o m p a r i s o n , i s a N U L L v a l u e      

I S N O T N U L L C o m p a r i s o n , i s n o t a N U L L v a l u e      

U s i n g q u o t a t i o n m a r k s    

S p e c i a l c a r e m u s t b e g i v e n t o h a n d l i n g o f s t r i n g s . Q u o t a t i o n m a r k s , e s c a p e      

c h a r a c t e r s , a n d t r a i l i n g b l a n k s c a n a l l h a v e a n a d v e r s e e f f e c t o n y o u r s c r i p t i f      

u s e d i n c o r r e c t l y .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 0 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 222: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 222/472

Page 223: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 223/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

C O L X I S N O T N U L L      

D a t a S e r v i c e s d o e s n o t c h e c k f o r N U L L v a l u e s i n d a t a c o l u m n s . U s e t h e f u n c t i o n      

“ N V L ” t o r e m o v e N U L L v a l u e s .  

N U L L v a l u e s a n d e m p t y s t r i n g s    

D a t a S e r v i c e s u s e s t w o r u l e s w i t h e m p t y s t r i n g s :  

• W h e n y o u a s s i g n a n e m p t y s t r i n g t o a v a r i a b l e , D a t a S e r v i c e s t r e a t s t h e v a l u e      

o f t h e v a r i a b l e a s a z e r o - l e n g t h s t r i n g .  

A n e r r o r r e s u l t s i f y o u a s s i g n a n e m p t y s t r i n g t o a v a r i a b l e t h a t i s n o t a      

v a r c h a r . T o a s s i g n a N U L L v a l u e t o a v a r i a b l e o f a n y t y p e , u s e t h e N U L L        

c o n s t a n t .  

• A s a b l a n k c o n s t a n t ( ' ' ) , D a t a S e r v i c e s t r e a t s t h e e m p t y s t r i n g a s a v a r c h a r    

v a l u e o f z e r o l e n g t h .  

U s e t h e N U L L c o n s t a n t f o r t h e n u l l v a l u e .  

D a t a S e r v i c e s u s e s t h e s e t h r e e r u l e s w i t h N U L L S a n d e m p t y s t r i n g s i n c o n d i t i o n a l s :  

R u l e 1    

T h e E q u a l s ( = ) a n d I s N o t E q u a l t o ( < > ) c o m p a r i s o n o p e r a t o r s a g a i n s t a N U L L        

v a l u e a l w a y s e v a l u a t e t o F A L S E . T h i s F A L S E r e s u l t i n c l u d e s c o m p a r i n g a v a r i a b l e      

t h a t h a s a v a l u e o f N U L L a g a i n s t a N U L L c o n s t a n t .  

R u l e 2      

U s e t h e I S N U L L a n d I S N O T N U L L o p e r a t o r s t o t e s t t h e p r e s e n c e o f n u l l v a l u e s .  F o r e x a m p l e , a s s u m i n g a v a r i a b l e a s s i g n m e n t      $ v a r 1 = N U L L        ;  

R u l e 3      

W h e n c o m p a r i n g t w o v a r i a b l e s , a l w a y s t e s t f o r N U L L . I n t h i s s c e n a r i o , y o u a r e n o t    

t e s t i n g a v a r i a b l e w i t h a v a l u e o f N U L L a g a i n s t a N U L L c o n s t a n t ( a s i n t h e r s t    

r u l e ) . E i t h e r t e s t e a c h v a r i a b l e a n d b r a n c h a c c o r d i n g l y o r t e s t i n t h e c o n d i t i o n a l .  

S c r i p t i n g a c u s t o m f u n c t i o n      

I f t h e b u i l t - i n f u n c t i o n s t h a t a r e p r o v i d e d b y D a t a S e r v i c e s d o n o t m e e t y o u r    

r e q u i r e m e n t s , y o u c a n c r e a t e y o u r o w n c u s t o m f u n c t i o n s u s i n g t h e D a t a S e r v i c e s    

s c r i p t i n g l a n g u a g e .  

C o m b i n i n g s c r i p t s , v a r i a b l e s , a n d p a r a m e t e r s    

T o i l l u s t r a t e h o w s c r i p t s , v a r i a b l e s , a n d p a r a m e t e r s a r e u s e d t o g e t h e r , c o n s i d e r    

a n e x a m p l e w h e r e y o u s t a r t w i t h a j o b , w o r k o w , a n d d a t a o w . Y o u w a n t t h e      

d a t a o w t o u p d a t e o n l y t h o s e r e c o r d s t h a t h a v e b e e n c r e a t e d s i n c e t h e l a s t t i m e      

t h e j o b e x e c u t e d .  

T o a c c o m p l i s h t h i s , y o u w o u l d s t a r t b y c r e a t i n g a v a r i a b l e f o r t h e u p d a t e t i m e a t    

t h e w o r k o w l e v e l , a n d a p a r a m e t e r a t t h e d a t a o w l e v e l t h a t c a l l s t h e v a r i a b l e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 0 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 224: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 224/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

 N e x t , y o u w o u l d c r e a t e a s c r i p t w i t h i n t h e w o r k o w t h a t e x e c u t e s b e f o r e t h e   

d a t a o w r u n s . T h e s c r i p t c o n t a i n s a n e x p r e s s i o n t h a t d e t e r m i n e s t h e m o s t r e c e n t    

u p d a t e t i m e f o r t h e s o u r c e t a b l e .  T h e s c r i p t t h e n a s s i g n s t h a t u p d a t e t i m e v a l u e t o t h e v a r i a b l e , w h i c h i d e n t i e s    

w h a t t h a t v a l u e i s u s e d f o r a n d a l l o w s i t t o b e r e u s e d i n o t h e r e x p r e s s i o n s .  

F i n a l l y , i n t h e d a t a o w , y o u c r e a t e a n e x p r e s s i o n t h a t u s e s t h e p a r a m e t e r t o c a l l    

t h e v a r i a b l e a n d n d o u t t h e u p d a t e t i m e . T h i s a l l o w s t h e d a t a o w t o c o m p a r e      

t h e u p d a t e t i m e t o t h e c r e a t i o n d a t e o f t h e r e c o r d s a n d i d e n t i f y w h i c h r o w s t o      

e x t r a c t f r o m t h e s o u r c e .  

Y o u c a n c r e a t e y o u r o w n f u n c t i o n s b y w r i t i n g s c r i p t f u n c t i o n s i n D a t a S e r v i c e s    

s c r i p t i n g l a n g u a g e u s i n g t h e S m a r t E d i t o r . S a v e d c u s t o m f u n c t i o n s a p p e a r i n t h e      

F u n c t i o n w i z a r d a n d t h e S m a r t E d i t o r u n d e r t h e C u s t o m F u n c t i o n s c a t e g o r y , a n d      

a r e a l s o d i s p l a y e d o n t h e C u s t o m F u n c t i o n s t a b o f t h e L o c a l O b j e c t L i b r a r y . Y o u      c a n e d i t a n d d e l e t e c u s t o m f u n c t i o n s f r o m t h e L o c a l O b j e c t L i b r a r y .  

C o n s i d e r t h e s e g u i d e l i n e s w h e n y o u c r e a t e y o u r o w n f u n c t i o n s :  

• F u n c t i o n s c a n c a l l o t h e r f u n c t i o n s .  

• F u n c t i o n s c a n n o t c a l l t h e m s e l v e s .  

• F u n c t i o n s c a n n o t p a r t i c i p a t e i n a c y c l e o f r e c u r s i v e c a l l s . F o r e x a m p l e ,    

f u n c t i o n A c a n n o t c a l l f u n c t i o n B i f f u n c t i o n B c a l l s f u n c t i o n A .  

• F u n c t i o n s r e t u r n a v a l u e .  

• F u n c t i o n s c a n h a v e p a r a m e t e r s f o r i n p u t , o u t p u t , o r b o t h . H o w e v e r , d a t a      

o w s c a n n o t p a s s p a r a m e t e r s o f t y p e o u t p u t o r i n p u t / o u t p u t .  

B e f o r e c r e a t i n g a c u s t o m f u n c t i o n , y o u m u s t k n o w t h e i n p u t , o u t p u t , a n d r e t u r n      

v a l u e s a n d t h e i r d a t a t y p e s . T h e r e t u r n v a l u e i s p r e d e n e d t o b e R e t u r n .  

T o c r e a t e a c u s t o m f u n c t i o n :  

1 . O n t h e C u s t o m F u n c t i o n s t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k t h e      

w h i t e s p a c e a n d s e l e c t      N e w      f r o m t h e m e n u .  

T h e     C u s t o m F u n c t i o n        d i a l o g b o x d i s p l a y s .  

2 . I n t h e        F u n c t i o n n a m e        e l d , e n t e r a u n i q u e n a m e f o r t h e n e w f u n c t i o n .  

3 . I n t h e        D e s c r i p t i o n        e l d , e n t e r a d e s c r i p t i o n .  

4 . S e l e c t      N e x t     . 

T h e S m a r t E d i t o r e n a b l e s y o u t o d e n e t h e r e t u r n t y p e , p a r a m e t e r l i s t , a n d      

a n y v a r i a b l e s t o b e u s e d i n t h e f u n c t i o n .  

I m p o r t i n g a s t o r e d p r o c e d u r e a s a f u n c t i o n      

I f y o u a r e u s i n g M i c r o s o f t S Q L S e r v e r , y o u c a n u s e s t o r e d p r o c e d u r e s t o i n s e r t ,    

u p d a t e , a n d d e l e t e d a t a i n y o u r t a b l e s . T o u s e s t o r e d p r o c e d u r e s i n D a t a S e r v i c e s ,    

y o u m u s t i m p o r t t h e m a s c u s t o m f u n c t i o n s .  

2 0 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 225: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 225/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

T o i m p o r t a s t o r e d p r o c e d u r e      

1 . O n t h e D a t a s t o r e s t a b o f t h e L o c a l O b j e c t L i b r a r y , e x p a n d t h e d a t a s t o r e      

t h a t c o n t a i n s t h e s t o r e d p r o c e d u r e .  

2 . R i g h t - c l i c k        F u n c t i o n s      a n d s e l e c t      I m p o r t B y N a m e        f r o m t h e m e n u .  

T h e     I m p o r t B y N a m e        d i a l o g b o x d i s p l a y s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 0 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 226: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 226/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

2 1 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 227: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 227/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

E x e r c i s e 1 3 : C r e a t i n g a c u s t o m f u n c t i o n      

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• C r e a t e a c u s t o m f u n c t i o n u s i n g v a r i a b l e s , p a r a m e t e r s a n d s c r i p t s    

B u s i n e s s E x a m p l e      

T h e M a r k e t i n g d e p a r t m e n t w o u l d l i k e t o s e n d s p e c i a l o f f e r s t o c u s t o m e r h a v e      

 p l a c e d a s p e c i e d n u m b e r o f o r d e r s . T h i s r e q u i r e s c r e a t i n g a c u s t o m f u n c t i o n t h a t  

m u s t b e c a l l e d w h e n a c u s t o m e r o r d e r i s p l a c e d .  

T a s k :    C r e a t e a c u s t o m f u n c t i o n t o a c c e p t t h e i n p u t p a r a m e t e r s o f t h e C u s t o m e r I D a n d      

t h e n u m b e r o f o r d e r s r e q u i r e d t o r e c e i v e a s p e c i a l o r d e r , c h e c k t h e O r d e r s t a b l e      

a n d t h e n c r e a t e a n i n i t i a l l i s t o f e l i g i b l e c u s t o m e r s .  

1 . I n t h e L o c a l O b j e c t L i b r a r y , c r e a t e a n e w c u s t o m e r f u n c t i o n c a l l e d      

C F _ M a r k e t i n g O f f e r        . 

2 . C r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d        A l p h a _ M a r k e t i n g _ O f -      f e r _ J o b        a n d     A l p h a _ M a r k e t i n g _ O f f e r _ D F        r e s p e c t i v e l y a n d a n e w        

g l o b a l v a r i a b l e        $ G _ N u m _ t o _ Q u a l        . 

3 . I n t h e j o b w o r k s p a c e , d e n e a s c r i p t t o d e n e t h e g l o b a l v a r i a b l e a n d a t t a c h      

t h e s c r i p t t o t h e d a t a o w .  

4 . D e n e t h e d a t a o w w i t h t h e C u s t o m e r t a b l e f r o m t h e A l p h a d a t a s t o r e a s a      

s o u r c e , a t e m p l a t e t a b l e a s a t a r g e t a n d t w o q u e r y t r a n s f o r m s b e t w e e n t h e      

s o u r c e a n d t a r g e t .  

5 . E x e c u t e        A l p h a _ M a r k e t i n g _ O f f e r _ J o b        w i t h t h e d e f a u l t p r o p e r t i e s    

a n d v i e w t h e r e s u l t s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 1 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 228: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 228/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

S o l u t i o n 1 3 : C r e a t i n g a c u s t o m f u n c t i o n      

T a s k :    

C r e a t e a c u s t o m f u n c t i o n t o a c c e p t t h e i n p u t p a r a m e t e r s o f t h e C u s t o m e r I D a n d      

t h e n u m b e r o f o r d e r s r e q u i r e d t o r e c e i v e a s p e c i a l o r d e r , c h e c k t h e O r d e r s t a b l e      

a n d t h e n c r e a t e a n i n i t i a l l i s t o f e l i g i b l e c u s t o m e r s .  

1 . I n t h e L o c a l O b j e c t L i b r a r y , c r e a t e a n e w c u s t o m e r f u n c t i o n c a l l e d      

C F _ M a r k e t i n g O f f e r        . 

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        C u s t o m F u n c t i o n s      t a b , a n d i n      

t h e t a b , r i g h t c l i c k a n d s e l e c t t h e o p t i o n        N e w .  

 b ) I n t h e     C u s t o m F u n c t i o n        d i a l o g b o x , e n t e r      C F _ M a r k e t i n g O f f e r        i n   

t h e     F u n c t i o n n a m e        e l d a n d s e l e c t      N e x t     . 

c ) I n t h e S m a r t E d i t o r , s e l e c t t h e        V a r i a b l e s      t a b a n d r i g h t c l i c k        P a r a m e t e r s    

a n d s e l e c t      N e w      f r o m t h e m e n u a n d u s e        $ P _ C u s t o m e r I D        a s t h e      

 p a r a m e t e r ' s n a m e . 

d ) R i g h t c l i c k        $ P _ C u s t o m e r I D        a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u .  

e ) I n t h e        R e t u r n v a l u e P r o p e r t i e s      d i a l o g b o x , s e l e c t t h e d r o p - d o w n l i s t    

 D a t a t y p e     a n d c h o o s e t h e d a t a t y p e        i n t     a n d a p a r a m e t e r t y p e o f        I n p u t      f r o m t h e        P a r a m e t e r t y p e        d r o p - d o w n l i s t . T h e n s e l e c t      O K      . 

f ) R i g h t c l i c k        P a r a m e t e r s      a n d s e l e c t      N e w      f r o m t h e m e n u a n d u s e      

$ P _ O r d e r s        a s t h e n a m e f o r a s e c o n d p a r a m e t e r .  

g ) R i g h t c l i c k        $ P _ C u s t o m e r I D        a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u .  

h ) I n t h e        R e t u r n v a l u e P r o p e r t i e s      d i a l o g b o x , s e l e c t t h e d r o p - d o w n l i s t    

 D a t a t y p e     a n d c h o o s e t h e d a t a t y p e        i n t     a n d p a r a m e t e r t y p e o f        I n p u t      f r o m t h e        P a r a m e t e r t y p e        d r o p - d o w n l i s t . T h e n s e l e c t      O K      . 

i ) I n t h e w o r k s p a c e o f t h e S m a r t E d i t o r , d e n e t h e c u s t o m f u n c t i o n a s    

a c o n d i t i o n a l c l a u s e . T h e c o n d i t i o n a l c l a u s e s h o u l d s p e c i f y t h a t , i f      

t h e n u m b e r o f r o w s i n t h e O r d e r s t a b l e i s e q u a l t o t h e v a l u e o f t h e      

 p a r a m e t e r    $ P _ O r d e r s        f o r t h e C u s t o m e r I D , t h e f u n c t i o n s h o u l d      

r e t u r n a        1     . O t h e r w i s e , i t s h o u l d r e t u r n        z e r o        . T y p e i n t h i s c o d e o n      

t h r e e s e p a r a t e l i n e s :  

i f ( ( s q l ( ' a l p h a ' , ' s e l e c t c o u n t ( * ) f r o m o r d e r s       w h e r e c u s t o m e r i d = [ $ P _ C u s t o m e r I D ] ' ) ) > =   $ P _ O r d e r s        N o t e :      T h e r e s h o u l d b e        n o     l i n e b r e a k b e t w e e n        =     a n d   

[ $ P _ C u s t o m e r I D ] ' ) )    

R e t u r n 1 ;      

C o n t i n u e d o n n e x t p a g e      

2 1 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 229: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 229/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

E l s e r e t u r n 0 ;      

N o t e :      D o     n o t    u s e t h e        i f t h e n e l s e        f u n c t i o n . T y p e i n t h e        i f  

f u n c t i o n .  

 j ) V a l i d a t e y o u r c o d e b y u s i n g t h e     V a l i d a t e        b u t t o n a n d m a k e a n y n e c e s s a r y      

c o r r e c t i o n s . T h e n s e l e c t      O K      . 

N o t e :      I f y o u r f u n c t i o n c o n t a i n s s y n t a x e r r o r s , D a t a S e r v i c e s    

d i s p l a y s a l i s t o f t h o s e e r r o r s i n a n e m b e d d e d p a n e b e l o w t h e      

e d i t o r . T o s e e w h e r e t h e e r r o r o c c u r s i n t h e t e x t , d o u b l e - c l i c k      

a n e r r o r . T h e S m a r t E d i t o r r e d r a w s t o s h o w y o u t h e l o c a t i o n o f      

t h e e r r o r .  

2 . C r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d        A l p h a _ M a r k e t i n g _ O f -      f e r _ J o b        a n d     A l p h a _ M a r k e t i n g _ O f f e r _ D F        r e s p e c t i v e l y a n d a n e w        

g l o b a l v a r i a b l e        $ G _ N u m _ t o _ Q u a l        . 

a ) I n t h e p r o j e c t a r e a , r i g h t c l i c k t h e        O m e g a        p r o j e c t t o s e l e c t t h e o p t i o n        N e w    

b a t c h j o b        a n d e n t e r t h e n a m e        A l p h a _ M a r k e t i n g _ O f f e r _ J o b        . 

 b ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e d a t a o w i c o n a n d d r a g i t i n t o t h e   

w o r k s p a c e a n d e n t e r t h e n a m e        A l p h a _ M a r k e t i n g _ O f f e r _ D F        . 

c ) I n t h e p r o j e c t a r e a , s e l e c t t h e j o b        A l p h a _ M a r k e t i n g _ O f f e r _ J o b      a n d t h e n u s e t h e m e n u p a t h        T o o l s → V a r i a b l e s      . 

d ) R i g h t c l i c k        V a r i a b l e s      a n d s e l e c t      I n s e r t      f r o m t h e m e n u .  e ) R i g h t c l i c k t h e n e w v a r i a b l e a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u a n d      

e n t e r      $ G _ N u m _ t o _ Q u a l        i n t h e        G l o b a l V a r i a b l e P r o p e r t i e s      d i a l o g      

 b o x . 

I n t h e        D a t a t y p e        d r o p d o w n l i s t , s e l e c t      i n t     f o r t h e d a t a t y p e a n d s e l e c t    

O K      . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 1 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 230: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 230/472

U n i t 5 : U s i n g F u n c t i o n s , S c r i p t s a n d V a r i a b l e s B O D S 1 0      

3 . I n t h e j o b w o r k s p a c e , d e n e a s c r i p t t o d e n e t h e g l o b a l v a r i a b l e a n d a t t a c h      

t h e s c r i p t t o t h e d a t a o w .  

a ) I n t h e p r o j e c t a r e a , s e l e c t t h e        A l p h a _ M a r k e t i n g _ O f f e r _ J o b        a n d   t h e n f r o m t h e T o o l P a l e t t e , s e l e c t t h e s c r i p t i c o n a n d d r a g i t i n t o t h e      

w o r k s p a c e . N a m e t h e s c r i p t      C h e c k O r d e r s        . 

 b ) D o u b l e - c l i c k t h e s c r i p t t o o p e n i t a n d c r e a t e a n e x p r e s s i o n t o d e n e   

t h e g l o b a l v a r i a b l e a s v e o r d e r s t o q u a l i f y f o r t h e s p e c i a l m a r k e t i n g      

c a m p a i g n . T y p e i n t h i s e x p r e s s i o n :  

$ G _ N u m _ t o _ Q u a l = 5 ;      

c ) C l o s e t h e s c r i p t a n d r e t u r n t o t h e j o b w o r k s p a c e .  

d ) C o n n e c t t h e s c r i p t t o t h e d a t a o w b y s e l e c t i n g t h e s c r i p t , w h i l e h o l d i n g      d o w n t h e m o u s e b u t t o n , a n d d r a g g i n g t o t h e d a t a o w . R e l e a s e t h e      

 b u t t o n t o c r e a t e t h e c o n n e c t i o n . D o u b l e - c l i c k t h e d a t a o w t o o p e n   

i t s w o r k s p a c e .  

4 . D e n e t h e d a t a o w w i t h t h e C u s t o m e r t a b l e f r o m t h e A l p h a d a t a s t o r e a s a      

s o u r c e , a t e m p l a t e t a b l e a s a t a r g e t a n d t w o q u e r y t r a n s f o r m s b e t w e e n t h e      

s o u r c e a n d t a r g e t .  

a ) F r o m t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b        D a t a s t o r e s      a n d d r a g t h e      

C u s t o m e r        t a b l e i n t h e        A l p h a        d a t a s t o r e i n t o t h e d a t a o w w o r k s p a c e .  

F r o m t h e m e n u , s e l e c t t h e o p t i o n        M a k e t a r g e t     . 

 b ) F r o m t h e T o o l P a l e t t e , d r a g t h e i c o n f o r a t e m p l a t e t a b l e i n t o t h e   

d a t a o w w o r k s p a c e . U s e        o f f e r _ m a i l i n g _ l i s t        a s t h e t e m p l a t e      

t a b l e n a m e , s e l e c t t h e        D e l t a        d a t a s t o r e a n d c l i c k        O K      . 

c ) F r o m t h e T o o l P a l e t t e , d r a g t h e i c o n f o r t h e Q u e r y t r a n s f o r m i n t o t h e      

d a t a o w w o r k s p a c e t w i c e .  

C o n n e c t a l l t h e o b j e c t s .  

d ) D o u b l e - c l i c k t h e r s t Q u e r y t r a n s f o r m a n d i n t h e t r a n s f o r m e d i t o r , m a p      

t h e c o l u m n s a s i n d i c a t e d :  

S c h e m a I n S c h e m a O u t    C O N T A C T N A M E C O N T A C T N A M E        

A D D R E S S A D D R E S S      

C I T Y C I T Y        

P O S T A L C O D E P O S T A L C O D E        

C o n t i n u e d o n n e x t p a g e      

2 1 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 231: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 231/472

B O D S 1 0 L e s s o n : U s i n g V a r i a b l e s , P a r a m e t e r s a n d S c r i p t s      

e ) R i g h t c l i c k        P O S T A L C O D E        a n d c h o o s e t h e o p t i o n        N e w O u t p u t C o l u m n      

a n d s e l e c t      B e l o w          f r o m t h e m e n u .  

f ) R i g h t c l i c k t h e n e w o u t p u t c o l u m n a n d s e l e c t      P r o p e r t i e s      f r o m t h e      m e n u . E n t e r      O F F E R _ S T A T U S        a s t h e n a m e a n d f r o m t h e        D a t a t y p e        d r o p      

d o w n l i s t c h o o s e        i n t     a n d s e l e c t      O K      . 

g ) S e l e c t      O F F E R _ S T A T U S        a n d o n t h e        M a p p i n g        t a b , s e l e c t t h e b u t t o n      

f o r t h e F u n c t i o n W i z a r d .  

S e l e c t t h e c a t e g o r y        C u s t o m F u n c t i o n s      a n d s e l e c t y o u r c u s t o m f u n c t i o n      

C F _ M a r k e t i n g O f f e r        a n d c l i c k        N e x t     . T h e n i n t h e S m a r t E d i t o r u s e      

t h e     C U S T O M E R I D          c o l u m n f o r t h e p a r a m e t e r      $ P _ C u s t o m e r I D          a n d t h e      

g l o b a l v a r i a b l e f o r t h e p a r a m e t e r      $ P _ O r d e r s      . 

T h e e x p r e s s i o n s h o u l d l o o k l i k e t h i s :  

C F _ M a r k e t i n g O f f e r ( c u s t o m e r . C U S T O M E R I D ,    $ G _ N u m _ t o _ Q u a l )    

S e l e c t      B a c k        t o c l o s e t h e e d i t o r .  

h ) D o u b l e - c l i c k t h e s e c o n d Q u e r y t r a n s f o r m a n d i n t h e t r a n s f o r m e d i t o r ,    

m a p t h e c o l u m n s a s i n d i c a t e d :  

S c h e m a I n S c h e m a O u t    

C O N T A C T N A M E C O N T A C T N A M E        

A D D R E S S A D D R E S S      

C I T Y C I T Y        

P O S T A L C O D E P O S T A L C O D E        

i ) S e l e c t t h e        W H E R E          t a b a n d e n t e r a n e x p r e s s i o n t o s e l e c t o n l y t h o s e      

r e c o r d s w h e r e        O F F E R _ S T A T U S        h a s a v a l u e o f o n e .  

T h e e x p r e s s i o n s h o u l d b e :  

Q u e r y . O F F E R _ S T A T U S = 1      

S e l e c t      B a c k        t o c l o s e t h e e d i t o r .  

 j ) C o n n e c t t h e s o u r c e t a b l e t o t h e r s t Q u e r y t r a n s f o r m b y s e l e c t i n g t h e   

s o u r c e t a b l e , w h i l e h o l d i n g d o w n t h e m o u s e b u t t o n , a n d d r a g g i n g t o t h e      

Q u e r y t r a n s f o r m . R e l e a s e t h e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 1 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 232: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 232/472

Page 233: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 233/472

Page 234: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 234/472

U n i t S u m m a r y B O D S 1 0      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• U s e f u n c t i o n s i n e x p r e s s i o n s    

• U s e t h e s e a r c h _ r e p l a c e f u n c t i o n      

• U s e t h e l o o k u p _ e x t f u n c t i o n      

• U s e t h e d e c o d e f u n c t i o n      

• U s e v a r i a b l e s a n d p a r a m e t e r s    

• U s e D a t a S e r v i c e s s c r i p t i n g l a n g u a g e      

• C r e a t e a c u s t o m f u n c t i o n      

2 1 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 235: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 235/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 236: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 236/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 237: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 237/472

U n i t 6        U s i n g P l a t f o r m T r a n s f o r m s      

U n i t O v e r v i e w          

T r a n s f o r m s a r e o p t i o n a l o b j e c t s i n a d a t a o w t h a t a l l o w y o u t o t r a n s f o r m y o u r    

d a t a a s i t m o v e s f r o m s o u r c e t o t a r g e t . I n d a t a o w s , t r a n s f o r m s o p e r a t e o n      

i n p u t d a t a s e t s b y c h a n g i n g t h e m o r b y g e n e r a t i n g o n e o r m o r e n e w d a t a s e t s .  T r a n s f o r m s a r e a d d e d a s c o m p o n e n t s t o y o u r d a t a o w i n t h e s a m e w a y a s s o u r c e      

a n d t a r g e t o b j e c t s . E a c h t r a n s f o r m p r o v i d e s d i f f e r e n t o p t i o n s t h a t y o u c a n s p e c i f y      

 b a s e d o n t h e t r a n s f o r m ' s f u n c t i o n . Y o u c a n c h o o s e t o e d i t t h e i n p u t d a t a , o u t p u t  

d a t a , a n d p a r a m e t e r s i n a t r a n s f o r m .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• D e s c r i b e p l a t f o r m t r a n s f o r m s    

• U s e t h e M a p O p e r a t i o n t r a n s f o r m i n a d a t a o w        • U s e t h e V a l i d a t i o n t r a n s f o r m          

• U s e t h e M e r g e t r a n s f o r m          

• U s e t h e C a s e t r a n s f o r m          

• U s e t h e S Q L t r a n s f o r m          

U n i t C o n t e n t s      

L e s s o n : U s i n g P l a t f o r m T r a n s f o r m s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 0      

L e s s o n : U s i n g t h e M a p O p e r a t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 4      

E x e r c i s e 1 4 : U s i n g t h e M a p O p e r a t i o n t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . 2 2 7      

L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 1    E x e r c i s e 1 5 : U s i n g t h e V a l i d a t i o n t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 9      

L e s s o n : U s i n g t h e M e r g e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 4      

E x e r c i s e 1 6 : U s i n g t h e M e r g e t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 7      

L e s s o n : U s i n g t h e C a s e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 0      

E x e r c i s e 1 7 : U s i n g t h e C a s e t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 5      

L e s s o n : U s i n g t h e S Q L T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 3      

E x e r c i s e 1 8 : U s i n g t h e S Q L t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 7      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 1 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 238: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 238/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n : U s i n g P l a t f o r m T r a n s f o r m s      

L e s s o n O v e r v i e w          

A t r a n s f o r m e n a b l e s y o u t o c o n t r o l h o w d a t a s e t s c h a n g e i n a d a t a o w .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• D e s c r i b e p l a t f o r m t r a n s f o r m s    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

D e s c r i b i n g P l a t f o r m t r a n s f o r m s      

T r a n s f o r m s a r e o p t i o n a l o b j e c t s i n a d a t a o w t h a t a l l o w y o u t o t r a n s f o r m y o u r    

d a t a a s i t m o v e s f r o m s o u r c e t o t a r g e t .  

F i g u r e 6 8 : D a t a S e r v i c e s T r a n s f o r m s      

2 2 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 239: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 239/472

B O D S 1 0 L e s s o n : U s i n g P l a t f o r m T r a n s f o r m s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u c a n :  

• E x p l a i n t r a n s f o r m s    

• D e s c r i b e t h e p l a t f o r m t r a n s f o r m s a v a i l a b l e i n D a t a S e r v i c e s    

• A d d a t r a n s f o r m t o a d a t a o w        

• D e s c r i b e t h e T r a n s f o r m E d i t o r w i n d o w        

E x p l a i n i n g t r a n s f o r m s    

T r a n s f o r m s a r e o b j e c t s i n d a t a o w s t h a t o p e r a t e o n i n p u t d a t a s e t s b y c h a n g i n g      

t h e m o r b y g e n e r a t i n g o n e o r m o r e n e w d a t a s e t s . T h e Q u e r y t r a n s f o r m i s t h e      

m o s t c o m m o n l y – u s e d t r a n s f o r m .  

T r a n s f o r m s a r e a d d e d a s c o m p o n e n t s t o y o u r d a t a o w i n t h e s a m e w a y a s s o u r c e      

a n d t a r g e t o b j e c t s . E a c h t r a n s f o r m p r o v i d e s d i f f e r e n t o p t i o n s t h a t y o u c a n s p e c i f y      

 b a s e d o n t h e t r a n s f o r m ' s f u n c t i o n . Y o u c a n c h o o s e t o e d i t t h e i n p u t d a t a , o u t p u t  d a t a , a n d p a r a m e t e r s i n a t r a n s f o r m .  

S o m e t r a n s f o r m s , s u c h a s t h e D a t e G e n e r a t i o n a n d S Q L t r a n s f o r m s , c a n b e u s e d a s    

s o u r c e o b j e c t s , i n w h i c h c a s e t h e y d o n o t h a v e i n p u t o p t i o n s .  

T r a n s f o r m s a r e u s e d i n c o m b i n a t i o n t o c r e a t e t h e o u t p u t d a t a s e t . F o r e x a m p l e , t h e      

T a b l e C o m p a r i s o n , H i s t o r y P r e s e r v e , a n d K e y G e n e r a t i o n t r a n s f o r m s a r e u s e d f o r    

s l o w l y c h a n g i n g d i m e n s i o n s .  

T r a n s f o r m s a r e s i m i l a r t o f u n c t i o n s i n t h a t t h e y c a n p r o d u c e t h e s a m e o r s i m i l a r    

v a l u e s d u r i n g p r o c e s s i n g . H o w e v e r , t r a n s f o r m s a n d f u n c t i o n s o p e r a t e o n a      

d i f f e r e n t s c a l e :  

• F u n c t i o n s o p e r a t e o n s i n g l e v a l u e s , s u c h a s v a l u e s i n s p e c i c c o l u m n s i n a      

d a t a s e t .  

• T r a n s f o r m s o p e r a t e o n d a t a s e t s b y c r e a t i n g , u p d a t i n g , a n d d e l e t i n g r o w s    

o f d a t a .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 2 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 240: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 240/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 6 9 : C o m p a r i s o n o f T r a n s f o r m s a n d F u n c t i o n s      

D e s c r i b i n g p l a t f o r m t r a n s f o r m s    

T h e f o l l o w i n g p l a t f o r m t r a n s f o r m s a r e a v a i l a b l e o n t h e T r a n s f o r m s t a b o f t h e      

L o c a l O b j e c t L i b r a r y :  

T r a n s f o r m D e s c r i p t i o n      

C a s e D i v i d e s t h e d a t a f r o m a n i n p u t d a t a s e t i n t o m u l t i p l e      

o u t p u t d a t a s e t s b a s e d o n I F - T H E N - E L S E b r a n c h l o g i c .  

M a p O p e r a t i o n A l l o w s c o n v e r s i o n s b e t w e e n o p e r a t i o n c o d e s .  

M e r g e U n i e s r o w s f r o m t w o o r m o r e i n p u t d a t a s e t s i n t o a s i n g l e      

o u t p u t d a t a s e t .  

Q u e r y R e t r i e v e s a d a t a s e t t h a t s a t i s e s c o n d i t i o n s t h a t y o u      

s p e c i f y . A q u e r y t r a n s f o r m i s s i m i l a r t o a S Q L S E L E C T        

s t a t e m e n t .  

R o w G e n e r a t i o n G e n e r a t e s a c o l u m n l l e d w i t h i n t e g e r s s t a r t i n g a t z e r o      

a n d i n c r e m e n t i n g b y o n e t o t h e e n d v a l u e y o u s p e c i f y .  

S Q L P e r f o r m s t h e i n d i c a t e d S Q L q u e r y o p e r a t i o n .  V a l i d a t i o n A l l o w s y o u t o s p e c i f y v a l i d a t i o n c r i t e r i a f o r a n i n p u t    

d a t a s e t . D a t a t h a t f a i l s v a l i d a t i o n c a n b e l t e r e d o u t o r    

r e p l a c e d . Y o u c a n h a v e o n e v a l i d a t i o n r u l e p e r c o l u m n .  

2 2 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 241: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 241/472

B O D S 1 0 L e s s o n : U s i n g P l a t f o r m T r a n s f o r m s      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • D e s c r i b e p l a t f o r m t r a n s f o r m s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 2 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 242: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 242/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e M a p O p e r a t i o n T r a n s f o r m          

L e s s o n O v e r v i e w          

T h e M a p O p e r a t i o n t r a n s f o r m e n a b l e s y o u t o c h a n g e t h e o p e r a t i o n c o d e f o r    

r e c o r d s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e M a p O p e r a t i o n t r a n s f o r m i n a d a t a o w        

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

Y o u w a n t t o c o n t r o l h o w t h e d a t a i s t o b e l o a d e d i n t o t h e t a r g e t a n d w a n t t o e x p l o r e      

t h e c a p a b i l i t i e s o f t h e M a p O p e r a t i o n t r a n s f o r m t o c o n t r o l t h e t a r g e t u p d a t i n g .  

U s i n g t h e M a p O p e r a t i o n t r a n s f o r m          

T r a n s f o r m s a r e o p t i o n a l o b j e c t s i n a d a t a o w t h a t a l l o w y o u t o t r a n s f o r m y o u r    

d a t a a s i t m o v e s f r o m s o u r c e t o t a r g e t .  

T r a n s f o r m s a r e o b j e c t s i n d a t a o w s t h a t o p e r a t e o n i n p u t d a t a s e t s b y c h a n g i n g      

t h e m o r b y g e n e r a t i n g o n e o r m o r e n e w d a t a s e t s . T h e Q u e r y t r a n s f o r m i s t h e      

m o s t c o m m o n l y – u s e d t r a n s f o r m .  

T r a n s f o r m s a r e a d d e d a s c o m p o n e n t s t o y o u r d a t a o w i n t h e s a m e w a y a s s o u r c e      

a n d t a r g e t o b j e c t s . E a c h t r a n s f o r m p r o v i d e s d i f f e r e n t o p t i o n s t h a t y o u c a n s p e c i f y      

 b a s e d o n t h e t r a n s f o r m ' s f u n c t i o n . Y o u c a n c h o o s e t o e d i t t h e i n p u t d a t a , o u t p u t  

d a t a , a n d p a r a m e t e r s i n a t r a n s f o r m .  

T h e M a p O p e r a t i o n t r a n s f o r m e n a b l e s y o u t o c h a n g e t h e o p e r a t i o n c o d e f o r    

r e c o r d s .  

D e s c r i b i n g m a p o p e r a t i o n s    

D a t a S e r v i c e s m a i n t a i n s o p e r a t i o n c o d e s t h a t d e s c r i b e t h e s t a t u s o f e a c h r o w i n      

e a c h d a t a s e t d e s c r i b e d b y t h e i n p u t s t o a n d o u t p u t s f r o m o b j e c t s i n d a t a o w s .  

T h e o p e r a t i o n c o d e s i n d i c a t e h o w e a c h r o w i n t h e d a t a s e t w o u l d b e a p p l i e d t o a      

t a r g e t t a b l e i f t h e d a t a s e t w e r e l o a d e d i n t o a t a r g e t . T h e o p e r a t i o n c o d e s a r e :  

2 2 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 243: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 243/472

B O D S 1 0 L e s s o n : U s i n g t h e M a p O p e r a t i o n T r a n s f o r m          

O p e r a t i o n C o d e D e s c r i p t i o n      

 N O R M A L    

C r e a t e s a n e w r o w i n t h e t a r g e t .  

A l l r o w s i n a d a t a s e t a r e a g g e d a s N O R M A L w h e n      

t h e y a r e e x t r a c t e d b y a s o u r c e t a b l e o r l e . I f a r o w i s    

a g g e d a s N O R M A L w h e n l o a d e d i n t o a t a r g e t t a b l e o r    

l e , i t i s i n s e r t e d a s a n e w r o w i n t h e t a r g e t .  

M o s t t r a n s f o r m s o p e r a t e o n l y o n r o w s a g g e d a s    

 N O R M A L . 

I N S E R T        

C r e a t e s a n e w r o w i n t h e t a r g e t .  

O n l y H i s t o r y P r e s e r v i n g a n d K e y G e n e r a t i o n t r a n s f o r m s    

c a n a c c e p t d a t a s e t s w i t h r o w s a g g e d a s I N S E R T a s    i n p u t .  

D E L E T E        

I s i g n o r e d b y t h e t a r g e t . R o w s a g g e d a s D E L E T E a r e      

n o t l o a d e d .  

O n l y t h e H i s t o r y P r e s e r v i n g t r a n s f o r m , w i t h t h e      

P r e s e r v e d e l e t e r o w ( s ) a s u p d a t e r o w ( s ) o p t i o n      

s e l e c t e d , c a n a c c e p t d a t a s e t s w i t h r o w s a g g e d a s    

D E L E T E .  

U P D A T E         O v e r w r i t e s a n e x i s t i n g r o w i n t h e t a r g e t t a b l e .  

O n l y H i s t o r y P r e s e r v i n g a n d K e y G e n e r a t i o n t r a n s f o r m s    c a n a c c e p t d a t a s e t s w i t h r o w s a g g e d a s U P D A T E a s    

i n p u t .  

E x p l a i n i n g t h e M a p O p e r a t i o n t r a n s f o r m          

T h e M a p O p e r a t i o n t r a n s f o r m a l l o w s y o u t o c h a n g e o p e r a t i o n c o d e s o n d a t a s e t s    

t o p r o d u c e t h e d e s i r e d o u t p u t . F o r e x a m p l e , i f a r o w i n t h e i n p u t d a t a s e t h a s b e e n      

u p d a t e d i n s o m e p r e v i o u s o p e r a t i o n i n t h e d a t a o w , y o u c a n u s e t h i s t r a n s f o r m          

t o m a p t h e U P D A T E o p e r a t i o n t o a n I N S E R T . T h e r e s u l t c o u l d b e t o c o n v e r t    

U P D A T E r o w s t o I N S E R T r o w s t o p r e s e r v e t h e e x i s t i n g r o w i n t h e t a r g e t    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 2 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 244: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 244/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 7 0 : I n t r o d u c t i o n t o t h e M a p O p e r a t i o n T r a n s f o r m          

D a t a S e r v i c e s c a n p u s h M a p O p e r a t i o n t r a n s f o r m s t o t h e s o u r c e d a t a b a s e .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e M a p O p e r a t i o n t r a n s f o r m .  

I n p u t f o r t h e M a p O p e r a t i o n t r a n s f o r m i s a d a t a s e t w i t h r o w s a g g e d w i t h a n y      

o p e r a t i o n c o d e s . I t c a n c o n t a i n h i e r a r c h i c a l d a t a .  

U s e c a u t i o n w h e n u s i n g c o l u m n s o f d a t a t y p e r e a l i n t h i s t r a n s f o r m , b e c a u s e      

c o m p a r i s o n r e s u l t s a r e u n p r e d i c t a b l e f o r t h i s d a t a t y p e .  

O u t p u t f o r t h e M a p O p e r a t i o n t r a n s f o r m i s a d a t a s e t w i t h r o w s a g g e d a s    

s p e c i e d b y t h e m a p p i n g o p e r a t i o n s .  

T h e M a p O p e r a t i o n t r a n s f o r m e n a b l e s y o u t o s e t t h e O u t p u t r o w t y p e o p t i o n      

t o i n d i c a t e t h e n e w o p e r a t i o n s d e s i r e d f o r t h e i n p u t d a t a s e t . C h o o s e f r o m          

t h e f o l l o w i n g o p e r a t i o n c o d e s : I N S E R T , U P D A T E , D E L E T E , N O R M A L , o r    

D I S C A R D .  

2 2 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 245: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 245/472

B O D S 1 0 L e s s o n : U s i n g t h e M a p O p e r a t i o n T r a n s f o r m          

E x e r c i s e 1 4 : U s i n g t h e M a p O p e r a t i o n      

t r a n s f o r m          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e M a p O p e r a t i o n t r a n s f o r m i n a d a t a o w        

B u s i n e s s E x a m p l e      

U s e r s o f e m p l o y e e r e p o r t s h a v e r e q u e s t e d t h a t e m p l o y e e r e c o r d s i n t h e d a t a m a r t    

c o n t a i n o n l y r e c o r d f o r c u r r e n t e m p l o y e e s . Y o u u s e t h e M a p O p e r a t i o n t r a n s f o r m          

t o c h a n g e t h e b e h a v i o r o f l o a d i n g s o t h e r e s u l t i n g t a r g e t c o n f o r m s t o t h i s b u s i n e s s    

r e q u i r e m e n t .  

T a s k :    

U s e t h e M a p O p e r a t i o n t r a n s f o r m t o r e m o v e a n y e m p l o y e e r e c o r d s t h a t a v a l u e i n      

t h e d i s c h a r g e d a t a c o l u m n o f t h e s o u r c e d a t a .  

1 . C r e a t e a n e w b a t c h j o b        A l p h a _ E m p l o y e e s _ C u r r e n t _ J o b        w i t h a      

d a t a o w          A l p h a _ E m p l o y e e s _ C u r r e n t _ D F        w h i c h , c o n t a i n s a M a p      

O p e r a t i o n t r a n s f o r m .  

2 . A d d t h e M a p O p e r a t i o n t r a n s f o r m t o t h e d a t a o w , c h a n g e t h e o u t p u t    

o p e r a t i o n c o d e o f        N O R M A L        t o     D E L E T E      

  , s a v e a l l o b j e c t s a n d e x e c u t e t h e j o b .  

3 . S a v e a l l o b j e c t s a n d e x e c u t e t h e        A l p h a _ E m p l o y e e s _ C u r r e n t _ J o b        . 

R e s u l t    

T w o r o w s w e r e l t e r e d f r o m t h e t a r g e t t a b l e . B o t h o f t h e s e r e c o r d s h a v e      

d i s c h a r g e _ d a t e e l d e n t r i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 2 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 246: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 246/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

S o l u t i o n 1 4 : U s i n g t h e M a p O p e r a t i o n      

t r a n s f o r m          T a s k :    

U s e t h e M a p O p e r a t i o n t r a n s f o r m t o r e m o v e a n y e m p l o y e e r e c o r d s t h a t a v a l u e i n      

t h e d i s c h a r g e d a t a c o l u m n o f t h e s o u r c e d a t a .  

1 . C r e a t e a n e w b a t c h j o b        A l p h a _ E m p l o y e e s _ C u r r e n t _ J o b        w i t h a      

d a t a o w          A l p h a _ E m p l o y e e s _ C u r r e n t _ D F        w h i c h , c o n t a i n s a M a p      

O p e r a t i o n t r a n s f o r m .  

a ) I n t h e p r o j e c t a r e a r i g h t c l i c k t h e        O m e g a        p r o j e c t a n d s e l e c t t h e o p t i o n      

 N e w j o b     a n d c h a n g e t h e n a m e t o        A l p h a _ E m p l o y e e s _ C u r -      

r e n t _ J o b        . 

 b ) I n t h e w o r k s p a c e f o r t h e j o b , g o t o t h e T o o l P a l e t t e , s e l e c t t h e i c o n f o r a   

d a t a o w a n d d r a g i t t o t h e w o r k s p a c e . G i v e t h e d a t a o w t h e n a m e      

 A l p h a _ E m p l o y e e s _ C u r r e n t _ D F     . 

c ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e a n d d r a g      

t h e     E m p l o y e e        t a b l e f r o m t h e        A l p h a        d a t a s t o r e I n t h e L o c a l O b j e c t    

L i b r a r y i n t o t h e w o r k s p a c e .  

F r o m t h e n e x t m e n u , c h o o s e t h e o p t i o n        s o u r c e        . 

d ) D r a g t h e        E m p l o y e e        t a b l e f r o m t h e        H R _ d a t a m a r t      d a t a s t o r e I n t h e L o c a l    

O b j e c t L i b r a r y i n t o t h e w o r k s p a c e .  

F r o m t h e n e x t m e n u , c h o o s e t h e o p t i o n        M a k e t a r g e t     . 

e ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e i c o n f o r a Q u e r y t r a n s f o r m a n d d r a g i t    

i n t o t h e w o r k s p a c e . T h e n c o n n e c t a l l t h e o b j e c t s .  

f ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o a c c e s s t h e t r a n s f o r m e d i t o r a n d      

m a p a l l c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e s a m e c o l u m n i n t h e      

o u t p u t s c h e m a .  

D r a g e a c h e l d f r o m t h e i n p u t s c h e m a t o i t s c o u n t e r p a r t i n t h e o u t p u t    

s c h e m a .  

g ) O n t h e        W H E R E          t a b o f t h e Q u e r y t r a n s f o r m , e n t e r a n e x p r e s s i o n t o      

s e l e c t o n l y t h o s e r o w s w h e r e t h e d i s c h a r g e d a t e e l d i s n o t e m p t y .  

E n t e r t h e c o d e :  

e m p l o y e e . d i s c h a r g e _ d a t e i s n o t n u l l      

h ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 2 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 247: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 247/472

B O D S 1 0 L e s s o n : U s i n g t h e M a p O p e r a t i o n T r a n s f o r m          

2 . A d d t h e M a p O p e r a t i o n t r a n s f o r m t o t h e d a t a o w , c h a n g e t h e o u t p u t    

o p e r a t i o n c o d e o f        N O R M A L        t o     D E L E T E        , s a v e a l l o b j e c t s a n d e x e c u t e t h e j o b .  

a ) I n t h e d a t a o w w o r k s p a c e , d i s c o n n e c t t h e Q u e r y t r a n s f o r m f r o m t h e      t a r g e t t a b l e b y r i g h t c l i c k i n g t h e c o n n e c t i o n t o s e l e c t t h e o p t i o n        D e l e t e        . 

 b ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e     T r a n s f o r m          t a b . O p e n t h e n o d e      

 D a t a T r a n s f o r m s    . S e l e c t t h e M a p O p e r a t i o n t r a n s f o r m a n d d r a g i t i n t o      

t h e d a t a o w w o r k s p a c e .  

c ) D o u b l e - c l i c k t h e M a p O p e r a t i o n t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r    

a n d c h a n g e t h e s e t t i n g s t o t h a t r o w s w i t h a n i n p u t o p e r a t i o n c o d e o f      

 N o r m a l    h a v e a n o u t p u t o p e r a t i o n c o d e o f        D E L E T E        . S e l e c t      O K      . 

d ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

3 . S a v e a l l o b j e c t s a n d e x e c u t e t h e        A l p h a _ E m p l o y e e s _ C u r r e n t _ J o b        . a ) I n t h e p r o j e c t a r e a , r i g h t c l i c k t h e j o b        A l p h a _ E m p l o y e e s _ C u r -      

r e n t _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e j o b        . 

 b ) I n t h e n e x t d i a l o g b o x , s e l e c t    O K      t o s a v e a l l t h e o b j e c t s .  

c ) I n t h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x , a c c e p t a l l t h e d e f a u l t s e t t i n g s    

a n d s e l e c t      O K      . 

d ) O n c e t h e j o b e x e c u t e s s u c c e s s f u l l y , i n t h e d a t a o w w o r k s p a c e , s e l e c t    

t h e m a g n i f y i n g g l a s s b u t t o n o n t h e s o u r c e t a b l e . A l a r g e V i e w D a t a      

 p a n e a p p e a r s b e n e a t h t h e c u r r e n t w o r k s p a c e a r e a . 

e ) T o c o m p a r e t h e d a t a , s e l e c t t h e m a g n i f y i n g g l a s s b u t t o n o n t h e t a r g e t    t a b l e .  

R e s u l t    

T w o r o w s w e r e l t e r e d f r o m t h e t a r g e t t a b l e . B o t h o f t h e s e r e c o r d s    

h a v e d i s c h a r g e _ d a t e e l d e n t r i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 2 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 248: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 248/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e M a p O p e r a t i o n t r a n s f o r m i n a d a t a o w        

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e M a p O p e r a t i o n t r a n s f o r m s e e “ T r a n s f o r m s ”      

C h a p t e r 5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e      

2 3 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 249: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 249/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

L e s s o n O v e r v i e w          

T h e V a l i d a t i o n t r a n s f o r m e n a b l e s y o u t o c r e a t e v a l i d a t i o n r u l e s a n d m o v e d a t a i n t o      

t a r g e t o b j e c t s b a s e d o n w h e t h e r t h e y p a s s o r f a i l v a l i d a t i o n s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e V a l i d a t i o n t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

O r d e r d a t a i s s t o r e d i n m u l t i p l e f o r m a t s w i t h d i f f e r e n t s t r u c t u r e s a n d d i f f e r e n t    

i n f o r m a t i o n . Y o u w a n t t o k n o w h o w t o u s e t h e V a l i d a t i o n t r a n s f o r m t o v a l i d a t e      

o r d e r d a t a f r o m a t l e s o u r c e s a n d t h e d a t a b a s e t a b l e s b e f o r e m e r g i n g i t .  

U s i n g t h e V a l i d a t i o n t r a n s f o r m          

T h e V a l i d a t i o n t r a n s f o r m e n a b l e s y o u t o c r e a t e v a l i d a t i o n r u l e s a n d m o v e d a t a i n t o      

t a r g e t o b j e c t s b a s e d o n w h e t h e r t h e y p a s s o r f a i l v a l i d a t i o n .  

E x p l a i n i n g t h e V a l i d a t i o n t r a n s f o r m          

U s e t h e V a l i d a t i o n t r a n s f o r m i n y o u r d a t a o w s w h e n y o u w a n t t o e n s u r e t h a t t h e      

d a t a a t a n y s t a g e i n t h e d a t a o w m e e t s y o u r c r i t e r i a .  

F o r e x a m p l e , y o u c a n s e t t h e t r a n s f o r m t o e n s u r e t h a t a l l v a l u e s :  

• A r e w i t h i n a s p e c i c r a n g e      

• H a v e t h e s a m e f o r m a t    

• D o n o t c o n t a i n N U L L v a l u e s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 250: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 250/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 7 1 : I n t r o d u c t i o n t o t h e V a l i d a t i o n T r a n s f o r m          

T h e V a l i d a t i o n t r a n s f o r m a l l o w s y o u t o d e n e a r e u s a b l e b u s i n e s s r u l e t o v a l i d a t e      

e a c h r e c o r d a n d c o l u m n . T h e V a l i d a t i o n t r a n s f o r m q u a l i e s a d a t a s e t b a s e d o n      

r u l e s f o r i n p u t s c h e m a c o l u m n s . I t l t e r s o u t o r r e p l a c e s d a t a t h a t f a i l s y o u r    

c r i t e r i a . T h e a v a i l a b l e o u t p u t s a r e p a s s a n d f a i l . Y o u c a n h a v e o n e v a l i d a t i o n      r u l e p e r c o l u m n .  

F o r e x a m p l e , i f y o u w a n t t o l o a d o n l y s a l e s r e c o r d s f o r O c t o b e r 2 0 1 0 , y o u w o u l d      

s e t u p a v a l i d a t i o n r u l e t h a t s t a t e s : S a l e s D a t e i s b e t w e e n 1 0 / 1 / 2 0 1 0 t o 1 0 / 3 1 / 2 0 1 0 .  

D a t a S e r v i c e s l o o k s a t t h i s d a t e e l d i n e a c h r e c o r d t o v a l i d a t e i f t h e d a t a m e e t s    

t h i s r e q u i r e m e n t . I f i t d o e s n o t , y o u c a n c h o o s e t o p a s s t h e r e c o r d i n t o a F a i l t a b l e ,    

c o r r e c t i t i n t h e P a s s t a b l e , o r d o b o t h .  

2 3 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 251: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 251/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

F i g u r e 7 2 : V a l i d a t i o n T r a n s f o r m E d i t o r      

Y o u r v a l i d a t i o n r u l e c o n s i s t s o f a c o n d i t i o n a n d a n a c t i o n o n f a i l u r e :  

• U s e t h e c o n d i t i o n t o d e s c r i b e w h a t y o u w a n t f o r y o u r v a l i d d a t a .  

F o r e x a m p l e , s p e c i f y t h e c o n d i t i o n “ I S N O T N U L L ” i f y o u d o n o t w a n t a n y      “ N U L L S ” i n d a t a p a s s e d t o t h e s p e c i e d t a r g e t .  

• U s e t h e A c t i o n o n F a i l u r e a r e a t o d e s c r i b e w h a t h a p p e n s t o i n v a l i d o r f a i l e d      

d a t a .  

C o n t i n u i n g w i t h t h e e x a m p l e a b o v e , f o r a n y N U L L v a l u e s , y o u m a y w a n t    

t o s e l e c t t h e S e n d t o F a i l o p t i o n t o s e n d a l l “ N U L L ” v a l u e s t o a s p e c i e d      

“ F A I L E D ” t a r g e t t a b l e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 252: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 252/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 7 3 : A d d / E d i t R u l e E d i t o r      

F i g u r e 7 4 : C o n i c t o f V a l i d a t i o n R u l e s      

Y o u c a n a l s o c r e a t e a c u s t o m V a l i d a t i o n f u n c t i o n a n d s e l e c t i t w h e n y o u c r e a t e      

a v a l i d a t i o n r u l e .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e V a l i d a t i o n t r a n s f o r m .  

2 3 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 253: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 253/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

O n l y o n e s o u r c e i s a l l o w e d a s a d a t a i n p u t f o r t h e V a l i d a t i o n t r a n s f o r m .  

T h e V a l i d a t i o n t r a n s f o r m o u t p u t s u p t o t w o d i f f e r e n t d a t a s e t s b a s e d o n w h e t h e r    

t h e r e c o r d s p a s s o r f a i l t h e v a l i d a t i o n c o n d i t i o n y o u s p e c i f y . Y o u c a n l o a d p a s s a n d      f a i l d a t a i n t o m u l t i p l e t a r g e t s .  

T h e P a s s o u t p u t s c h e m a i s i d e n t i c a l t o t h e i n p u t s c h e m a . D a t a S e r v i c e s a d d s t h e      

t w o c o l u m n s t o t h e F a i l o u t p u t s c h e m a s :  

• T h e        D I _ E R R O R A C T I O N            c o l u m n i n d i c a t e s w h e r e f a i l e d d a t a w a s s e n t i n      

t h i s w a y :  

 – T h e l e t t e r B i s u s e d f o r s e n t t o b o t h P a s s a n d F a i l o u t p u t s . 

 – T h e l e t t e r F i s u s e d f o r s e n t o n l y t o t h e F a i l o u t p u t . 

I f y o u c h o o s e t o s e n d f a i l e d d a t a t o t h e P a s s o u t p u t , D a t a S e r v i c e s d o e s n o t    

t r a c k t h e r e s u l t s . Y o u m a y w a n t t o s u b s t i t u t e a v a l u e f o r f a i l e d d a t a t h a t    y o u s e n d t o t h e P a s s o u t p u t b e c a u s e D a t a S e r v i c e s d o e s n o t a d d c o l u m n s t o      

t h e P a s s o u t p u t .  

• T h e        D I _ E R R O R C O L U M N S        c o l u m n d i s p l a y s a l l e r r o r m e s s a g e s f o r c o l u m n s    

w i t h f a i l e d r u l e s . T h e n a m e s o f i n p u t c o l u m n s a s s o c i a t e d w i t h e a c h m e s s a g e      

a r e s e p a r a t e d b y c o l o n s . F o r e x a m p l e , “ < V a l i d a t i o n T r a n s f o r m N a m e > f a i l e d      

r u l e ( s ) : c 1 : c 2 ” .  

I f a r o w h a s c o n d i t i o n s s e t f o r m u l t i p l e c o l u m n s a n d t h e P a s s a c t i o n , F a i l    

a c t i o n , a n d B o t h a c t i o n s a r e s p e c i e d f o r t h e r o w , t h e n t h e p r e c e d e n c e o r d e r    

i s F a i l , B o t h , P a s s . F o r e x a m p l e , i f o n e c o l u m n ’ s a c t i o n i s S e n d t o F a i l a n d      

t h e c o l u m n f a i l s , t h e n t h e w h o l e r o w i s s e n t o n l y t o t h e F a i l o u t p u t . O t h e r    a c t i o n s f o r o t h e r v a l i d a t i o n c o l u m n s i n t h e r o w a r e i g n o r e d .  

W h e n y o u u s e t h e V a l i d a t i o n t r a n s f o r m , y o u s e l e c t a c o l u m n i n t h e i n p u t s c h e m a      

a n d c r e a t e a v a l i d a t i o n r u l e i n t h e V a l i d a t i o n t r a n s f o r m e d i t o r . T h e V a l i d a t i o n      

t r a n s f o r m o f f e r s s e v e r a l o p t i o n s f o r c r e a t i n g t h i s v a l i d a t i o n r u l e :  

O p t i o n D e s c r i p t i o n      

E n a b l e V a l i d a t i o n T u r n t h e v a l i d a t i o n r u l e o n a n d o f f f o r t h e c o l u m n .  

D o n o t v a l i d a t e      

w h e n N U L L        

S e n d a l l N U L L v a l u e s t o t h e P a s s o u t p u t a u t o m a t i c a l l y .  

D a t a S e r v i c e s d o e s n o t a p p l y t h e v a l i d a t i o n r u l e o n t h i s    

c o l u m n w h e n a n i n c o m i n g v a l u e f o r i t i s N U L L .  C o n d i t i o n D e n e t h e c o n d i t i o n f o r t h e v a l i d a t i o n r u l e :  

A c t i o n o n F a i l    

D e n e w h e r e a r e c o r d i s l o a d e d i f i t f a i l s t h e v a l i d a t i o n      

r u l e :  

• S e n d t o F a i l    

• S e n d t o P a s s    

• S e n d t o b o t h      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 254: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 254/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

I f y o u c h o o s e S e n d t o P a s s o r S e n d t o B o t h , y o u c a n      

c h o o s e t o s u b s t i t u t e a v a l u e o r e x p r e s s i o n f o r t h e f a i l e d      

v a l u e s t h a t a r e s e n t t o t h e P a s s o u t p u t .  

T h e R u l e V i o l a t i o n t a b l e l i s t s f o r e a c h r e c o r d , w h a t w e r e a l l t h e r u l e s / c o l u m n s    

f a i l e d . T h e e l d        R o w _ I D ,   , w h i c h i s a l s o a d d e d t o t h e f a i l t a b l e , a l l o w s y o u t o m a k e      

t h e l i n k b a c k t o t h e o r i g i n a l d a t a . I n t h i s e x a m p l e r o w 1 a n d 2 e a c h f a i l e d f o r o n e      

v a l i d a t i o n r u l e ( v a l i d Z I P a n d v a l i d P h o n e ) . R o w 3 f a i l e d b o t h r u l e s . W i t h t h e R u l e      

V i o l a t i o n t a b l e y o u c a n n o w e a s i l y c r e a t e q u e r i e s a n d r e p o r t s t o s h o w a l l r o w s t h a t    

f a i l e d f o r a p a r t i c u l a r r u l e a n d c o u n t t h e n u m b e r o f f a i l u r e s p e r r u l e .  

F i g u r e 7 5 : R u l e V i o l a t i o n S t a t i s t i c s      

T o c r e a t e a v a l i d a t i o n r u l e :  

1 . O p e n t h e d a t a o w w o r k s p a c e .  

2 . A d d y o u r s o u r c e o b j e c t t o t h e w o r k s p a c e .  

3 . O n t h e T r a n s f o r m s t a b o f t h e L o c a l O b j e c t L i b r a r y , s e l e c t a n d d r a g t h e      

V a l i d a t i o n t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f y o u r s o u r c e o b j e c t .  

4 . A d d y o u r t a r g e t o b j e c t s t o t h e w o r k s p a c e .  

Y o u r e q u i r e o n e t a r g e t o b j e c t f o r r e c o r d s t h a t p a s s v a l i d a t i o n , a n d a n o p t i o n a l    

t a r g e t o b j e c t f o r r e c o r d s t h a t f a i l v a l i d a t i o n , d e p e n d i n g o n t h e o p t i o n s y o u      

s e l e c t .  

5 . C o n n e c t t h e s o u r c e o b j e c t t o t h e t r a n s f o r m .  

2 3 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 255: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 255/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

6 . D o u b l e - c l i c k t h e V a l i d a t i o n t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r a n d      

c o n g u r e t h e v a l i d a t i o n r u l e s .  

F i g u r e 7 6 : V a l i d a t i o n R e m i n d e r s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 256: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 256/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 3 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 257: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 257/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

E x e r c i s e 1 5 : U s i n g t h e V a l i d a t i o n      

t r a n s f o r m          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e V a l i d a t i o n t r a n s f o r m          

B u s i n e s s E x a m p l e      

O r d e r d a t e i s s t o r e d i n m u l t i p l e f o r m a t s w i t h d i f f e r e n t s t r u c t u r e s a n d d i f f e r e n t    

i n f o r m a t i o n . Y o u w a n t t o l e a r n h o w t o u s e t h e V a l i d a t i o n t r a n s f o r m t o v a l i d a t e      

o r d e r d a t a f r o m a t l e s o u r c e s a n d t h e a l p h a o r d e r s t a b l e b e f o r e m e r g i n g i t .  

T a s k 1 :    

C r e a t e a a t l e f o r m a t c a l l e d        O r d e r _ S h i p p e r s _ F o r m a t        f o r a t l e s    

c o n t a i n i n g o r d e r d e l i v e r y i n f o r m a t i o n .  

1 . C r e a t e a a t l e f o r m a t c a l l e d        O r d e r _ S h i p p e r s _ F o r m a t        . 

2 . A d j u s t t h e d a t a t y p e s f o r t h e c o l u m n s p r o p o s e d b y t h e D e s i g n e r b a s e d o n      

t h e i r c o n t e n t .  

T a s k 2 :    

C r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        a n d t w o d a t a       o w s , o n e n a m e d        A l p h a _ O r d e r s _ F i l e s _ D F        a n d     A l p h a _ O r d e r s _ D B _ D F      i n t h e O m e g a p r o j e c t .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ V a l i -      d a t e d _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ F i l e s _ D F        . 

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ V a l i -      d a t e d _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ D B _ D F        . 

T a s k 3 :    

D e s i g n t h e d a t a o w          A l p h a _ O r d e r s _ F i l e s _ D F      

  w i t h l e f o r m a t s , a Q u e r y      

t r a n s f o r m , a V a l i d a t i o n t r a n s f o r m a n d t a r g e t t e m p l a t e t a b l e s .  

1 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ F i l e s _ D F        , a d d t h e l e f o r m a t s    

O r d e r s _ F o r m a t        a n d     O r d e r s _ S h i p p e r s _ F o r m a t        a s s o u r c e o b j e c t s .  

2 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ F i l e s _ W o r k        i n t h e D e l t a d a t a s t o r e      

a s t h e t a r g e t o b j e c t .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 3 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 258: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 258/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

3 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ F i l e s _ N o _ F a x        i n t h e D e l t a      

d a t a s t o r e a s t h e t a r g e t o b j e c t .  

4 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e a n d c o n n e c t b o t h s o u r c e s t o i t .  

5 . A d d t h e V a l i d a t i o n t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y      

t r a n s f o r m a n d c o n n e c t t h e m .  

6 . E d i t t h e s o u r c e l e f o r m a t s i n t h e d a t a o w t o u s e a l l t h r e e r e l a t e d o r d e r s    

a n d o r d e r s h i p p e r s a t l e s .  

7 . E d i t t h e s o u r c e l e f o r m a t s i n t h e d a t a o w t o u s e a l l t h r e e r e l a t e d o r d e r s    

a n d o r d e r s h i p p e r s a t l e s .  

8 . C o m p l e t e t h e d a t a o w          A l p h a _ O r d e r s _ F i l e s _ D F        b y c o n n e c t i n g t h e      

 p a s s a n d f a i l o u t p u t s f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e   

t a b l e s .  

T a s k 4 :    

D e s i g n t h e d a t a o w          A l p h a _ O r d e r s _ D B _ D F        w i t h t h e O r d e r s t a b l e f r o m t h e      

A l p h a d a t a s t o r e , a Q u e r y t r a n s f o r m , a V a l i d a t i o n t r a n s f o r m a n d t a r g e t t e m p l a t e      

t a b l e s .  

1 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ D B _ D F        , a d d t h e O r d e r s t a b l e f r o m          

t h e A l p h a d a t a s t o r e a s a s o u r c e o b j e c t .  

2 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ D B _ W o r k        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

3 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ D B _ N o _ F a x        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

4 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e a n d c o n n e c t b o t h s o u r c e s t o i t .  

5 . A d d t h e V a l i d a t i o n t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y      

t r a n s f o r m a n d c o n n e c t t h e m .  

6 . C o m p l e t e t h e d a t a o w          A l p h a _ O r d e r s _ D B _ D F        b y c o n n e c t i n g t h e p a s s    

a n d f a i l o u t p u t s f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e t a b l e s .  

7 . E x e c u t e t h e        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        a n d v i e w t h e d i f f e r e n c e s    

 b e t w e e n p a s s i n g a n d f a i l i n g r e c o r d s . 

2 4 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 259: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 259/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

S o l u t i o n 1 5 : U s i n g t h e V a l i d a t i o n      

t r a n s f o r m          T a s k 1 :    

C r e a t e a a t l e f o r m a t c a l l e d        O r d e r _ S h i p p e r s _ F o r m a t        f o r a t l e s    

c o n t a i n i n g o r d e r d e l i v e r y i n f o r m a t i o n .  

1 . C r e a t e a a t l e f o r m a t c a l l e d        O r d e r _ S h i p p e r s _ F o r m a t        . 

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b        F o r m a t s        a n d r i g h t - c l i c k      

F l a t F i l e s        a n d s e l e c t      N e w     f r o m t h e m e n u t o o p e n t h e        F i l e      F o r m a t E d i t o r .    

 b ) I n t h e     T y p e        e l d , s p e c i f y t h e t y p e        D e l i m i t e d        . 

c ) I n t h e        N a m e        e l d , e n t e r t h e n a m e        O r d e r _ S h i p p e r s _ F o r m a t        . 

d ) T o s e l e c t t h e s o u r c e d i r e c t o r y , s e l e c t t h e f o l d e r i c o n t o s e l e c t      M y  

 D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e     . 

e ) T o s e l e c t t h e a p p r o p r i a t e l e , s e l e c t t h e l e i c o n t o s e l e c t t h e s o u r c e l e      

O r d e r _ S h i p p e r s _ 0 1 _ 2 0 _ 0 7 . t x t        . 

f ) C h a n g e t h e v a l u e o f t h e c o l u m n d e l i m i t e r t o a s e m i c o l o n b y t y p i n g      

i n a s e m i c o l o n .  

g ) C h a n g e t h e r o w d e l i m i t e d b y c l i c k i n g i n t h e v a l u e f o r t h i s p r o p e r t y a n d      

u s i n g t h e d r o p - d o w n b o x t o c h o o s e t h e v a l u e        W i n d o w s n e w l i n e        . 

h ) S e t t h e v a l u e f o r s k i p p i n g t h e r o w h e a d e r t o        1     . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 4 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 260: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 260/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 . A d j u s t t h e d a t a t y p e s f o r t h e c o l u m n s p r o p o s e d b y t h e D e s i g n e r b a s e d o n      

t h e i r c o n t e n t .  

a ) I n t h e C o l u m n A t t r i b u t e s p a n e , c h a n g e t h e s e e l d d a t a t y p e s :  

C o l u m n D a t a t y p e      

O R D E R I D i n t    

S H I P P E R N A M E v a r c h a r ( 5 0 )    

S H I P P E R A D D R E S S v a r c h a r ( 5 0 )    

S H I P P E R C I T Y v a r c h a r ( 5 0 )    

S H I P P E R C O U N T R Y i n t    

S H I P P E R P H O N E v a r c h a r ( 2 0 )    

S H I P P P E R F A X v a r c h a r ( 2 0 )    

S H I P P E R R E G I O N i n t    

S H I P P E R P O S T A S L C O D E v a r c h a r ( 1 5 )    

 b ) S e l e c t t h e b u t t o n     S a v e a n d c l o s e        . 

T a s k 2 :    

C r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        a n d t w o d a t a      

o w s , o n e n a m e d        A l p h a _ O r d e r s _ F i l e s _ D F        a n d     A l p h a _ O r d e r s _ D B _ D F      

i n t h e O m e g a p r o j e c t .  1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ V a l i -      

d a t e d _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ F i l e s _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        b y d o u b l e - c l i c k i n g      

i t . 

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ O r d e r s _ F i l e s _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

C o n t i n u e d o n n e x t p a g e      

2 4 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 261: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 261/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ V a l i -      d a t e d _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ D B _ D F        . 

a ) O p e n t h e j o b        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        b y d o u b l e - c l i c k i n g      i t . 

 b ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e . 

c ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

d ) E n t e r      A l p h a _ O r d e r s _ D B _ D F        a s t h e n a m e .  

e ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

T a s k 3 :    

D e s i g n t h e d a t a o w          A l p h a _ O r d e r s _ F i l e s _ D F        w i t h l e f o r m a t s , a Q u e r y      t r a n s f o r m , a V a l i d a t i o n t r a n s f o r m a n d t a r g e t t e m p l a t e t a b l e s .  

1 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ F i l e s _ D F        , a d d t h e l e f o r m a t s    

O r d e r s _ F o r m a t        a n d     O r d e r s _ S h i p p e r s _ F o r m a t        a s s o u r c e o b j e c t s .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        F o r m a t s      t a b a n d t h e n s e l e c t    

t h e l e f o r m a t      O r d e r s _ F o r m a t        . 

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

c ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        F o r m a t s      t a b a n d t h e n s e l e c t t h e      

l e f o r m a t      O r d e r s _ S h i p p e r s _ F o r m a t        . 

d ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t    

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

2 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ F i l e s _ W o r k        i n t h e D e l t a d a t a s t o r e      

a s t h e t a r g e t o b j e c t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ F i l e s _ W o r k        a s  

t h e t e m p l a t e t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n .  

d ) S e l e c t      O K      . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 4 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 262: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 262/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

3 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ F i l e s _ N o _ F a x        i n t h e D e l t a      

d a t a s t o r e a s t h e t a r g e t o b j e c t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ F i l e s _ N o _ F a x      a s t h e t e m p l a t e t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n .  

d ) S e l e c t      O K      . 

4 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e a n d c o n n e c t b o t h s o u r c e s t o i t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e s o u r c e l e f o r m a t s    O r d e r s _ F o r m a t        a n d   

O r d e r s _ S h i p p e r s _ F o r m a t        t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g      

t h e s o u r c e s a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e      

Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n .  

c ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

d ) I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , s e l e c t    

t h e     W H E R E        t a b a n d s e l e c t i n t h e w o r k s p a c e t o e n t e r t h e      

e x p r e s s i o n        O r d e r s _ S h i p p e r s _ F o r m a t . O R D E R I D =      O r d e r s _ F o r m a t . O R D E R I D        t o j o i n t h e d a t a i n t h e f o r m a t s o n t h e      

O r d e r I D        v a l u e s .  

e ) I n t h e Q u e r y t r a n s f o r m , s e l e c t t h e s e i n p u t s c h e m a e l d s a n d d r a g t h e m          

t o t h e o u t p u t s c h e m a . T h i s c r e a t e s t h e n e c e s s a r y m a p p i n g .  

I n p u t S c h e m a F i e l d O u t p u t S c h e m a      

O r d e r s _ F o r m a t O R D E R I D O R D E R I D        

O r d e r s _ F o r m a t C U S T O M E R I D C U S T O M E R I D        

O r d e r s _ F o r m a t O R D E R D A T E O R D E R D A T E        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R N A M E S H I P P E R N A M E        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R A D D R E S S S H I P P E R A D D R E S S      

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R C I T Y S H I P P E R C I T Y        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R C O U N -    

T R Y    

S H I P P E R C O U N -    

T R Y    

C o n t i n u e d o n n e x t p a g e      

2 4 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 263: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 263/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R P H O N E S H I P P E R P H O N E        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R F A X S H I P P E R F A X        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R R E G I O N S H I P P E R R E G I O N        

O r d e r _ S h i p p e r s _ F o r -    

m a t  

S H I P P E R P O S T A L -    

C O D E        

S H I P P E R P O S T A L -    

C O D E        

f ) I n t h e o u t p u t s c h e m a o f t h e Q u e r y t r a n s f o r m , r i g h t - c l i c k t h e e l d      

O R D E R D A T E        a n d f r o m t h e m e n u , s e l e c t t h e o p t i o n ,      N e w O u t p u t      C o l u m n        . F r o m t h e n e x t c o n t e x t m e n u , s e l e c t      A b o v e        . 

 N a m e t h e n e w e l d     O R D E R _ T A K E N _ B Y        w i t h a d a t a t y p e o f        v a r c h a r      a n d a l e n g t h o f        1 5     . 

M a p     O R D E R _ T A K E N _ B Y        t o     O r d e r s _ F o r m a t . E M P L O Y E E I D        b y   

s e l e c t i n g        O r d e r s _ F o r m a t . E M P L O Y E E I D        i n t h e i n p u t s c h e m a a n d      

d r a g g i n g i t t o t h e e l d i n t h e o u t p u t s c h e m a .  

g ) I n t h e o u t p u t s c h e m a o f t h e Q u e r y t r a n s f o r m , r i g h t - c l i c k t h e e l d      

O R D E R D A T E        a n d f r o m t h e m e n u , s e l e c t t h e o p t i o n ,      N e w O u t p u t      C o l u m n        . F r o m t h e n e x t c o n t e x t m e n u , s e l e c t      A b o v e        . 

 N a m e t h e n e w e l d     O R D E R _ A S S I G N E D _ T O        w i t h a d a t a t y p e o f      

v a r c h a r        a n d a l e n g t h o f      

  1 5     . 

M a p     O R D E R _ A S S I G N E D _ T O        t o     O r d e r s _ F o r m a t . E M P L O Y E E I D       b y s e l e c t i n g     O r d e r s _ F o r m a t . E M P L O Y E E I D        i n t h e i n p u t s c h e m a      

a n d d r a g g i n g i t t o t h e e l d i n t h e o u t p u t s c h e m a .  

h ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

5 . A d d t h e V a l i d a t i o n t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y      

t r a n s f o r m a n d c o n n e c t t h e m .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e V a l i d a t i o n t r a n s f o r m t o t h e d a t a o w        

w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m .  

 b ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e V a l i d a t i o n t r a n s f o r m b y s e l e c t i n g   

t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n d r a g      

t h e c u r s o r t o t h e V a l i d a t i o n t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n .  

c ) D o u b l e - c l i c k t h e V a l i d a t i o n t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

I n t h e i n p u t s c h e m a a r e a , s e l e c t t h e e l d        O R D E R _ A S S I G N E D _ T O        . 

d ) I n t h e V a l i d a t i o n R u l e s a r e a , s e l e c t t h e b u t t o n        A d d     . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 4 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 264: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 264/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

e ) I n t h e R u l e s a r e a , s e l e c t t h e c h e c k b o x b u t t o n f o r t h e e l d        E n a b l e d        . 

F r o m t h e d r o p - d o w n l i s t i n t h e        R u l e        e l d , s e l e c t t h e r u l e        E x i s t s i n      t a b l e        . 

f ) S e l e c t t h e e l d        A c t i o n o n F a i l      t o s e t t h e a c t i o n        S e n d t o B o t h        e l d      

t o s e n d t o b o t h        P a s s        a n d     F a i l        . 

I n t h e        N a m e        e l d , u s e t h e d r o p - d o w n l i s t t o s e l e c t t h e        E M P L O Y E E I D       e l d f r o m t h e        E m p l o y e e        t a b l e i n t h e        H R _ d a t a m a r t        d a t a s t o r e .  

T h e r e s u l t i n g e x p r e s s i o n s h o u l d b e        H R _ D A T A M A R T . D B O . E M -      P L O Y E E . E M P L O Y E E I D        . 

g ) I n t h e        I f a n y r u l e f a i l s a n d S e n d t o P a s s , s u b s t i t u t e w i t h :      s e c t i o n , s e l e c t    

t h e c h e c k b o x b u t t o n f o r t h e e l d        E n a b l e d        . 

I n t h e        C o l u m n        e l d , u s e t h e d r o p - d o w n l i s t t o s e l e c t      E M P L O Y E E I D        . 

I n t h e        E x p r e s s i o n e l d        , s e l e c t t h e        e l i p s e s ( . . )    i c o n a n d i n t h e S m a r t    

E d i t o r , e n t e r t h e e x p r e s s i o n        ' 3 C l a 5 '      . 

h ) I n t h e i n p u t s c h e m a a r e a , s e l e c t t h e e l d        S H I P P E R F A X        . 

i ) I n t h e V a l i d a t i o n R u l e s a r e a , s e l e c t t h e b u t t o n        A d d     . 

 j ) I n t h e R u l e s a r e a , s e l e c t t h e c h e c k b o x b u t t o n f o r t h e e l d     E n a b l e d        . 

F r o m t h e d r o p - d o w n l i s t i n t h e        R u l e        e l d , s e l e c t t h e r u l e        I S N O T       N U L L     . 

k ) S e l e c t t h e e l d        A c t i o n o n F a i l      t o s e t t h e a c t i o n        S e n d t o B o t h        e l d      t o s e n d t o b o t h        P a s s        a n d     F a i l        . 

I n t h e        N a m e        e l d , u s e t h e d r o p - d o w n l i s t t o s e l e c t t h e        S H I P P E R F A X       e l d .  

l ) I n t h e        I f a n y r u l e f a i l s a n d S e n d t o P a s s , s u b s t i t u t e w i t h :      s e c t i o n , s e l e c t    

t h e c h e c k b o x b u t t o n f o r t h e e l d        E n a b l e d        . 

I n t h e        C o l u m n        e l d , u s e t h e d r o p - d o w n l i s t t o s e l e c t      S H I P P E R F A X        . 

I n t h e        E x p r e s s i o n e l d        , s e l e c t t h e        e l i p s e s ( . . )    i c o n a n d i n t h e S m a r t    

E d i t o r , e n t e r t h e e x p r e s s i o n        ' N o F a x '      . 

m ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 4 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 265: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 265/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

6 . E d i t t h e s o u r c e l e f o r m a t s i n t h e d a t a o w t o u s e a l l t h r e e r e l a t e d o r d e r s    

a n d o r d e r s h i p p e r s a t l e s .  

a ) D o u b l e - c l i c k t h e        O r d e r s _ F o r m a t        s o u r c e o b j e c t t o o p e n t h e f o r m a t    e d i t o r a n d c h a n g e t h e l e n a m e t o        o r d e r s _ * . t x t        . 

N o t e :      T h e a s t e r i s k c h a r a c t e r a c t s a s a w i l d c a r d .  

 b ) E d i t t h e s o u r c e o b j e c t t o p o i n t t o t h e l e o n t h e J o b   

S e r v e r . C h a n g e        L o c a t i o n        b y s e l e c t i n g        J o b S e r v e r      f r o m t h e d r o p - d o w n l i s t a n d c h a n g e t h e        R o o t d i r e c t o r y      t o   

D : \ C o u r s e F i l e s \ D a t a S e r v i c e s \ A c t i v i t y _ S o u r c e        . 

N o t e :      T h e a b o v e l e p a t h i s c a s e - s e n s t i t i v e a n d        m u s t      b e t y p e d      

a s s h o w n .  

C h e c k w i t h y o u r i n s t r u c t o r t o v e r i f y t h a t t h e p a t h i s c o r r e c t     b e f o r e p r o c e e d i n g . 

c ) I n t h e f o r m a t e d i t o r f o r t h e        O r d e r s _ F o r m a t        , c h a n g e t h e        C a p t u r e      D a t a C o n v e r s i o n E r r o r s        o p t i o n t o        Y e s     . 

7 . E d i t t h e s o u r c e l e f o r m a t s i n t h e d a t a o w t o u s e a l l t h r e e r e l a t e d o r d e r s    

a n d o r d e r s h i p p e r s a t l e s .  

a ) D o u b l e - c l i c k t h e        O r d e r s _ S h i p p e r s _ F o r m a t        s o u r c e      

o b j e c t t o o p e n t h e f o r m a t e d i t o r a n d c h a n g e t h e l e n a m e t o      

O r d e r _ S h i p p e r s _ * . t x t        . 

N o t e :      T h e a s t e r i s k c h a r a c t e r a c t s a s a w i l d c a r d .  

 b ) E d i t t h e s o u r c e o b j e c t t o p o i n t t o t h e l e o n t h e J o b   

S e r v e r . C h a n g e        L o c a t i o n        b y s e l e c t i n g        J o b S e r v e r      f r o m t h e d r o p - d o w n l i s t a n d c h a n g e t h e        R o o t d i r e c t o r y      t o   

D : \ C o u r s e F i l e s \ D a t a S e r v i c e s \ A c t i v i t y _ S o u r c e        . 

N o t e :      T h e a b o v e l e p a t h i s c a s e - s e n s t i t i v e a n d        m u s t      b e t y p e d      

a s s h o w n .  

C h e c k w i t h y o u r i n s t r u c t o r t o v e r i f y t h a t t h e p a t h i s c o r r e c t    

 b e f o r e p r o c e e d i n g . 

c ) I n t h e f o r m a t e d i t o r f o r t h e        O r d e r s _ S h i p p e r s _ F o r m a t        , c h a n g e      

t h e     C a p t u r e D a t a C o n v e r s i o n E r r o r s        o p t i o n t o        Y e s     . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 4 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 266: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 266/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

8 . C o m p l e t e t h e d a t a o w          A l p h a _ O r d e r s _ F i l e s _ D F        b y c o n n e c t i n g t h e      

 p a s s a n d f a i l o u t p u t s f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e   

t a b l e s .  a ) S e l e c t      B a c k        t o r e t u r n t o t h e d a t a o w w o r k s p a c e .  

 b ) S e l e c t a n d d r a g f r o m t h e V a l i d a t i o n T r a n s f o r m t o t h e t a r g e t t e m p l a t e   

t a b l e        O r d e r s _ F i l e s _ W o r k        . 

R e l e a s e t h e m o u s e a n d s e l e c t t h e l a b e l      P a s s        f o r t h a t o b j e c t f r o m t h e      

c o n t e x t m e n u .  

c ) S e l e c t a n d d r a g f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e      

t a b l e        O r d e r s _ F i l e s _ N o _ F a x        . 

R e l e a s e t h e m o u s e a n d s e l e c t t h e l a b e l      F a i l        f o r t h a t o b j e c t f r o m t h e      

c o n t e x t m e n u .  

T a s k 4 :    

D e s i g n t h e d a t a o w          A l p h a _ O r d e r s _ D B _ D F        w i t h t h e O r d e r s t a b l e f r o m t h e      

A l p h a d a t a s t o r e , a Q u e r y t r a n s f o r m , a V a l i d a t i o n t r a n s f o r m a n d t a r g e t t e m p l a t e      

t a b l e s .  

1 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ D B _ D F        , a d d t h e O r d e r s t a b l e f r o m          

t h e A l p h a d a t a s t o r e a s a s o u r c e o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e O r d e r s t a b l e f r o m t h e A l p h a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

2 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ D B _ W o r k        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ D B _ W o r k        a s t h e      

t e m p l a t e t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n .  

d ) S e l e c t      O K      . 

C o n t i n u e d o n n e x t p a g e      

2 4 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 267: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 267/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

3 . C r e a t e a n e w t e m p l a t e t a b l e        O r d e r s _ D B _ N o _ F a x        i n t h e D e l t a d a t a s t o r e a s    

t h e t a r g e t o b j e c t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ D B _ N o _ F a x        a s  

t h e t e m p l a t e t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n .  

d ) S e l e c t      O K      . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 4 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 268: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 268/472

Page 269: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 269/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

5 . A d d t h e V a l i d a t i o n t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y      

t r a n s f o r m a n d c o n n e c t t h e m .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e V a l i d a t i o n t r a n s f o r m t o t h e d a t a o w        

w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m .  

 b ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e V a l i d a t i o n t r a n s f o r m b y s e l e c t i n g   

t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n d r a g      

t h e c u r s o r t o t h e V a l i d a t i o n t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n .  

c ) D o u b l e - c l i c k t h e V a l i d a t i o n t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

I n t h e i n p u t s c h e m a a r e a , s e l e c t t h e e l d        O R D E R _ A S S I G N E D _ T O        . 

d ) I n t h e p a r a m e t e r s a r e a , s e l e c t t h e c h e c k b o x        E n a b l e V a l i d a t i o n      o p t i o n .  

e ) I n t h e C o n d i t i o n a r e a , s e l e c t t h e r a d i o b u t t o n f o r t h e o p t i o n        E x i s t s      i n t a b l e        . 

F r o m t h e d r o p - d o w n l i s t i n t h i s o p t i o n , s e l e c t t h e        H R _ d a t a m a r t      d a t a s t o r e , t h e n t h e        E m p l o y e e        t a b l e , a n d t h e n t h e        E M P L O Y E E I D        e l d .  

T h e r e s u l t i n g e x p r e s s i o n s h o u l d b e        H R _ D A T A M A R T . D B O . E M -      P L O Y E E . E M P L O Y E E I D        . 

f ) S e l e c t t h e        A c t i o n o n F a i l u r e        t a b t o s e t t h e a c t i o n f o r t h e      

O R D E R _ A S S I G N E D _ T O        e l d t o s e n d t o b o t h        P a s s        a n d     F a i l        . 

g ) S e l e c t t h e        F o r p a s s , s u b s t i t u t e w i t h        o p t i o n a n d e n t e r t h e      

s u b s t i t u t e v a l u e        3 C l a 5        . 

h ) I n t h e i n p u t s c h e m a a r e a , s e l e c t t h e e l d        S H I P P E R F A X        . 

i ) I n t h e p a r a m e t e r s a r e a , s e l e c t t h e c h e c k b o x        E n a b l e V a l i d a t i o n      o p t i o n .  

 j ) I n t h e C o n d i t i o n a r e a , s e l e c t t h e r a d i o b u t t o n f o r t h e r s t o p t i o n . T h i s  

s h o u l d b e t h e d e f a u l t s e l e c t i o n .  

F r o m t h e d r o p - d o w n l i s t i n t h i s o p t i o n , s e l e c t      I S N O T        o p e r a t o r , t h e n      

e n t e r t h e v a l u e        N U L L        i n t h e n e x t e l d a f t e r t h e o p e r a t o r .  

k ) S e l e c t t h e        A c t i o n o n F a i l u r e        t a b t o s e t t h e a c t i o n f o r t h e      

S H I P P E R F A X        e l d t o s e n d t o b o t h        P a s s        a n d     F a i l        . 

l ) S e l e c t t h e        F o r p a s s , s u b s t i t u t e w i t h        o p t i o n a n d e n t e r t h e      

s u b s t i t u t e v a l u e        N o F a x        . 

m ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 270: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 270/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

6 . C o m p l e t e t h e d a t a o w          A l p h a _ O r d e r s _ D B _ D F        b y c o n n e c t i n g t h e p a s s    

a n d f a i l o u t p u t s f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e t a b l e s .  

a ) S e l e c t      B a c k        t o r e t u r n t o t h e d a t a o w w o r k s p a c e .  

 b ) S e l e c t a n d d r a g f r o m t h e V a l i d a t i o n T r a n s f o r m t o t h e t a r g e t t e m p l a t e   

t a b l e        O r d e r s _ D B _ W o r k        . 

R e l e a s e t h e m o u s e a n d s e l e c t t h e l a b e l      P a s s        f o r t h a t o b j e c t f r o m t h e      

c o n t e x t m e n u .  

c ) S e l e c t a n d d r a g f r o m t h e V a l i d a t i o n t r a n s f o r m t o t h e t a r g e t t e m p l a t e      

t a b l e        O r d e r s _ D B _ N o _ F a x        . 

R e l e a s e t h e m o u s e a n d s e l e c t t h e l a b e l      F a i l        f o r t h a t o b j e c t f r o m t h e      

c o n t e x t m e n u .  

7 . E x e c u t e t h e        A l p h a _ O r d e r s _ V a l i d a t e d _ J o b        a n d v i e w t h e d i f f e r e n c e s     b e t w e e n p a s s i n g a n d f a i l i n g r e c o r d s . 

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ O r d e r s _ V a l -      i d a t e d _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t t a b l e s    

t o s e e t h e d i f f e r e n c e s b e t w e e n p a s s i n g a n d f a i l i n g r e c o r d s .  

2 5 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 271: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 271/472

B O D S 1 0 L e s s o n : U s i n g t h e V a l i d a t i o n T r a n s f o r m          

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e V a l i d a t i o n t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e V a l i d a t i o n t r a n s f o r m s e e “ T r a n s f o r m s ” C h a p t e r    

5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

• F o r m o r e i n f o r m a t i o n o n c r e a t i n g c u s t o m V a l i d a t i o n f u n c t i o n s , s e e      

“ V a l i d a t i o n T r a n s f o r m ” , C h a p t e r 1 2 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 272: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 272/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

L e s s o n O v e r v i e w          

Y o u w a n t t o u s e t h e M e r g e t r a n s f o r m t o c o m b i n e i n c o m i n g d a t a s e t s w i t h t h e      

s a m e s c h e m a s t r u c t u r e t o p r o d u c e a s i n g l e o u t p u t d a t a s e t w i t h t h e s a m e s c h e m a      

a s t h e i n p u t d a t a s e t s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e M e r g e t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

Y o u w a n t t o u s e t h e M e r g e t r a n s f o r m t o c o m b i n e i n c o m i n g d a t a s e t s w i t h t h e      

s a m e s c h e m a s t r u c t u r e t o p r o d u c e a s i n g l e o u t p u t d a t a s e t w i t h t h e s a m e s c h e m a      

a s t h e i n p u t d a t a s e t s .  

U s i n g t h e M e r g e t r a n s f o r m          T h e M e r g e t r a n s f o r m a l l o w s y o u t o c o m b i n e m u l t i p l e s o u r c e s w i t h t h e s a m e      

s c h e m a i n t o a s i n g l e t a r g e t .  

E x p l a i n i n g t h e M e r g e t r a n s f o r m          

T h e M e r g e t r a n s f o r m c o m b i n e s i n c o m i n g d a t a s e t s w i t h t h e s a m e s c h e m a s t r u c t u r e      

t o p r o d u c e a s i n g l e o u t p u t d a t a s e t w i t h t h e s a m e s c h e m a a s t h e i n p u t d a t a s e t s .  

F o r e x a m p l e , y o u c o u l d u s e t h e M e r g e t r a n s f o r m t o c o m b i n e t w o s e t s o f a d d r e s s    

d a t a :  

2 5 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 273: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 273/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

F i g u r e 7 7 : T h e M e r g e T r a n s f o r m          

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e M e r g e t r a n s f o r m .  

I n p u t / O u t p u t    

T h e M e r g e t r a n s f o r m p e r f o r m s a u n i o n o f t h e s o u r c e s . A l l s o u r c e s m u s t h a v e      

t h e s a m e s c h e m a , i n c l u d i n g :  

• N u m b e r o f c o l u m n s    

• C o l u m n n a m e s    

• C o l u m n d a t a t y p e s    

I f t h e i n p u t d a t a s e t c o n t a i n s h i e r a r c h i c a l d a t a , t h e n a m e s a n d d a t a t y p e s m u s t    

m a t c h a t e v e r y l e v e l o f t h e h i e r a r c h y .  

T h e o u t p u t d a t a h a s t h e s a m e s c h e m a a s t h e s o u r c e d a t a . T h e o u t p u t d a t a s e t    

c o n t a i n s a r o w f o r e v e r y r o w i n t h e s o u r c e d a t a s e t s . T h e t r a n s f o r m d o e s n o t    

s t r i p o u t d u p l i c a t e r o w s . I f c o l u m n s i n t h e i n p u t s e t c o n t a i n n e s t e d s c h e m a s , t h e      

n e s t e d d a t a i s p a s s e d w i t h o u t c h a n g e .  

H i n t :      I f y o u w a n t t o m e r g e t a b l e s t h a t d o n o t h a v e t h e s a m e s c h e m a ,    

y o u c a n a d d t h e Q u e r y t r a n s f o r m t o o n e o f t h e t a b l e s b e f o r e t h e M e r g e      

t r a n s f o r m t o r e d e n e t h e s c h e m a t o m a t c h t h e o t h e r t a b l e .  

T h e M e r g e t r a n s f o r m d o e s n o t o f f e r a n y o p t i o n s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 274: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 274/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 5 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 275: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 275/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

E x e r c i s e 1 6 : U s i n g t h e M e r g e t r a n s f o r m          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e M e r g e t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  Y o u w a n t t o u s e t h e M e r g e t r a n s f o r m t o c o m b i n e i n c o m i n g d a t a s e t s w i t h t h e      

s a m e s c h e m a s t r u c t u r e t o p r o d u c e a s i n g l e o u t p u t d a t a s e t w i t h t h e s a m e s c h e m a      

a s t h e i n p u t d a t a s e t s .  

T h e O r d e r s d a t a h a s n o w b e e n v a l i d a t e d , b u t t h e o u t i s f o r t w o d i f f e r e n t s o u r c e s ,    

a t l e s a n d d a t a b a s e t a b l e s . T h e n e x t s t e p i n t h e p r o c e s s i s t o m o d i f y t h e s t r u c t u r e      

o f t h o s e d a t a s e t s s o t h e y m a t c h a n d t h e n m e r g e t h e m i n t o a s i n g l e d a t a s e t f o r    

f u r t h e r p r o c e s s i n g . Y o u w a n t t o e x p l o r e u s i n g t h e M e r g e t r a n s f o r m f o r t h i s t a s k .  

T a s k 1 :    

U s e t h e Q u e r y t r a n s f o r m s t o m o d i f y a n y c o l u m n s n a m e s a n d d a t a t y p e s a n d t o       p e r f o r m l o o k u p s f o r a n y c o l u m n s t h a t r e f e r e n c e o t h e r t a b l e s . U s e t h e M e r g e   

t r a n s f o r m t o m e r g e t h e v a l i d a t e d o r d e r s d a t a .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ O r d e r s _ M e r g e d _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ O r d e r s _ M e r g e d _ D F     . 

2 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ M e r g e d _ D F        , a d d t h e      

o r d e r s _ f i l e _ w o r k        a n d     o r d e r s _ d b _ w o r k        t a b l e s f r o m t h e D e l t a      

d a t a s t o r e a s t h e s o u r c e o b j e c t s .  

3 . A d d t w o Q u e r y t r a n s f o r m s t o t h e w o r k s p a c e c o n n e c t i n g e a c h s o u r c e o b j e c t    

t o i t o w n Q u e r y t r a n s f o r m .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m c o n n e c t e d t o t h e      

o r d e r s _ f i l e _ w o r k        , c r e a t e o u t p u t c o l u m n s a n d m a p i n p u t c o l u m n s t o      

o u t p u t c o l u m n s . b y d r a g g i n g a l l c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      

o u t p u t s c h e m a .  

5 . F o r t h e        S H I P P E R C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m          

a l o o k u p o f        C O U N T R Y N A M E        f r o m t h e C o u n t r y t a b l e i n t h e A l p h a d a t a s t o r e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 276: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 276/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

6 . F o r t h e        S H I P P E R R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        R E G I O N N A M E        f r o m t h e R e g i o n t a b l e i n t h e A l p h a d a t a s t o r e .  

7 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m c o n n e c t e d t o t h e      o r d e r s _ d b _ w o r k        , c r e a t e o u t p u t c o l u m n s a n d m a p i n p u t c o l u m n s t o      

o u t p u t c o l u m n s . b y d r a g g i n g a l l c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      

o u t p u t s c h e m a .  

8 . F o r t h e        S H I P P E R C I T Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        C I T Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e .  

9 . F o r t h e        S H I P P E R C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m          

a l o o k u p o f        C O U N T R Y N A M E        f r o m t h e C o u n t r y t a b l e i n t h e A l p h a d a t a s t o r e .  

1 0 . F o r t h e        S H I P P E R R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        R E G I O N N A M E        f r o m t h e R e g i o n t a b l e i n t h e A l p h a d a t a s t o r e .  

T a s k 2 :    

M e r g e t h e d a t a f r o m t h e Q u e r y t r a n s f o r m s i n t o a t e m p l a t e t a b l e c a l l e d      

O r d e r s _ M e r g e d        f r o m t h e D e l t a d a t a s t o r e u s i n g a M e r g e t r a n s f o r m .  

1 . A d d a M e r g e t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t b o t h Q u e r y t r a n s f o r m s    

t o t h e M e r g e t r a n s f o r m .  

2 . E x e c u t e t h e        A l p h a _ O r d e r s _ M e r g e d _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

2 5 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 277: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 277/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

S o l u t i o n 1 6 : U s i n g t h e M e r g e t r a n s f o r m          

T a s k 1 :    

U s e t h e Q u e r y t r a n s f o r m s t o m o d i f y a n y c o l u m n s n a m e s a n d d a t a t y p e s a n d t o      

 p e r f o r m l o o k u p s f o r a n y c o l u m n s t h a t r e f e r e n c e o t h e r t a b l e s . U s e t h e M e r g e   

t r a n s f o r m t o m e r g e t h e v a l i d a t e d o r d e r s d a t a .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ O r d e r s _ M e r g e d _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ O r d e r s _ M e r g e d _ D F     . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ O r d e r s _ M e r g e d _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ O r d e r s _ M e r g e d _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ O r d e r s _ M e r g e d _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ M e r g e d _ D F        , a d d t h e      

o r d e r s _ f i l e _ w o r k        a n d     o r d e r s _ d b _ w o r k        t a b l e s f r o m t h e D e l t a      

d a t a s t o r e a s t h e s o u r c e o b j e c t s .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     o r d e r s _ f i l e _ w o r k        a n d     o r d e r s _ d b _ w o r k        t a b l e s f r o m t h e      

D e l t a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t s t o t h e d a t a o w w o r k s p a c e a n d i n t h e   

c o n t e x t m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        f o r e a c h s o u r c e t a b l e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 5 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 278: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 278/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

3 . A d d t w o Q u e r y t r a n s f o r m s t o t h e w o r k s p a c e c o n n e c t i n g e a c h s o u r c e o b j e c t    

t o i t o w n Q u e r y t r a n s f o r m .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

T h e n a d d a n o t h e r Q u e r y t r a n s f o r m t o t h e w o r k s p a c e .  

 b ) C o n n e c t t h e s o u r c e t a b l e     o r d e r s _ f i l e _ w o r k        t o a Q u e r y t r a n s f o r m          

 b y s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g   

t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

c ) C o n n e c t t h e s o u r c e t a b l e        o r d e r s _ d b _ w o r k        t o a Q u e r y t r a n s f o r m b y      

s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g      

t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m c o n n e c t e d t o t h e      

o r d e r s _ f i l e _ w o r k        , c r e a t e o u t p u t c o l u m n s a n d m a p i n p u t c o l u m n s t o      

o u t p u t c o l u m n s . b y d r a g g i n g a l l c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      

o u t p u t s c h e m a .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) I n t h e     S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g e a c h e l d t o t h e        S c h e m a      

O u t    w o r k s p a c e .  

T h i s n o t o n l y c r e a t e s o u t p u t c o l u m n s , b u t m a p s i n p u t s c h e m a c o l u m n s    

t o o u t p u t s c h e m a c o l u m n s .  

c ) C h a n g e t h e d a t a t y p e f o r t h e s e S c h e m a O u t c o l u m n s :  

C o l u m n T y p e      

O R D E R D A T E d a t e t i m e      

S H I P P E R A D D R E S S v a r c h a r ( 1 0 0 )    

S H I P P E R C O U N T R Y v a r c h a r ( 5 0 )    

S H I P P E R R R E G I O N v a r c h a r ( 5 0 )    

S H I P P E R P O S T A L C O D E v a r c h a r ( 5 0 )    

C o n t i n u e d o n n e x t p a g e      

2 6 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 279: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 279/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

5 . F o r t h e        S H I P P E R C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m          

a l o o k u p o f        C O U N T R Y N A M E        f r o m t h e C o u n t r y t a b l e i n t h e A l p h a d a t a s t o r e .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S H I P P E R C O U N T R Y      a n d d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e      

 D e l e t e     b u t t o n o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C O U N T R Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C O U N T R Y I D      

O p . ( & )       =   

E x p r e s s i o n         O R D E R S _ F I L E _ W O R K . S H I P -      P E R C O U N T R Y      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         C O U N T R Y N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 6 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 280: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 280/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

6 . F o r t h e        S H I P P E R R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        R E G I O N N A M E        f r o m t h e R e g i o n t a b l e i n t h e A l p h a d a t a s t o r e .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S H I P P E R R E G I O N      a n d d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e      

 D e l e t e     b u t t o n o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . R E G I O N      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         R E G I O N I D      

O p . ( & )       =   

E x p r e s s i o n         O R D E R S _ F I L E _ W O R K . S H I P -      P E R R E G I O N      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         R E G I O N N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 6 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 281: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 281/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

7 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m c o n n e c t e d t o t h e      

o r d e r s _ d b _ w o r k        , c r e a t e o u t p u t c o l u m n s a n d m a p i n p u t c o l u m n s t o      

o u t p u t c o l u m n s . b y d r a g g i n g a l l c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      o u t p u t s c h e m a .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) I n t h e     S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g e a c h e l d t o t h e        S c h e m a      

O u t    w o r k s p a c e .  

T h i s n o t o n l y c r e a t e s o u t p u t c o l u m n s , b u t m a p s i n p u t s c h e m a c o l u m n s    

t o o u t p u t s c h e m a c o l u m n s .  

c ) C h a n g e t h e d a t a t y p e f o r t h e s e S c h e m a O u t c o l u m n s :  

C o l u m n T y p e      

O R D E R _ T A K E N _ B Y v a r c h a r ( 1 5 )    

O R D E R _ A S S I G N E D _ T O v a r c h a r ( 1 5 )    

S H I P P E R C I T Y v a r c h a r ( 5 0 )    

S H I P P E R C O U N T R Y v a r c h a r ( 5 0 )    

S H I P P E R R R E G I O N v a r c h a r ( 5 0 )    

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 6 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 282: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 282/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

8 . F o r t h e        S H I P P E R C I T Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        C I T Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S H I P P E R C I T Y        a n d   d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e      

 b u t t o n o n y o u r k e y b o a r d . 

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C I T Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C I T Y I D      

O p . ( & )       =   

E x p r e s s i o n         O R D E R S _ D B _ W O R K . S H I P -      P E R C I T Y      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         C I T Y N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 6 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 283: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 283/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

9 . F o r t h e        S H I P P E R C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m          

a l o o k u p o f        C O U N T R Y N A M E        f r o m t h e C o u n t r y t a b l e i n t h e A l p h a d a t a s t o r e .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S H I P P E R C O U N T R Y      a n d d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e      

 D e l e t e     b u t t o n o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C O U N T R Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C O U N T R Y I D      

O p . ( & )       =   

E x p r e s s i o n         O R D E R S _ D B _ W O R K . S H I P -      P E R C O U N T R Y      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         C O U N T R Y N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 6 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 284: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 284/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

1 0 . F o r t h e        S H I P P E R R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        R E G I O N N A M E        f r o m t h e R e g i o n t a b l e i n t h e A l p h a d a t a s t o r e .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S H I P P E R R E G I O N      a n d d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e      

 D e l e t e     b u t t o n o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . R E G I O N      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         R E G I O N I D      

O p . ( & )       =   

E x p r e s s i o n         O R D E R S _ D B _ W O R K . S H I P -      P E R R E G I O N      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         R E G I O N N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 6 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 285: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 285/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

T a s k 2 :    

M e r g e t h e d a t a f r o m t h e Q u e r y t r a n s f o r m s i n t o a t e m p l a t e t a b l e c a l l e d      

O r d e r s _ M e r g e d        f r o m t h e D e l t a d a t a s t o r e u s i n g a M e r g e t r a n s f o r m .  

1 . A d d a M e r g e t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t b o t h Q u e r y t r a n s f o r m s    

t o t h e M e r g e t r a n s f o r m .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e M e r g e t r a n s f o r m t o t h e d a t a o w w o r k s p a c e t o      

t h e r i g h t o f t h e Q u e r y t r a n s f o r m s .  

 b ) C o n n e c t b o t h Q u e r y t r a n s f o r m s t o t h e M e r g e t r a n s f o r m b y s e l e c t i n g   

e a c h Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n d r a g      

t h e c u r s o r t o t h e M e r g e t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

c ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

N o t e :      A t t h i s p o i n t , c h e c k t o m a k e s u r e t h a t t h e o r d e r o f      

e l d s i n b o t h i n p u t s c h e m a s a r e        i d e n t i c a l i n o r d e r        . T h i s i s a      

 p r e r e q u i s i t e f o r t h e M e r g e t r a n s f o r m t o m e r g e t h e s c h e m a s . 

d ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

e ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

f ) I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ M e r g e d        a s t h e      

t e m p l a t e t a b l e n a m e .  

g ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t .  

h ) S e l e c t      O K      . 

i ) C o n n e c t t h e M e r g e t r a n s f o r m s t o t h e t a r g e t t e m p l a t e t a b l e      

O r d e r s _ M e r g e d        b y s e l e c t i n g t h e M e r g e t r a n s f o r m a n d h o l d i n g      

d o w n t h e m o u s e b u t t o n . T h e n d r a g t h e c u r s o r t o t h e t e m p l a t e t a b l e a n d      

r e l e a s e t h e m o u s e b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 6 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 286: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 286/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 . E x e c u t e t h e        A l p h a _ O r d e r s _ M e r g e d _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ O r -      d e r s _ M e r g e d _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t    

t a b l e t o s e e t h a t t h e        S H I P P E R C I T Y        ,    S H I P P E R C O U N T R Y        a n d   

S H I P P E R R E G I O N        c o l u m n s f o r t h e 3 6 3 r e c o r d s i n t h e t e m p l a t e t a b l e      

h a v e n a m e s r a t h e r t h a n I D v a l u e s .  

2 6 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 287: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 287/472

B O D S 1 0 L e s s o n : U s i n g t h e M e r g e T r a n s f o r m          

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e M e r g e t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e M e r g e t r a n s f o r m s e e “ T r a n s f o r m s ” C h a p t e r 5 i n      

t h e     D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 6 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 288: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 288/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

L e s s o n O v e r v i e w          

Y o u w a n t t o u s e t h e C a s e t r a n s f o r m t o s i m p l i f y b r a n c h l o g i c i n d a t a o w s b y      

c o n s o l i d a t i n g c a s e o r d e c i s i o n – m a k i n g l o g i c i n t o o n e t r a n s f o r m . T h e t r a n s f o r m          

a l l o w s y o u t o d i v i d e a d a t a s e t i n t o s m a l l e r s e t s b a s e d o n l o g i c a l b r a n c h e s .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e C a s e t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

Y o u w a n t t o u s e t h e C a s e t r a n s f o r m t o s i m p l i f y b r a n c h l o g i c i n d a t a o w s b y      

c o n s o l i d a t i n g c a s e o r d e c i s i o n - m a k i n g l o g i c i n t o o n e t r a n s f o r m . T h e t r a n s f o r m          

a l l o w s y o u t o d i v i d e a d a t a s e t i n t o s m a l l e r s e t s b a s e d o n l o g i c a l b r a n c h e s .  

U s i n g t h e C a s e t r a n s f o r m          T h e C a s e t r a n s f o r m s u p p o r t s s e p a r a t i n g d a t a f r o m a s o u r c e i n t o m u l t i p l e t a r g e t s    

 b a s e d o n b r a n c h l o g i c . 

E x p l a i n i n g t h e C a s e t r a n s f o r m          

Y o u u s e t h e C a s e t r a n s f o r m t o s i m p l i f y b r a n c h l o g i c i n d a t a o w s b y c o n s o l i d a t i n g      

c a s e o r d e c i s i o n – m a k i n g l o g i c i n t o o n e t r a n s f o r m . T h e t r a n s f o r m a l l o w s y o u t o      

d i v i d e a d a t a s e t i n t o s m a l l e r s e t s b a s e d o n l o g i c a l b r a n c h e s .  

F o r e x a m p l e , y o u c a n u s e t h e C a s e t r a n s f o r m t o r e a d a t a b l e t h a t c o n t a i n s s a l e s    

r e v e n u e f a c t s f o r d i f f e r e n t r e g i o n s a n d s e p a r a t e t h e r e g i o n s i n t o t h e i r o w n t a b l e s    

f o r m o r e e f c i e n t d a t a a c c e s s :  

2 7 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 289: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 289/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

F i g u r e 7 8 : I n t r o d u c t i o n t o t h e C a s e T r a n s f o r m          

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e C a s e t r a n s f o r m .  

O n l y o n e d a t a o w s o u r c e i s a l l o w e d a s a d a t a i n p u t f o r t h e C a s e t r a n s f o r m .  

D e p e n d i n g o n t h e d a t a , o n l y o n e o f m u l t i p l e b r a n c h e s i s e x e c u t e d p e r r o w . T h e      

i n p u t a n d o u t p u t s c h e m a a r e a l s o i d e n t i c a l w h e n u s i n g t h e c a s e t r a n s f o r m .  

T h e c o n n e c t i o n s b e t w e e n t h e C a s e t r a n s f o r m a n d o b j e c t s u s e d f o r a p a r t i c u l a r    

c a s e m u s t b e l a b e l e d . E a c h o u t p u t l a b e l i n t h e C a s e t r a n s f o r m m u s t b e u s e d      

a t l e a s t o n c e .  Y o u c o n n e c t t h e o u t p u t o f t h e C a s e t r a n s f o r m w i t h a n o t h e r o b j e c t i n t h e w o r k s p a c e .  

E a c h l a b e l r e p r e s e n t s a c a s e e x p r e s s i o n ( “ W H E R E ” c l a u s e ) .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 290: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 290/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 7 9 : C o m p a r i s o n : C a s e a n d V a l i d a t i o n      

O p t i o n s    T h e C a s e t r a n s f o r m o f f e r s s e v e r a l o p t i o n s :  

O p t i o n D e s c r i p t i o n      

L a b e l D e n e t h e n a m e o f t h e c o n n e c t i o n t h a t d e s c r i b e s t h e      

 p a t h f o r d a t a i f t h e c o r r e s p o n d i n g C a s e c o n d i t i o n i s  

t r u e .  

E x p r e s s i o n D e n e t h e C a s e e x p r e s s i o n f o r t h e c o r r e s p o n d i n g      

l a b e l .  

P r o d u c e d e f a u l t o p t i o n      

w i t h l a b e l    

S p e c i f y t h a t t h e t r a n s f o r m m u s t u s e t h e e x p r e s s i o n i n      

t h i s l a b e l w h e n a l l o t h e r C a s e e x p r e s s i o n s e v a l u a t e      t o f a l s e .  

R o w c a n b e T R U E f o r    

o n e c a s e o n l y      

S p e c i f y t h a t t h e t r a n s f o r m p a s s e s e a c h r o w t o t h e r s t    

c a s e w h o s e e x p r e s s i o n r e t u r n s t r u e .  

F i g u r e 8 0 : C a s e T r a n s f o r m E d i t o r      

2 7 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 291: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 291/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

T o c r e a t e a c a s e s t a t e m e n t    

1 . D r a g t h e C a s e t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f y o u r s o u r c e o b j e c t .  

2 . A d d y o u r t a r g e t o b j e c t s t o t h e w o r k s p a c e .  

O n e t a r g e t o b j e c t i s r e q u i r e d f o r e a c h p o s s i b l e c o n d i t i o n i n t h e c a s e s t a t e m e n t .  

3 . C o n n e c t t h e s o u r c e o b j e c t t o t h e t r a n s f o r m .  

4 . I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t      A d d     t o a d d a n e w        

e x p r e s s i o n .  

5 . I n t h e        L a b e l      e l d , e n t e r a l a b e l f o r t h e e x p r e s s i o n .  

6 . S e l e c t a n d d r a g a n i n p u t s c h e m a c o l u m n t o t h e E x p r e s s i o n p a n e a t t h e      

 b o t t o m o f t h e w i n d o w . 

7 . D e n e t h e e x p r e s s i o n o f t h e c o n d i t i o n .  

8 . T o d i r e c t r e c o r d s t h a t d o n o t m e e t a n y d e n e d c o n d i t i o n s t o a s e p a r a t e t a r g e t    o b j e c t , s e l e c t t h e        P r o d u c e d e f a u l t o p t i o n w i t h l a b e l      o p t i o n a n d e n t e r t h e      

l a b e l n a m e i n t h e a s s o c i a t e d e l d .  

9 . T o d i r e c t r e c o r d s t h a t m e e t m u l t i p l e c o n d i t i o n s t o o n l y o n e t a r g e t , s e l e c t t h e      

R o w c a n b e T R U E f o r o n e c a s e o n l y        o p t i o n .  

I n t h i s c a s e , r e c o r d s p l a c e d i n t h e t a r g e t a r e a s s o c i a t e d w i t h t h e r s t c o n d i t i o n      

t h a t e v a l u a t e s a s t r u e .  

F i g u r e 8 1 : C a s e T r a n s f o r m R e m i n d e r s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 292: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 292/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 7 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 293: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 293/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

E x e r c i s e 1 7 : U s i n g t h e C a s e t r a n s f o r m          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• [ E n t e r a n e x e r c i s e o b j e c t i v e . I n s e r t a d d i t i o n a l o b j e c t i v e s i f r e q u i r e d . ]    

B u s i n e s s E x a m p l e      

T h e O r d e r s d a t a h a s b e e n v a l i d a t e d a n d m e r g e d f r o m t w o d i f f e r e n t s o u r c e , a t    

l e s a n d d a t a b a s e t a b l e s . N o w t h e r e s u l t i n g d a t a s e t m u s t b e p a r t i t i o n e d b y q u a r t e r    

f o r r e p o r t i n g p u r p o s e s . Y o u m u s t u s e t h e C a s e t r a n s f o r m t o s e t u p t h e v a r i o u s    

c o n d i t i o n s t o p a r t i t i o n e d t h e m e r g e d d a t a i n t o t h e a p p r o p r i a t e q u a r t e r l y p a r t i t i o n s .  

T a s k :    

T h e O r d e r s d a t a h a s b e e n v a l i d a t e d a n d m e r g e d f r o m t w o d i f f e r e n t s o u r c e , a t    

l e s a n d d a t a b a s e t a b l e s . N o w t h e r e s u l t i n g d a t a s e t m u s t b e p a r t i t i o n e d b y q u a r t e r    

f o r r e p o r t i n g p u r p o s e s . Y o u m u s t u s e t h e C a s e t r a n s f o r m t o s e t u p t h e v a r i o u s    

c o n d i t i o n s t o c r e a t e s e p a r a t e t a b l e s f o r o r d e r s o c c u r r i n g i n s c a l q u a r t e r s 4 f o r t h e      

y e a r 2 0 0 6 a n d q u a r t e r s 1 - 4 f o r t h e y e a r 2 0 0 7 .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ B y _ Q u a r -      t e r _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ B y _ Q u a r -      t e r _ D F        . 

2 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ B y _ Q u a r t e r _ D F        , a d d t h e      O r d e r s _ M e r g e d t a b l e f r o m t h e D e l t a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

3 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e b e t w e e n t h e s o u r c e a n d t a r g e t .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s a n d      

m a p a l l c o l u m n s f r o m i n p u t t o o u t p u t .  

5 . A d d t h e C a s e t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m          

a n d c o n n e c t t h e m .  

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e C a s e t r a n s f o r m , c r e a t e t h e l a b e l s a n d      

a s s o c i a t e d e x p r e s s i o n s f o r t h e p a r t i t i o n e d s c a l q u a r t e r s 4 i n t h e y e a r 2 0 0 6      

a n d 1 - 4 i n t h e y e a r 2 0 0 7 .  

7 . A d d v e t e m p l a t e t a b l e s      O r d e r s _ Q 4 _ 2 0 0 6 , O r d e r s _ Q 1 _ 2 0 0 7 ,    O r d e r s _ Q 2 _ 2 0 0 7 , O r d e r s _ Q 3 _ 2 0 0 7 , a n d O r d e r s _ Q 4 _ 2 0 0 7      i n t h e D e l t a d a t a s t o r e a s o u t p u t t a b l e s f o r t h e C a s e t r a n s f o r m a n d c o n n e c t    

t h e m t o t h e C a s e t r a n s f o r m .  

8 . E x e c u t e t h e        A l p h a _ O r d e r s _ B y _ Q u a r t e r _ J o b        w i t h t h e d e f a u l t    

e x e c u t i o n p r o p e r t i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 294: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 294/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

S o l u t i o n 1 7 : U s i n g t h e C a s e t r a n s f o r m          

T a s k :    

T h e O r d e r s d a t a h a s b e e n v a l i d a t e d a n d m e r g e d f r o m t w o d i f f e r e n t s o u r c e , a t    

l e s a n d d a t a b a s e t a b l e s . N o w t h e r e s u l t i n g d a t a s e t m u s t b e p a r t i t i o n e d b y q u a r t e r    

f o r r e p o r t i n g p u r p o s e s . Y o u m u s t u s e t h e C a s e t r a n s f o r m t o s e t u p t h e v a r i o u s    

c o n d i t i o n s t o c r e a t e s e p a r a t e t a b l e s f o r o r d e r s o c c u r r i n g i n s c a l q u a r t e r s 4 f o r t h e      

y e a r 2 0 0 6 a n d q u a r t e r s 1 - 4 f o r t h e y e a r 2 0 0 7 .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b        A l p h a _ O r d e r s _ B y _ Q u a r -      t e r _ J o b        w i t h a n e w d a t a o w c a l l e d        A l p h a _ O r d e r s _ B y _ Q u a r -      t e r _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ O r d e r s _ B y _ Q u a r t e r _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ O r d e r s _ B y _ Q u a r t e r _ J o b        b y   

d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ O r d e r s _ B y _ Q u a r t e r _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      A l p h a _ O r d e r s _ B y _ Q u a r t e r _ D F        , a d d t h e      

O r d e r s _ M e r g e d t a b l e f r o m t h e D e l t a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e O r d e r s _ M e r g e d t a b l e f r o m t h e D e l t a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

3 . A d d t h e Q u e r y t r a n s f o r m t o t h e w o r k s p a c e b e t w e e n t h e s o u r c e a n d t a r g e t .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e s o u r c e t a b l e t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g t h e s o u r c e   

t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e Q u e r y      

t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 7 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 295: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 295/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s a n d      

m a p a l l c o l u m n s f r o m i n p u t t o o u t p u t .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) I n t h e     S c h e m a O u t      w o r k s p a c e , s e l e c t a l l t h e e l d s b y s e l e c t i n g t h e r s t    

a n d l a s t e l d s i n t h e l i s t w h i l e h o l d i n g d o w n t h e        S h i f t      k e y .  

c ) D r a g a l l t h e s e l e c t e d e l d s i n t h e o u t p u t s c h e m a t o t h e        S c h e m a I n      

w o r k s p a c e .  

d ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k t h e l a s t c o l u m n e l d t o c h o o s e      

t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        O R D E R Q U A R T E R          w i t h D a t a T y p e        i n t     . 

e ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        O R D E R Q U A R T E R          t o c h o o s e      

t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        O R D E R Y E A R          w i t h D a t a T y p e      

v a r c h a r ( 4 )      . 

f ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        O R D E R Y E A R          a n d   

S e l e c t t h e        F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t e F u n c t i o n s ” .  

F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        Q u a r t e r        f u n c t i o n a n d s e l e c t    

t h e     N e x t      b u t t o n .  

I n t h e e l d        I n p u t s t r i n g        , s e l e c t t h e d r o p - d o w n a r r o w t o s e l e c t t h e t a b l e      

O r d e r s _ M e r g e d        f r o m t h e D e l t a d a t a s t o r e .  

F r o m t h e t a b l e        O r d e r s _ M e r g e d        , s e l e c t t h e e l d        O R D E R D A T E          a n d   

s e l e c t t h e        O K b u t t o n        a n d i n t h e n e x t d i a l o g b o x , s e l e c t t h e        F i n i s h        b u t t o n .  

g ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        O R D E R Q U A R T E R        a n d S e l e c t t h e        F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x ,    

o p e n t h e c a t e g o r y o f “ C o n v e r s i o n F u n c t i o n s ” .  

F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        t o _ c h a r        f u n c t i o n a n d s e l e c t    

t h e     N e x t      b u t t o n .  

I n t h e e l d        I n p u t s t r i n g        , s e l e c t t h e d r o p - d o w n a r r o w t o s e l e c t t h e t a b l e      

O r d e r s _ M e r g e d        f r o m t h e D e l t a d a t a s t o r e .  

F r o m t h e t a b l e        O r d e r s _ M e r g e d        , s e l e c t t h e e l d        O R D E R D A T E          . 

S e l e c t t h e f o r m a t      Y Y Y Y          a n d s e l e c t t h e        O K b u t t o n        . 

I n t h e n e x t d i a l o g b o x , s e l e c t t h e        F i n i s h        b u t t o n .  

h ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 296: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 296/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

5 . A d d t h e C a s e t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m          

a n d c o n n e c t t h e m .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b , s e l e c t a n d d r a g      t h e C a s e t r a n s f o r m i n t o t h e d a t a o w w o r k s p a c e .  

 b ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e C a s e t r a n s f o r m b y s e l e c t i n g t h e   

Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r    

t o t h e C a s e t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n .  

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e C a s e t r a n s f o r m , c r e a t e t h e l a b e l s a n d      

a s s o c i a t e d e x p r e s s i o n s f o r t h e p a r t i t i o n e d s c a l q u a r t e r s 4 i n t h e y e a r 2 0 0 6      

a n d 1 - 4 i n t h e y e a r 2 0 0 7 .  

a ) D o u b l e - c l i c k t h e C a s e t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

 b ) I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t    A d d     t o a d d a n e w        t r a n s f o r m .  

I n t h e        L a b e l      e l d , e n t e r t h e l a b e l      Q 4 2 0 0 6        f o r t h e e x p r e s s i o n .  

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Y E A R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 0 0 6 '    a n d     . 

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Q U A R T E R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 4 '      t o   

c o m p l e t e t h e e x p r e s s i o n f o r t h e r s t c o n d i t i o n .  

c ) I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t      A d d     t o a d d a n e w        

t r a n s f o r m .  

I n t h e        L a b e l      e l d , e n t e r t h e l a b e l      Q 1 2 0 0 7        f o r t h e e x p r e s s i o n .  

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Y E A R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 0 0 7 '    a n d     . 

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Q U A R T E R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 1 '      t o   

c o m p l e t e t h e e x p r e s s i o n f o r t h e s e c o n d c o n d i t i o n .  

d ) I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t      A d d     t o a d d a n e w        

t r a n s f o r m .  

I n t h e        L a b e l      e l d , e n t e r t h e l a b e l      Q 2 2 0 0 7        f o r t h e e x p r e s s i o n .  

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Y E A R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 0 0 7 '    a n d     . 

C o n t i n u e d o n n e x t p a g e      

2 7 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 297: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 297/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Q U A R T E R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 '      t o   

c o m p l e t e t h e e x p r e s s i o n f o r t h e t h i r d c o n d i t i o n .  e ) I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t      A d d     t o a d d a n e w        

t r a n s f o r m .  

I n t h e        L a b e l      e l d , e n t e r t h e l a b e l      Q 3 2 0 0 7        f o r t h e e x p r e s s i o n .  

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Y E A R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 0 0 7 '    a n d     . 

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Q U A R T E R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 3 '      t o   

c o m p l e t e t h e e x p r e s s i o n f o r t h e f o u r t h c o n d i t i o n .  

f ) I n t h e p a r a m e t e r s a r e a o f t h e t r a n s f o r m e d i t o r , s e l e c t      A d d     t o a d d a n e w        

t r a n s f o r m .  

I n t h e        L a b e l      e l d , e n t e r t h e l a b e l      Q 4 2 0 0 7        f o r t h e e x p r e s s i o n .  

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Y E A R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 2 0 0 7 '    a n d     . 

S e l e c t a n d d r a g t h e i n p u t s c h e m a c o l u m n s      O R D E R Q U A R T E R          t o t h e      

 E x p r e s s i o n     w o r k s p a c e a t t h e b o t t o m o f t h e w i n d o w a n d e n t e r      = ' 4 '      t o   

c o m p l e t e t h e e x p r e s s i o n f o r t h e f t h c o n d i t i o n .  

g ) T o d i r e c t r e c o r d s t h a t d o n o t m e e t a n y d e n e d c o n d i t i o n s t o a s e p a r a t e      

t a r g e t o b j e c t , s e l e c t t h e c h e c k b o x        P r o d u c e d e f a u l t o u t p u t w i t h l a b e l    

a n d e n t e r t h e l a b e l n a m e        d e f a u l t        i n t h e a s s o c i a t e d e l d .  

h ) T o d i r e c t r e c o r d s t h a t m i g h t m e e t m u l t i p l e c o n d i t i o n s t o o n l y o n e t a r g e t ,    

s e l e c t t h e c h e c k b o x        R o w c a n b e T R U E f o r o n e c a s e o n l y      . 

I n t h i s c a s e , r e c o r d s a r e p l a c e d i n t h e t a r g e t a s s o c i a t e d w i t h t h e r s t    

c o n d i t i o n t h a t e v a l u a t e s a s t r u e .  

i ) S e l e c t      B a c k        t o r e t u r n t o t h e d a t a o w w o r k s p a c e .  

7 . A d d v e t e m p l a t e t a b l e s      O r d e r s _ Q 4 _ 2 0 0 6 , O r d e r s _ Q 1 _ 2 0 0 7 ,    

O r d e r s _ Q 2 _ 2 0 0 7 , O r d e r s _ Q 3 _ 2 0 0 7 , a n d O r d e r s _ Q 4 _ 2 0 0 7      i n t h e D e l t a d a t a s t o r e a s o u t p u t t a b l e s f o r t h e C a s e t r a n s f o r m a n d c o n n e c t    

t h e m t o t h e C a s e t r a n s f o r m .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ Q 4 _ 2 0 0 6        a s t h e      

t e m p l a t e t a b l e n a m e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 7 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 298: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 298/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t a n d s e l e c t      O K      . 

 b ) I n t h e T o o l P a l e t t e , s e l e c t t h e     T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ Q 1 _ 2 0 0 7        a s t h e      

t e m p l a t e t a b l e n a m e .  

I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t a n d s e l e c t      O K      . 

c ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ Q 2 _ 2 0 0 7        a s t h e      

t e m p l a t e t a b l e n a m e .  I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t a n d s e l e c t      O K      . 

d ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ Q 3 _ 2 0 0 7        a s t h e      

t e m p l a t e t a b l e n a m e .  

I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t a n d s e l e c t      O K      . 

e ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      O r d e r s _ Q 4 _ 2 0 0 7        a s t h e      

t e m p l a t e t a b l e n a m e .  

I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t a n d s e l e c t      O K      . 

f ) T o c o n n e c t t h e o u t p u t f r o m t h e C a s e t r a n s f o r m t o t h e t a r g e t t e m p l a t e      

t a b l e s , s e l e c t t h e C a s e t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n ,    

d r a g t o a t e m p l a t e t a b l e . S e l e c t t h e l a b e l f r o m t h e p o p u p m e n u , w h i c h      

c o r r e s p o n d s t o t h e t a b l e n a m e .  

R e p e a t t h i s s t e p f o r e a c h o f t h e v e t e m p l a t e t a b l e s .  

C o n t i n u e d o n n e x t p a g e      

2 8 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 299: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 299/472

B O D S 1 0 L e s s o n : U s i n g t h e C a s e T r a n s f o r m          

8 . E x e c u t e t h e        A l p h a _ O r d e r s _ B y _ Q u a r t e r _ J o b        w i t h t h e d e f a u l t    

e x e c u t i o n p r o p e r t i e s .  

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ O r -      d e r s _ B y _ Q u a r t e r _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) V i e w t h e d a t a i n t h e t a r g e t t a b l e s a n d c o n r m t h a t t h e r e a r e 1 0 3 o r d e r s    

t h a t w e r e p l a c e d i n s c a l q u a r t e r o n e o f 2 0 0 7 .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 8 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 300: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 300/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e C a s e t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e C a s e t r a n s f o r m , s e e “ T r a n s f o r m s ” C h a p t e r 5 i n      

t h e     D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

2 8 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 301: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 301/472

B O D S 1 0 L e s s o n : U s i n g t h e S Q L T r a n s f o r m          

L e s s o n : U s i n g t h e S Q L T r a n s f o r m          

L e s s o n O v e r v i e w          

Y o u w a n t t o u s e t h e S Q L t r a n s f o r m t o s u b m i t S Q L c o m m a n d s t o g e n e r a t e d a t a t o      

 b e m o v e d i n t o t a r g e t o b j e c t s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e S Q L t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  

Y o u w a n t t o u s e t h e S Q L t r a n s f o r m t o s u b m i t S Q L c o m m a n d s t o g e n e r a t e d a t a      

t o b e m o v e d i n t o t a r g e t o b j e c t s w h e r e o t h e r t r a n s f o r m s d o n o t m e e t b u s i n e s s    

r e q u i r e m e n t s .  

U s i n g t h e S Q L t r a n s f o r m          

T h e S Q L t r a n s f o r m a l l o w s y o u t o s u b m i t S Q L c o m m a n d s t o g e n e r a t e d a t a t o      

 b e m o v e d i n t o t a r g e t o b j e c t s . 

E x p l a i n i n g t h e S Q L t r a n s f o r m          

U s e t h i s t r a n s f o r m t o p e r f o r m s t a n d a r d S Q L o p e r a t i o n s w h e n o t h e r b u i l t – i n      

t r a n s f o r m s d o e s n o t p e r f o r m t h e m .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 8 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 302: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 302/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

F i g u r e 8 2 : T h e S Q L T r a n s f o r m E d i t o r      

T h e S Q L t r a n s f o r m c a n b e u s e d t o e x t r a c t f o r g e n e r a l s e l e c t s t a t e m e n t s a s w e l l a s    

s t o r e d p r o c e d u r e s a n d v i e w s .  

Y o u c a n u s e t h e S Q L t r a n s f o r m a s a r e p l a c e m e n t f o r t h e M e r g e t r a n s f o r m w h e n      

y o u a r e d e a l i n g w i t h d a t a b a s e t a b l e s o n l y . T h e S Q L t r a n s f o r m p e r f o r m s m o r e      

e f c i e n t l y b e c a u s e t h e m e r g e i s p u s h e d d o w n t o t h e d a t a b a s e . H o w e v e r , y o u c a n      

n o t u s e t h i s f u n c t i o n a l i t y i f y o u r s o u r c e o b j e c t s i n c l u d e l e f o r m a t s .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e S Q L t r a n s f o r m .  

I n p u t s / O u t p u t s    

T h e r e i s n o i n p u t d a t a s e t f o r t h e S Q L t r a n s f o r m          

T h e r e a r e t w o w a y s o f d e n i n g t h e o u t p u t s c h e m a f o r a S Q L t r a n s f o r m i f t h e      

S Q L s u b m i t t e d i s e x p e c t e d t o r e t u r n a r e s u l t s e t :  

• A u t o m a t i c – A f t e r y o u t y p e t h e S Q L s t a t e m e n t , s e l e c t      U p d a t e s c h e m a      

t o e x e c u t e a s e l e c t s t a t e m e n t a g a i n s t t h e d a t a b a s e t h a t o b t a i n s c o l u m n      

i n f o r m a t i o n r e t u r n e d b y t h e s e l e c t s t a t e m e n t a n d p o p u l a t e s t h e o u t p u t s c h e m a .  

• M a n u a l — o u t p u t c o l u m n s m u s t b e d e n e d i n t h e o u t p u t p o r t i o n o f t h e      

S Q L t r a n s f o r m i f t h e S Q L o p e r a t i o n i s r e t u r n i n g a d a t a s e t . T h e n u m b e r o f      c o l u m n s d e n e d i n t h e o u t p u t o f t h e S Q L t r a n s f o r m m u s t e q u a l t h e n u m b e r    

o f c o l u m n s r e t u r n e d b y t h e S Q L q u e r y . T h e c o l u m n n a m e s a n d d a t a t y p e s o f      

t h e o u t p u t c o l u m n s d o n o t n e e d t o m a t c h t h e c o l u m n n a m e s o r d a t a t y p e s i n      

t h e S Q L q u e r y .  

T h e S Q L t r a n s f o r m h a s t h e s e o p t i o n s :  

2 8 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 303: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 303/472

B O D S 1 0 L e s s o n : U s i n g t h e S Q L T r a n s f o r m          

O p t i o n D e s c r i p t i o n      

D a t a s t o r e S p e c i f y t h e d a t a s t o r e f o r t h e t a b l e s r e f e r r e d t o i n t h e S Q L        

s t a t e m e n t .  

D a t a b a s e t y p e S p e c i f y t h e t y p e o f d a t a b a s e f o r t h e d a t a s t o r e w h e r e t h e r e a r e      

m u l t i p l e d a t a s t o r e c o n g u r a t i o n s .  

J o i n r a n k I n d i c a t e t h e w e i g h t o f t h e o u t p u t d a t a s e t i f t h e d a t a s e t i s    

u s e d i n a j o i n . T h e h i g h e s t r a n k e d s o u r c e i s a c c e s s e d r s t t o      

c o n s t r u c t t h e j o i n .  

A r r a y f e t c h s i z e I n d i c a t e t h e n u m b e r o f r o w s r e t r i e v e d i n a s i n g l e r e q u e s t t o a      

s o u r c e d a t a b a s e . T h e d e f a u l t v a l u e i s 1 0 0 0 .  

C a c h e H o l d t h e o u t p u t f r o m t h i s t r a n s f o r m i n m e m o r y f o r u s e i n      

s u b s e q u e n t t r a n s f o r m s . U s e t h i s o n l y i f t h e d a t a s e t i s s m a l l    

e n o u g h t o t i n m e m o r y .  

S Q L t e x t E n t e r t h e t e x t o f t h e S Q L q u e r y .  

T o c r e a t e a S Q L s t a t e m e n t :  

1 . O n t h e T r a n s f o r m s t a b o f t h e L o c a l O b j e c t L i b r a r y , s e l e c t a n d d r a g t h e S Q L        

t r a n s f o r m t o t h e w o r k s p a c e      

2 . A d d y o u r t a r g e t o b j e c t t o t h e w o r k s p a c e .  

3 . C o n n e c t t h e t r a n s f o r m t o t h e t a r g e t o b j e c t .  

4 . D o u b l e - c l i c k t h e        S Q L      t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

5 . I n t h e p a r a m e t e r s a r e a , s e l e c t t h e s o u r c e d a t a s t o r e f r o m t h e        D a t a s t o r e      d r o p – d o w n l i s t .  

6 . I n t h e        S Q L t e x t      a r e a , e n t e r t h e S Q L s t a t e m e n t .  

F o r e x a m p l e , t o c o p y t h e e n t i r e c o n t e n t s o f a t a b l e i n t o t h e t a r g e t o b j e c t , y o u      

w o u l d u s e t h e s t a t e m e n t :    S e l e c t * f r o m C u s t o m e r s      . 

7 . S e l e c t      U p d a t e S c h e m a        t o u p d a t e t h e o u t p u t s c h e m a w i t h t h e a p p r o p r i a t e      

v a l u e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 8 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 304: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 304/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

2 8 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 305: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 305/472

B O D S 1 0 L e s s o n : U s i n g t h e S Q L T r a n s f o r m          

E x e r c i s e 1 8 : U s i n g t h e S Q L t r a n s f o r m          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e S Q L t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y e x t r a c t s d a t a f r o m e x t e r n a l s y s t e m s u s i n g a t l e s . T h e d a t a      

v o l u m e f r o m t h e v a r i o u s e x t e r n a l s y s t e m s h a s i n c r e a s e d c o n t i n u a l l y i n t h e r e c e n t    

 p a s t , m a k i n g m a n a g e m e n t o f t h e j o b s f o r a t l e e x t r a c t i o n d i f c u l t . Y o u c a n   

o p t i m i z e t h i s p r o c e s s b y u s i n g D a t a S e r v i c e s t o e x t r a c t d a t a d i r e c t l y f r o m a n      

e x t e r n a l s y s t e m .  Y o u w a n t t o u s e t h e S Q L t r a n s f o r m t o s u b m i t S Q L c o m m a n d s t o g e n e r a t e d a t a      

t o b e m o v e d i n t o t a r g e t o b j e c t s w h e r e o t h e r t r a n s f o r m s d o n o t m e e t b u s i n e s s    

r e q u i r e m e n t s .  

T a s k :    

T h e c o n t e n t s o f t h e E m p l o y e e a n d D e p a r t m e n t t a b l e s m u s t b e m e r g e d a n d c a n b e      

a c c o m p l i s h e d w i t h t h e S Q L t r a n s f o r m .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ E m p l o y e e s _ D e p t _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D e p t _ D F     . 

2 . A d d a S Q L t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e        E m p _ D e p t      t a b l e      

f r o m t h e H R _ d a t a m a r t d a t a s t o r e a s t h e t a r g e t o b j e c t .  

3 . I n t h e t r a n s f o r m e d i t o r f o r t h e S Q L t r a n s f o r m , s p e c i f y t h e s o u r c e d a t a s t o r e      

a n d t a b l e s .  

4 . E x e c u t e t h e        A l p h a _ E m p l o y e e s _ D e p t _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

R e s u l t    

Y o u s h o u l d h a v e 4 0 r o w s i n y o u r t a r g e t t a b l e , b e c a u s e t h e r e w e r e 8      

e m p l o y e e s i n t h e E m p l o y e e t a b l e w i t h d e p a r t m e n t I D s t h a t w e r e n o t d e n e d      

i n t h e D e p a r t m e n t t a b l e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 8 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 306: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 306/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

S o l u t i o n 1 8 : U s i n g t h e S Q L t r a n s f o r m          

T a s k :    

T h e c o n t e n t s o f t h e E m p l o y e e a n d D e p a r t m e n t t a b l e s m u s t b e m e r g e d a n d c a n b e      

a c c o m p l i s h e d w i t h t h e S Q L t r a n s f o r m .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ E m p l o y e e s _ D e p t _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D e p t _ D F     . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ E m p l o y e e s _ D e p t _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ E m p l o y e e s _ D e p t _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ E m p l o y e e s _ D e p t _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . A d d a S Q L t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e        E m p _ D e p t      t a b l e      

f r o m t h e H R _ d a t a m a r t d a t a s t o r e a s t h e t a r g e t o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e S Q L t r a n s f o r m t o t h e d a t a o w w o r k s p a c e .  

 b ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e     D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     E m p _ D e p t        t a b l e f r o m t h e H R _ d a t a m a r t d a t a s t o r e a n d d r a g t h e      

o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t m e n u , c h o o s e t h e      

o p t i o n        M a k e T a r g e t     . 

C o n t i n u e d o n n e x t p a g e      

2 8 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 307: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 307/472

B O D S 1 0 L e s s o n : U s i n g t h e S Q L T r a n s f o r m          

3 . I n t h e t r a n s f o r m e d i t o r f o r t h e S Q L t r a n s f o r m , s p e c i f y t h e s o u r c e d a t a s t o r e      

a n d t a b l e s .  

a ) D o u b l e - c l i c k t h e S Q L t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

 b ) F o r t h e e l d     D a t a s t o r e        , u s e t h e d r o p - d o w n l i s t t o s e l e c t t h e        A l p h a      d a t a s t o r e .  

c ) F o r t h e e l d        D a t a b a s e t y p e        , u s e t h e d r o p - d o w n l i s t t o s e l e c t      S Q L   S e r v e r 2 0 0 5        . 

d ) C r e a t e a S Q L s t a t e m e n t t o s e l e c t t h e l a s t n a m e a n d r s t n a m e o f t h e      

e m p l o y e e f r o m t h e E m p l o y e e t a b l e a n d t h e d e p a r t m e n t t o w h i c h t h e      

e m p l o y e e b e l o n g s . L o o k u p t h e v a l u e i n t h e D e p a r t m e n t t a b l e b a s e d o n      

t h e D e p a r t m e n t I D .  

E n t e r t h e e x p r e s s i o n :    S E L E C T E M P L O Y E E . E M P L O Y E E I D ,    E M P L O Y E E . F I R S T N A M E , E M P L O Y E E . L A S T N A M E . D E -      P A R T M E N T N A M E F R O M A L P H A . S O U R C E . E M P L O Y E E ,    

 A L P H A . S O U R C E . D E P A R T M E N T W H E R E E M P L O Y E E . D E P A R T -    M E N T I D = D E P A R T M E N T . D E P A R T M E N T I D .  

e ) T o c r e a t e t h e o u t p u t s c h e m a , s e l e c t t h e b u t t o n        U p d a t e s c h e m a        a n d t h i s    

c r e a t e s t h e o u t p u t c o l u m n e l d s .  

f ) R i g h t - c l i c k o n t h e        E M P L O Y E E I D          c o l u m n a n d s e l e c t t h e o p t i o n        S e t  

a s p r i m a r y k e y      . 

g ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

h ) C o n n e c t t h e S Q L t r a n s f o r m t o t h e t a r g e t t a b l e b y s e l e c t i n g t h e S Q L        

t r a n s f o r m a n d w h i l e h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t o t h e t a r g e t    

t a b l e . R e l e a s e t h e b u t t o n t o c r e a t e t h e l i n k .  

4 . E x e c u t e t h e        A l p h a _ E m p l o y e e s _ D e p t _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ E m p l o y -      e e s _ D e p t _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t t a b l e .  

R e s u l t    

Y o u s h o u l d h a v e 4 0 r o w s i n y o u r t a r g e t t a b l e , b e c a u s e t h e r e w e r e 8      

e m p l o y e e s i n t h e E m p l o y e e t a b l e w i t h d e p a r t m e n t I D s t h a t w e r e n o t    

d e n e d i n t h e D e p a r t m e n t t a b l e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 8 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 308: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 308/472

U n i t 6 : U s i n g P l a t f o r m T r a n s f o r m s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e S Q L t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e S Q L t r a n s f o r m s e e “ T r a n s f o r m s ” C h a p t e r 5 i n      

t h e     D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

2 9 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 309: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 309/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• D e s c r i b e p l a t f o r m t r a n s f o r m s    

• U s e t h e M a p O p e r a t i o n t r a n s f o r m i n a d a t a o w        

• U s e t h e V a l i d a t i o n t r a n s f o r m          

• U s e t h e M e r g e t r a n s f o r m          

• U s e t h e C a s e t r a n s f o r m          

• U s e t h e S Q L t r a n s f o r m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 9 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 310: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 310/472

U n i t S u m m a r y B O D S 1 0      

2 9 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 311: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 311/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 312: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 312/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 313: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 313/472

U n i t 7        S e t t i n g U p E r r o r H a n d l i n g      

U n i t O v e r v i e w          

I f a D a t a S e r v i c e s j o b d o e s n o t c o m p l e t e p r o p e r l y , y o u m u s t r e s o l v e t h e p r o b l e m s    

t h a t p r e v e n t e d t h e s u c c e s s f u l e x e c u t i o n o f t h e j o b . T h e b e s t s o l u t i o n t o d a t a      

r e c o v e r y s i t u a t i o n s i s o b v i o u s l y n o t t o g e t t h e m i n t h e r s t p l a c e . S o m e o f t h o s e      s i t u a t i o n s a r e u n a v o i d a b l e , s u c h a s s e r v e r f a i l u r e s . O t h e r s , h o w e v e r , c a n e a s i l y b e      

s i d e s t e p p e d b y c o n s t r u c t i n g y o u r j o b s s o t h a t t h e y t a k e i n t o a c c o u n t t h e i s s u e s t h a t    

f r e q u e n t l y c a u s e t h e m t o f a i l .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• E x p l a i n t h e l e v e l s o f d a t a r e c o v e r y s t r a t e g i e s    

• U s e r e c o v e r a b l e w o r k o w s u s i n g a t r y / c a t c h b l o c k w i t h a c o n d i t i o n a l    

U n i t C o n t e n t s      

L e s s o n : S e t t i n g U p E r r o r H a n d l i n g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 4      

E x e r c i s e 1 9 : C r e a t i n g a n A l t e r n a t i v e W o r k F l o w . . . . . . . . . . . . . . . . . . . . . . . 3 0 5      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 9 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 314: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 314/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

L e s s o n O v e r v i e w          

F o r s o p h i s t i c a t e d e r r o r h a n d l i n g , y o u c a n u s e r e c o v e r a b l e w o r k o w s a n d t r y / c a t c h      

 b l o c k s t o r e c o v e r d a t a . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• E x p l a i n t h e l e v e l s o f d a t a r e c o v e r y s t r a t e g i e s    

• U s e r e c o v e r a b l e w o r k o w s u s i n g a t r y / c a t c h b l o c k w i t h a c o n d i t i o n a l    

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y w o u l d l i k e t o e s t a b l i s h a d i r e c t o p e n c o n n e c t i o n t o y o u r M i c r o s o f t    

A c c e s s d a t a b a s e . I n c o n s i d e r i n g D B C o n n e c t t e c h n o l o g y , y o u h a v e d e c i d e d t h a t    

t h i s t e c h n o l o g y i s n o t a s u i t a b l e o p t i o n f o r y o u r p a r t i c u l a r d a t a b a s e . Y o u n e e d a      

d a t a s t a g i n g o p t i o n t h a t c a n s u p p o r t a w i d e r r a n g e o f s o u r c e s y s t e m s . T h e o p t i o n s    

 p r o v i d e d b y t h e S A P N e t W e a v e r B u s i n e s s W a r e h o u s e c o n n e c t i o n a r e c o n s i d e r a b l y   

e n h a n c e d b y u n i v e r s a l d a t a i n t e g r a t i o n s o t h a t a l m o s t a l l d a t a s o u r c e s c a n b e      

d i r e c t l y c o n n e c t e d t o S A P B W .  

U s i n g r e c o v e r y m e c h a n i s m s      

I f a D a t a S e r v i c e s j o b d o e s n o t c o m p l e t e p r o p e r l y , y o u m u s t r e s o l v e t h e p r o b l e m s    

t h a t p r e v e n t e d t h e s u c c e s s f u l e x e c u t i o n o f t h e j o b .  

A v o i d i n g d a t a r e c o v e r y s i t u a t i o n s    

T h e b e s t s o l u t i o n t o d a t a r e c o v e r y s i t u a t i o n s i s o b v i o u s l y n o t t o g e t i n t o t h e m i n      

t h e r s t p l a c e . S o m e o f t h o s e s i t u a t i o n s a r e u n a v o i d a b l e , s u c h a s s e r v e r f a i l u r e s .  

O t h e r s , h o w e v e r , c a n e a s i l y b e s i d e s t e p p e d b y c o n s t r u c t i n g y o u r j o b s s o t h a t t h e y      

t a k e i n t o a c c o u n t t h e i s s u e s t h a t f r e q u e n t l y c a u s e t h e m t o f a i l .  

O n e e x a m p l e i s w h e n a n e x t e r n a l l e i s r e q u i r e d t o r u n a j o b . I n t h i s s i t u a t i o n , y o u      

c o u l d u s e t h e w a i t _ f o r _ l e f u n c t i o n o r a w h i l e l o o p a n d t h e l e _ e x i s t s f u n c t i o n t o      

c h e c k t h a t t h e l e e x i s t s i n a s p e c i e d l o c a t i o n b e f o r e e x e c u t i n g t h e j o b .  

T h e w h i l e l o o p i s a s i n g l e – u s e o b j e c t t h a t y o u c a n u s e i n a w o r k o w . T h e w h i l e      

l o o p r e p e a t s a s e q u e n c e o f s t e p s a s l o n g a s a c o n d i t i o n i s t r u e .  

T y p i c a l l y , t h e s t e p s d o n e d u r i n g t h e w h i l e l o o p r e s u l t i n a c h a n g e i n t h e c o n d i t i o n      

s o t h a t t h e c o n d i t i o n i s e v e n t u a l l y n o l o n g e r s a t i s e d a n d t h e w o r k o w e x i t s f r o m          

t h e w h i l e l o o p . I f t h e c o n d i t i o n d o e s n o t c h a n g e , t h e w h i l e l o o p d o e s n o t e n d .  

2 9 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 315: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 315/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

F o r e x a m p l e , y o u m i g h t w a n t a w o r k o w t o w a i t u n t i l t h e s y s t e m w r i t e s a      

 p a r t i c u l a r l e . Y o u c a n u s e a w h i l e l o o p t o c h e c k f o r t h e e x i s t e n c e o f t h e l e u s i n g   

t h e l e _ e x i s t s f u n c t i o n . A s l o n g a s t h e l e d o e s n o t e x i s t , y o u c a n h a v e t h e w o r k       o w g o i n t o s l e e p m o d e f o r a p a r t i c u l a r l e n g t h o f t i m e b e f o r e c h e c k i n g a g a i n .  

B e c a u s e t h e s y s t e m m i g h t n e v e r w r i t e t h e l e , y o u m u s t a d d a n o t h e r c h e c k t o t h e      

l o o p , s u c h a s a c o u n t e r , t o e n s u r e t h a t t h e w h i l e l o o p e v e n t u a l l y e x i t s . I n o t h e r    

w o r d s , c h a n g e t h e w h i l e l o o p t o c h e c k f o r t h e e x i s t e n c e o f t h e l e a n d t h e v a l u e      

o f t h e c o u n t e r . A s l o n g a s t h e l e d o e s n o t e x i s t a n d t h e c o u n t e r i s l e s s t h a n a      

 p a r t i c u l a r v a l u e , r e p e a t t h e w h i l e l o o p . I n e a c h i t e r a t i o n o f t h e l o o p , p u t t h e w o r k   

o w i n s l e e p m o d e a n d t h e n i n c r e m e n t t h e c o u n t e r    

D e s c r i b i n g l e v e l s o f d a t a r e c o v e r y s t r a t e g i e s    

W h e n a j o b f a i l s t o c o m p l e t e s u c c e s s f u l l y d u r i n g e x e c u t i o n , s o m e d a t a o w s m a y      

n o t h a v e c o m p l e t e d . W h e n t h i s h a p p e n s , s o m e t a b l e s m a y h a v e b e e n l o a d e d ,     p a r t i a l l y l o a d e d , o r a l t e r e d . 

F i g u r e 8 3 : R e c o v e r y M e c h a n i s m s      

Y o u n e e d t o d e s i g n y o u r d a t a m o v e m e n t j o b s s o t h a t y o u c a n r e c o v e r y o u r d a t a      

 b y r e r u n n i n g t h e j o b a n d r e t r i e v i n g a l l t h e d a t a w i t h o u t i n t r o d u c i n g d u p l i c a t e o r  

m i s s i n g d a t a .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 9 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 316: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 316/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

T h e r e a r e d i f f e r e n t l e v e l s o f d a t a r e c o v e r y a n d r e c o v e r y s t r a t e g i e s . Y o u c a n :  

• R e c o v e r y o u r e n t i r e d a t a b a s e : U s e y o u r s t a n d a r d R D B M S s e r v i c e s t o r e s t o r e      

c r a s h e d d a t a c a c h e t o a n e n t i r e d a t a b a s e . T h i s o p t i o n i s o u t s i d e o f t h e s c o p e      

o f t h i s c o u r s e .  

• R e c o v e r a p a r t i a l l y - l o a d e d j o b : U s e a u t o m a t i c r e c o v e r y .  

• R e c o v e r f r o m p a r t i a l l y - l o a d e d t a b l e s : U s e t h e T a b l e C o m p a r i s o n t r a n s f o r m ,    

d o a f u l l r e p l a c e m e n t o f t h e t a r g e t , u s e t h e a u t o - c o r r e c t l o a d f e a t u r e , i n c l u d e      

a p r e l o a d S Q L c o m m a n d t o a v o i d d u p l i c a t e l o a d i n g o f r o w s w h e n r e c o v e r i n g      

f r o m p a r t i a l l y l o a d e d t a b l e s .  

• R e c o v e r m i s s i n g v a l u e s o r r o w s : U s e t h e V a l i d a t i o n t r a n s f o r m o r t h e Q u e r y      

t r a n s f o r m w i t h W H E R E c l a u s e s t o i d e n t i f y m i s s i n g v a l u e s , a n d u s e o v e r o w        

l e s t o m a n a g e r o w s t h a t c o u l d n o t b e i n s e r t e d .  

• D e n e a l t e r n a t i v e w o r k o w s : U s e c o n d i t i o n a l s , t r y / c a t c h b l o c k s , a n d s c r i p t s    t o e n s u r e a l l e x c e p t i o n s a r e m a n a g e d i n a w o r k o w .  

D e p e n d i n g o n t h e r e l a t i o n s h i p s b e t w e e n d a t a o w s i n y o u r a p p l i c a t i o n , y o u m a y      

u s e a c o m b i n a t i o n o f t h e s e t e c h n i q u e s t o r e c o v e r f r o m e x c e p t i o n s .  

N o t e :      S o m e r e c o v e r y m e c h a n i s m s a r e f o r u s e i n p r o d u c t i o n s y s t e m s a n d a r e n o t    

s u p p o r t e d i n d e v e l o p m e n t e n v i r o n m e n t s    

C o n g u r i n g w o r k o w s a n d d a t a o w s    

I n s o m e c a s e s , s t e p s i n a w o r k o w d e p e n d o n e a c h o t h e r a n d m u s t b e e x e c u t e d      

t o g e t h e r . W h e n t h e r e i s a d e p e n d e n c y l i k e t h i s , y o u s h o u l d d e s i g n a t e t h e w o r k o w        

a s a r e c o v e r y u n i t . T h i s r e q u i r e s t h e e n t i r e w o r k o w t o c o m p l e t e s u c c e s s f u l l y . I f      

t h e w o r k o w d o e s n o t c o m p l e t e s u c c e s s f u l l y , D a t a S e r v i c e s e x e c u t e s t h e e n t i r e      

w o r k o w d u r i n g r e c o v e r y , i n c l u d i n g t h e s t e p s t h a t e x e c u t e d s u c c e s s f u l l y i n      

 p r i o r w o r k o w r u n s . 

C o n v e r s e l y , y o u m a y n e e d t o s p e c i f y t h a t a w o r k o w o r d a t a o w s h o u l d o n l y      

e x e c u t e o n c e . W h e n t h i s s e t t i n g i s e n a b l e d , t h e j o b n e v e r r e – e x e c u t e s t h a t o b j e c t .  

W e d o n o t r e c o m m e n d m a r k i n g a w o r k o w o r d a t a o w a s “ E x e c u t e o n l y o n c e ” i f      

t h e p a r e n t w o r k o w i s a r e c o v e r y u n i t .  

T o s p e c i f y a w o r k o w a s a r e c o v e r y u n i t    

1 . I n t h e p r o j e c t a r e a o r o n t h e W o r k F l o w s t a b o f t h e L o c a l O b j e c t L i b r a r y ,    

r i g h t – c l i c k t h e w o r k o w a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . O n t h e G e n e r a l t a b , s e l e c t t h e        R e c o v e r a s a u n i t      c h e c k b o x .  

3 . S e l e c t      O K       . 

2 9 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 317: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 317/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

T o s p e c i f y t h a t a n o b j e c t e x e c u t e s o n l y o n c e      

1 . I n t h e p r o j e c t a r e a o r o n t h e a p p r o p r i a t e t a b o f t h e L o c a l O b j e c t L i b r a r y ,    

r i g h t – c l i c k t h e w o r k o w o r d a t a o w a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u .  

T h e     P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . O n t h e G e n e r a l t a b , s e l e c t t h e        E x e c u t e o n l y o n c e        c h e c k b o x .  

3 . S e l e c t      O K       . 

U s i n g r e c o v e r y m o d e      

I f a j o b w i t h a u t o m a t e d r e c o v e r y e n a b l e d f a i l s d u r i n g e x e c u t i o n , y o u c a n e x e c u t e      

t h e j o b a g a i n i n r e c o v e r y m o d e . D u r i n g r e c o v e r y m o d e , D a t a S e r v i c e s r e t r i e v e s    

t h e r e s u l t s f o r s u c c e s s f u l l y – c o m p l e t e d s t e p s a n d r e r u n s i n c o m p l e t e d o r f a i l e d s t e p s    

u n d e r t h e s a m e c o n d i t i o n s a s t h e o r i g i n a l j o b .  

I n r e c o v e r y m o d e , D a t a S e r v i c e s e x e c u t e s t h e s t e p s o r r e c o v e r y u n i t s t h a t d i d n o t    

c o m p l e t e s u c c e s s f u l l y i n a p r e v i o u s e x e c u t i o n . T h i s i n c l u d e s s t e p s t h a t f a i l e d a n d      

s t e p s t h a t g e n e r a t e d a n e x c e p t i o n b u t c o m p l e t e d s u c c e s s f u l l y , s u c h a s t h o s e i n a      

t r y / c a t c h b l o c k . A s i n n o r m a l j o b e x e c u t i o n , D a t a S e r v i c e s e x e c u t e s t h e s t e p s i n      

 p a r a l l e l i f t h e y a r e n o t c o n n e c t e d i n t h e w o r k o w d i a g r a m s a n d i n s e r i a l i f t h e y   

a r e c o n n e c t e d .  

F o r e x a m p l e , s u p p o s e a d a i l y u p d a t e j o b r u n n i n g o v e r n i g h t s u c c e s s f u l l y l o a d s    

d i m e n s i o n t a b l e s i n a w a r e h o u s e . H o w e v e r , w h i l e t h e j o b i s r u n n i n g , t h e d a t a b a s e      

l o g o v e r o w s a n d s t o p s t h e j o b f r o m l o a d i n g f a c t t a b l e s . T h e n e x t d a y , y o u      

t r u n c a t e t h e l o g l e a n d r u n t h e j o b a g a i n i n r e c o v e r y m o d e . T h e r e c o v e r y j o b      

d o e s n o t r e l o a d t h e d i m e n s i o n t a b l e s i n a f a i l e d j o b b e c a u s e t h e o r i g i n a l j o b , e v e n      t h o u g h i t f a i l e d , s u c c e s s f u l l y l o a d e d t h e d i m e n s i o n t a b l e s .  

T o e n s u r e t h a t t h e f a c t t a b l e s a r e l o a d e d w i t h t h e d a t a t h a t c o r r e s p o n d s p r o p e r l y t o      

t h e d a t a a l r e a d y l o a d e d i n t h e d i m e n s i o n t a b l e s , e n s u r e t h a t    

• Y o u r r e c o v e r y j o b m u s t u s e t h e s a m e e x t r a c t i o n c r i t e r i a t h a t y o u r o r i g i n a l j o b      

u s e d w h e n l o a d i n g t h e d i m e n s i o n t a b l e s .  

I f y o u r r e c o v e r y j o b u s e s n e w e x t r a c t i o n c r i t e r i a , s u c h a s b a s i n g d a t a      

e x t r a c t i o n o n t h e c u r r e n t s y s t e m d a t e , t h e d a t a i n t h e f a c t t a b l e s w i l l n o t    

c o r r e s p o n d t o t h e d a t a p r e v i o u s l y e x t r a c t e d i n t o t h e d i m e n s i o n t a b l e s .  

I f y o u r r e c o v e r y j o b u s e s n e w v a l u e s , t h e j o b e x e c u t i o n m a y f o l l o w a      

c o m p l e t e l y d i f f e r e n t p a t h w i t h c o n d i t i o n a l s t e p s o r t r y / c a t c h b l o c k s .  

• Y o u r r e c o v e r y j o b m u s t f o l l o w t h e e x a c t e x e c u t i o n p a t h t h a t t h e o r i g i n a l    

 j o b f o l l o w e d . D a t a S e r v i c e s r e c o r d s a n y e x t e r n a l i n p u t s t o t h e o r i g i n a l j o b   

s o t h a t y o u r r e c o v e r y j o b c a n u s e t h e s e s t o r e d v a l u e s a n d f o l l o w t h e s a m e      

e x e c u t i o n p a t h .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     2 9 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 318: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 318/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

T o e n a b l e a u t o m a t i c r e c o v e r y i n a j o b      

1 . I n t h e p r o j e c t a r e a , r i g h t – c l i c k t h e j o b a n d s e l e c t      E x e c u t e        f r o m t h e m e n u .  

T h e     E x e c u t i o n P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . O n t h e P a r a m e t e r s t a b , s e l e c t t h e        E n a b l e r e c o v e r y        c h e c k b o x .  

I f t h i s c h e c k b o x i s n o t s e l e c t e d , D a t a S e r v i c e s d o e s n o t r e c o r d t h e r e s u l t s    

f r o m t h e s t e p s d u r i n g t h e j o b a n d c a n n o t r e c o v e r t h e j o b i f i t f a i l s .  

3 . S e l e c t      O K       . 

T o r e c o v e r f r o m l a s t e x e c u t i o n      

1 . I n t h e p r o j e c t a r e a , r i g h t – c l i c k t h e j o b t h a t f a i l e d a n d s e l e c t      E x e c u t e        f r o m          

t h e m e n u .  

T h e     E x e c u t i o n P r o p e r t i e s      d i a l o g b o x d i s p l a y s .  

2 . O n t h e P a r a m e t e r s t a b , s e l e c t t h e        R e c o v e r f r o m l a s t e x e c u t i o n        c h e c k b o x .  

T h i s o p t i o n i s n o t a v a i l a b l e w h e n a j o b h a s n o t y e t b e e n e x e c u t e d , t h e      

 p r e v i o u s j o b r u n s u c c e e d e d , o r r e c o v e r y m o d e w a s d i s a b l e d d u r i n g t h e   

 p r e v i o u s r u n . 

3 . S e l e c t      O K       . 

R e c o v e r i n g f r o m p a r t i a l l y – l o a d e d d a t a      

E x e c u t i n g a f a i l e d j o b a g a i n m a y r e s u l t i n d u p l i c a t i o n o f r o w s t h a t w e r e l o a d e d      

s u c c e s s f u l l y d u r i n g t h e r s t j o b r u n .  

2 9 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 319: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 319/472

Page 320: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 320/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

T o u s e a n o v e r o w l e i n a j o b      

1 . O p e n t h e t a r g e t t a b l e e d i t o r f o r t h e t a r g e t t a b l e i n y o u r d a t a o w .  

2 . O n t h e O p t i o n s t a b , u n d e r E r r o r h a n d l i n g , s e l e c t t h e        U s e o v e r o w l e        c h e c k      

 b o x . 

3 . I n t h e        F i l e n a m e        e l d , e n t e r o r b r o w s e t o t h e f u l l p a t h a n d l e n a m e f o r    

t h e l e .  

W h e n y o u s p e c i f y a n o v e r o w l e , g i v e a f u l l p a t h n a m e t o e n s u r e t h a t D a t a      

S e r v i c e s c r e a t e s a u n i q u e l e w h e n m o r e t h a n o n e l e i s c r e a t e d i n t h e s a m e      

 j o b . 

4 . I n t h e        F i l e f o r m a t      d r o p – d o w n l i s t , s e l e c t w h a t y o u w a n t D a t a S e r v i c e s t o      

w r i t e t o t h e l e a b o u t t h e r o w s t h a t f a i l e d t o l o a d :  

• I f y o u s e l e c t      W r i t e d a t a        , y o u c a n u s e D a t a S e r v i c e s t o s p e c i f y t h e      f o r m a t o f t h e e r r o r – c a u s i n g r e c o r d s i n t h e o v e r o w l e .  

• I f y o u s e l e c t      W r i t e s q l     , y o u c a n u s e t h e c o m m a n d s t o l o a d t h e t a r g e t    

m a n u a l l y w h e n t h e t a r g e t i s a c c e s s i b l e .  

D e n i n g a l t e r n a t i v e w o r k o w s    

Y o u c a n s e t u p y o u r j o b s t o u s e a l t e r n a t i v e w o r k o w s t h a t c o v e r a l l p o s s i b l e      

e x c e p t i o n s a n d h a v e r e c o v e r y m e c h a n i s m s b u i l t i n . T h i s t e c h n i q u e a l l o w s y o u t o      

a u t o m a t e t h e p r o c e s s o f r e c o v e r i n g y o u r r e s u l t s .  

F i g u r e 8 4 : A l t e r n a t i v e W o r k o w w i t h T r y / C a t c h B l o c k s      

3 0 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 321: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 321/472

Page 322: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 322/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

F i g u r e 8 5 : W o r k o w w i t h C o n d i t i o n a l D e c i s i o n      

W h e n y o u d e n e a c o n d i t i o n a l , y o u m u s t s p e c i f y a c o n d i t i o n a n d t w o l o g i c a l     b r a n c h e s : 

S t a t e m e n t D e s c r i p t i o n      

I f A B o o l e a n e x p r e s s i o n t h a t e v a l u a t e s t o T R U E o r    

F A L S E . Y o u c a n u s e f u n c t i o n s , v a r i a b l e s , a n d      

s t a n d a r d o p e r a t o r s t o c o n s t r u c t t h e e x p r e s s i o n .  

T h e n W o r k o w e l e m e n t t o e x e c u t e i f t h e I F e x p r e s s i o n      

e v a l u a t e s t o T R U E .  

E l s e W o r k o w e l e m e n t t o e x e c u t e i f t h e I F e x p r e s s i o n      

e v a l u a t e s t o F A L S E .  

B o t h t h e T h e n a n d E l s e b r a n c h e s o f t h e c o n d i t i o n a l c a n c o n t a i n a n y o b j e c t t h a t    

y o u c a n h a v e i n a w o r k o w , i n c l u d i n g o t h e r w o r k o w s , d a t a o w s , n e s t e d      

c o n d i t i o n a l s , t r y / c a t c h b l o c k s , s c r i p t s , a n d s o o n .  

T r y / C a t c h B l o c k s    

A t r y / c a t c h b l o c k a l l o w s y o u t o s p e c i f y a l t e r n a t i v e w o r k o w s i f e r r o r s o c c u r    

d u r i n g j o b e x e c u t i o n . T r y / c a t c h b l o c k s c a t c h c l a s s e s o f e r r o r s , a p p l y s o l u t i o n s t h a t    

y o u p r o v i d e , a n d c o n t i n u e e x e c u t i o n .  

F o r e a c h c a t c h i n t h e t r y / c a t c h b l o c k , y o u c a n s p e c i f y :  

• O n e e x c e p t i o n o r g r o u p o f e x c e p t i o n s h a n d l e d b y t h e c a t c h . T o h a n d l e      

m o r e t h a n o n e e x c e p t i o n o r g r o u p o f e x c e p t i o n s , a d d m o r e c a t c h e s t o t h e      

t r y / c a t c h b l o c k .  

• T h e w o r k o w t o e x e c u t e i f t h e i n d i c a t e d e x c e p t i o n o c c u r s . U s e a n e x i s t i n g      

w o r k o w o r d e n e a w o r k o w i n t h e c a t c h e d i t o r .  

I f a n e x c e p t i o n i s t h r o w n d u r i n g t h e e x e c u t i o n o f a t r y / c a t c h b l o c k , a n d i f n o c a t c h      

i s l o o k i n g f o r t h a t e x c e p t i o n , t h e n t h e e x c e p t i o n i s h a n d l e d b y n o r m a l e r r o r l o g i c .  

U s i n g t r y / c a t c h b l o c k s a n d a u t o m a t i c r e c o v e r y      

D a t a S e r v i c e s d o e s n o t s a v e t h e r e s u l t o f a t r y / c a t c h b l o c k f o r r e – u s e d u r i n g      

r e c o v e r y . I f a n e x c e p t i o n i s t h r o w n i n s i d e a t r y / c a t c h b l o c k , d u r i n g r e c o v e r y D a t a      S e r v i c e s e x e c u t e s t h e s t e p t h a t t h r e w t h e e x c e p t i o n a n d s u b s e q u e n t s t e p s .  

S i n c e t h e e x e c u t i o n p a t h w i t h t h e t r y / c a t c h b l o c k m i g h t b e d i f f e r e n t i n t h e      

r e c o v e r e d j o b , u s i n g v a r i a b l e s s e t i n t h e t r y / c a t c h b l o c k c o u l d a l t e r t h e r e s u l t s    

d u r i n g a u t o m a t i c r e c o v e r y .  

F o r e x a m p l e , s u p p o s e y o u c r e a t e a j o b t h a t d e n e s t h e v a l u e o f v a r i a b l e $ I    

w i t h i n a t r y / c a t c h b l o c k . I f a n e x c e p t i o n o c c u r s , y o u s e t a n a l t e r n a t e v a l u e f o r $ I .  

S u b s e q u e n t s t e p s a r e b a s e d o n t h e n e w v a l u e o f $ I .  

3 0 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 323: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 323/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

D u r i n g t h e r s t j o b e x e c u t i o n , t h e r s t w o r k o w c o n t a i n s a n e r r o r t h a t g e n e r a t e s    

a n e x c e p t i o n , w h i c h i s c a u g h t . H o w e v e r , t h e j o b f a i l s i n t h e s u b s e q u e n t w o r k o w .  

F i g u r e 8 6 : W o r k o w F i r s t E x e c u t i o n C a p t u r e s E r r o r      

Y o u x t h e e r r o r a n d r u n t h e j o b i n r e c o v e r y m o d e . D u r i n g t h e r e c o v e r y e x e c u t i o n ,    

t h e r s t w o r k o w n o l o n g e r g e n e r a t e s t h e e x c e p t i o n . T h u s t h e v a l u e o f v a r i a b l e      

$ I i s d i f f e r e n t , a n d t h e j o b s e l e c t s a d i f f e r e n t s u b s e q u e n t w o r k o w , p r o d u c i n g      

d i f f e r e n t r e s u l t s .  

F i g u r e 8 7 : C o n d i t i o n a l C h a n g e s E x e c u t i o n P a t h      

T o e n s u r e p r o p e r r e s u l t s w i t h a u t o m a t i c r e c o v e r y w h e n a j o b c o n t a i n s a t r y / c a t c h      

 b l o c k , d o n o t u s e v a l u e s s e t i n s i d e t h e t r y / c a t c h b l o c k o r r e f e r e n c e o u t p u t v a r i a b l e s  

f r o m a t r y / c a t c h b l o c k i n a n y s u b s e q u e n t s t e p s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 0 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 324: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 324/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

3 0 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 325: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 325/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

E x e r c i s e 1 9 : C r e a t i n g a n A l t e r n a t i v e W o r k      

F l o w          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e r e c o v e r a b l e w o r k o w s u s i n g a t r y / c a t c h b l o c k w i t h a c o n d i t i o n a l t o      

c a t c h e x c e p t i o n s    

B u s i n e s s E x a m p l e      

W i t h t h e i n u x o f n e w e m p l o y e e s r e s u l t i n g f r o m A l p h a ' s a c q u i s i t i o n o f n e w        

c o m p a n i e s , t h e E m p l o y e e D e p a r t m e n t i n f o r m a t i o n n e e d s t o b e u p d a t e d r e g u l a r l y .  

S i n c e t h i s i n f o r m a t i o n i s u s e d f o r p a y r o l l , i t i s c r i t i c a l t h a t t h e r e i s n o l o s s o f      r e c o r d s i f a j o b i s i n t e r r u p t e d . Y o u n e e d t o s e t u p t h e j o b i n a w a y t h a t e x c e p t i o n s    

a r e a l w a y s m a n a g e d . T h i s i n v o l v e s s e t t i n g u p a c o n d i t i o n a l t h a t e x e c u t e s a l e s s    

r e s o u r c e - i n t e n s i v e u p d a t e o f t h e t a b l e r s t . I f t h a t g e n e r a t e s a n e x c e p t i o n , t h e      

c o n d i t i o n a l t h e n t r i e s a v e r s i o n o f t h e s a m e d a t a o w t h a t i s c o n g u r e d t o a u t o      

c o r r e c t t h e l o a d .  

T a s k :    

S e t u p a j o b        A l p h a _ E m p o y e e s _ D e p t _ R e c o v e r y _ J o b        w i t h a t r y / c a t c h      

 b l o c k a n d c o n d i t i o n a l t o c a t c h e x c e p t i o n s i n t h e e x e c u t i o n o f a d a t a o w    

 A l p h a _ E m p l o y e e s _ D e p t _ D F     . E x c e p t i o n s c a u s e t h e c o n d i t i o n a l t o e x e c u t e      

a d i f f e r e n t v e r s i o n o f t h e s a m e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F      c o n g u r e d w i t h a u t o c o r r e c t i o n .  

1 . R e p l i c a t e t h e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ D F        a s  

 A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F     i n t h e L o c a l O b j e c t L i b r a r y a n d      

r e c o n g u r e t h e t a r g e t t a b l e s i n b o t h d a t a o w s f o r a u t o c o r r e c t i o n .  

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b     a n d a n e w g l o b a l v a r i a b l e      

$ G _ R e c o v e r y _ N e e d e d        . 

3 . I n t h e w o r k s p a c e o f t h e        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b      a d d a w o r k o w c a l l e d      

  A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ W F        . 

4 . I n t h e w o r k o w          A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ W F        w o r k s p a c e ,    

a d d a s c r i p t c a l l e d        G e t S t a t u s        a n d c o n s t r u c t a n e x p r e s s i o n t o u p d a t e t h e      

v a l u e o f t h e g l o b a l v a r i a b l e        $ G _ R e c o v e r y _ N e e d e d        t o t h e s a m e v a l u e a s    

i n t h e        r e c o v e r y _ a g        c o l u m n i n t h e        r e c o v e r y _ s t a t u s      t a b l e i n t h e H R _ d a t a m a r t .  

5 . I n t h e w o r k o w w o r k s p a c e , e n t e r a        C o n d i t i o n a l      c a l l      A l p a _ E m p l o y -      e e s _ D e p t _ C o n        c o n n e c t e d t o t h e s c r i p t .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 0 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 326: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 326/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

6 . C o n g u r e t h e        C o n d i t i o n a l      a s a n “ i f ” s t a t e m e n t , w h i c h d e t e r m i n e s    

w h i c h d a t a o w t o e x e c u t e b a s e d u p o n t h e v a l u e o f t h e g l o b a l v a r i a b l e      

$ G _ R e c o v e r y _ N e e d e d        . 7 . E x e c u t e        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b        w i t h t h e d e f a u l t    

 p r o p e r t i e s . 

3 0 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 327: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 327/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

S o l u t i o n 1 9 : C r e a t i n g a n A l t e r n a t i v e W o r k      

F l o w          T a s k :    

S e t u p a j o b        A l p h a _ E m p o y e e s _ D e p t _ R e c o v e r y _ J o b        w i t h a t r y / c a t c h      

 b l o c k a n d c o n d i t i o n a l t o c a t c h e x c e p t i o n s i n t h e e x e c u t i o n o f a d a t a o w    

 A l p h a _ E m p l o y e e s _ D e p t _ D F     . E x c e p t i o n s c a u s e t h e c o n d i t i o n a l t o e x e c u t e      

a d i f f e r e n t v e r s i o n o f t h e s a m e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F      c o n g u r e d w i t h a u t o c o r r e c t i o n .  

1 . R e p l i c a t e t h e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ D F        a s  

 A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F     i n t h e L o c a l O b j e c t L i b r a r y a n d      

r e c o n g u r e t h e t a r g e t t a b l e s i n b o t h d a t a o w s f o r a u t o c o r r e c t i o n .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a o w s      t a b a n d r i g h t - c l i c k      

t h e     A l p h a _ E m p l o y e e s _ D e p t _ D F        d a t a o w t o c h o o s e t h e o p t i o n      

 R e p l i c a t e     . 

 b ) C h a n g e t h e n a m e o f t h e r e p l i c a t e d d a t a o w t o     A l p h a _ E m p l o y -      e e s _ D e p t _ A C _ D F        b y d o u b l e - c l i c k i n g t h e n a m e t o e n t e r e d i t o r m o d e .  

A f t e r e n t e r i n g t h e n e w n a m e , s e l e c t      E n t e r        t o s a v e t h e n a m e .  

c ) D o u b l e - c l i c k t h e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ D F        t o o p e n      

i t s w o r k s p a c e a n d d o u b l e - c l i c k t h e t a r g e t t a b l e        E m p _ D e p t     . 

d ) I n t h e w o r k s p a c e f o r t h e t a r g e t t a b l e e d i t o r , d e s e l e c t t h e c h e c k b o x e s f o r    

t h e o p t i o n s      D e l e t e d a t a f r o m t a b l e b e f o r e l o a d i n g      a n d     A u t o c o r r e c t l o a d        . S e l e c t      B a c k        t o r e t u r n t o t h e d a t a o w        

w o r k s p a c e .  

e ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a o w s      t a b , s e l e c t a n d      

d o u b l e - c l i c k t h e        A l p h a _ E m p l o y e e s _ D e p t _ D F        d a t a o w t o o p e n      

t h e w o r k s p a c e a n d d o u b l e - c l i c k t h e t a r g e t t a b l e        E m p _ D e p t     . 

f ) I n t h e w o r k s p a c e f o r t h e t a r g e t t a b l e e d i t o r , d e s e l e c t t h e c h e c k b o x f o r    

t h e o p t i o n        D e l e t e d a t a f r o m t a b l e b e f o r e l o a d i n g        . 

g ) I n t h e w o r k s p a c e f o r t h e t a r g e t t a b l e e d i t o r , s e l e c t t h e c h e c k b o x f o r    

t h e o p t i o n        A u t o c o r r e c t l o a d        . S e l e c t      B a c k        t o r e t u r n t o t h e d a t a      

o w w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 0 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 328: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 328/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b     a n d a n e w g l o b a l v a r i a b l e      

$ G _ R e c o v e r y _ N e e d e d        . a ) I n t h e p r o j e c t a r e a , r i g h t - c l i c k t h e        O m e g a        p r o j e c t t o      

s e l e c t t h e o p t i o n        N e w b a t c h j o b        a n d e n t e r t h e n a m e      

 A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b     . 

 b ) I n t h e p r o j e c t a r e a , s e l e c t t h e   

 j o b     A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b        a n d t h e n u s e t h e      

m e n u p a t h        T o o l s → V a r i a b l e s      . 

c ) R i g h t - c l i c k        V a r i a b l e s      a n d s e l e c t      I n s e r t      f r o m t h e m e n u .  

d ) R i g h t - c l i c k t h e n e w v a r i a b l e a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u a n d      

e n t e r      $ G _ R e c o v e r y _ N e e d e d        i n t h e        G l o b a l V a r i a b l e P r o p e r t i e s    

d i a l o g b o x .  

I n t h e        D a t a t y p e        d r o p - d o w n l i s t , s e l e c t      i n t     f o r t h e d a t a t y p e a n d s e l e c t    

O K      . 

3 . I n t h e w o r k s p a c e o f t h e        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b      a d d a w o r k o w c a l l e d        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ W F        . 

a ) D o u b l e - c l i c k t h e j o b        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b      t o o p e n i t s w o r k s p a c e .  

 b ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e w o r k o w i c o n a n d d r a g i t i n t o t h e   

w o r k s p a c e a n d e n t e r t h e n a m e        A l p h a _ E m p l o y e e s _ D e p t _ R e -      

c o v e r y _ W F        . 

c ) D o u b l e - c l i c k t h e w o r k o w          A l p h a _ E m p l o y e e s _ D e p t _ R e c o v -      e r y _ W F        t o o p e n i t s w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

3 0 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 329: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 329/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

4 . I n t h e w o r k o w          A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ W F        w o r k s p a c e ,    

a d d a s c r i p t c a l l e d        G e t S t a t u s        a n d c o n s t r u c t a n e x p r e s s i o n t o u p d a t e t h e      

v a l u e o f t h e g l o b a l v a r i a b l e        $ G _ R e c o v e r y _ N e e d e d        t o t h e s a m e v a l u e a s    i n t h e        r e c o v e r y _ a g        c o l u m n i n t h e        r e c o v e r y _ s t a t u s      t a b l e i n t h e H R _ d a t a m a r t .  

a ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e        S c r i p t      i c o n a n d t h e n d o u b l e - c l i c k i n      

t h e w o r k o w w o r k s p a c e t o i n s e r t t h e s c r i p t .  

 b ) N a m e t h e s c r i p t    G e t T i m e S t a m p        . 

c ) D o u b l e - c l i c k t h e s c r i p t t o o p e n i t a n d c r e a t e a n e x p r e s s i o n t o u p d a t e      

t h e v a l u e o f t h e g l o b a l v a r i a b l e t o t h e v a l u e a s i n t h e        r e c o v e r y _ a g      

c o l u m n i n t h e        r e c o v e r y _ s t a t u s      t a b l e i n t h e H R _ d a t a m a r t . T y p e i n t h i s    

e x p r e s s i o n :  

$ G _ R e c o v e r y _ N e e d e d = s q l ( ' h r _ d a t a m a r t ' ,    ' s e l e c t r e c o v e r y _ f l a g f r o m r e c o v e r y _ s t a t u s ' ) ;      

d ) C l o s e t h e s c r i p t a n d r e t u r n t o t h e j o b w o r k s p a c e . D o u b l e - c l i c k t h e d a t a      

o w t o o p e n i t s w o r k s p a c e .  

5 . I n t h e w o r k o w w o r k s p a c e , e n t e r a        C o n d i t i o n a l      c a l l      A l p a _ E m p l o y -      e e s _ D e p t _ C o n        c o n n e c t e d t o t h e s c r i p t .  

a ) F r o m t h e T o o l P a l e t t e , s e l e c t a n d d r a g t h e i c o n f o r a        C o n d i t i o n a l      i n t o      

t h e w o r k o w w o r k s p a c e .  

 b ) S e l e c t t h e s c r i p t a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t o t h e   

C o n d i t i o n a l     . 

R e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n b e t w e e n t h e s c r i p t    

a n d t h e c o n d i t i o n a l .  

c ) D o u b l e - c l i c k t h e        C o n d i t i o n a l      t o o p e n i t s w o r k s p a c e .  

6 . C o n g u r e t h e        C o n d i t i o n a l      a s a n “ i f ” s t a t e m e n t , w h i c h d e t e r m i n e s    

w h i c h d a t a o w t o e x e c u t e b a s e d u p o n t h e v a l u e o f t h e g l o b a l v a r i a b l e      

$ G _ R e c o v e r y _ N e e d e d        . 

a ) I n t h e e d i t o r f o r t h e c o n d i t i o n a l , e n t e r a n “ I F ” s t a t e m e n t t h a t s t a t e s t h a t    

r e c o v e r y i s n o t r e q u i r e d .  

E n t e r t h e e x p r e s s i o n :    $ G _ R e c o v e r y _ N e e d e d = 0        . 

 b ) F r o m t h e T o o l P a l e t t e , s e l e c t a n d d r a g t h e i c o n f o r t h e     T r y    o b j e c t a n d      

d o u b l e - c l i c k i n t h e “ T h e n ” p a n e o f t h e C o n d i t i o n a l e d i t o r t o i n s e t i t .  

G i v e t h e        T r y    o b j e c t t h e n a m e        A l p h a _ E m p l o y e e s _ D e p t _ T r y      

c ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t a n d d r a g t h e d a t a o w        

 A l p h a _ E m p l o y e e s _ D e p t _ D F     i n t o t h e “ T h e n ” p a n e o f t h e      

C o n d i t i o n a l e d i t o r ,    

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 0 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 330: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 330/472

Page 331: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 331/472

B O D S 1 0 L e s s o n : S e t t i n g U p E r r o r H a n d l i n g      

m ) C o n n e c t t h e d a t a o w          A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F        t o t h e      

s c r i p t      R e c o v e r _ P a s s        b y s e l e c t i n g t h e d a t a o w a n d d r a g g i n g t o      

t h e s c r i p t .  7 . E x e c u t e        A l p h a _ E m p l o y e e s _ D e p t _ R e c o v e r y _ J o b        w i t h t h e d e f a u l t    

 p r o p e r t i e s . 

a ) I n t h e p r o j e c t a r e a , s e l e c t y o u r      A l p h a _ M a r k e t i n g _ O f f e r _ J o b      a n d c h o o s e t h e o p t i o n        E x e c u t e        . 

 b ) S e l e c t    S a v e        t o s a v e a l l o b j e c t s y o u h a v e c r e a t e d .  

c ) I n t h e n e x t d i a l o g b o x , a c c e p t a l l t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a n d      

s e l e c t      O K      . 

N o t e :      N o t e t h a t t h e t r a c e l o g i n d i c a t e s t h e d a t a o w g e n e r a t e d      

a n e r r o r , b u t t h e j o b c o m p l e t e d s u c c e s s f u l l y d u e t o t h e t r y c a t c h       b l o c k . N o t e t h a t a n e r r o r l o g w a s g e n e r a t e d w h i c h i n d i c a t e s a   

 p r i m a r y k e y c o n i c t i n t h e t a r g e t t a b l e . 

d ) E x e c u t e t h e        A l p h a _ M a r k e t i n g _ O f f e r _ J o b        a s e c o n d t i m e .  

N o t e :      I n t h e l o g , n o t e t h a t t h e j o b s u c c e e d s a n d t h a t t h e d a t a      

o w u s e d w a s      A l p h a _ E m p l o y e e s _ D e p t _ A C _ D F      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 332: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 332/472

U n i t 7 : S e t t i n g U p E r r o r H a n d l i n g B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • E x p l a i n t h e l e v e l s o f d a t a r e c o v e r y s t r a t e g i e s    

• U s e r e c o v e r a b l e w o r k o w s u s i n g a t r y / c a t c h b l o c k w i t h a c o n d i t i o n a l    

3 1 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 333: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 333/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• E x p l a i n t h e l e v e l s o f d a t a r e c o v e r y s t r a t e g i e s    

• U s e r e c o v e r a b l e w o r k o w s u s i n g a t r y / c a t c h b l o c k w i t h a c o n d i t i o n a l    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 334: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 334/472

U n i t S u m m a r y B O D S 1 0      

3 1 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 335: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 335/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 336: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 336/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 337: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 337/472

U n i t 8        C a p t u r i n g C h a n g e s i n D a t a      

U n i t O v e r v i e w          

T h e d e s i g n o f y o u r d a t a w a r e h o u s e m u s t t a k e i n t o a c c o u n t h o w y o u a r e g o i n g t o      

h a n d l e c h a n g e s i n y o u r t a r g e t s y s t e m t h e r e s p e c t i v e d a t a i n y o u r s o u r c e s y s t e m          

c h a n g e s . D a t a I n t e g r a t o r t r a n s f o r m s p r o v i d e s y o u w i t h a m e c h a n i s m t o d o t h i s .  S l o w C h a n g i n g D i m e n s i o n s ( S C D ) a r e d i m e n s i o n s , p r e v a l e n t i n d a t a w a r e h o u s e s , ,    

t h a t h a v e d a t a t h a t c h a n g e s o v e r t i m e . T h r e e m e t h o d s o f h a n d l i n g t h e s e S C D s :  

n o h i s t o r y p r e s e r v a t i o n , u n l i m i t e d h i s t o r y p r e s e r v a t i o n a n d n e w r o w s , a n d l i m i t e d      

h i s t o r y p r e s e r v a t i o n .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• U p d a t e d a t a w h i c h c h a n g e s s l o w l y o v e r t i m e      

• U s e s o u r c e - b a s e d C D C ( C h a n g e D a t a C a p t u r e )    • U s e t i m e s t a m p s i n s o u r c e - b a s e d C D C        

• M a n a g e i s s u e s r e l a t e d t o u s i n g t i m e s t a m p s f o r s o u r c e - b a s e d C D C        

• U s e t a r g e t - b a s e d C D C        

U n i t C o n t e n t s      

L e s s o n : C a p t u r i n g C h a n g e s i n D a t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 6      

L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . . . . . . . . . . . 3 2 4      

E x e r c i s e 2 0 : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . 3 2 9      

L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . . . . . . . . . . . . 3 4 2      

E x e r c i s e 2 1 : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C ) . . . . . 3 5 1    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 338: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 338/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

L e s s o n : C a p t u r i n g C h a n g e s i n D a t a      

L e s s o n O v e r v i e w          

T h e d e s i g n o f y o u r d a t a w a r e h o u s e m u s t t a k e i n t o a c c o u n t h o w y o u a r e g o i n g t o      

h a n d l e c h a n g e s i n y o u r t a r g e t s y s t e m w h e n t h e r e s p e c t i v e d a t a i n y o u r s o u r c e      

s y s t e m c h a n g e s . D a t a I n t e g r a t o r t r a n s f o r m s p r o v i d e y o u w i t h a m e c h a n i s m t o      

d o t h i s    

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U p d a t e d a t a w h i c h c h a n g e s s l o w l y o v e r t i m e      

B u s i n e s s E x a m p l e      

T h e c u r r e n t b u s i n e s s e n v i r o n m e n t d e m a n d s a m o r e o p e n d a t a i n t e r c h a n g e w i t h      

y o u r c u s t o m e r s , s u b s i d i a r i e s a n d o t h e r b u s i n e s s p a r t n e r s . T h e r e i s a n i n c r e a s i n g      

n e e d t o i n c o r p o r a t e d a t a o f v a r i o u s f o r m a t s a n d s o u r c e s y s t e m s . X M L h a s p r o v e n      

t o b e a r e l i a b l e , s t a b l e s t a n d a r d f o r t h e t r a n s f e r o f d a t a . I n c o n t r a s t t o t h e g e n e r a l    

P u l l e x t r a c t i o n s t r a t e g y , t h e t r a n s f e r o f d a t a i s t o b e i n i t i a t e d b y t h e s o u r c e s y s t e m s    

( P u s h - M e c h a n i s m ) .  

U p d a t i n g d a t a o v e r t i m e      

I n t r o d u c t i o n      

D a t a I n t e g r a t o r t r a n s f o r m s p r o v i d e s u p p o r t f o r u p d a t i n g c h a n g i n g d a t a i n y o u r d a t a      

w a r e h o u s e . A f t e r c o m p l e t i n g t h i s u n i t , y o u c a n a b l e t o :  

• D e s c r i b e t h e o p t i o n s f o r u p d a t i n g c h a n g e s t o d a t a      

• E x p l a i n t h e p u r p o s e o f C h a n g e d D a t a C a p t u r e ( C D C )    

• E x p l a i n t h e r o l e o f s u r r o g a t e k e y s i n m a n a g i n g c h a n g e s t o d a t a      

• D e n e t h e d i f f e r e n c e s b e t w e e n s o u r c e – b a s e d a n d t a r g e t – b a s e d C D C        

E x p l a i n i n g S l o w l y C h a n g i n g D i m e n s i o n s ( S C D )    

S l o w l y C h a n g i n g D i m e n s i o n s a r e d i m e n s i o n s t h a t h a v e d a t a t h a t c h a n g e s o v e r    t i m e . T h e r e a r e t h r e e m e t h o d s o f h a n d l i n g S l o w l y C h a n g i n g D i m e n s i o n s a r e      

a v a i l a b l e :  

3 1 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 339: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 339/472

B O D S 1 0 L e s s o n : C a p t u r i n g C h a n g e s i n D a t a      

T y p e D e s c r i p t i o n      

T y p e 1    

 N o h i s t o r y p r e s e r v a t i o n   

 N a t u r a l c o n s e q u e n c e o f n o r m a l i z a t i o n . 

T y p e 2      

U n l i m i t e d h i s t o r y p r e s e r v a t i o n      

a n d n e w r o w s    

• N e w r o w s g e n e r a t e d f o r s i g n i c a n t    

c h a n g e s .  

• R e q u i r e s u s e o f a u n i q u e k e y . T h e k e y      

r e l a t e s t o f a c t s / t i m e .  

• O p t i o n a l E f f e c t i v e _ D a t e e l d .  

T y p e 3      

L i m i t e d h i s t o r y p r e s e r v a t i o n      

• T w o s t a t e s o f d a t a a r e p r e s e r v e d : c u r r e n t    

a n d o l d .  

• N e w e l d s a r e g e n e r a t e d t o s t o r e h i s t o r y      

d a t a .  

• R e q u i r e s a n E f f e c t i v e _ D a t e e l d .  

F i g u r e 8 8 : S l o w l y C h a n g i n g D i m e n s i o n s      

S i n c e S C D T y p e 2 r e s o l v e s m o s t o f t h e i s s u e s r e l a t e d t o s l o w l y c h a n g i n g      

d i m e n s i o n s , i t i s e x p l o r e d l a s t .  

S C D T y p e 1    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 340: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 340/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

F o r a S C D T y p e 1 c h a n g e , y o u n d a n d u p d a t e t h e a p p r o p r i a t e a t t r i b u t e s    

o n a s p e c i c d i m e n s i o n a l r e c o r d . F o r e x a m p l e , t o u p d a t e a r e c o r d i n t h e      

S A L E S _ P E R S O N _ D I M E N S I O N t a b l e t o s h o w a c h a n g e t o a n i n d i v i d u a l ’ s    S A L E S _ P E R S O N _ N A M E e l d , y o u s i m p l y u p d a t e o n e r e c o r d i n t h e      

S A L E S _ P E R S O N _ D I M E N S I O N t a b l e . T h i s a c t i o n w o u l d u p d a t e o r c o r r e c t t h a t    

r e c o r d f o r a l l f a c t r e c o r d s a c r o s s t i m e . I n a d i m e n s i o n a l m o d e l , f a c t s h a v e n o      

m e a n i n g u n t i l y o u l i n k t h e m w i t h t h e i r d i m e n s i o n s . I f y o u c h a n g e a d i m e n s i o n a l    

a t t r i b u t e w i t h o u t a p p r o p r i a t e l y a c c o u n t i n g f o r t h e t i m e d i m e n s i o n , t h e c h a n g e      

 b e c o m e s g l o b a l a c r o s s a l l f a c t r e c o r d s . 

T h i s i s t h e d a t a b e f o r e t h e c h a n g e :  

S A L E S _ P E R -    

S O N _ K E Y        

S A L E S _ P E R -    

S O N _ I D        

N A M E S A L E S _ T E A M            

1 5 0 0 0 1 2 0 D o e , J o h n B N o r t h w e s t    

T h i s i s t h e s a m e t a b l e a f t e r t h e s a l e s p e r s o n ’ s n a m e h a s b e e n c h a n g e d :  

S A L E S _ P E R -    

S O N _ K E Y        

S A L E S _ P E R -    

S O N _ I D        

N A M E S A L E S _ T E A M            

1 5 0 0 0 1 2 0 S m i t h , J o h n B N o r t h w e s t    

H o w e v e r , s u p p o s e a s a l e s p e r s o n t r a n s f e r s t o a n e w s a l e s t e a m . U p d a t i n g t h e      

s a l e s p e r s o n ’ s d i m e n s i o n a l r e c o r d w o u l d u p d a t e a l l p r e v i o u s f a c t s s o t h a t t h e      

s a l e s p e r s o n w o u l d a p p e a r t o h a v e a l w a y s b e l o n g e d t o t h e n e w s a l e s t e a m . T h i s    m a y c a u s e i s s u e s i n t e r m s o f r e p o r t i n g s a l e s n u m b e r s f o r b o t h t e a m s . I f y o u w a n t    

t o p r e s e r v e a n a c c u r a t e h i s t o r y o f w h o w a s o n w h i c h s a l e s t e a m , T y p e 1 i s n o t    

a p p r o p r i a t e .  

S C D T y p e 3      

T o i m p l e m e n t a T y p e 3 c h a n g e , y o u c h a n g e t h e d i m e n s i o n s t r u c t u r e s o t h a t i t    

r e n a m e s t h e e x i s t i n g a t t r i b u t e a n d a d d s t w o a t t r i b u t e s , o n e t o r e c o r d t h e n e w v a l u e      

a n d o n e t o r e c o r d t h e d a t e o f t h e c h a n g e .  

A T y p e 3 i m p l e m e n t a t i o n h a s t h r e e d i s a d v a n t a g e s :  

• Y o u c a n p r e s e r v e o n l y o n e c h a n g e p e r a t t r i b u t e , s u c h a s o l d a n d n e w o r r s t    

a n d l a s t .  

• E a c h T y p e 3 c h a n g e r e q u i r e s a m i n i m u m o f o n e a d d i t i o n a l e l d p e r a t t r i b u t e      

a n d a n o t h e r a d d i t i o n a l e l d i f y o u w a n t t o r e c o r d t h e d a t e o f t h e c h a n g e .  

• A l t h o u g h t h e d i m e n s i o n ’ s s t r u c t u r e c o n t a i n s a l l t h e d a t a n e e d e d , t h e S Q L        

c o d e r e q u i r e d t o e x t r a c t t h e i n f o r m a t i o n c a n b e c o m p l e x . E x t r a c t i n g a      

s p e c i c v a l u e i s n o t d i f c u l t , b u t i f y o u w a n t t o o b t a i n a v a l u e f o r a s p e c i c      

 p o i n t i n t i m e o r m u l t i p l e a t t r i b u t e s w i t h s e p a r a t e o l d a n d n e w v a l u e s , t h e   

S Q L s t a t e m e n t s b e c o m e l o n g a n d h a v e m u l t i p l e c o n d i t i o n s .  

3 1 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 341: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 341/472

B O D S 1 0 L e s s o n : C a p t u r i n g C h a n g e s i n D a t a      

I n s u m m a r y , S C D T y p e 3 c a n s t o r e a c h a n g e i n d a t a , b u t c a n n e i t h e r a c c o m m o d a t e      

m u l t i p l e c h a n g e s , n o r a d e q u a t e l y s e r v e t h e n e e d f o r s u m m a r y r e p o r t i n g .  

T h i s i s t h e d a t a b e f o r e t h e c h a n g e :  

S A L E S _ P E R -    

S O N _ K E Y        

S A L E S _ P E R -    

S O N _ I D        

N A M E S A L E S _ T E A M            

1 5 0 0 0 1 2 0 D o e , J o h n B N o r t h w e s t    

T h i s i s t h e s a m e t a b l e a f t e r t h e n e w d i m e n s i o n s h a v e b e e n a d d e d a n d t h e      

s a l e s p e r s o n ’ s s a l e s t e a m h a s b e e n c h a n g e d :  

S A L E S _ P E R -    

S O N _      N A M E        

O L D _ T E A M N E W _ T E A M E F F _ T O _ D A T E S A L E S _      

P E R S O N _ I D        

D o e , J o h n B N o r t h w e s t N o r t h w e s t O c t _ 3 1 _ 2 0 0 4 0 0 1 2 0      

S C D T y p e 2      

W i t h a T y p e 2 c h a n g e , y o u d o n o t n e e d t o m a k e s t r u c t u r a l c h a n g e s t o t h e      

S A L E S _ P E R S O N _ D I M E N S I O N t a b l e . I n s t e a d , y o u a d d a r e c o r d .  

T h i s i s t h e d a t a b e f o r e t h e c h a n g e :  

S A L E S _ P E R -    

S O N _ K E Y        

S A L E S _ P E R -    

S O N _ I D        

N A M E S A L E S _ T E A M            

1 5 0 0 0 1 2 0 D o e , J o h n B N o r t h w e s t    

A f t e r y o u i m p l e m e n t t h e T y p e 2 c h a n g e , t w o r e c o r d s a p p e a r , a s i n t h i s t a b l e :  

S A L E S _ P E R -    

S O N _ K E Y        

S A L E S _ P E R -    

S O N _ I D        

N A M E S A L E S _ T E A M            

1 5 0 0 0 1 2 0 D o e , J o h n B N o r t h w e s t    

1 3 3 0 0 0 1 2 0 D o e , J o h n B S o u t h e a s t    

U p d a t i n g c h a n g e s t o d a t a      

M a n y t i m e s y o u h a v e a l a r g e a m o u n t o f d a t a t o u p d a t e r e g u l a r l y a n d a s m a l l    

a m o u n t o f s y s t e m d o w n t i m e f o r s c h e d u l e d m a i n t e n a n c e o n a d a t a w a r e h o u s e . Y o u      

m u s t c h o o s e t h e m o s t a p p r o p r i a t e m e t h o d f o r u p d a t i n g y o u r d a t a o v e r t i m e , a l s o      

k n o w n a s “ d e l t a l o a d ” . Y o u c a n c h o o s e t o d o a f u l l r e f r e s h o f y o u r d a t a o r y o u c a n      

c h o o s e t o e x t r a c t o n l y n e w o r m o d i e d d a t a a n d u p d a t e t h e t a r g e t s y s t e m :  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 1 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 342: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 342/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

F i g u r e 8 9 : I n t r o d u c i n g C h a n g i n g D a t a C a p t u r e ( C D C )    

• F u l l r e f r e s h : F u l l r e f r e s h i s e a s y t o i m p l e m e n t a n d e a s y t o m a n a g e . T h i s    

m e t h o d e n s u r e s t h a t n o d a t a i s o v e r l o o k e d o r l e f t o u t d u e t o t e c h n i c a l o r    

 p r o g r a m m i n g e r r o r s . F o r a n e n v i r o n m e n t w i t h a m a n a g e a b l e a m o u n t o f   

s o u r c e d a t a , f u l l r e f r e s h i s a n e a s y m e t h o d y o u c a n u s e t o p e r f o r m a d e l t a      

l o a d t o a t a r g e t s y s t e m .  

• C a p t u r i n g o n l y c h a n g e s : A f t e r a n i n i t i a l l o a d i s c o m p l e t e , y o u c a n c h o o s e t o      

e x t r a c t o n l y n e w o r m o d i e d d a t a a n d u p d a t e t h e t a r g e t s y s t e m . I d e n t i f y i n g      

a n d l o a d i n g o n l y c h a n g e d d a t a i s c a l l e d C h a n g e d D a t a C a p t u r e ( C D C ) . C D C        i s r e c o m m e n d e d f o r l a r g e t a b l e s . I f t h e t a b l e s t h a t y o u a r e w o r k i n g w i t h      

a r e s m a l l , y o u m a y w a n t t o c o n s i d e r r e l o a d i n g t h e e n t i r e t a b l e i n s t e a d . T h e      

 b e n e t o f u s i n g C D C i n s t e a d o f d o i n g a f u l l r e f r e s h i s t h a t i t : 

 – I m p r o v e s p e r f o r m a n c e b e c a u s e t h e j o b t a k e s l e s s t i m e t o p r o c e s s w i t h   

l e s s d a t a t o e x t r a c t , t r a n s f o r m , a n d l o a d      

 – C h a n g e h i s t o r y c a n b e t r a c k e d b y t h e t a r g e t s y s t e m s o t h a t d a t a c a n b e   

c o r r e c t l y a n a l y z e d o v e r t i m e . F o r e x a m p l e , i f a s a l e s p e r s o n i s a s s i g n e d      

a n e w s a l e s r e g i o n , s i m p l y u p d a t i n g t h e c u s t o m e r r e c o r d t o r e e c t t h e      

n e w r e g i o n n e g a t i v e l y a f f e c t s a n y a n a l y s i s b y r e g i o n o v e r t i m e . T h e      

 p u r c h a s e s m a d e b y t h a t c u s t o m e r b e f o r e t h e m o v e a r e a t t r i b u t e d t o   

t h e n e w r e g i o n .  

E x p l a i n i n g h i s t o r y p r e s e r v a t i o n a n d s u r r o g a t e k e y s    

H i s t o r y p r e s e r v a t i o n a l l o w s t h e d a t a w a r e h o u s e o r d a t a m a r t t o m a i n t a i n t h e      

h i s t o r y o f d a t a i n d i m e n s i o n t a b l e s s o y o u c a n a n a l y z e i t o v e r t i m e .  

F o r e x a m p l e , i f a c u s t o m e r m o v e s f r o m o n e s a l e s r e g i o n t o a n o t h e r , s i m p l y      

u p d a t i n g t h e c u s t o m e r r e c o r d t o r e e c t t h e n e w r e g i o n w o u l d g i v e y o u m i s l e a d i n g      

r e s u l t s i n a n a n a l y s i s b y r e g i o n o v e r t i m e . A l l p u r c h a s e s m a d e b y t h e c u s t o m e r    

 b e f o r e t h e m o v e w o u l d i n c o r r e c t l y b e a t t r i b u t e d t o t h e n e w r e g i o n . 

3 2 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 343: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 343/472

B O D S 1 0 L e s s o n : C a p t u r i n g C h a n g e s i n D a t a      

T h e s o l u t i o n t o t h i s i n v o l v e s i n t r o d u c i n g a n e w r e c o r d f o r t h e s a m e c u s t o m e r t h a t    

r e e c t s t h e n e w s a l e s r e g i o n s o t h a t y o u c a n p r e s e r v e t h e p r e v i o u s r e c o r d . I n t h i s    

w a y , a c c u r a t e r e p o r t i n g i s a v a i l a b l e f o r b o t h s a l e s r e g i o n s . T o s u p p o r t t h i s , D a t a      S e r v i c e s i s s e t u p t o t r e a t a l l c h a n g e s t o r e c o r d s a s I N S E R T r o w s b y d e f a u l t .  

H o w e v e r , y o u a l s o n e e d t o m a n a g e t h e p r i m a r y k e y c o n s t r a i n t i s s u e s i n y o u r t a r g e t    

t a b l e s t h a t a r i s e w h e n y o u h a v e m o r e t h a n o n e r e c o r d i n y o u r d i m e n s i o n t a b l e s f o r    

a s i n g l e e n t i t y , s u c h a s a c u s t o m e r o r a n e m p l o y e e .  

F o r e x a m p l e , w i t h y o u r s a l e s r e c o r d s , t h e S a l e s R e p r e s e n t a t i v e I D i s t h e p r i m a r y      

k e y a n d i s u s e d t o l i n k t h a t r e c o r d t o a l l o f t h e r e p r e s e n t a t i v e ' s s a l e s o r d e r s . I f      

y o u t r y t o a d d a n e w r e c o r d w i t h t h e s a m e p r i m a r y k e y , i t c a u s e s a n e x c e p t i o n .  

O n t h e o t h e r h a n d , i f y o u a s s i g n a n e w S a l e s R e p r e s e n t a t i v e I D t o t h e n e w r e c o r d      

f o r t h a t r e p r e s e n t a t i v e , y o u c o m p r o m i s e y o u r a b i l i t y t o r e p o r t a c c u r a t e l y o n t h e      

r e p r e s e n t a t i v e ' s t o t a l s a l e s .  

T o a d d r e s s t h i s i s s u e , y o u c r e a t e a s u r r o g a t e k e y , w h i c h i s a n e w c o l u m n i n t h e      

t a r g e t t a b l e t h a t b e c o m e s t h e n e w p r i m a r y k e y f o r t h e r e c o r d s . A t t h e s a m e t i m e ,    

y o u c h a n g e t h e p r o p e r t i e s o f t h e f o r m e r p r i m a r y k e y s o t h a t i t i s s i m p l y a d a t a      

c o l u m n .  

W h e n a n e w r e c o r d i s i n s e r t e d f o r t h e s a m e r e p r e s e n t a t i v e , a u n i q u e s u r r o g a t e      

k e y i s a s s i g n e d a l l o w i n g y o u t o c o n t i n u e t o u s e t h e S a l e s R e p r e s e n t a t i v e I D t o      

m a i n t a i n t h e l i n k t o t h e r e p r e s e n t a t i v e ’ s o r d e r s .  

F i g u r e 9 0 : S o u r c e - b a s e d C h a n g e D a t a C a p t u r e u s i n g S u r r o g a t e K e y s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 2 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 344: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 344/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

Y o u c a n c r e a t e s u r r o g a t e k e y s e i t h e r b y u s i n g t h e g e n _ r o w _ n u m o r k e y _ g e n e r a t i o n      

f u n c t i o n s i n t h e Q u e r y t r a n s f o r m t o c r e a t e a n e w o u t p u t c o l u m n . T h i s    

a u t o m a t i c a l l y i n c r e m e n t s w h e n e v e r a n e w r e c o r d i s i n s e r t e d , o r b y u s i n g t h e K e y      G e n e r a t i o n t r a n s f o r m , w h i c h s e r v e s t h e s a m e p u r p o s e .  

C o m p a r i n g s o u r c e – b a s e d a n d t a r g e t – b a s e d C D C        

S e t t i n g u p a f u l l C D C s o l u t i o n w i t h i n D a t a S e r v i c e s m a y n o t b e r e q u i r e d . M a n y      

d a t a b a s e s n o w h a v e C D C s u p p o r t b u i l t i n t o t h e m , s u c h a s O r a c l e , S Q L S e r v e r , a n d      

D B 2 . A l t e r n a t i v e l y , y o u c o u l d c o m b i n e s u r r o g a t e k e y s w i t h t h e M a p O p e r a t i o n      

t r a n s f o r m t o c h a n g e a l l U P D A T E r o w t y p e s t o I N S E R T r o w t y p e s t o c a p t u r e      

c h a n g e s .  

H o w e v e r , i f y o u d o w a n t t o s e t u p a f u l l C D C s o l u t i o n , t h e r e a r e t w o g e n e r a l    

i n c r e m e n t a l C D C m e t h o d s t o c h o o s e f r o m : s o u r c e – b a s e d a n d t a r g e t – b a s e d C D C .  

S o u r c e – b a s e d C D C e v a l u a t e s t h e s o u r c e t a b l e s t o d e t e r m i n e w h a t h a s c h a n g e d a n d      o n l y e x t r a c t s c h a n g e d r o w s t o l o a d i n t o t h e t a r g e t t a b l e s .  

T a r g e t – b a s e d C D C e x t r a c t s a l l t h e d a t a f r o m t h e s o u r c e , c o m p a r e s t h e s o u r c e a n d      

t a r g e t r o w s u s i n g t a b l e c o m p a r i s o n , a n d t h e n l o a d s o n l y t h e c h a n g e d r o w s i n t o      

t h e t a r g e t .  

S o u r c e – b a s e d C D C i s a l m o s t a l w a y s p r e f e r a b l e t o t a r g e t – b a s e d C D C f o r    

 p e r f o r m a n c e r e a s o n s . H o w e v e r , s o m e s o u r c e s y s t e m s d o n o t p r o v i d e e n o u g h   

i n f o r m a t i o n t o m a k e u s e o f t h e s o u r c e – b a s e d C D C t e c h n i q u e s . Y o u c a n u s e a      

o m b i n a t i o n o f t h e t w o t e c h n i q u e s .  

3 2 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 345: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 345/472

B O D S 1 0 L e s s o n : C a p t u r i n g C h a n g e s i n D a t a      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U p d a t e d a t a w h i c h c h a n g e s s l o w l y o v e r t i m e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 2 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 346: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 346/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e      ( C D C )    

L e s s o n O v e r v i e w          

T o r e d u c e t h e a m o u n t o f d a t a , w h i c h m u s t b e m o v e d , y o u w a n t t o u s e s o u r c e - b a s e d      

C D C t o p r o v i d e a d e l t a l o a d o f d a t a .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e s o u r c e - b a s e d C D C ( C h a n g e D a t a C a p t u r e )    

• U s e t i m e s t a m p s i n s o u r c e - b a s e d C D C        

• M a n a g e i s s u e s r e l a t e d t o u s i n g t i m e s t a m p s f o r s o u r c e - b a s e d C D C        

B u s i n e s s E x a m p l e      

T h e c u r r e n t b u s i n e s s e n v i r o n m e n t d e m a n d s a m o r e o p e n d a t a i n t e r c h a n g e w i t h      

y o u r c u s t o m e r s , s u b s i d i a r i e s a n d o t h e r b u s i n e s s p a r t n e r s . T h e r e i s a n i n c r e a s i n g      

n e e d t o i n c o r p o r a t e d a t a o f v a r i o u s f o r m a t s a n d s o u r c e s y s t e m s . X M L h a s p r o v e n      

t o b e a r e l i a b l e , s t a b l e s t a n d a r d f o r t h e t r a n s f e r o f d a t a . I n c o n t r a s t t o t h e g e n e r a l    

P u l l e x t r a c t i o n s t r a t e g y , t h e t r a n s f e r o f d a t a i s t o b e i n i t i a t e d b y t h e s o u r c e s y s t e m s    

( P u s h - M e c h a n i s m ) .  

T o r e d u c e t h e a m o u n t o f d a t a , w h i c h m u s t b e m o v e d , y o u w a n t t o u s e s o u r c e - b a s e d      

C D C t o p r o v i d e a d e l t a l o a d o f d a t a .  

U s i n g s o u r c e - b a s e d C D C        

S o u r c e – b a s e d C D C i s t h e p r e f e r r e d m e t h o d b e c a u s e i t i m p r o v e s p e r f o r m a n c e      

 b y e x t r a c t i n g t h e f e w e s t r o w s . 

U s i n g s o u r c e t a b l e s t o i d e n t i f y c h a n g e d d a t a      

3 2 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 347: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 347/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

S o u r c e – b a s e d C D C , s o m e t i m e s a l s o r e f e r r e d t o a s i n c r e m e n t a l e x t r a c t i o n , e x t r a c t s    

o n l y t h e c h a n g e d r o w s f r o m t h e s o u r c e . T o u s e s o u r c e – b a s e d C D C , y o u r s o u r c e      

d a t a m u s t h a v e s o m e i n d i c a t i o n o f t h e c h a n g e . T h e r e a r e t w o m e t h o d s :  

• T i m e s t a m p s : Y o u c a n u s e t h e t i m e s t a m p s i n y o u r s o u r c e d a t a t o d e t e r m i n e      

w h a t r o w s h a v e b e e n a d d e d o r c h a n g e d s i n c e t h e l a s t t i m e d a t a w a s e x t r a c t e d      

f r o m t h e s o u r c e . T o s u p p o r t t h i s t y p e o f s o u r c e - b a s e d C D C , y o u r d a t a b a s e      

t a b l e s m u s t h a v e a t l e a s t a n u p d a t e t i m e s t a m p ; i t i s p r e f e r a b l e t o i n c l u d e a      

c r e a t e t i m e s t a m p a s w e l l .  

• C h a n g e l o g s : Y o u c a n a l s o u s e t h e i n f o r m a t i o n c a p t u r e d b y t h e R D B M S i n      

t h e l o g l e s f o r t h e a u d i t t r a i l t o d e t e r m i n e w h a t d a t a i s h a s b e e n c h a n g e d .  

N o t e :      L o g – b a s e d d a t a i s m o r e c o m p l e x a n d i s o u t s i d e t h e s c o p e o f t h i s    

c o u r s e .  

U s i n g C D C w i t h t i m e s t a m p s    

T i m e s t a m p – b a s e d C D C i s a n i d e a l s o l u t i o n t o t r a c k c h a n g e s i f :  

• T h e r e a r e d a t e a n d t i m e e l d s i n t h e t a b l e s b e i n g u p d a t e d .  

• Y o u a r e u p d a t i n g a l a r g e t a b l e t h a t h a s a s m a l l p e r c e n t a g e o f c h a n g e s b e t w e e n      

e x t r a c t s a n d a n i n d e x o n t h e d a t e a n d t i m e e l d s .  

• Y o u a r e n o t c o n c e r n e d a b o u t c a p t u r i n g i n t e r m e d i a t e r e s u l t s o f e a c h      

t r a n s a c t i o n b e t w e e n e x t r a c t s ( f o r e x a m p l e , i f a c u s t o m e r c h a n g e s r e g i o n s    

t w i c e i n t h e s a m e d a y ) .  

W e d o n o t r e c o m m e n d t h a t y o u u s e t i m e s t a m p – b a s e d C D C i f :  

• Y o u h a v e a l a r g e t a b l e w i t h a l a r g e p e r c e n t a g e o f i t c h a n g e s b e t w e e n e x t r a c t s    

a n d t h e r e i s n o i n d e x o n t h e t i m e s t a m p s .  

• Y o u n e e d t o c a p t u r e p h y s i c a l r o w d e l e t e s .  

• Y o u n e e d t o c a p t u r e m u l t i p l e e v e n t s o c c u r r i n g o n t h e s a m e r o w b e t w e e n      

e x t r a c t s .  

S o m e s y s t e m s h a v e t i m e s t a m p s w i t h d a t e s a n d t i m e s , s o m e w i t h j u s t t h e d a t e s ,    

a n d s o m e w i t h m o n o t o n i c a l l y – g e n e r a t e d i n c r e a s i n g n u m b e r s . Y o u c a n t r e a t d a t e s    

a n d g e n e r a t e d n u m b e r s i n t h e s a m e m a n n e r . N o t e t h a t t i m e z o n e s c a n b e c o m e      

i m p o r t a n t f o r t i m e s t a m p s b a s e d o n r e a l t i m e . Y o u c a n k e e p t r a c k o f t i m e s t a m p s    

u s i n g t h e n o m e n c l a t u r e o f t h e s o u r c e s y s t e m ( t h a t i s , u s i n g t h e s o u r c e t i m e o r    

s o u r c e – g e n e r a t e d n u m b e r ) . T h e n t r e a t b o t h t e m p o r a l ( s p e c i c t i m e ) a n d l o g i c a l    

( t i m e r e l a t i v e t o a n o t h e r t i m e o r e v e n t ) t i m e s t a m p s i n t h e s a m e w a y .  

T h e b a s i c t e c h n i q u e f o r u s i n g t i m e s t a m p s i s t o a d d a c o l u m n t o y o u r s o u r c e a n d      

t a r g e t t a b l e s t h a t t r a c k s t h e t i m e s t a m p s o f r o w s l o a d e d i n a j o b . W h e n t h e j o b      

e x e c u t e s , t h i s c o l u m n i s u p d a t e d a l o n g w i t h t h e r e s t o f t h e d a t a . T h e n e x t j o b t h e n      

r e a d s t h e l a t e s t t i m e s t a m p f r o m t h e t a r g e t t a b l e a n d s e l e c t s o n l y t h e r o w s i n t h e      

s o u r c e t a b l e f o r w h i c h t h e t i m e s t a m p i s l a t e r .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 2 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 348: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 348/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

T h i s e x a m p l e i l l u s t r a t e s t h e t e c h n i q u e . A s s u m e t h a t t h e l a s t l o a d o c c u r r e d a t 2 : 0 0      

P M o n J a n u a r y 1 , 2 0 0 8 . A t t h a t t i m e , t h e s o u r c e t a b l e h a d o n l y o n e r o w ( k e y = 1 )    

w i t h a t i m e s t a m p e a r l i e r t h a n t h e p r e v i o u s l o a d . D a t a S e r v i c e s l o a d s t h i s r o w i n t o      t h e t a r g e t t a b l e w i t h t h e o r i g i n a l t i m e s t a m p o f 1 : 1 0 P M o n J a n u a r y 1 , 2 0 0 8 . A f t e r    

2 : 0 0 P M , D a t a S e r v i c e s a d d s m o r e r o w s t o t h e s o u r c e t a b l e :  

A t 3 : 0 0 P M o n J a n u a r y 1 , 2 0 0 8 , t h e j o b r u n s a g a i n . T h e j o b :  

1 . R e a d s t h e        L a s t _ U p d a t e        e l d f r o m t h e t a r g e t t a b l e ( 0 1 / 0 1 / 2 0 0 8 0 1 : 1 0 P M ) .  

2 . S e l e c t s r o w s f r o m t h e s o u r c e t a b l e t h a t h a v e t i m e s t a m p s t h a t a r e l a t e r t h a n      

t h e v a l u e o f      

 L a s t _ U p d a t e     . T h e S Q L c o m m a n d t o s e l e c t t h e s e r o w s i s :  

S E L E C T * F R O M S o u r c e W H E R E L a s t _ U p d a t e > ' 0 1 / 0 1 / 2 0 0 7 0 1 : 1 0 p m '    

T h i s o p e r a t i o n r e t u r n s t h e s e c o n d a n d t h i r d r o w s ( k e y = 2 a n d k e y = 3 ) .  

3 . L o a d s t h e s e n e w r o w s i n t o t h e t a r g e t t a b l e .  

F o r t i m e - s t a m p e d C D C , y o u m u s t c r e a t e a w o r k o w t h a t c o n t a i n s :  

• A s c r i p t t h a t r e a d s t h e t a r g e t t a b l e a n d s e t s t h e v a l u e o f a g l o b a l v a r i a b l e t o      

t h e l a t e s t t i m e s t a m p .  

• A d a t a o w t h a t u s e s t h e g l o b a l v a r i a b l e i n a “ W H E R E ” c l a u s e t o l t e r t h e      

d a t a .  

T h e d a t a o w c o n t a i n s a s o u r c e t a b l e , a q u e r y , a n d a t a r g e t t a b l e . T h e q u e r y      

e x t r a c t s o n l y t h o s e r o w s t h a t h a v e t i m e s t a m p s l a t e r t h a n t h e l a s t u p d a t e .  

3 2 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 349: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 349/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

T o s e t u p a t i m e s t a m p - b a s e d C D C d e l t a j o b      

1 . I n t h e        V a r i a b l e s a n d P a r a m e t e r s      d i a l o g b o x , a d d a g l o b a l v a r i a b l e w i t h      

a d a t a t y p e o f        d a t e t i m e        t o y o u r j o b .  

T h e p u r p o s e o f t h i s g l o b a l v a r i a b l e i s t o s t o r e a s t r i n g c o n v e r s i o n o f t h e t i m e      

s t a m p f o r t h e l a s t t i m e t h e j o b e x e c u t e d .  

2 . I n t h e j o b w o r k s p a c e , a d d a s c r i p t .  

3 . . I n t h e s c r i p t w o r k s p a c e , c o n s t r u c t a n e x p r e s s i o n t o d o :  

• S e l e c t t h e l a s t t i m e t h e j o b w a s e x e c u t e d f r o m t h e l a s t u p d a t e c o l u m n      

i n t h e t a b l e .  

• A s s i g n t h e a c t u a l t i m e s t a m p v a l u e t o t h e g l o b a l v a r i a b l e .  

4 . A d d a d a t a o w t o t h e r i g h t o f t h e s c r i p t u s i n g t h e t o o l p a l e t t e .  

5 . I n t h e d a t a o w w o r k s p a c e , a d d t h e s o u r c e , Q u e r y t r a n s f o r m , a n d t a r g e t    

o b j e c t s a n d c o n n e c t t h e m .  

T h e t a r g e t t a b l e f o r C D C c a n n o t b e a t e m p l a t e t a b l e .  

6 . R i g h t – c l i c k t h e s u r r o g a t e k e y c o l u m n a n d s e l e c t t h e        P r i m a r y K e y        o p t i o n      

i n t h e m e n u .  

7 . O n t h e M a p p i n g t a b f o r t h e s u r r o g a t e k e y c o l u m n , c o n s t r u c t a n e x p r e s s i o n t o      

u s e t h e k e y _ g e n e r a t i o n f u n c t i o n t o g e n e r a t e n e w k e y s b a s e d o n t h a t c o l u m n      

i n t h e t a r g e t t a b l e , i n c r e m e n t i n g b y 1 .  

8 . O n t h e “ W H E R E ” t a b , c o n s t r u c t a n e x p r e s s i o n t o s e l e c t o n l y t h o s e r e c o r d s    

w i t h a t i m e s t a m p t h a t i s l a t e r t h a n t h e g l o b a l v a r i a b l e .  

9 . C o n n e c t t h e s c r i p t t o t h e d a t a o w .  

M a n a g i n g o v e r l a p s    

W i t h o u t r i g o r o u s l y i s o l a t i n g s o u r c e d a t a d u r i n g t h e e x t r a c t i o n p r o c e s s ( w h i c h      

t y p i c a l l y i s n o t p r a c t i c a l ) , t h e r e i s a w i n d o w o f t i m e w h e n c h a n g e s c a n b e l o s t    

 b e t w e e n t w o e x t r a c t i o n r u n s . T h i s o v e r l a p p e r i o d a f f e c t s s o u r c e – b a s e d C D C    

 b e c a u s e t h i s c a p t u r e r e l i e s o n a s t a t i c t i m e s t a m p t o d e t e r m i n e c h a n g e d d a t a . 

F o r e x a m p l e , s u p p o s e a t a b l e h a s 1 0 , 0 0 0 r o w s . I f a c h a n g e i s m a d e t o o n e o f t h e      

r o w s a f t e r i t w a s l o a d e d b u t b e f o r e t h e j o b e n d s , t h e s e c o n d u p d a t e c a n b e l o s t .  

T h e r e a r e t h r e e t e c h n i q u e s f o r h a n d l i n g t h i s s i t u a t i o n :  

• O v e r l a p a v o i d a n c e      

• O v e r l a p r e c o n c i l i a t i o n      

• P r e s a m p l i n g      

O v e r l a p a v o i d a n c e      

I n s o m e c a s e s , i t i s p o s s i b l e t o s e t u p a s y s t e m w h e r e t h e r e i s n o p o s s i b i l i t y o f a n      

o v e r l a p . Y o u c a n a v o i d o v e r l a p s i f t h e r e i s a p r o c e s s i n g i n t e r v a l w h e r e n o u p d a t e s    

a r e o c c u r r i n g o n t h e t a r g e t s y s t e m .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 2 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 350: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 350/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

F o r e x a m p l e , i f y o u c a n g u a r a n t e e t h e d a t a e x t r a c t i o n f r o m t h e s o u r c e s y s t e m d o e s    

n o t l a s t m o r e t h a n o n e h o u r , y o u c a n r u n a j o b a t 1 : 0 0 A M e v e r y n i g h t t h a t s e l e c t s    

o n l y t h e d a t a u p d a t e d t h e p r e v i o u s d a y u n t i l m i d n i g h t . W h i l e t h i s r e g u l a r j o b d o e s    n o t g i v e y o u u p – t o – t h e – m i n u t e u p d a t e s , i t g u a r a n t e e s t h a t y o u n e v e r i s a n o v e r l a p      

a n d g r e a t l y s i m p l i e s t i m e s t a m p m a n a g e m e n t .  

O v e r l a p r e c o n c i l i a t i o n      

O v e r l a p r e c o n c i l i a t i o n r e q u i r e s a s p e c i a l e x t r a c t i o n p r o c e s s t h a t r e – a p p l i e s    

c h a n g e s t h a t c o u l d h a v e o c c u r r e d d u r i n g t h e o v e r l a p p e r i o d . T h i s e x t r a c t i o n c a n b e      

e x e c u t e d s e p a r a t e l y f r o m t h e r e g u l a r e x t r a c t i o n . F o r e x a m p l e , i f t h e h i g h e s t t i m e      

s t a m p l o a d e d f r o m t h e p r e v i o u s j o b w a s 0 1 / 0 1 / 2 0 0 8 1 0 : 3 0 P M a n d t h e o v e r l a p      

 p e r i o d i s o n e h o u r , o v e r l a p r e c o n c i l i a t i o n r e – a p p l i e s t h e d a t a u p d a t e d b e t w e e n   

9 : 3 0 P M a n d 1 0 : 3 0 P M o n J a n u a r y 1 , 2 0 0 8 .  

T h e o v e r l a p p e r i o d i s e q u a l t o t h e m a x i m u m p o s s i b l e e x t r a c t i o n t i m e . I f i t c a n t a k e      u p t o N h o u r s t o e x t r a c t t h e d a t a f r o m t h e s o u r c e s y s t e m , a n o v e r l a p p e r i o d o f N ( o r    

 N p l u s a s m a l l i n c r e m e n t ) h o u r s i s r e c o m m e n d e d . F o r e x a m p l e , i f i t t a k e s a t m o s t  

t w o h o u r s t o r u n t h e j o b , a n o v e r l a p p e r i o d o f a t l e a s t t w o h o u r s i s r e c o m m e n d e d .  

P r e s a m p l i n g      

P r e s a m p l i n g i s a n e x t e n s i o n o f t h e b a s i c t i m e s t a m p p r o c e s s i n g t e c h n i q u e . T h e      

m a i n d i f f e r e n c e i s t h a t t h e s t a t u s t a b l e c o n t a i n s b o t h a s t a r t a n d a n e n d t i m e s t a m p ,    

i n s t e a d o f t h e l a s t u p d a t e t i m e s t a m p . T h e s t a r t t i m e s t a m p f o r p r e s a m p l i n g i s    

t h e s a m e a s t h e e n d t i m e s t a m p o f t h e p r e v i o u s j o b . T h e e n d t i m e s t a m p f o r    

 p r e s a m p l i n g i s e s t a b l i s h e d a t t h e b e g i n n i n g o f t h e j o b . I t i s t h e m o s t r e c e n t t i m e   

s t a m p f r o m t h e s o u r c e t a b l e , c o m m o n l y s e t a s t h e s y s t e m d a t e .  

3 2 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 351: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 351/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

E x e r c i s e 2 0 : U s i n g S o u r c e - B a s e d C h a n g e      

D a t a C a p t u r e ( C D C )    E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e s o u r c e - b a s e d C h a n g e D a t a C a p t u r e ( C D C )    

• U s e t i m e s t a m p s i n s o u r c e - b a s e d C D C        

B u s i n e s s E x a m p l e      

Y o u n e e d t o s e t u p a j o b t o u p d a t e e m p l o y e e r e c o r d s i n t h e O m e g a d a t a w a r e h o u s e      

w h e n e v e r t h e y c h a n g e . T h e e m p l o y e e r e c o r d s i n c l u d e t i m e s t a m p s t o i n d i c a t e      

w h e n t h e y w e r e l a s t u p d a t e d , s o y o u c a n u s e s o u r c e - b a s e d C D C .  

T a s k :    

C o n s t r u c t a n d c o n g u r e a b a t c h j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        , w h i c h      

u p d a t e s e m p l o y e e t a b l e c o l u m n s b a s e d o n w h e t h e r r e c o r d s a r e n e w o r h a v e b e e n      

c h a n g e d s i n c e t h e l a s t t i m e d a t a w a s u p d a t e d .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D i m _ J o b     a n d a n e w g l o b a l v a r i a b l e      

$ G _ L a s t U p d a t e        . 

2 . I n t h e j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        w o r k s p a c e , a d d a s c r i p t c a l l e d      G e t T i m e S t a m p        a n d c o n s t r u c t a n e x p r e s s i o n t o s e l e c t t h e l a s t t i m e t h e j o b      

e x e c u t e d a n d o n t h a t b a s i s , i f t h e t i m e s t a m p i s N u l l , t h e n a l l r e c o r d s a r e      

 p r o c e s s e d . I f t h e t i m e s t a m p i s n o t N u l l , t h e n a s s i g n t h e v a l u e t o t h e g l o b a l  

v a r i a b l e        G e t T i m e S t a m p        . 

3 . I n t h e j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        w o r k s p a c e , a d d a d a t a o w        

 A l p h a _ E m p l o y e e s _ D i m _ D F     t o t h e r i g h t o f t h e s c r i p t a n d c o n n e c t i t    

t o t h e s c r i p t .  

4 . A d d t h e E m p l o y e e t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t a n d t h e      

E m p _ D i m t a b l e f r o m t h e O m e g a d a t a s t o r e a s t h e t a r g e t o b j e c t o f t h e d a t a o w        

 A l p h a _ E m p l o y e e s _ D i m _ D F     . C o n n e c t t h e m w i t h a Q u e r y t r a n s f o r m .  

5 . M a p t h e        S c h e m a I n        e l d s o f t h e Q u e r y t r a n s f o r m t o t h e        S c h e m a O u t      e l d s .  

S c h e m a I n S c h e m a O u t    

E M P L O Y E E I D E M P L O Y E E I D        

L A S T N A M E L A S T N A M E        

F I R S T N A M E F I R S T N A M E        

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 2 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 352: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 352/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

B I R T H D A T E B I R T H D A T E        

H I R E D A T E H I R E D A T E        

A D D R E S S A D D R E S S      

P H O N E P H O N E        

E M A I L E M A I L        

R E P O R T S T O R E P O R T S T O        

L a s t U p d a t e L A S T _ U P D A T E        

d i s c h a r g e _ d a t e D I S C H A R G E _ D A T E        

6 . C r e a t e a m a p p i n g e x p r e s s i o n f o r t h e S U R R _ K E Y c o l u m n t h a t g e n e r a t e s    

n e w k e y s b a s e d o n t h e E m p _ D i m t a r g e t t a b l e i n c r e m e n t i n g b y 1 b y u s i n g      

t h e F u n c t i o n s w i z a r d .  

7 . F o r t h e        C I T Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p o f      

C I T Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e c i t y I D .  

8 . F o r t h e        R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p      

o f     R E G I O N N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e      

c i t y I D .  

9 . F o r t h e        C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p      

o f     C O U N T R Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e      

c i t y I D .  

1 0 . F o r t h e        D E P A R T M E N T        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      l o o k u p o f        D E P A R T M E N T N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e      

 b a s e d o n t h e c i t y I D . 

1 1 . O n t h e        W H E R E          t a b , c o n s t r u c t a n e x p r e s s i o n t o s e l e c t o n l y t h o s e r e c o r d s    

w i t h a t i m e s t a m p t h a t i s l a t e r t h a n t h e v a l u e o f t h e g l o b a l v a r i a b l e      

$ G _ L a s t U p d a t e        . 

1 2 . E x e c u t e        A l p h a _ E m p l o y e e s _ D i m _ J o b        w i t h t h e d e f a u l t p r o p e r t i e s .  

3 3 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 353: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 353/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

S o l u t i o n 2 0 : U s i n g S o u r c e - B a s e d C h a n g e      

D a t a C a p t u r e ( C D C )    T a s k :    

C o n s t r u c t a n d c o n g u r e a b a t c h j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        , w h i c h      

u p d a t e s e m p l o y e e t a b l e c o l u m n s b a s e d o n w h e t h e r r e c o r d s a r e n e w o r h a v e b e e n      

c h a n g e d s i n c e t h e l a s t t i m e d a t a w a s u p d a t e d .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b a n d d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ D i m _ J o b     a n d a n e w g l o b a l v a r i a b l e      

$ G _ L a s t U p d a t e        . 

a ) I n t h e p r o j e c t a r e a , r i g h t - c l i c k t h e        O m e g a        p r o j e c t t o s e l e c t t h e o p t i o n      

 N e w b a t c h j o b     a n d e n t e r t h e n a m e        A l p h a _ E m p l o y e e s _ D i m _ J o b        . 

 b ) I n t h e p r o j e c t a r e a , s e l e c t t h e j o b     A l p h a _ E m p l o y e e s _ D e p t _ R e -      c o v e r y _ J o b        a n d t h e n u s e t h e m e n u p a t h        T o o l s → V a r i a b l e s      . 

c ) R i g h t - c l i c k        V a r i a b l e s      a n d s e l e c t      I n s e r t      f r o m t h e m e n u .  

d ) R i g h t - c l i c k t h e n e w v a r i a b l e a n d s e l e c t      P r o p e r t i e s      f r o m t h e m e n u a n d      

e n t e r      $ G _ L a s t U p d a t e        i n t h e        G l o b a l V a r i a b l e P r o p e r t i e s      d i a l o g b o x .  

I n t h e        D a t a t y p e        d r o p - d o w n l i s t , s e l e c t      d a t e t i m e        f o r t h e d a t a t y p e      

a n d s e l e c t      O K      . 

2 . I n t h e j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        w o r k s p a c e , a d d a s c r i p t c a l l e d      

G e t T i m e S t a m p        a n d c o n s t r u c t a n e x p r e s s i o n t o s e l e c t t h e l a s t t i m e t h e j o b      e x e c u t e d a n d o n t h a t b a s i s , i f t h e t i m e s t a m p i s N u l l , t h e n a l l r e c o r d s a r e      

 p r o c e s s e d . I f t h e t i m e s t a m p i s n o t N u l l , t h e n a s s i g n t h e v a l u e t o t h e g l o b a l  

v a r i a b l e        G e t T i m e S t a m p        . 

a ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e        S c r i p t      i c o n a n d t h e n d o u b l e - c l i c k i n      

t h e w o r k o w w o r k s p a c e t o i n s e r t t h e s c r i p t .  

 N a m e i t    G e t T i m e S t a m p      

 b ) D o u b l e - c l i c k t h e s c r i p t    G e t T i m e S t a m p        t o o p e n i t a n d c r e a t e a n      

e x p r e s s i o n t o u p d a t e t h e v a l u e o f t h e g l o b a l v a r i a b l e t o t h e v a l u e o f      

t h e l a s t u p d a t e c o l u m n i n t h e e m p l o y e e d i m e n s i o n t a b l e . T y p e i n t h i s    

e x p r e s s i o n :  

$ G _ L a s t U p d a t e = s q l ( ' o m e g a ' , ' s e l e c t       m a x ( L A S T _ U P D A T E ) f r o m e m p _ d i m ' ) ;   i f ( $ G _ L a s t U p d a t e i s n u l l ) $ G _ L a s t U p d a t e =      t o _ d a t e ( ' 1 9 0 1 . 0 1 . 0 1 ' , ' Y Y Y Y . M M . D D ' ) ;      

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 3 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 354: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 354/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

e l s e p r i n t ( ' L a s t u p d a t e w a s ' | | $ G _ L a s t U p -      d a t e ) ;      

1 . I n t h i s s c r i p t :  

2 . S e l e c t t h e l a s t t i m e t h e j o b w a s e x e c u t e d f r o m t h e l a s t u p d a t e      

c o l u m n i n t h e e m p l o y e e d i m e n s i o n t a b l e .  

3 . I f t h e l a s t u p d a t e c o l u m n i s N U L L , a s s i g n a v a l u e o f J a n u a r y      

1 , 1 9 0 1 t o t h e $ G _ L a s t U p d a t e g l o b a l v a r i a b l e . W h e n t h e j o b      

e x e c u t e s f o r t h e i n i t i a l l o a d , t h i s e n s u r e s t h a t a l l r e c o r d s a r e      

 p r o c e s s e d . 

4 . I f t h e l a s t u p d a t e c o l u m n i s n o t N U L L , a s s i g n t h e a c t u a l t i m e      

s t a m p v a l u e t o t h e $ G _ L a s t U p d a t e g l o b a l v a r i a b l e .  

N o t e :      T h e l a s t t w o l i n e s o f t h e s c r i p t a r e n o t n e c e s s a r y , b u t    s h o u l d b e i n c l u d e d f o r r o b u s t n e s s i n c a s e t h e t i m e s t a m p i s n u l l .  

c ) C l o s e t h e s c r i p t a n d r e t u r n t o t h e j o b w o r k s p a c e . D o u b l e - c l i c k t h e d a t a      

o w t o o p e n i t s w o r k s p a c e .  

3 . I n t h e j o b        A l p h a _ E m p l o y e e s _ D i m _ J o b        w o r k s p a c e , a d d a d a t a o w        

 A l p h a _ E m p l o y e e s _ D i m _ D F     t o t h e r i g h t o f t h e s c r i p t a n d c o n n e c t i t    

t o t h e s c r i p t .  

a ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e D a t a F l o w i c o n .  

D o u b l e - c l i c k i n t h e j o b w o r k s p a c e t o i n s e r t t h e d a t a o w a n d n a m e i t    

 A l p h a _ E m p l o y e e s _ D i m _ D F     .  b ) H o l d i n g d o w n t h e m o u s e b u t t o n , s e l e c t t h e s c r i p t    G e t T i m e S t a m p      

a n d d r a g t o t h e d a t a o w .  

R e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

c ) D o u b l e - c l i c k t h e d a t a o w t o o p e n i t s w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

3 3 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 355: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 355/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

4 . A d d t h e E m p l o y e e t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t a n d t h e      

E m p _ D i m t a b l e f r o m t h e O m e g a d a t a s t o r e a s t h e t a r g e t o b j e c t o f t h e d a t a o w        

 A l p h a _ E m p l o y e e s _ D i m _ D F     . C o n n e c t t h e m w i t h a Q u e r y t r a n s f o r m .  a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b        D a t a s t o r e s      a n d s e l e c t t h e      

 E m p l o y e e     t a b l e f r o m t h e        A l p h a        d a t a s t o r e a n d d r a g i t i n t o t h e d a t a o w        

w o r k s p a c e .  

F r o m t h e m e n u , s e l e c t t h e o p t i o n        M a k e S o u r c e        . 

 b ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e t a b     D a t a s t o r e s      a n d s e l e c t t h e      

 E m p _ D i m      t a b l e f r o m t h e        O m e g a        d a t a s t o r e a n d d r a g i t i n t o t h e d a t a      

o w w o r k s p a c e .  

F r o m t h e m e n u , s e l e c t t h e o p t i o n        M a k e T a r g e t     . 

c ) F r o m t h e T o o l P a l e t t e , s e l e c t t h e Q u e r y t r a n s f o r m i c o n a n d d o u b l e - c l i c k      t h e d a t a o w w o r k s p a c e t o i n s e r t i t .  

d ) C o n n e c t t h e s o u r c e t a b l e t o t h e Q u e r y t r a n s f o r m a n d c o n n e c t t h e Q u e r y      

t r a n s f o r m t o t h e t a r g e t t a b l e .  

5 . M a p t h e        S c h e m a I n        e l d s o f t h e Q u e r y t r a n s f o r m t o t h e        S c h e m a O u t      e l d s .  

S c h e m a I n S c h e m a O u t    

E M P L O Y E E I D E M P L O Y E E I D        

L A S T N A M E L A S T N A M E        

F I R S T N A M E F I R S T N A M E        B I R T H D A T E B I R T H D A T E        

H I R E D A T E H I R E D A T E        

A D D R E S S A D D R E S S      

P H O N E P H O N E        

E M A I L E M A I L        

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 3 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 356: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 356/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

R E P O R T S T O R E P O R T S T O        

L a s t U p d a t e L A S T _ U P D A T E        

d i s c h a r g e _ d a t e D I S C H A R G E _ D A T E        

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) M a y t h e c o l u m n s i n t h e     S c h e m a I n        p a n e t o t h e c o l u m n s i n t h e        S c h e m a      

O u t    p a n e b y s e l e c t i n g a n d d r a g g i n g t h e c o l u m n f r o m            S c h e m a I n        t o   

S c h e m a O u t      f o r t h e e l d s :  

S c h e m a I n S c h e m a O u t    

E M P L O Y E E I D E M P L O Y E E I D        

L A S T N A M E L A S T N A M E        F I R S T N A M E F I R S T N A M E        

B I R T H D A T E B I R T H D A T E        

H I R E D A T E H I R E D A T E        

A D D R E S S A D D R E S S      

P H O N E P H O N E        

E M A I L E M A I L        

R E P O R T S T O R E P O R T S T O        

L a s t U p d a t e L A S T _ U P D A T E        

d i s c h a r g e _ d a t e D I S C H A R G E _ D A T E        

C o n t i n u e d o n n e x t p a g e      

3 3 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 357: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 357/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

6 . C r e a t e a m a p p i n g e x p r e s s i o n f o r t h e S U R R _ K E Y c o l u m n t h a t g e n e r a t e s    

n e w k e y s b a s e d o n t h e E m p _ D i m t a r g e t t a b l e i n c r e m e n t i n g b y 1 b y u s i n g      

t h e F u n c t i o n s w i z a r d .  a ) I n t h e        S c h e m a O u t      p a n e , s e l e c t t h e o u t p u t c o l u m n        S U R R _ K E Y          a n d g o      

t o t h e M a p p i n g t a b .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        k e y _ g e n e r a t i o n        f u n c t i o n      

a n d s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        k e y _ g e n e r a t i o n - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e      

 p a r a m e t e r s : 

F i e l d / O p t i o n V a l u e      

T a b l e         O M E G A . D B O . E M P _ D I M        

K e y _ c o l u m n         S U R R _ K E Y      

K e y _ i n c r e m e n t       1   

N o t e :      T h e r e s u l t i n g e x p r e s s i o n s h o u l d b e :  

k e y _ g e n e r a t i o n ( ' O m e g a . d b o . e m p _ d i m ' , ' S U R R _ K E Y ' , 1 )    

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 3 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 358: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 358/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

7 . F o r t h e        C I T Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p o f      

C I T Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e c i t y I D .  

a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        C I T Y        a n d d e l e t e      t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e        b u t t o n      

o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C I T Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C I T Y I D      

O p . ( & )       =   

E x p r e s s i o n         O M E G A . E M P _ D I M . C I T Y I D      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         C I T Y N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

3 3 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 359: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 359/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

8 . F o r t h e        R E G I O N        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p      

o f     R E G I O N N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e      

c i t y I D .  a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        R E G I O N        a n d d e l e t e      

t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e        b u t t o n      

o n y o u r k e y b o a r d .  

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . R E G I O N      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         R E G I O N I D      

O p . ( & )       =   

E x p r e s s i o n         O M E G A . E M P _ D I M . R E G I O N I D      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         R E G I O N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 3 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 360: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 360/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

9 . F o r t h e        C O U N T R Y        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a l o o k u p      

o f     C O U N T R Y N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e b a s e d o n t h e      

c i t y I D .  a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        C O U N T R Y        a n d   

d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e      

 b u t t o n o n y o u r k e y b o a r d . 

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . C O U N T R Y      

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         C O U N T R Y I D      

O p . ( & )       =   

E x p r e s s i o n         O M E G A . E M P _ D I M . C O U N -      T R Y I D      

O u t p u t    

C o l u m n i n l o o k u p t a b l e        C O U N T R Y N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

C o n t i n u e d o n n e x t p a g e      

3 3 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 361: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 361/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

1 0 . F o r t h e        D E P A R T M E N T        o u t p u t c o l u m n , c h a n g e t h e m a p p i n g t o p e r f o r m a      

l o o k u p o f        D E P A R T M E N T N A M E        f r o m t h e C i t y t a b l e i n t h e A l p h a d a t a s t o r e      

 b a s e d o n t h e c i t y I D . a ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        D E P A R T M E N T        a n d   

d e l e t e t h e e x i s t i n g e x p r e s s i o n b y h i g h l i g h t i n g i t a n d u s i n g t h e        D e l e t e      

 b u t t o n o n y o u r k e y b o a r d . 

 b ) S e l e c t t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n      

t h e c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

c ) F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  

d ) I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . D E P A R T -       M E N T   

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         D E P A R T M E N T I D      

O p . ( & )       =   

E x p r e s s i o n         O M E G A . E M P _ D I M . D E P A R T -       M E N T I D   

O u t p u t    

C o l u m n i n l o o k u p t a b l e         D E P A R T M E N T N A M E      

e ) S e l e c t t h e        F i n i s h        b u t t o n .  

1 1 . O n t h e        W H E R E          t a b , c o n s t r u c t a n e x p r e s s i o n t o s e l e c t o n l y t h o s e r e c o r d s    

w i t h a t i m e s t a m p t h a t i s l a t e r t h a n t h e v a l u e o f t h e g l o b a l v a r i a b l e      

$ G _ L a s t U p d a t e        . 

a ) I n t h e t r a n s f o r m e d i t o r o f t h e Q u e r y t r a n s f o r m , s e l e c t t h e        W H E R E          t a b .  

 b ) I n t h e w o r k s p a c e , e n t e r t h e e x p r e s s i o n : 

e m p l o y e e . L a s t U p d a t e > $ G _ L a s t U p d a t e      

c ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 3 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 362: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 362/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

1 2 . E x e c u t e        A l p h a _ E m p l o y e e s _ D i m _ J o b        w i t h t h e d e f a u l t p r o p e r t i e s .  

a ) I n t h e p r o j e c t a r e a , s e l e c t y o u r      A l p h a _ M a r k e t i n g _ O f f e r _ J o b      a n d c h o o s e t h e o p t i o n        E x e c u t e        . 

 b ) S e l e c t    S a v e        t o s a v e a l l o b j e c t s y o u h a v e c r e a t e d .  

c ) I n t h e n e x t d i a l o g b o x , a c c e p t a l l t h e d e f a u l t e x e c u t i o n p r o p e r t i e s a n d      

s e l e c t      O K      . 

d ) A c c o r d i n g t o t h e l o g , t h e l a s t u p d a t e f o r t h e t a b l e w a s o n “ 2 0 0 7 . 1 0 . 0 4 ” .  

e ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a f o r t h e t a r g e t t a b l e .  

S o r t t h e r e c o r d s b y t h e        L A S T _ U P D A T E          c o l u m n .  

3 4 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 363: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 363/472

B O D S 1 0 L e s s o n : U s i n g S o u r c e - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e s o u r c e - b a s e d C D C ( C h a n g e D a t a C a p t u r e )    

• U s e t i m e s t a m p s i n s o u r c e - b a s e d C D C        

• M a n a g e i s s u e s r e l a t e d t o u s i n g t i m e s t a m p s f o r s o u r c e - b a s e d C D C        

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n u s i n g l o g s f o r C D C , s e e “ T e c h n i q u e s f o r C a p t u r i n g      

D a t a ” , i n t h e        D a t a S e r v i c e s D e s i g n e r G u i d e        . 

• F o r m o r e i n f o r m a t i o n s e e “ S o u r c e – b a s e d a n d t a r g e t – b a s e d C D C ” i n      

“ T e c h n i q u e s f o r C a p t u r i n g C h a n g e d D a t a ” “ ” i n t h e        D a t a S e r v i c e s D e s i g n e r      

G u i d e        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 4 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 364: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 364/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

L e s s o n O v e r v i e w          

Y o u n d t h a t s o m e o f y o u r d a t a d o e s n o t p r o v i d e a n y t i m e s t a m p s o r l o g s t o      

 p r o v i d e a s o u r c e - b a s e d C D C . Y o u w a n t t o i n v e s t i g a t e u s i n g t a r g e t – b a s e d C D C t o   

c o m p a r e t h e s o u r c e t o t h e t a r g e t t o d e t e r m i n e w h i c h r e c o r d s h a v e c h a n g e d .  

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t a r g e t - b a s e d C D C        

B u s i n e s s E x a m p l e      

T h e c u r r e n t b u s i n e s s e n v i r o n m e n t d e m a n d s a m o r e o p e n d a t a i n t e r c h a n g e w i t h      

y o u r c u s t o m e r s , s u b s i d i a r i e s a n d o t h e r b u s i n e s s p a r t n e r s . T h e r e i s a n i n c r e a s i n g      

n e e d t o i n c o r p o r a t e d a t a o f v a r i o u s f o r m a t s a n d s o u r c e s y s t e m s . X M L h a s p r o v e n      

t o b e a r e l i a b l e , s t a b l e s t a n d a r d f o r t h e t r a n s f e r o f d a t a . I n c o n t r a s t t o t h e g e n e r a l    

P u l l e x t r a c t i o n s t r a t e g y , t h e t r a n s f e r o f d a t a i s t o b e i n i t i a t e d b y t h e s o u r c e s y s t e m s    

( P u s h - M e c h a n i s m ) .  

Y o u n d t h a t s o m e o f y o u r d a t a d o e s n o t p r o v i d e a n y t i m e s t a m p s o r l o g s t o      

 p r o v i d e a s o u r c e - b a s e d C D C . Y o u w a n t t o i n v e s t i g a t e u s i n g t a r g e t – b a s e d C D C t o   

c o m p a r e t h e s o u r c e t o t h e t a r g e t t o d e t e r m i n e w h i c h r e c o r d s h a v e c h a n g e d .  

U s i n g t a r g e t - b a s e d C D C        

T a r g e t – b a s e d C D C c o m p a r e s t h e s o u r c e t o t h e t a r g e t t o d e t e r m i n e w h i c h r e c o r d s    

h a v e c h a n g e d .  

U s i n g t a r g e t t a b l e s t o i d e n t i f y c h a n g e d d a t a      

S o u r c e – b a s e d C D C e v a l u a t e s t h e s o u r c e t a b l e s t o d e t e r m i n e w h a t h a s c h a n g e d a n d      

o n l y e x t r a c t s c h a n g e d r o w s t o l o a d i n t o t h e t a r g e t t a b l e s . T a r g e t – b a s e d C D C , b y      

c o n t r a s t , e x t r a c t s a l l t h e d a t a f r o m t h e s o u r c e , c o m p a r e s t h e s o u r c e a n d t a r g e t r o w s ,    

a n d t h e n l o a d s o n l y t h e c h a n g e d r o w s i n t o t h e t a r g e t w i t h n e w s u r r o g a t e k e y s .  

S o u r c e – b a s e d c h a n g e d – d a t a c a p t u r e i s a l m o s t a l w a y s p r e f e r a b l e t o t a r g e t – b a s e d      c a p t u r e f o r p e r f o r m a n c e r e a s o n s ; h o w e v e r , s o m e s o u r c e s y s t e m s d o n o t    

 p r o v i d e e n o u g h i n f o r m a t i o n t o m a k e u s e o f t h e s o u r c e – b a s e d C D C t e c h n i q u e s . 

T a r g e t – b a s e d C D C a l l o w s y o u t o u s e t h e t e c h n i q u e w h e n s o u r c e – b a s e d c h a n g e      

i n f o r m a t i o n i s l i m i t e d .  

3 4 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 365: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 365/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

Y o u c a n p r e s e r v e h i s t o r y b y c r e a t i n g a d a t a o w t h a t c o n t a i n s :  

• A s o u r c e t a b l e c o n t a i n s t h e r o w s t o b e e v a l u a t e d .  

• A Q u e r y t r a n s f o r m m a p s c o l u m n s f r o m t h e s o u r c e .  

• A T a b l e C o m p a r i s o n t r a n s f o r m c o m p a r e s t h e d a t a i n t h e s o u r c e t a b l e w i t h t h e      

d a t a i n t h e t a r g e t t a b l e t o d e t e r m i n e w h a t h a s c h a n g e d . I t g e n e r a t e s a l i s t o f      

“ I N S E R T ” a n d “ U P D A T E ” r o w s b a s e d o n t h o s e c h a n g e s . T h i s c i r c u m v e n t s    

t h e d e f a u l t b e h a v i o r i n D a t a S e r v i c e s o f t r e a t i n g a l l c h a n g e s a s I N S E R T r o w s .  

• A H i s t o r y P r e s e r v i n g t r a n s f o r m c o n v e r t s c e r t a i n “ U P D A T E ” r o w s t o      

“ I N S E R T ” r o w s b a s e d o n t h e c o l u m n s i n w h i c h v a l u e s h a v e c h a n g e d . T h i s    

 p r o d u c e s a s e c o n d r o w i n t h e t a r g e t i n s t e a d o f o v e r w r i t i n g t h e r s t r o w . 

• A K e y G e n e r a t i o n t r a n s f o r m g e n e r a t e s n e w k e y s f o r t h e u p d a t e d r o w s t h a t    

a r e n o w a g g e d a s I N S E R T .  

• A t a r g e t t a b l e r e c e i v e s t h e r o w s . T h e t a r g e t t a b l e c a n n o t b e a t e m p l a t e t a b l e .  

F i g u r e 9 1 : T a r g e t - B a s e d C h a n g e D a t a C a p t u r e      

I d e n t i f y i n g h i s t o r y p r e s e r v i n g t r a n s f o r m s    D a t a S e r v i c e s s u p p o r t s h i s t o r y p r e s e r v a t i o n w i t h t h r e e D a t a I n t e g r a t o r t r a n s f o r m s :  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 4 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 366: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 366/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

T r a n s f o r m D e s c r i p t i o n      

H i s t o r y P r e s e r v i n g      

C o n v e r t s r o w s a g g e d a s “ U P D A T E ”      

t o “ U P D A T E ” p l u s “ I N S E R T ” , s o t h a t    

t h e o r i g i n a l v a l u e s a r e p r e s e r v e d i n      

t h e t a r g e t . Y o u s p e c i f y t h e c o l u m n i n      

w h i c h t o l o o k f o r u p d a t e d d a t a .  

K e y G e n e r a t i o n      

G e n e r a t e s n e w k e y s f o r s o u r c e d a t a ,    

s t a r t i n g f r o m a v a l u e b a s e d o n e x i s t i n g      

k e y s i n t h e t a b l e y o u s p e c i f y .  

T a b l e C o m p a r i s o n      

C o m p a r e s t w o d a t a s e t s a n d p r o d u c e s    

t h e d i f f e r e n c e b e t w e e n t h e m a s a d a t a      

s e t w i t h r o w s a g g e d a s “ I N S E R T ”      

a n d “ U P D A T E ” .  

E x p l a i n i n g t h e T a b l e C o m p a r i s o n t r a n s f o r m          

T h e T a b l e C o m p a r i s o n t r a n s f o r m a l l o w s y o u t o d e t e c t a n d f o r w a r d c h a n g e s t h a t    

h a v e o c c u r r e d s i n c e t h e l a s t t i m e a t a r g e t w a s u p d a t e d . T h i s t r a n s f o r m c o m p a r e s    

t w o d a t a s e t s a n d p r o d u c e s t h e d i f f e r e n c e b e t w e e n t h e m a s a d a t a s e t w i t h r o w s    

a g g e d a s “ I N S E R T ” o r “ U P D A T E ” .  

F o r e x a m p l e , t h e t r a n s f o r m c o m p a r e s t h e i n p u t a n d c o m p a r i s o n t a b l e s a n d      

d e t e r m i n e s t h a t r o w 1 0 h a s a n e w a d d r e s s , r o w 4 0 h a s a n a m e c h a n g e , a n d r o w 5 0      

i s a n e w r e c o r d . T h e o u t p u t i n c l u d e s a l l t h r e e r e c o r d s , a g g e d a s a p p r o p r i a t e :  

F i g u r e 9 2 : T a b l e C o m p a r i s o n T r a n s f o r m          

3 4 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 367: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 367/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n o f t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e T a b l e C o m p a r i s o n t r a n s f o r m .  

I n p u t / o u t p u t    

T h e t r a n s f o r m c o m p a r e s t w o d a t a s e t s , o n e s e t f r o m t h e i n p u t t o t h e T a b l e      

C o m p a r i s o n t r a n s f o r m ( i n p u t d a t a s e t ) , a n d o n e s e t f r o m a d a t a b a s e t a b l e s p e c i e d      

i n t h e T a b l e C o m p a r i s o n t r a n s f o r m ( t h e c o m p a r i s o n t a b l e ) . T h e t r a n s f o r m s e l e c t s    

r o w s f r o m t h e c o m p a r i s o n t a b l e b a s e d o n t h e p r i m a r y k e y v a l u e s f r o m t h e i n p u t    

d a t a s e t . T h e t r a n s f o r m c o m p a r e s c o l u m n s t h a t e x i s t i n t h e s c h e m a s f o r b o t h i n p u t s .  

T h e i n p u t d a t a s e t m u s t b e a g g e d a s “ N O R M A L ” .  

T h e o u t p u t d a t a s e t c o n t a i n s o n l y t h e r o w s t h a t m a k e u p t h e d i f f e r e n c e b e t w e e n      

t h e t a b l e s . T h e s c h e m a o f t h e o u t p u t d a t a s e t i s t h e s a m e a s t h e s c h e m a o f t h e      

c o m p a r i s o n t a b l e . N o “ D E L E T E ” o p e r a t i o n s a r e p r o d u c e d .  

I f a c o l u m n h a s a d a t e d a t a t y p e i n o n e t a b l e a n d a d a t e t i m e d a t a t y p e i n t h e o t h e r ,    

t h e t r a n s f o r m c o m p a r e s o n l y t h e d a t e s e c t i o n o f t h e d a t a . T h e c o l u m n s c a n a l s o      

 b e t i m e a n d d a t e t i m e d a t a t y p e s , i n w h i c h c a s e D a t a I n t e g r a t o r o n l y c o m p a r e s t h e   

t i m e s e c t i o n o f t h e d a t a .  

F o r e a c h r o w i n t h e i n p u t d a t a s e t , t h e r e a r e t h r e e p o s s i b l e o u t c o m e s f r o m t h e      

t r a n s f o r m :  

• A n “ I N S E R T ” c o l u m n i s a d d e d : T h e p r i m a r y k e y v a l u e f r o m t h e i n p u t d a t a      

s e t d o e s n o t m a t c h a v a l u e i n t h e c o m p a r i s o n t a b l e . T h e t r a n s f o r m p r o d u c e s    

a n “ I N S E R T ” r o w w i t h t h e v a l u e s f r o m t h e i n p u t d a t a s e t r o w .  

I f t h e r e a r e c o l u m n s i n t h e c o m p a r i s o n t a b l e t h a t a r e n o t p r e s e n t i n t h e i n p u t    d a t a s e t , t h e t r a n s f o r m a d d s t h e s e c o l u m n s t o t h e o u t p u t s c h e m a a n d l l s    

t h e m w i t h N U L L v a l u e s .  

• A n “ U P D A T E ” r o w i s a d d e d : T h e p r i m a r y k e y v a l u e f r o m t h e i n p u t d a t a s e t    

m a t c h e s a v a l u e i n t h e c o m p a r i s o n t a b l e , a n d v a l u e s i n t h e n o n – k e y c o m p a r e      

c o l u m n s d i f f e r i n t h e c o r r e s p o n d i n g r o w s f r o m t h e i n p u t d a t a s e t a n d t h e      

c o m p a r i s o n t a b l e .  

T h e t r a n s f o r m p r o d u c e s a n “ U P D A T E ” r o w w i t h t h e v a l u e s f r o m t h e i n p u t    

d a t a s e t r o w .  

I f t h e r e a r e c o l u m n s i n t h e c o m p a r i s o n t a b l e t h a t a r e n o t p r e s e n t i n t h e i n p u t    

d a t a s e t , t h e t r a n s f o r m a d d s t h e s e c o l u m n s t o t h e o u t p u t s c h e m a a n d l l s    t h e m w i t h v a l u e s f r o m t h e c o m p a r i s o n t a b l e      

• T h e r o w i s i g n o r e d : T h e p r i m a r y k e y v a l u e f r o m t h e i n p u t d a t a s e t m a t c h e s    

a v a l u e i n t h e c o m p a r i s o n t a b l e , b u t t h e c o m p a r i s o n d o e s n o t i n d i c a t e a n y      

c h a n g e s t o t h e r o w v a l u e s .  

O p t i o n s    

T h e T a b l e t r a n s f o r m o f f e r s s e v e r a l o p t i o n s :  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 4 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 368: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 368/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

O p t i o n D e s c r i p t i o n      

T a b l e n a m e      

S p e c i e s t h e f u l l y q u a l i e d n a m e o f t h e s o u r c e      

t a b l e f r o m w h i c h t h e m a x i m u m e x i s t i n g k e y i s    

d e t e r m i n e d ( k e y s o u r c e t a b l e ) . T h i s t a b l e m u s t    

a l r e a d y b e i m p o r t e d i n t o t h e r e p o s i t o r y . T a b l e n a m e i s    

r e p r e s e n t e d a s      d a t a s t o r e . o w n e r . t a b l e        w h e r e d a t a s t o r e      

i s t h e n a m e o f t h e d a t a s t o r e D a t a S e r v i c e s u s e s t o      

a c c e s s t h e k e y s o u r c e t a b l e a n d o w n e r d e p e n d s o n t h e      

d a t a b a s e t y p e a s s o c i a t e d w i t h t h e t a b l e .  

G e n e r a t e d k e y c o l u m n      

S p e c i e s a c o l u m n i n t h e c o m p a r i s o n t a b l e . W h e n      

t h e r e i s m o r e t h a n o n e r o w i n t h e c o m p a r i s o n t a b l e      

w i t h a g i v e n p r i m a r y k e y v a l u e , t h i s t r a n s f o r m          

c o m p a r e s t h e r o w w i t h t h e l a r g e s t g e n e r a t e d k e y v a l u e      

o f t h e s e r o w s a n d i g n o r e s t h e o t h e r r o w s . T h i s i s    o p t i o n a l .  

I n p u t c o n t a i n s d u p l i c a t e      

k e y s    

P r o v i d e s s u p p o r t f o r i n p u t r o w s w i t h d u p l i c a t e      

 p r i m a r y k e y v a l u e s . 

D e t e c t d e l e t e d r o w ( s )    

f r o m c o m p a r i s o n t a b l e      

F l a g s t h e t r a n s f o r m t o i d e n t i f y r o w s t h a t h a v e b e e n      

d e l e t e d f r o m t h e s o u r c e .  

C o m p a r i s o n m e t h o d      

A l l o w s y o u t o s e l e c t t h e m e t h o d f o r a c c e s s i n g t h e      

c o m p a r i s o n t a b l e . Y o u c a n s e l e c t f r o m            R o w – b y – r o w        

s e l e c t     ,    C a c h e d c o m p a r i s o n t a b l e        , a n d        S o r t e d i n p u t     . 

I n p u t p r i m a r y k e y      

c o l u m n ( s )    S p e c i e s t h e c o l u m n s i n t h e i n p u t d a t a s e t t h a t    

u n i q u e l y i d e n t i f y e a c h r o w . T h e s e c o l u m n s m u s t b e      

 p r e s e n t i n t h e c o m p a r i s o n t a b l e w i t h t h e s a m e c o l u m n   

n a m e s a n d d a t a t y p e s .  C o m p a r e c o l u m n s    

I m p r o v e s p e r f o r m a n c e b y c o m p a r i n g o n l y t h e s u b s e t    

o f c o l u m n s y o u d r a g i n t o t h i s b o x f r o m t h e i n p u t    

s c h e m a . I f n o c o l u m n s a r e l i s t e d , a l l c o l u m n s i n t h e      

i n p u t d a t a s e t t h a t a r e a l s o i n t h e c o m p a r i s o n t a b l e a r e      

u s e d a s c o m p a r e c o l u m n s . T h i s i s o p t i o n a l .  

E x p l a i n i n g t h e H i s t o r y P r e s e r v i n g t r a n s f o r m          

T h e H i s t o r y P r e s e r v i n g t r a n s f o r m i g n o r e s e v e r y t h i n g b u t r o w s a g g e d a s    

“ U P D A T E ” . F o r t h e s e r o w s , i t c o m p a r e s t h e v a l u e s o f s p e c i e d c o l u m n s a n d , i f      t h e v a l u e s h a v e c h a n g e d , a g s t h e r o w a s “ I N S E R T ” . T h i s p r o d u c e s a s e c o n d r o w        

i n t h e t a r g e t i n s t e a d o f o v e r w r i t i n g t h e r s t r o w .  

F o r e x a m p l e , a t a r g e t t a b l e t h a t c o n t a i n s e m p l o y e e i n f o r m a t i o n i s u p d a t e d      

 p e r i o d i c a l l y f r o m a s o u r c e t a b l e . I n t h i s c a s e , t h e T a b l e C o m p a r i s o n t r a n s f o r m     

h a s a g g e d t h e n a m e c h a n g e f o r r o w 4 0 a s a n u p d a t e . H o w e v e r , t h e H i s t o r y      

P r e s e r v i n g t r a n s f o r m i s s e t u p t o p r e s e r v e h i s t o r y o n t h e        L a s t N a m e        c o l u m n , s o t h e      

o u t p u t c h a n g e s t h e o p e r a t i o n c o d e f o r t h a t r e c o r d f r o m “ U P D A T E ” t o “ I N S E R T ” .  

3 4 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 369: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 369/472

Page 370: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 370/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

C o l u m n      

S p e c i e s a c o l u m n f r o m t h e s o u r c e s c h e m a t h a t    

i d e n t i e s t h e c u r r e n t v a l i d r o w f r o m a s e t o f r o w s    

w i t h t h e s a m e p r i m a r y k e y . T h e a g c o l u m n i n d i c a t e s    w h e t h e r a r o w i s t h e m o s t c u r r e n t d a t a i n t h e t a r g e t    

f o r a g i v e n p r i m a r y k e y .  

S e t v a l u e      

D e n e s a n e x p r e s s i o n t h a t o u t p u t s a v a l u e w i t h t h e      

s a m e d a t a t y p e a s t h e v a l u e i n t h e S e t a g c o l u m n .  

T h i s v a l u e i s u s e d t o u p d a t e t h e c u r r e n t a g c o l u m n      

i n t h e n e w r o w i n t h e t a r g e t a d d e d t o p r e s e r v e h i s t o r y      

o f a n e x i s t i n g r o w .  

R e s e t v a l u e         D e n e s a n e x p r e s s i o n t h a t o u t p u t s a v a l u e w i t h t h e      

s a m e d a t a t y p e a s t h e v a l u e i n t h e R e s e t a g c o l u m n .  

T h i s v a l u e i s u s e d t o u p d a t e t h e c u r r e n t a g c o l u m n i n      

a n e x i s t i n g r o w i n t h e t a r g e t t h a t i n c l u d e d c h a n g e s i n      o n e o r m o r e o f t h e c o m p a r e c o l u m n s .  

P r e s e r v e d e l e t e r o w ( s )    

a s u p d a t e r o w ( s )    

C o n v e r t s “ D E L E T E ” r o w s t o “ U P D A T E ” r o w s i n      

t h e t a r g e t . I f y o u p r e v i o u s l y s e t e f f e c t i v e d a t e v a l u e s    (    V a l i d f r o m            a n d     V a l i d t o        ) , s e t s t h e        V a l i d t o        v a l u e t o      

t h e e x e c u t i o n d a t e . T h i s o p t i o n i s u s e d t o m a i n t a i n      

s l o w l y c h a n g i n g d i m e n s i o n s b y f e e d i n g a c o m p l e t e      

d a t a s e t r s t t h r o u g h t h e T a b l e C o m p a r i s o n t r a n s f o r m          

w i t h i t s      D e t e c t d e l e t e d r o w ( s ) f r o m c o m p a r i s o n      

t a b l e        o p t i o n s e l e c t e d .  

C o m p a r e c o l u m n s    

L i s t s t h e c o l u m n o r c o l u m n s i n t h e i n p u t d a t a s e t t h a t    

a r e t o b e c o m p a r e d f o r c h a n g e s .  

• I f t h e v a l u e s i n t h e s p e c i e d c o m p a r e c o l u m n s    

i n e a c h v e r s i o n m a t c h , t h e t r a n s f o r m a g s t h e      

r o w a s “ U P D A T E ” . T h e r o w f r o m t h e “ b e f o r e ”      

v e r s i o n i s u p d a t e d . T h e d a t e a n d a g i n f o r m a t i o n      

i s a l s o u p d a t e d .  

• I f t h e v a l u e s i n e a c h v e r s i o n d o n o t m a t c h ,    

t h e r o w f r o m t h e l a t e s t v e r s i o n i s a g g e d a s    

“ I N S E R T ” w h e n o u t p u t f r o m t h e t r a n s f o r m .  

T h i s a d d s a n e w r o w t o t h e w a r e h o u s e w i t h t h e      

v a l u e s f r o m t h e n e w r o w .  

U p d a t e s t o n o n - h i s t o r y p r e s e r v i n g c o l u m n s u p d a t e a l l    

v e r s i o n s o f t h e r o w i f t h e u p d a t e i s p e r f o r m e d o n t h e      

n a t u r a l k e y ( f o r e x a m p l e , C u s t o m e r ) , b u t o n l y u p d a t e      

t h e l a t e s t v e r s i o n i f t h e u p d a t e i s o n t h e g e n e r a t e d k e y .  

E x p l a i n i n g t h e K e y G e n e r a t i o n t r a n s f o r m          

T h e K e y G e n e r a t i o n t r a n s f o r m g e n e r a t e s n e w k e y s b e f o r e i n s e r t i n g t h e d a t a s e t    

i n t o t h e t a r g e t i n t h e s a m e w a y a s t h e “ k e y _ g e n e r a t i o n ” f u n c t i o n d o e s . W h e n      

i t i s n e c e s s a r y t o g e n e r a t e a r t i c i a l k e y s i n a t a b l e , t h i s t r a n s f o r m l o o k s u p t h e      

3 4 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 371: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 371/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

m a x i m u m e x i s t i n g k e y v a l u e f r o m a t a b l e a n d u s e s i t a s t h e s t a r t i n g v a l u e t o      

g e n e r a t e n e w k e y s . T h e t r a n s f o r m e x p e c t s t h e g e n e r a t e d k e y c o l u m n t o b e p a r t o f      

t h e i n p u t s c h e m a .  F o r e x a m p l e , s u p p o s e t h e H i s t o r y P r e s e r v i n g t r a n s f o r m p r o d u c e s r o w s t o a d d t o a      

w a r e h o u s e , a n d t h e s e r o w s h a v e t h e s a m e p r i m a r y k e y a s r o w s t h a t a l r e a d y e x i s t i n      

t h e w a r e h o u s e . I n t h i s c a s e , y o u c a n a d d a g e n e r a t e d k e y t o t h e w a r e h o u s e t a b l e t o      

d i s t i n g u i s h t h e s e t w o r o w s t h a t h a v e t h e s a m e p r i m a r y k e y .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n o f t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e K e y G e n e r a t i o n t r a n s f o r m .  

I n p u t / o u t p u t    

T h e i n p u t d a t a s e t i s t h e r e s u l t o f a c o m p a r i s o n b e t w e e n t w o v e r s i o n s o f t h e s a m e      

d a t a . C h a n g e d d a t a f r o m t h e n e w e r v e r s i o n a r e a g g e d a s “ U P D A T E ” r o w s a n d      

n e w d a t a f r o m t h e n e w e r v e r s i o n a r e a g g e d a s      I N S E R T          r o w s .  

T h e o u t p u t d a t a s e t i s a d u p l i c a t e o f t h e i n p u t d a t a s e t , w i t h t h e a d d i t i o n o f k e y      

v a l u e s i n t h e g e n e r a t e d k e y c o l u m n f o r i n p u t r o w s a g g e d a s “ I N S E R T ” .  

O p t i o n s    

T h e K e y G e n e r a t i o n t r a n s f o r m o f f e r s t h e s e o p t i o n s :  

O p t i o n D e s c r i p t i o n      

T a b l e n a m e      

S p e c i e s t h e f u l l y q u a l i e d n a m e o f t h e s o u r c e      

t a b l e f r o m w h i c h t h e m a x i m u m e x i s t i n g k e y i s    

d e t e r m i n e d ( k e y s o u r c e t a b l e ) . T h i s t a b l e m u s t b e      a l r e a d y i m p o r t e d i n t o t h e r e p o s i t o r y . T a b l e n a m e i s    

r e p r e s e n t e d a s      d a t a s t o r e . o w n e r . t a b l e        w h e r e d a t a s t o r e      

i s t h e n a m e o f t h e d a t a s t o r e D a t a S e r v i c e s u s e s t o      

a c c e s s t h e k e y s o u r c e t a b l e a n d o w n e r d e p e n d s o n t h e      

d a t a b a s e t y p e a s s o c i a t e d w i t h t h e t a b l e .  

G e n e r a t e d k e y c o l u m n      

S p e c i e s t h e c o l u m n i n t h e k e y s o u r c e t a b l e c o n t a i n i n g      

t h e e x i s t i n g k e y v a l u e s . A c o l u m n w i t h t h e s a m e      

n a m e m u s t e x i s t i n t h e i n p u t d a t a s e t ; t h e n e w k e y i s    

i n s e r t e d i n t h i s c o l u m n .  

I n c r e m e n t v a l u e s I n d i c a t e s t h e i n t e r v a l b e t w e e n g e n e r a t e d k e y v a l u e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 4 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 372: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 372/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

3 5 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 373: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 373/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

E x e r c i s e 2 1 : U s i n g T a r g e t - B a s e d C h a n g e      

D a t a C a p t u r e ( C D C )    E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t a r g e t - b a s e d c h a n g e d a t a c a p t u r e      

B u s i n e s s E x a m p l e      

T h e c u r r e n t b u s i n e s s e n v i r o n m e n t d e m a n d s a m o r e o p e n d a t a i n t e r c h a n g e w i t h      

y o u r c u s t o m e r s , s u b s i d i a r i e s a n d o t h e r b u s i n e s s p a r t n e r s . T h e r e i s a n i n c r e a s i n g      

n e e d t o i n c o r p o r a t e d a t a o f v a r i o u s f o r m a t s a n d s o u r c e s y s t e m s . X M L h a s p r o v e n      

t o b e a r e l i a b l e , s t a b l e s t a n d a r d f o r t h e t r a n s f e r o f d a t a . I n c o n t r a s t t o t h e g e n e r a l    P u l l e x t r a c t i o n s t r a t e g y , t h e t r a n s f e r o f d a t a i s t o b e i n i t i a t e d b y t h e s o u r c e s y s t e m s    

( P u s h - M e c h a n i s m ) .  

Y o u n d t h a t s o m e o f y o u r d a t a d o e s n o t p r o v i d e a n y t i m e s t a m p s o r l o g s t o      

 p r o v i d e a s o u r c e - b a s e d C D C . Y o u w a n t t o i n v e s t i g a t e u s i n g t a r g e t – b a s e d C D C t o   

c o m p a r e t h e s o u r c e t o t h e t a r g e t t o d e t e r m i n e w h i c h r e c o r d s h a v e c h a n g e d .  

T a s k :    

Y o u n e e d t o s e t u p a j o b t o u p d a t e p r o d u c t r e c o r d s i n t h e O m e g a d a t a w a r e h o u s e      

w h e n e v e r t h e y c h a n g e . T h e p r o d u c t r e c o r d s d o n o t i n c l u d e t i m e s t a m p s t o i n d i c a t e      

w h e n t h e y w e r e l a s t u p d a t e d . Y o u m u s t u s e t a r g e t - b a s e d c h a n g e d a t a c a p t u r e t o      e x t r a c t a l l r e c o r d s f r o m t h e s o u r c e a n d c o m p a r e t h e m t o t h e t a r g e t .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ P r o d -      u c t _ D i m _ J o b        c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ P r o d u c t _ D i m _ D F        . 

2 . I n t h e w o r k s p a c e f o r      A l p h a _ P r o d u c t _ D i m _ D F        , a d d t h e        P r o d u c t        t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t a n d t h e        P r o d _ D i m          t a b l e f r o m          

t h e O m e g a d a t a s t o r e a s t h e t a r g e t o b j e c t .  

3 . A d d a Q u e r y t r a n s f o r m t o t h e w o r k s p a c e c o n n e c t i n g i t t o t h e s o u r c e a n d      

t a r g e t o b j e c t s . I n a d d i t i o n , a d d t h e T a b l e C o m p a r i s o n , H i s t o r y P r e s e r v i n g      

a n d K e y G e n e r a t i o n t r a n s f o r m s t o t h e w o r k s p a c e .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , m a p i n p u t c o l u m n s t o o u t p u t    

c o l u m n s . b y d r a g g i n g c o r r e s p o n d i n g c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      

o u t p u t s c h e m a . A f t e r d e l e t i n g t h e l i n k b e t w e e n t h e Q u e r y t r a n s f o r m a n d      

t h e t a r g e t t a b l e , c o m p l e t e t h e c o n n e c t i o n o f t h e r e m a i n i n g o b j e c t s i n t h e      

d a t a o w w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 374: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 374/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

5 . I n t h e t r a n s f o r m e d i t o r f o r t h e T a b l e C o m p a r i s o n t r a n s f o r m , u s e t h e      

 P r o d _ D i m      t a b l e i n t h e O m e g a d a t a s t o r e a s t h e c o m p a r i s o n t a b l e a n d s e t t h e      

e l d        S U R R _ K E Y          a s t h e g e n e r a t e d k e y c o l u m n .  6 . I n t h e t r a n s f o r m e d i t o r f o r t h e K e y G e n e r a t i o n t r a n s f o r m , s e t u p k e y      

g e n e r a t i o n b a s e d o n t h e        S U R R _ K E Y          c o l u m n o f t h e        P r o d _ D i m          t a b l e a n d      

i n c r e m e n t t h e k e y b y a v a l u e o f        1     . I n a d d i t i o n , d o n o t c o n g u r e t h e H i s t o r y      

P r e s e r v i n g t r a n s f o r m .  

7 . I n t h e d a t a o w w o r k s p a c e , b e f o r e e x e c u t i n g t h e j o b , d i s p l a y t h e d a t a i n b o t h      

t h e s o u r c e a n d t a r g e t t a b l e s .  

8 . E x e c u t e t h e        A l p h a _ P r o d u c t _ D i m _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

3 5 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 375: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 375/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

S o l u t i o n 2 1 : U s i n g T a r g e t - B a s e d C h a n g e      

D a t a C a p t u r e ( C D C )    T a s k :    

Y o u n e e d t o s e t u p a j o b t o u p d a t e p r o d u c t r e c o r d s i n t h e O m e g a d a t a w a r e h o u s e      

w h e n e v e r t h e y c h a n g e . T h e p r o d u c t r e c o r d s d o n o t i n c l u d e t i m e s t a m p s t o i n d i c a t e      

w h e n t h e y w e r e l a s t u p d a t e d . Y o u m u s t u s e t a r g e t - b a s e d c h a n g e d a t a c a p t u r e t o      

e x t r a c t a l l r e c o r d s f r o m t h e s o u r c e a n d c o m p a r e t h e m t o t h e t a r g e t .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ P r o d -      u c t _ D i m _ J o b        c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ P r o d u c t _ D i m _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ P r o d u c t _ D i m _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ P r o d u c t _ D i m _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ P r o d u c t _ D i m _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      A l p h a _ P r o d u c t _ D i m _ D F        , a d d t h e        P r o d u c t        t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t a n d t h e        P r o d _ D i m          t a b l e f r o m          

t h e O m e g a d a t a s t o r e a s t h e t a r g e t o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     P r o d u c t        t a b l e f r o m t h e A l p h a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

c ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     P r o d _ D i m          t a b l e f r o m t h e O m e g a d a t a s t o r e .  

d ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t    

m e n u , c h o o s e t h e o p t i o n        M a k e T a r g e t     . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 376: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 376/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

3 . A d d a Q u e r y t r a n s f o r m t o t h e w o r k s p a c e c o n n e c t i n g i t t o t h e s o u r c e a n d      

t a r g e t o b j e c t s . I n a d d i t i o n , a d d t h e T a b l e C o m p a r i s o n , H i s t o r y P r e s e r v i n g      

a n d K e y G e n e r a t i o n t r a n s f o r m s t o t h e w o r k s p a c e .  a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e s o u r c e t a b l e     P r o d u c t        t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g      

t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r    

t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e      

c o n n e c t i o n .  

c ) C o n n e c t t h e t a r g e t t a b l e        P r o d _ D i m          t o t h e Q u e r y t r a n s f o r m b y      

s e l e c t i n g t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n ,    

d r a g t h e c u r s o r t o t h e t a r g e t t a b l e . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  d ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e T a b l e C o m p a r i s o n t r a n s f o r m t o t h e d a t a o w        

w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m .  

e ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e H i s t o r y P r e s e r v i n g t r a n s f o r m t o t h e d a t a o w        

w o r k s p a c e t o t h e r i g h t o f t h e T a b l e C o m p a r i s o n t r a n s f o r m .  

f ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e K e y G e n e r a t i o n t r a n s f o r m t o t h e d a t a o w        

w o r k s p a c e t o t h e r i g h t o f t h e H i s t o r y P r e s e r v i n g t r a n s f o r m .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , m a p i n p u t c o l u m n s t o o u t p u t    

c o l u m n s . b y d r a g g i n g c o r r e s p o n d i n g c o l u m n s f r o m t h e i n p u t s c h e m a t o t h e      

o u t p u t s c h e m a . A f t e r d e l e t i n g t h e l i n k b e t w e e n t h e Q u e r y t r a n s f o r m a n d      

t h e t a r g e t t a b l e , c o m p l e t e t h e c o n n e c t i o n o f t h e r e m a i n i n g o b j e c t s i n t h e      

d a t a o w w o r k s p a c e .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) I n t h e     S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g c o r r e s p o n d i n g e l d s t o      

t h e     S c h e m a O u t      w o r k s p a c e .  

S c h e m a I n S c h e m a O u t    

P R O D U C T I D P R O D U C T I D        

P R O D U C T N A M E P R O D U C T N A M E        

C A T E G O R Y I D C A T E G O R Y I D        

C O S T C O S T        

C o n t i n u e d o n n e x t p a g e      

3 5 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 377: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 377/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

c ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        S U R R _ K E Y        a n d e n t e r    

t h e v a l u e        N U L L        . T h i s p r o v i d e s a v a l u e u n t i l a k e y c a n b e g e n e r a t e d .  

d ) G o t o t h e        M a p p i n g        t a b f o r t h e o u t p u t s c h e m a e l d        E F F E C T I V E _ D A T E      a n d e n t e r t h e v a l u e        s y s d a t e ( )      . T h i s p r o v i d e s t h e s y s t e m c u r r e n t    

d a t e a s t h e e f f e c t i v e d a t e .  

e ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

f ) D e l e t e t h e l i n k b e t w e e n t h e Q u e r y t r a n s f o r m a n d t h e t a r g e t t a b l e b y      

r i g h t - c l i c k i n g t h e l i n k a n d s e l e c t i n g t h e o p t i o n        D e l e t e        . 

g ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e T a b l e C o m p a r i s o n t r a n s f o r m b y      

c l i c k i n g o n t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n ,    

d r a g t h e c u r s o r t o t h e T a b l e C o m p a r i s o n t r a n s f o r m . T h e n r e l e a s e t h e      

m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

h ) C o n n e c t t h e T a b l e C o m p a r i s o n t r a n s f o r m t o t h e H i s t o r y P r e s e r v i n g      

t r a n s f o r m b y s e l e c t i n g t h e T a b l e C o m p a r i s o n t r a n s f o r m a n d h o l d i n g      

d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e H i s t o r y P r e s e r v i n g      

t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

i ) C o n n e c t t h e H i s t o r y P r e s e r v i n g t r a n s f o r m t o t h e K e y G e n e r a t i o n      

t r a n s f o r m b y s e l e c t i n g t h e H i s t o r y P r e s e r v i n g t r a n s f o r m a n d h o l d i n g      

d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e K e y G e n e r a t i o n      

t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

 j ) C o n n e c t t h e K e y G e n e r a t i o n t r a n s f o r m t o t h e t a r g e t t a b l e b y s e l e c t i n g   

t h e K e y G e n e r a t i o n t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n ,    

d r a g t h e c u r s o r t o t h e t a r g e t t a b l e . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

5 . I n t h e t r a n s f o r m e d i t o r f o r t h e T a b l e C o m p a r i s o n t r a n s f o r m , u s e t h e      

 P r o d _ D i m      t a b l e i n t h e O m e g a d a t a s t o r e a s t h e c o m p a r i s o n t a b l e a n d s e t t h e      

e l d        S U R R _ K E Y          a s t h e g e n e r a t e d k e y c o l u m n .  

a ) D o u b l e - c l i c k t h e T a b l e C o m p a r i s o n t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) U s e t h e d r o p - d o w n l i s t f o r t h e e l d     T a b l e n a m e        a n d s e l e c t      P r o d _ D i m        i n t h e O m e g a d a t a s t o r e a s t h e c o m p a r i s o n t a b l e f r o m w h i c h t h e      

m a x i m u m e x i s t i n g k e y i s d e t e r m i n e d .  

c ) U s e t h e d r o p - d o w n l i s t f o r t h e e l d        G e n e r a t e d k e y c o l u m n        a n d s e l e c t    S U R R _ K E Y        a s t h e g e n e r a t e d k e y c o l u m n .  

d ) S e l e c t t h e e l d s      P R O D U C T N A M E          ,    C A T E G O R Y I D          a n d     C O S T          a s t h e      

c o m p a r i s o n c o l u m n s f o r t h e e l d        C o m p a r e c o l u m n s      . 

e ) U s e t h e d r o p - d o w n l i s t f o r t h e e l d        I n p u t p r i m a r y k e y c o l u m n ( s )    a n d   

s e l e c t      P R O D U C T I D        a s t h e p r i m a r y k e y c o l u m n .  

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 378: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 378/472

U n i t 8 : C a p t u r i n g C h a n g e s i n D a t a B O D S 1 0      

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e K e y G e n e r a t i o n t r a n s f o r m , s e t u p k e y      

g e n e r a t i o n b a s e d o n t h e        S U R R _ K E Y          c o l u m n o f t h e        P r o d _ D i m          t a b l e a n d      

i n c r e m e n t t h e k e y b y a v a l u e o f        1     . I n a d d i t i o n , d o n o t c o n g u r e t h e H i s t o r y      P r e s e r v i n g t r a n s f o r m .  

a ) D o n o t c o n g u r e t h e H i s t o r y P r e s e r v i n g t r a n s f o r m          

 b ) D o u b l e - c l i c k t h e K e y G e n e r a t i o n t r a n s f o r m t o o p e n t h e e d i t o r . 

c ) U s e t h e d r o p - d o w n l i s t f o r t h e e l d        T a b l e n a m e        a n d s e l e c t      P r o d _ D i m        i n t h e O m e g a d a t a s t o r e a s t h e c o m p a r i s o n t a b l e f r o m w h i c h t h e      

m a x i m u m e x i s t i n g k e y i s d e t e r m i n e d .  

d ) U s e t h e d r o p - d o w n l i s t f o r t h e e l d        G e n e r a t e d k e y c o l u m n        a n d s e l e c t    

S U R R _ K E Y        a s t h e g e n e r a t e d k e y c o l u m n .  

e ) E n t e r t h e v a l u e o f        1     f o r t h e e l d        I n p u t p r i m a r y k e y c o l u m n ( s )    a n d s e l e c t    P R O D U C T I D        a s t h e p r i m a r y k e y c o l u m n .  

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

7 . I n t h e d a t a o w w o r k s p a c e , b e f o r e e x e c u t i n g t h e j o b , d i s p l a y t h e d a t a i n b o t h      

t h e s o u r c e a n d t a r g e t t a b l e s .  

a ) I n t h e d a t a o w w o r k s p a c e , s e l e c t t h e m a g n i f y i n g g l a s s b u t t o n o n t h e      

s o u r c e t a b l e . A l a r g e        V i e w D a t a        p a n e a p p e a r s b e n e a t h t h e c u r r e n t    

w o r k s p a c e a r e a .  

 b ) I n t h e d a t a o w w o r k s p a c e , s e l e c t t h e m a g n i f y i n g g l a s s b u t t o n o n   

t h e t a r g e t t a b l e . A l a r g e        V i e w D a t a        p a n e a p p e a r s b e n e a t h t h e c u r r e n t    

w o r k s p a c e a r e a .  

c ) N o t e t h a t t h e “ O m e g a S o f t ” p r o d u c t h a s b e e n a d d e d i n t h e s o u r c e , b u t    

h a s n o t y e t b e e n u p d a t e d i n t h e t a r g e t .  

8 . E x e c u t e t h e        A l p h a _ P r o d u c t _ D i m _ J o b        w i t h t h e d e f a u l t e x e c u t i o n      

 p r o p e r t i e s . 

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ P r o d -      u c t _ D i m _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t t a b l e      

t o s e e t h a t t h e n e w r e c o r d s f o r “ p r o d u c t I D s 2 , 3 , 6 , 8 , a n d 1 3 ” a n d t h a t    

“ O m e g a S o f t ” h a s b e e n a d d e d t o t h e t a r g e t .  

3 5 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 379: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 379/472

B O D S 1 0 L e s s o n : U s i n g T a r g e t - B a s e d C h a n g e D a t a C a p t u r e ( C D C )    

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t a r g e t - b a s e d C D C        

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e P i v o t t r a n s f o r m s e e “ T r a n s f o r m s ” C h a p t e r 5 i n      

t h e     D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

• F o r m o r e i n f o r m a t i o n o n t h e H i s t o r y P r e s e r v i n g t r a n s f o r m s e e “ T r a n s f o r m s ”      

C h a p t e r 5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

• F o r m o r e i n f o r m a t i o n o n t h e K e y G e n e r a t i o n t r a n s f o r m s e e “ T r a n s f o r m s ”      

C h a p t e r 5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 380: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 380/472

U n i t S u m m a r y B O D S 1 0      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• U p d a t e d a t a w h i c h c h a n g e s s l o w l y o v e r t i m e      

• U s e s o u r c e - b a s e d C D C ( C h a n g e D a t a C a p t u r e )    

• U s e t i m e s t a m p s i n s o u r c e - b a s e d C D C        

• M a n a g e i s s u e s r e l a t e d t o u s i n g t i m e s t a m p s f o r s o u r c e - b a s e d C D C        

• U s e t a r g e t - b a s e d C D C        

3 5 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 381: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 381/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 382: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 382/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 383: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 383/472

U n i t 9        U s i n g D a t a I n t e g r a t o r P l a t f o r m s      

U n i t O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . T h e s e s p e c i c   

t r a n s f o r m s p e r f o r m k e y o p e r a t i o n s o n d a t a s e t s t o m a n i p u l a t e t h e i r s t r u c t u r e a s    t h e y a r e p a s s e d f r o m s o u r c e t o t a r g e t .  

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• U s i n g t h e D a t a I n t e g r a t o r t r a n s f o r m s    

• U s e t h e P i v o t t r a n s f o r m          

• D e s c r i b e p e r f o r m a n c e o p t i m i z a t i o n      

• U s e t h e D a t a T r a n s f e r t r a n s f o r m          

• V i e w S Q L g e n e r a t e d b y a d a t a o w        

• U s e t h e X M L P i p e l i n e t r a n s f o r m          

• U s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

U n i t C o n t e n t s      

L e s s o n : U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s . . . . . . . . . . . . . . . . . . . . . . . 3 6 0      

L e s s o n : U s i n g t h e P i v o t T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6 6      

E x e r c i s e 2 2 : U s i n g t h e P i v o t t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 1    

L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e      

O p t i m i z a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 6      

E x e r c i s e 2 3 : U s i n g t h e D a t a T r a n s f e r p l a t f o r m . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 3      L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 2      

E x e r c i s e 2 4 : U s i n g t h e X M L P i p e l i n e t r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . 3 9 7      

L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l ) . . . . . . . . . . . . 4 0 5      

E x e r c i s e 2 5 : U s i n g t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m ( O p t i o n a l ) . . . 4 0 9      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 5 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 384: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 384/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n : U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s      

L e s s o n O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s i n g t h e D a t a I n t e g r a t o r t r a n s f o r m s    

B u s i n e s s E x a m p l e      

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . I n y o u r p r o j e c t s , y o u   

e n c o u n t e r X M L d a t a w i t h r e p e a t e d n o d e s , h i e r a r c h y d a t a , o r s o u r c e s o f d a t a      

w h e r e t h e r e a r e e i t h e r t o o m a n y e l d s o r n o t e n o u g h e l d s . Y o u n d t h a t t h e      

 p l a t f o r m t r a n s f o r m s d o n o t p r o v i d e e n o u g h e x i b i l i t y a n d s o y o u t u r n t o t h e D a t a   

I n t e g r a t o r - s p e c i c t r a n s f o r m s f o r a s s i s t a n c e .  

D e s c r i b i n g D a t a I n t e g r a t o r T r a n s f o r m s      

D a t a I n t e g r a t o r t r a n s f o r m s p e r f o r m k e y o p e r a t i o n s o n d a t a s e t s t o m a n i p u l a t e t h e i r    

s t r u c t u r e a s t h e y a r e p a s s e d f r o m s o u r c e t o t a r g e t .  

3 6 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 385: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 385/472

B O D S 1 0 L e s s o n : U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s      

F i g u r e 9 4 : D a t a I n t e g r a t o r T r a n s f o r m s      

D e n i n g D a t a I n t e g r a t o r t r a n s f o r m s    T h e s e t r a n s f o r m s a r e a v a i l a b l e i n t h e D a t a I n t e g r a t o r b r a n c h o f t h e T r a n s f o r m s t a b      

i n t h e L o c a l O b j e c t L i b r a r y :  

T r a n s f o r m D e s c r i p t i o n      

D a t a T r a n s f e r    

A l l o w s a d a t a o w t o s p l i t i t s p r o c e s s i n g i n t o t w o s u b d a t a      

o w s a n d p u s h d o w n r e s o u r c e - c o n s u m i n g o p e r a t i o n s t o      

t h e d a t a b a s e s e r v e r .  

D a t e G e n e r a t i o n        G e n e r a t e s a c o l u m n l l e d w i t h d a t e v a l u e s b a s e d o n t h e      

s t a r t a n d e n d d a t e s a n d i n c r e m e n t y o u s p e c i f y .  

E f f e c t i v e D a t e         G e n e r a t e s a n a d d i t i o n a l e f f e c t i v e t o c o l u m n b a s e d o n t h e       p r i m a r y k e y ’ s e f f e c t i v e d a t e . 

H i e r a r c h y      

F l a t t e n i n g      

F l a t t e n s h i e r a r c h i c a l d a t a i n t o r e l a t i o n a l t a b l e s s o t h a t i t    

c a n p a r t i c i p a t e i n a s t a r s c h e m a . H i e r a r c h y a t t e n i n g c a n      

 b e b o t h v e r t i c a l a n d h o r i z o n t a l . 

T e x t D a t a      

P r o c e s s i n g      

M a p C D C        

O p e r a t i o n      

S o r t s i n p u t d a t a , m a p s o u t p u t d a t a , a n d r e s o l v e s b e f o r e a n d      

a f t e r v e r s i o n s f o r U P D A T E r o w s .  

W h i l e c o m m o n l y u s e d t o s u p p o r t O r a c l e o r m a i n f r a m e      c h a n g e d d a t a c a p t u r e , t h i s t r a n s f o r m s u p p o r t s a n y d a t a      

s t r e a m i f i t s i n p u t r e q u i r e m e n t s a r e m e t .  

P i v o t R o t a t e s t h e v a l u e s i n s p e c i e d c o l u m n s t o r o w s .  

R e v e r s e P i v o t R o t a t e s t h e v a l u e s i n s p e c i e d r o w s t o c o l u m n s .  

X M L P i p e l i n e P r o c e s s e s l a r g e X M L i n p u t s i n s m a l l b a t c h e s .  

D a t e G e n e r a t i o n T r a n s f o r m          

U s e t h i s t r a n s f o r m t o p r o d u c e t h e k e y v a l u e s f o r a t i m e d i m e n s i o n t a r g e t . F r o m          

t h i s g e n e r a t e d s e q u e n c e , y o u c a n p o p u l a t e o t h e r e l d s i n t h e t i m e d i m e n s i o n ( s u c h      

a s d a y _ o f _ w e e k ) u s i n g f u n c t i o n s i n a q u e r y .  

E x a m p l e : T o c r e a t e a t i m e d i m e n s i o n t a r g e t w i t h d a t e s f r o m t h e b e g i n n i n g o f t h e      

y e a r 1 9 9 7 t o t h e e n d o f t h e y e a r 2 0 0 0 , p l a c e a D a t e _ G e n e r a t i o n t r a n s f o r m , a q u e r y ,    

a n d a t a r g e t i n a d a t a o w . C o n n e c t t h e o u t p u t o f t h e D a t e _ G e n e r a t i o n t r a n s f o r m          

t o t h e q u e r y , a n d t h e o u t p u t o f t h e q u e r y t o t h e t a r g e t .  

T h e t e x t b e l o w d e s c r i b e s t h r e e t r a n s f o r m s , w h i c h a r e n o t d i s c u s s e d i n t h e i r o w n      

l e s s o n s d u e t o t i m e c o n s t r a i n t s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 6 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 386: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 386/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

F i g u r e 9 5 : D a t e G e n e r a t i o n T r a n s f o r m E d i t o r      

I n s i d e t h e D a t e _ G e n e r a t i o n t r a n s f o r m , s p e c i f y t h e s e O p t i o n s . ( Y o u c a n a l s o      

s p e c i f y a v a r i a b l e f o r t h e s e o p t i o n s . )    

• S t a r t d a t e : 1 9 9 7 . 0 1 . 0 1 ( A v a r i a b l e c a n a l s o b e u s e d . )    

• E n d d a t e : 2 0 0 0 . 1 2 . 3 1 ( A v a r i a b l e c a n a l s o b e u s e d . )    

• I n c r e m e n t : D a i l y ( A v a r i a b l e c a n a l s o b e u s e d . )    

I n s i d e t h e q u e r y , c r e a t e t w o t a r g e t c o l u m n s a n d t h e e l d n a m e , a n d d e n e a      

m a p p i n g f o r t h e s e t i m e d i m e n s i o n v a l u e s :  

• B u s i n e s s q u a r t e r : B u s Q u a r t e r F u n c t i o n : q u a r t e r ( G e n e r a t e d _ d a t e )    

• • D a t e n u m b e r f r o m s t a r t : D a t e N u m F u n c t i o n : j u l i a n ( g e n e r a t e d _ d a t e ) -    

 j u l i a n ( 1 9 9 7 . 0 1 . 0 1 )  

E f f e c t i v e D a t e T r a n s f o r m          

C a l c u l a t e s a n “ e f f e c t i v e - t o ” v a l u e f o r d a t a t h a t c o n t a i n s a n e f f e c t i v e d a t e . T h e      

c a l c u l a t e d e f f e c t i v e - t o d a t e a n d a n e x i s t i n g e f f e c t i v e d a t e p r o d u c e a d a t e r a n g e t h a t    

a l l o w s q u e r i e s b a s e d o n e f f e c t i v e d a t e s t o p r o d u c e m e a n i n g f u l r e s u l t s .  

3 6 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 387: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 387/472

B O D S 1 0 L e s s o n : U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s      

F i g u r e 9 6 : E f f e c t i v e D a t e T r a n s f o r m E d i t o r      

M a p C D C O p e r a t i o n T r a n s f o r m          

U s i n g i t s i n p u t r e q u i r e m e n t s ( v a l u e s f o r t h e S e q u e n c i n g c o l u m n a n d a R o w        

o p e r a t i o n c o l u m n ) , p e r f o r m s t h r e e f u n c t i o n s :  

1 . S o r t s i n p u t d a t a b a s e d o n v a l u e s i n S e q u e n c i n g c o l u m n b o x a n d ( o p t i o n a l )    

t h e A d d i t i o n a l G r o u p i n g C o l u m n s b o x .  

2 . M a p s o u t p u t d a t a b a s e d o n v a l u e s i n R o w O p e r a t i o n C o l u m n b o x . S o u r c e      

t a b l e r o w s a r e m a p p e d t o I N S E R T , U P D A T E , o r D E L E T E o p e r a t i o n s b e f o r e      

 p a s s i n g t h e m o n t o t h e t a r g e t . 

3 . R e s o l v e s m i s s i n g , s e p a r a t e d , o r m u l t i p l e b e f o r e - a n d a f t e r - i m a g e s f o r    

U P D A T E r o w s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 6 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 388: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 388/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

F i g u r e 9 7 : M a p C D C O p e r a t i o n T r a n s f o r m E d i t o r      

W h i l e c o m m o n l y u s e d t o s u p p o r t r e l a t i o n a l o r m a i n f r a m e c h a n g e d - d a t a c a p t u r e      

( C D C ) , t h i s t r a n s f o r m s u p p o r t s a n y d a t a s t r e a m a s l o n g a s i t s i n p u t r e q u i r e m e n t s    

a r e m e t . R e l a t i o n a l C D C s o u r c e s i n c l u d e O r a c l e a n d S Q L S e r v e r . T h i s t r a n s f o r m          

i s t y p i c a l l y t h e l a s t o b j e c t b e f o r e t h e t a r g e t i n a d a t a o w b e c a u s e i t p r o d u c e s    

I N P U T , U P D A T E a n d D E L E T E o p e r a t i o n c o d e s . D a t a S e r v i c e s p r o d u c e s a      

w a r n i n g i f o t h e r o b j e c t s a r e u s e d .  

3 6 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 389: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 389/472

B O D S 1 0 L e s s o n : U s i n g D a t a I n t e g r a t o r P l a t f o r m T r a n s f o r m s      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s i n g t h e D a t a I n t e g r a t o r t r a n s f o r m s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 6 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 390: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 390/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

L e s s o n O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . 

T h e P i v o t a n d R e v e r s e P i v o t t r a n s f o r m s l e t y o u c o n v e r t c o l u m n s t o r o w a n d r o w s    

 b a c k i n t o c o l u m n s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e P i v o t t r a n s f o r m          

B u s i n e s s E x a m p l e      

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . I n y o u r p r o j e c t s , y o u   

e n c o u n t e r X M L d a t a w i t h r e p e a t e d n o d e s , h i e r a r c h y d a t a , o r s o u r c e s o f d a t a      

w h e r e t h e r e a r e e i t h e r t o o m a n y e l d s o r n o t e n o u g h e l d s . Y o u n d t h a t t h e      

 p l a t f o r m t r a n s f o r m s d o n o t p r o v i d e e n o u g h e x i b i l i t y a n d s o y o u t u r n t o t h e D a t a   

I n t e g r a t o r - s p e c i c t r a n s f o r m s f o r a s s i s t a n c e . H e r e y o u e n c o u n t e r d a t a t h a t h a s t o o      

m a n y e l d s a n d y o u u s e t h e P i v o t t r a n s f o r m t o c o n v e r t t h e s e m u l t i p l e e l d s t o      v a l u e s o f a s i n g l e e l d s , t h e r e b y c r e a t i n g a s t r u c t u r e t h a t i s a e a s i e r t o l o a d .  

U s i n g t h e P i v o t t r a n s f o r m          

T h e P i v o t t r a n s f o r m c r e a t e s a n e w r o w f o r e a c h v a l u e i n a c o l u m n t h a t y o u i d e n t i f y      

a s a p i v o t c o l u m n .  

I t a l l o w s y o u t o c h a n g e h o w t h e r e l a t i o n s h i p b e t w e e n r o w s i s d i s p l a y e d . F o r e a c h      

v a l u e i n e a c h p i v o t c o l u m n , D a t a S e r v i c e s p r o d u c e s a r o w i n t h e o u t p u t d a t a s e t .  

Y o u c a n c r e a t e p i v o t s e t s t o s p e c i f y m o r e t h a n o n e p i v o t c o l u m n .  

F o r e x a m p l e , y o u c o u l d p r o d u c e a l i s t o f d i s c o u n t s b y q u a n t i t y f o r c e r t a i n p a y m e n t    

t e r m s s o t h a t e a c h t y p e o f d i s c o u n t i s l i s t e d a s a s e p a r a t e r e c o r d , r a t h e r t h a n e a c h      

 b e i n g d i s p l a y e d i n a u n i q u e c o l u m n . 

3 6 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 391: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 391/472

B O D S 1 0 L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

F i g u r e 9 8 : P i v o t T r a n s f e r C o n c e p t    

T h e R e v e r s e P i v o t t r a n s f o r m r e v e r s e s t h e p r o c e s s , c o n v e r t i n g r o w s i n t o c o l u m n s .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n o f t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e P i v o t t r a n s f o r m .  

D a t a i n p u t s i n c l u d e a d a t a s e t w i t h r o w s a g g e d a s N O R M A L .  

D a t a o u t p u t s i n c l u d e a d a t a s e t w i t h r o w s a g g e d a s N O R M A L . T h i s t a r g e t    

i n c l u d e s t h e n o n – p i v o t e d c o l u m n s , a c o l u m n f o r t h e s e q u e n c e n u m b e r , t h e d a t a      

e l d c o l u m n , a n d t h e p i v o t h e a d e r c o l u m n .  

O p t i o n s    

T h e P i v o t t r a n s f o r m o f f e r s s e v e r a l o p t i o n s :  

O p t i o n D e s c r i p t i o n      

P i v o t s e q u e n c e      

c o l u m n      

A s s i g n a n a m e t o t h e s e q u e n c e n u m b e r c o l u m n . F o r    

e a c h r o w c r e a t e d f r o m a p i v o t c o l u m n , D a t a S e r v i c e s    

i n c r e m e n t s a n d s t o r e s a s e q u e n c e n u m b e r .  

 N o n - p i v o t c o l u m n s    S e l e c t t h e c o l u m n s i n t h e s o u r c e t h a t a r e t o a p p e a r i n t h e      

t a r g e t w i t h o u t m o d i c a t i o n .  

P i v o t s e t    

I d e n t i f y a n u m b e r f o r t h e p i v o t s e t . F o r e a c h p i v o t s e t , y o u      

d e n e a g r o u p o f p i v o t c o l u m n s , a p i v o t d a t a e l d , a n d      

a p i v o t h e a d e r n a m e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 6 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 392: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 392/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

D a t a c o l u m n e l d        S p e c i f y t h e c o l u m n t h a t c o n t a i n s t h e p i v o t e d d a t a . T h i s    

c o l u m n c o n t a i n s a l l o f t h e P i v o t c o l u m n s v a l u e s .  

H e a d e r c o l u m n      

S p e c i f y t h e n a m e o f t h e c o l u m n t h a t c o n t a i n s t h e p i v o t e d      

c o l u m n n a m e s . T h i s c o l u m n l i s t s t h e n a m e s o f t h e      

c o l u m n s w h e r e t h e c o r r e s p o n d i n g d a t a o r i g i n a t e d .  

P i v o t c o l u m n s    

S e l e c t t h e c o l u m n s t o b e r o t a t e d i n t o r o w s . D e s c r i b e t h e s e      

c o l u m n s i n t h e H e a d e r c o l u m n . D e s c r i b e t h e d a t a i n t h e s e      

c o l u m n s i n t h e D a t a e l d c o l u m n .  

T o p i v o t a t a b l e      

1 . O p e n t h e d a t a o w w o r k s p a c e .  

2 . A d d y o u r s o u r c e o b j e c t t o t h e w o r k s p a c e .  

3 . O n t h e T r a n s f o r m s t a b o f t h e L o c a l O b j e c t L i b r a r y , s e l e c t a n d d r a g t h e P i v o t    

o r R e v e r s e P i v o t t r a n s f o r m t o t h e w o r k s p a c e t o t h e r i g h t o f y o u r s o u r c e      

o b j e c t .  

4 . A d d y o u r t a r g e t o b j e c t t o t h e w o r k s p a c e .  

5 . C o n n e c t t h e s o u r c e o b j e c t t o t h e t r a n s f o r m .  

6 . C o n n e c t t h e t r a n s f o r m t o t h e t a r g e t o b j e c t .  

7 . D o u b l e - c l i c k t h e P i v o t t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

8 . S e l e c t a n d d r a g a n y c o l u m n s t h a t w i l l n o t b e c h a n g e d b y t h e t r a n s f o r m f r o m          

t h e i n p u t s c h e m a a r e a t o t h e        N o n – P i v o t C o l u m n s      a r e a .  

9 . S e l e c t a n d d r a g a n y c o l u m n s t h a t a r e n o t t o l b e p i v o t e d f r o m t h e i n p u t    s c h e m a a r e a t o t h e        P i v o t C o l u m n s      a r e a .  

I f r e q u i r e d , y o u c a n c r e a t e m o r e t h a n o n e p i v o t s e t b y c l i c k i n g        A d d     . 

1 0 . I f d e s i r e d , c h a n g e t h e v a l u e s i n t h e        P i v o t s e q u e n c e c o l u m n        ,    D a t a e l d      

c o l u m n        , a n d        H e a d e r c o l u m n        e l d s .  

T h e s e a r e t h e n e w c o l u m n s t h a t w i l l b e a d d e d t o t h e t a r g e t o b j e c t b y t h e      

t r a n s f o r m .  

1 1 . S e l e c t      B a c k          t o r e t u r n t o t h e d a t a o w w o r k s p a c e .  

3 6 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 393: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 393/472

B O D S 1 0 L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

F i g u r e 9 9 : P i v o t T r a n s f o r m E d i t o r      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 6 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 394: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 394/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

3 7 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 395: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 395/472

B O D S 1 0 L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

E x e r c i s e 2 2 : U s i n g t h e P i v o t t r a n s f o r m          

E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e P i v o t t r a n s f o r m          

B u s i n e s s E x a m p l e      

C u r r e n t l y , e m p l o y e e c o m p e n s a t i o n i n f o r m a t i o n i s l o a d e d i n t o a t a b l e w i t h a      

s e p a r a t e c o l u m n f o r e a c h s a l a r y , b o n u s , a n d v a c a t i o n d a y s . F o r r e p o r t i n g p u r p o s e s ,    

y o u n e e d f o r e a c h o f t h e s e i t e m s t o b e a s e p a r a t e r e c o r d i n t h e H R _ d a t a m a r t .  

T a s k :    U s e t h e P i v o t t r a n s f o r m t o c r e a t e a s e p a r a t e r o w f o r e a c h e n t r y i n a n e w e m p l o y e e      

c o m p e n s a t i o n t a b l e .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ H R _ C o m p _ J o b      c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ H R _ C o m p _ D F        . 

2 . I n t h e w o r k s p a c e f o r      A l p h a _ H R _ C o m p _ D F        , a d d t h e        H R _ C o m p _ U p d a t e      t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

3 . A d d a P i v o t t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e s o u r c e t a b l e .  

4 . A d d a Q u e r y t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e P i v o t t r a n s f o r m .  

C r e a t e a t a r g e t t e m p l a t e t a b l e        E m p l o y e e _ C o m p        i n t h e D e l t a d a t a s t o r e .  

5 . S p e c i f y i n t h e P i v o t t r a n s f o r m t h a t t h e e l d s      E m p l o y e e I D          a n d     d a t e _ u p d a t e d      

a r e n o n p i v o t c o l u m n s . S p e c i f y t h a t t h e e l d s      E m p _ S a l a r y      ,    E m p _ B o n u s      , a n d      

 E m p _ V a c a t i o n D a y s    a r e p i v o t c o l u m n s .  

6 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , m a p a l l e l d s f r o m t h e i n p u t    

s c h e m a t o t h e o u t p u t s c h e m a a n d a d d a n e x p r e s s i o n i n t h e W H E R E t a b t o      

l t e r o u t N U L L v a l u e s f o r t h e        C o m p .      c o l u m n .  

7 . E x e c u t e t h e        A l p h a _ H R _ C o m p _ J o b        w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 396: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 396/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

S o l u t i o n 2 2 : U s i n g t h e P i v o t t r a n s f o r m          

T a s k :    

U s e t h e P i v o t t r a n s f o r m t o c r e a t e a s e p a r a t e r o w f o r e a c h e n t r y i n a n e w e m p l o y e e      

c o m p e n s a t i o n t a b l e .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ H R _ C o m p _ J o b      c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ H R _ C o m p _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ H R _ C o m p _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ H R _ C o m p _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ H R _ C o m p _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      A l p h a _ H R _ C o m p _ D F        , a d d t h e        H R _ C o m p _ U p d a t e      t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     H R _ C o m p _ U p d a t e        t a b l e f r o m t h e A l p h a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

3 . A d d a P i v o t t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e s o u r c e t a b l e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e P i v o t t r a n s f o r m t o t h e d a t a o w w o r k s p a c e t o      

t h e r i g h t o f t h e s o u r c e t a b l e .  

 b ) C o n n e c t t h e s o u r c e t a b l e t o t h e P i v o t t r a n s f o r m b y s e l e c t i n g t h e s o u r c e   t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n d r a g t h e c u r s o r t o t h e      

P i v o t t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

C o n t i n u e d o n n e x t p a g e      

3 7 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 397: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 397/472

B O D S 1 0 L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

4 . A d d a Q u e r y t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t i t t o t h e P i v o t t r a n s f o r m .  

C r e a t e a t a r g e t t e m p l a t e t a b l e        E m p l o y e e _ C o m p        i n t h e D e l t a d a t a s t o r e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e Q u e r y t r a n s f o r m t o t h e d a t a o w w o r k s p a c e t o      

t h e r i g h t o f t h e P i v o t t r a n s f o r m .  

 b ) C o n n e c t t h e P i v o t t r a n s f o r m t o t h e Q u e r y t r a n s f o r m b y s e l e c t i n g t h e   

P i v o t t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n d r a g t h e      

c u r s o r t o t h e Q u e r y t r a n s f o r m a n d r e l e a s e t h e m o u s e b u t t o n t o c r e a t e      

t h e c o n n e c t i o n .  

c ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

d ) I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      E m p l o y e e _ C o m p        a s t h e      t e m p l a t e t a b l e n a m e .  

e ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t .  

f ) S e l e c t      O K      . 

g ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e t a r g e t t e m p l a t e t a b l e      

E m p l o y e e _ C o m p        b y c l i c k i n g o n t h e Q u e r y t r a n s f o r m a n d h o l d i n g      

d o w n t h e m o u s e b u t t o n . T h e n d r a g t h e c u r s o r t o t h e t e m p l a t e t a b l e a n d      

r e l e a s e t h e m o u s e b u t t o n .  

5 . S p e c i f y i n t h e P i v o t t r a n s f o r m t h a t t h e e l d s      E m p l o y e e I D          a n d     d a t e _ u p d a t e d      

a r e n o n p i v o t c o l u m n s . S p e c i f y t h a t t h e e l d s      E m p _ S a l a r y      ,    E m p _ B o n u s      , a n d      

 E m p _ V a c a t i o n D a y s    a r e p i v o t c o l u m n s .  

a ) D o u b l e - c l i c k t h e P i v o t t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

 b ) D r a g a n d d r o p t h e e l d s    E m p l o y e e I D          a n d     d a t e _ u p d a t e d        i n t o t h e      

 N o n - P i v o t C o l u m n s    w o r k s p a c e .  

c ) D r a g a n d d r o p t h e e l d s      E m p _ S a l a r y      ,    E m p _ B o n u s      , a n d      

 E m p _ V a c a t i o n D a y s    i n t o t h e        P i v o t C o l u m n s      w o r k s p a c e .  

d ) I n t h e e l d        D a t a e l d c o l u m n        , e n t e r t h e v a l u e        C o m p .      . 

e ) I n t h e e l d        H e a d e r c o l u m n        , e n t e r t h e v a l u e        C o m p _ T y p e        . 

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 398: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 398/472

Page 399: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 399/472

B O D S 1 0 L e s s o n : U s i n g t h e P i v o t T r a n s f o r m          

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e P i v o t t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e P i v o t t r a n s f o r m s e e “ T r a n s f o r m s ” C h a p t e r 5 i n      

t h e     D a t a S e r v i c e s R e f e r e n c e G u i d e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 400: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 400/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d      

P e r f o r m a n c e O p t i m i z a t i o n      

L e s s o n O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• D e s c r i b e p e r f o r m a n c e o p t i m i z a t i o n      

• U s e t h e D a t a T r a n s f e r t r a n s f o r m          • V i e w S Q L g e n e r a t e d b y a d a t a o w        

B u s i n e s s E x a m p l e      

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . I n y o u r p r o j e c t s , y o u   

e n c o u n t e r X M L d a t a w i t h r e p e a t e d n o d e s , h i e r a r c h y d a t a , o r s o u r c e s o f d a t a      

w h e r e t h e r e a r e e i t h e r t o o m a n y e l d s o r n o t e n o u g h e l d s . Y o u n d t h a t t h e      

 p l a t f o r m t r a n s f o r m s d o n o t p r o v i d e e n o u g h e x i b i l i t y a n d s o y o u t u r n t o t h e   

D a t a I n t e g r a t o r - s p e c i c t r a n s f o r m s f o r a s s i s t a n c e . H e r e y o u w a n t t o e x p l o r e t h e      

o p t i o n s f o r p e r f o r m a n c e o p t i m i z a t i o n i n y o u r j o b s . Y o u w o u l d l i k e t o p u s h s o m e      

o p e r a t i o n s d o w n t o t h e d a t a b a s e s e r v e r a n d y o u u s e t h e D a t a T r a n s f e r t r a n s f o r m t o      

 p u s h a     W H E R E          c l a u s e c o n t a i n i n g a t a b l e j o i n d o w n t o t h e d a t a b a s e s e r v e r .  

D e s c r i b i n g t h e p e r f o r m a n c e o p t i m i z a t i o n      

Y o u c a n i m p r o v e t h e p e r f o r m a n c e o f y o u r j o b s b y p u s h i n g d o w n o p e r a t i o n s t o      

t h e s o u r c e o r t a r g e t d a t a b a s e t o r e d u c e t h e n u m b e r o f r o w s a n d o p e r a t i o n s t h a t    

t h e e n g i n e m u s t r e t r i e v e a n d p r o c e s s .  

3 7 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 401: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 401/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

F i g u r e 1 0 0 : P e r f o r m a n c e O p t i m i z a t i o n O v e r v i e w          

D e s c r i b i n g p u s h – d o w n o p e r a t i o n s    

D a t a S e r v i c e s e x a m i n e s t h e d a t a b a s e a n d i t s e n v i r o n m e n t w h e n d e t e r m i n i n g w h i c h      

o p e r a t i o n s t o p u s h d o w n t o t h e d a t a b a s e :  

• F u l l p u s h – d o w n o p e r a t i o n s    

T h e D a t a S e r v i c e s o p t i m i z e r a l w a y s t r i e s t o d o a f u l l p u s h – d o w n o p e r a t i o n .  F u l l p u s h – d o w n o p e r a t i o n s a r e o p e r a t i o n s t h a t c a n b e p u s h e d d o w n t o t h e      

d a t a b a s e s a n d t h e d a t a s t r e a m s d i r e c t l y f r o m t h e s o u r c e d a t a b a s e t o t h e      

t a r g e t d a t a b a s e . F o r e x a m p l e , D a t a S e r v i c e s s e n d s S Q L I N S E R T I N T O . . .  

S E L E C T s t a t e m e n t s t o t h e t a r g e t d a t a b a s e a n d i t s e n d s S E L E C T t o r e t r i e v e      

d a t a f r o m t h e s o u r c e .  

D a t a S e r v i c e s c a n o n l y d o f u l l p u s h – d o w n o p e r a t i o n s t o t h e s o u r c e a n d t a r g e t    

d a t a b a s e s w h e n t h e s e c o n d i t i o n s a r e m e t :  

 – A l l o f t h e o p e r a t i o n s b e t w e e n t h e s o u r c e t a b l e a n d t a r g e t t a b l e c a n b e   

 p u s h e d d o w n   

 – T h e s o u r c e a n d t a r g e t t a b l e s a r e f r o m t h e s a m e d a t a s t o r e o r t h e y a r e i n   d a t a s t o r e s t h a t h a v e a d a t a b a s e l i n k d e n e d b e t w e e n t h e m          

• P a r t i a l p u s h – d o w n o p e r a t i o n s    

W h e n a f u l l p u s h – d o w n o p e r a t i o n i s n o t p o s s i b l e , D a t a S e r v i c e s t r i e s t o p u s h      

d o w n t h e S E L E C T s t a t e m e n t t o t h e s o u r c e d a t a b a s e . O p e r a t i o n s w i t h i n t h e      

S E L E C T s t a t e m e n t t h a t c a n b e p u s h e d t o t h e d a t a b a s e i n c l u d e :  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 402: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 402/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

O p e r a t i o n D e s c r i p t i o n      

A g g r e g a t i o n s      A g g r e g a t e f u n c t i o n s , t y p i c a l l y u s e d w i t h a G r o u p b y      

s t a t e m e n t , a l w a y s p r o d u c e a d a t a s e t s m a l l e r t h a n o r t h e      

s a m e s i z e a s t h e o r i g i n a l d a t a s e t .  D i s t i n c t r o w s      D a t a S e r v i c e s o n l y o u t p u t s u n i q u e r o w s w h e n y o u u s e      

d i s t i n c t r o w s .  

F i l t e r i n g        F i l t e r i n g c a n p r o d u c e a d a t a s e t s m a l l e r t h a n o r e q u a l t o      

t h e o r i g i n a l d a t a s e t .  

J o i n s      J o i n s t y p i c a l l y p r o d u c e a d a t a s e t s m a l l e r t h a n o r s i m i l a r    

i n s i z e t o t h e o r i g i n a l t a b l e s .  

O r d e r i n g      

O r d e r i n g d o e s n o t a f f e c t d a t a s e t s i z e . D a t a S e r v i c e s    

c a n e f c i e n t l y s o r t d a t a s e t s t h a t t i n m e m o r y . S i n c e      

D a t a S e r v i c e s d o e s n o t p e r f o r m p a g i n g ( w r i t i n g o u t    

i n t e r m e d i a t e r e s u l t s t o d i s k ) , W e r e c o m m e n d t h a t y o u u s e      a d e d i c a t e d d i s k - s o r t i n g p r o g r a m s u c h a s S y n c S o r t o r t h e      

D B M S i t s e l f t o o r d e r l a r g e d a t a s e t s .  

P r o j e c t i o n s      A p r o j e c t i o n p r o d u c e s a s m a l l e r d a t a s e t b e c a u s e i t o n l y      

r e t u r n s c o l u m n s r e f e r e n c e d b y a d a t a o w .  

F u n c t i o n s      M o s t D a t a S e r v i c e s f u n c t i o n s t h a t h a v e e q u i v a l e n t s i n t h e      

u n d e r l a y i n g d a t a b a s e a r e a p p r o p r i a t e l y t r a n s l a t e d .  

D a t a S e r v i c e s c a n n o t p u s h s o m e t r a n s f o r m o p e r a t i o n s t o t h e d a t a b a s e . F o r    

e x a m p l e :  

• E x p r e s s i o n s t h a t i n c l u d e D a t a S e r v i c e s f u n c t i o n s t h a t d o n o t h a v e d a t a b a s e      c o r r e s p o n d e n t s .  

• L o a d o p e r a t i o n s t h a t c o n t a i n t r i g g e r s .  

• T r a n s f o r m s o t h e r t h a n Q u e r y .  

• J o i n s b e t w e e n s o u r c e s t h a t a r e o n d i f f e r e n t d a t a b a s e s e r v e r s t h a t d o n o t h a v e      

d a t a b a s e l i n k s d e n e d b e t w e e n t h e m .  

S i m i l a r l y , n o t a l l o p e r a t i o n s c a n b e c o m b i n e d i n t o s i n g l e r e q u e s t s . F o r e x a m p l e ,    

w h e n a s t o r e d p r o c e d u r e c o n t a i n s a C O M M I T s t a t e m e n t o r d o e s n o t r e t u r n a      

v a l u e , y o u c a n n o t c o m b i n e t h e s t o r e d p r o c e d u r e S Q L w i t h t h e S Q L f o r o t h e r    

o p e r a t i o n s i n a q u e r y . Y o u c a n o n l y p u s h o p e r a t i o n s s u p p o r t e d b y t h e R D B M S      

d o w n t o t h a t R D B M S .  N o t e :      Y o u c a n n o t p u s h b u i l t – i n f u n c t i o n s o r t r a n s f o r m s t o t h e s o u r c e d a t a b a s e .  

F o r b e s t p e r f o r m a n c e , d o n o t i n t e r s p e r s e b u i l t – i n t r a n s f o r m s a m o n g o p e r a t i o n s    

t h a t c a n b e p u s h e d d o w n t o t h e d a t a b a s e . D a t a b a s e – s p e c i c f u n c t i o n s c a n o n l y b e      

u s e d i n s i t u a t i o n s w h e r e t h e y a r e p u s h e d d o w n t o t h e d a t a b a s e f o r e x e c u t i o n .  

V i e w i n g S Q L g e n e r a t e d b y a d a t a o w        

3 7 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 403: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 403/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

B e f o r e r u n n i n g a j o b , y o u c a n v i e w t h e S Q L g e n e r a t e d b y t h e d a t a o w a n d a d j u s t    

y o u r d e s i g n t o m a x i m i z e t h e S Q L t h a t i s p u s h e d d o w n t o i m p r o v e p e r f o r m a n c e .  

A l t e r y o u r d e s i g n t o i m p r o v e t h e d a t a o w w h e n n e c e s s a r y .  K e e p i n m i n d t h a t D a t a S e r v i c e s o n l y s h o w s t h e S Q L g e n e r a t e d f o r t a b l e s o u r c e s .  

D a t a S e r v i c e s d o e s n o t s h o w t h e S Q L g e n e r a t e d f o r S Q L s o u r c e s t h a t a r e n o t    

t a b l e s o u r c e s , s u c h a s t h e l o o k u p f u n c t i o n , t h e K e y G e n e r a t i o n t r a n s f o r m , t h e      

k e y _ g e n e r a t i o n f u n c t i o n , t h e T a b l e C o m p a r i s o n t r a n s f o r m , a n d t a r g e t t a b l e s .  

T o v i e w S Q L        

1 . I n t h e        D a t a F l o w s      t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t – c l i c k t h e d a t a o w        

a n d s e l e c t      D i s p l a y O p t i m i z e d S Q L          f r o m t h e m e n u .  

T h e     O p t i m i z e d S Q L          d i a l o g b o x d i s p l a y s .  

2 . I n t h e l e f t p a n e , s e l e c t t h e d a t a s t o r e f o r t h e d a t a o w .  

T h e o p t i m i z e d S Q L f o r t h e d a t a s t o r e d i s p l a y s i n t h e r i g h t p a n e .  

F i g u r e 1 0 1 : V i e w O p t i m i z e d S Q L        

C a c h i n g d a t a      

Y o u c a n i m p r o v e t h e p e r f o r m a n c e o f d a t a t r a n s f o r m a t i o n s t h a t o c c u r i n m e m o r y b y      c a c h i n g a s m u c h d a t a a s p o s s i b l e . B y c a c h i n g d a t a , y o u l i m i t t h e n u m b e r o f t i m e s    

t h e s y s t e m m u s t a c c e s s t h e d a t a b a s e . C a c h e d d a t a m u s t t i n t o a v a i l a b l e m e m o r y .  

D a t a S e r v i c e s a l l o w s a d m i n i s t r a t o r s t o s e l e c t a p a g e a b l e c a c h e l o c a t i o n t o s a v e      

c o n t e n t o v e r t h e 2 G B R A M l i m i t . T h e p a g e a b l e c a c h e l o c a t i o n i s s e t u p i n      

S e r v e r M a n a g e r a n d t h e o p t i o n t o u s e p a g e a b l e c a c h e i s s e l e c t e d o n t h e        D a t a o w        

P r o p e r t i e s      d i a l o g b o x .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 7 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 404: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 404/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

P e r s i s t e n t c a c h e d a t a s t o r e s c a n b e c r e a t e d w i t h t h e        C r e a t e N e w D a t a s t o r e        d i a l o g      

 b o x b y s e l e c t i n g P e r s i s t e n t C a c h e a s t h e d a t a b a s e t y p e . T h e n e w l y – c r e a t e d   

 p e r s i s t e n t c a c h e d a t a s t o r e a p p e a r s i n t h e l i s t o f d a t a s t o r e s , a n d c a n b e u s e d a s  a s o u r c e i n j o b s .  

F o r m o r e i n f o r m a t i o n a b o u t a d v a n c e d c a c h i n g f e a t u r e s , s e e t h e        D a t a S e r v i c e s    

 P e r f o r m a n c e O p t i m i z a t i o n G u i d e   

S l i c i n g p r o c e s s e s    

Y o u c a n a l s o o p t i m i z e y o u r j o b s w i t h p r o c e s s s l i c i n g , w h i c h i n v o l v e s s p l i t t i n g      

d a t a o w s i n t o s u b d a t a o w s .  

S u b d a t a o w s w o r k o n s m a l l e r d a t a s e t s a n d / o r f e w e r t r a n s f o r m s s o t h e r e i s l e s s    

v i r t u a l m e m o r y t o c o n s u m e p e r p r o c e s s . T h i s w a y , y o u c a n l e v e r a g e m o r e p h y s i c a l    

m e m o r y p e r d a t a o w a s e a c h s u b d a t a o w c a n a c c e s s 2 G B o f m e m o r y .  

T h i s f u n c t i o n a l i t y i s a v a i l a b l e w i t h t h e A d v a n c e d t a b f o r t h e Q u e r y t r a n s f o r m . Y o u      

c a n r u n e a c h m e m o r y – i n t e n s i v e o p e r a t i o n a s a s e p a r a t e p r o c e s s .  

F i g u r e 1 0 2 : P e r f o r m a n c e – P r o c e s s S l i c i n g      

F o r m o r e i n f o r m a t i o n o n p r o c e s s s l i c i n g , s e e t h e        D a t a S e r v i c e s P e r f o r m a n c e      

O p t i m i z a t i o n G u i d e        . 

U s i n g t h e D a t a T r a n s f e r p l a t f o r m          

I n t r o d u c t i o n      

T h e D a t a T r a n s f e r t r a n s f o r m a l l o w s a d a t a o w t o s p l i t i t s p r o c e s s i n g i n t o t w o      

s u b d a t a o w s a n d p u s h d o w n r e s o u r c e – c o n s u m i n g o p e r a t i o n s t o t h e d a t a b a s e      

s e r v e r .  

E x p l a i n i n g t h e D a t a T r a n s f e r t r a n s f o r m          

3 8 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 405: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 405/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

T h e D a t a T r a n s f e r t r a n s f o r m m o v e s d a t a f r o m a s o u r c e o r t h e o u t p u t f r o m a n o t h e r    

t r a n s f o r m i n t o a t r a n s f e r o b j e c t a n d s u b s e q u e n t l y r e a d s d a t a f r o m t h e t r a n s f e r    

o b j e c t . Y o u c a n u s e t h e D a t a T r a n s f e r t r a n s f o r m t o p u s h d o w n r e s o u r c e – i n t e n s i v e      d a t a b a s e o p e r a t i o n s t h a t o c c u r a n y w h e r e w i t h i n t h e d a t a o w . T h e t r a n s f e r t y p e      

c a n b e a r e l a t i o n a l d a t a b a s e t a b l e , p e r s i s t e n t c a c h e t a b l e , l e , o r p i p e l i n e .  

F i g u r e 1 0 3 : D a t a T r a n s f e r T r a n s f o r m E d i t o r      

U s e t h e D a t a T r a n s f e r t r a n s f o r m t o :  

• P u s h d o w n o p e r a t i o n s t o t h e d a t a b a s e s e r v e r w h e n t h e t r a n s f e r t y p e i s a      

d a t a b a s e t a b l e . Y o u c a n p u s h d o w n r e s o u r c e - c o n s u m i n g o p e r a t i o n s s u c h a s    

 j o i n s , G R O U P B Y , a n d s o r t s . 

• D e n e p o i n t s i n y o u r d a t a o w w h e r e y o u w a n t t o s p l i t p r o c e s s i n g i n t o      

m u l t i p l e s u b d a t a o w s t h a t e a c h p r o c e s s p a r t o f t h e d a t a . D a t a S e r v i c e s d o e s    

n o t n e e d t o p r o c e s s t h e e n t i r e i n p u t d a t a i n m e m o r y a t o n e t i m e . I n s t e a d , t h e      

D a t a T r a n s f e r t r a n s f o r m s p l i t s t h e p r o c e s s i n g a m o n g m u l t i p l e s u b d a t a o w s    

t h a t e a c h u s e a p o r t i o n o f m e m o r y .  

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n o f t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e D a t a T r a n s f e r t r a n s f o r m .  

W h e n t h e i n p u t d a t a s e t f o r t h e D a t a T r a n s f e r t r a n s f o r m i s a t a b l e o r l e t r a n s f e r    

t y p e , t h e r o w s m u s t b e a g g e d w i t h t h e N O R M A L o p e r a t i o n c o d e . W h e n i n p u t    

d a t a s e t i s a p i p e l i n e t r a n s f e r t y p e , t h e r o w s c a n b e a g g e d a s a n y o p e r a t i o n c o d e .  

T h e i n p u t d a t a s e t m u s t n o t c o n t a i n h i e r a r c h i c a l ( n e s t e d ) d a t a .  

O u t p u t d a t a s e t s h a v e t h e s a m e s c h e m a a n d s a m e o p e r a t i o n c o d e a s t h e i n p u t    

d a t a s e t s . I n t h e p u s h d o w n s c e n a r i o , t h e o u t p u t r o w s a r e i n t h e s o r t o r G R O U P      

B Y o r d e r .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 8 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 406: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 406/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

T h e s u b d a t a o w n a m e s u s e t h i s f o r m a t      d a t a o w n a m e _ n        , w h e r e n i s t h e n u m b e r    

o f t h e d a t a o w :  

T h e e x e c u t i o n o f t h e o u t p u t d e p e n d s o n t h e t e m p o r a r y t r a n s f e r t y p e :  

F o r T a b l e o r F i l e t e m p o r a r y t r a n s f e r t y p e s , D a t a S e r v i c e s a u t o m a t i c a l l y s p l i t s t h e      

d a t a o w i n t o s u b d a t a o w s a n d e x e c u t e s t h e m s e r i a l l y .  

F o r P i p e l i n e t r a n s f e r t y p e s , D a t a S e r v i c e s s p l i t s t h e d a t a o w i n t o s u b d a t a o w s    

i f y o u s p e c i f y t h e o p t i o n        R u n a s a s e p a r a t e p r o c e s s      o p t i o n i n a n o t h e r o p e r a t i o n      

i n t h e d a t a o w . D a t a S e r v i c e s e x e c u t e s t h e s e s u b d a t a o w s t h a t u s e p i p e l i n e i n      

 p a r a l l e l . 

3 8 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 407: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 407/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

E x e r c i s e 2 3 : U s i n g t h e D a t a T r a n s f e r      

p l a t f o r m          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e D a t a T r a n s f e r t r a n s f o r m          

• V i e w S Q L g e n e r a t e d b y a d a t a o w        

B u s i n e s s E x a m p l e      

Y o u w a n t t o j o i n t w o d a t a b a s e s c h e m a s w i t h a j o i n c o n d i t i o n a n d c a u s e t h e j o i n      

c o n d i t i o n o f t h e d a t a d o n e o n t h e d a t a b a s e s e r v e r . Y o u c r e a t e t w o d a t a o w s ; o n e      

w i t h a D a t a T r a n s f e r t r a n s f o r m a n d o n e w i t h o u t i t . I n v i e w i n g t h e o p t i m i z e d S Q L        

f o r e a c h d a t a o w , y o u s e e t h a t o n l y t h e d a t a o w w i t h t h e D a t a T r a n s f e r t r a n s f o r m          

 p u s h e s t h e j o i n c o n d i t i o n d o w n t o t h e d a t a b a s e s e r v e r . 

T a s k 1 :    

T h e D a t a T r a n s f e r t r a n s f o r m c a n b e u s e d t o p u s h d a t a d o w n t o a d a t a b a s e t a b l e s o      

t h a t i t c a n b e p r o c e s s e d b y t h e d a t a b a s e s e r v e r r a t h e r t h a n t h e D a t a S e r v i c e s J o b      

S e r v e r . I n t h i s a c t i v i t y , y o u j o i n t w o d a t a b a s e s c h e m a s . W h e n t h e D a t a T r a n s f e r    

t r a n s f o r m i s n o t u s e d , t h e j o i n o c c u r s o n t h e D a t a S e r v i c e s J o b S e r v e r . W h e n t h e      

D a t a T r a n s f e r t r a n s f o r m i s a d d e d t o t h e d a t a o w , t h e j o i n c a n b e s e e n i n t h e S Q L        

Q u e r y b y d i s p l a y i n g t h e o p t i m i z e d S Q L f o r t h e d a t a o w .  1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        N o _ D a t a _ T r a n s -      

f e r _ J o b        c o n t a i n i n g a d a t a o w c a l l e d        N o _ D a t a _ T r a n s f e r _ D F        . 

2 . I n t h e w o r k s p a c e f o r      N o _ D a t a _ T r a n s f e r _ D F        , a d d t h e      

E m p l o y e e _ C o m p        t a b l e f r o m t h e D e l t a d a t a s t o r e a n d t h e        E m p l o y e e        t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s s o u r c e o b j e c t s .  

3 . A d d a Q u e r y t r a n s f o r m t o t h e w o r k s p a c e c o n n e c t i n g e a c h s o u r c e o b j e c t t o i t    

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , a d d t h e        L a s t N a m e        a n d   

 B i r t h D a t e     c o l u m n s f r o m t h e        E m p l o y e e        t a b l e a n d t h e        C o m p _ T y p e        a n d     C o m p    

c o l u m n s f r o m t h e        E m p l o y e e _ C o m p      t a b l e t o t h e o u t p u t s c h e m a . J o i n t h e t w o      

t a b l e s o n t h e        E m p l o y e e I D          c o l u m n s .  

C a u t i o n :      C r e a t e a t a r g e t t e m p l a t e t a b l e        E m p l o y e e _ T e m p      i n t h e D e l t a      

d a t a s t o r e . T h e n s a v e t h e b a t h j o b .  

5 . V i e w t h e o p t i m i z e d S Q L f o r t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 8 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 408: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 408/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

T a s k 2 :    

C r e a t e a c o p y o f t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        a n d i n t h e c o p y u s e      

t h e D a t a T r a n s f e r t r a n s f o r m i n a d d i t i o n t o t h e Q u e r y t r a n s f o r m . T h e n v i e w t h e      o p t i m i z e d S Q L t o s e e t h e p r e s e n c e o f t h e “ W H E R E ” c l a u s e .  

1 . C r e a t e a n e w b a t c h j o b        D a t a _ T r a n s f e r _ J o b        i n t h e O m e g a p r o j e c t    

w i t h a r e p l i c a o f t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        c a l l e d      

D a t a _ T r a n s f e r _ D F        . 

2 . A d d a D a t a T r a n s f e r t r a n s f o r m t o t h e w o r k s p a c e a n d p l a c e i t b e t w e e n t h e      

s o u r c e t a b l e        E m p l o y e e _ C o m p        a n d t h e Q u e r y t r a n s f o r m .  

3 . C o n g u r e t h e D a t a T r a n s f e r t r a n s f o r m t o p u s h t h e j o i n o f d a t a t o t h e d a t a b a s e      

s e r v e r .  

4 . C o n g u r e t h e Q u e r y t r a n s f o r m t o j o i n t h e D a t a T r a n s f e r t r a n s f o r m o u t p u t t o      t h e t a r g e t t a b l e i n p u t . S a v e t h e o b j e c t s a n d d i s p l a y t h e o p t i m i z e d S Q L .  

5 . V i e w t h e o p t i m i z e d S Q L f o r t h e d a t a o w          D a t a _ T r a n s f e r _ D F        . 

3 8 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 409: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 409/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

S o l u t i o n 2 3 : U s i n g t h e D a t a T r a n s f e r      

p l a t f o r m          T a s k 1 :    

T h e D a t a T r a n s f e r t r a n s f o r m c a n b e u s e d t o p u s h d a t a d o w n t o a d a t a b a s e t a b l e s o      

t h a t i t c a n b e p r o c e s s e d b y t h e d a t a b a s e s e r v e r r a t h e r t h a n t h e D a t a S e r v i c e s J o b      

S e r v e r . I n t h i s a c t i v i t y , y o u j o i n t w o d a t a b a s e s c h e m a s . W h e n t h e D a t a T r a n s f e r    

t r a n s f o r m i s n o t u s e d , t h e j o i n o c c u r s o n t h e D a t a S e r v i c e s J o b S e r v e r . W h e n t h e      

D a t a T r a n s f e r t r a n s f o r m i s a d d e d t o t h e d a t a o w , t h e j o i n c a n b e s e e n i n t h e S Q L        

Q u e r y b y d i s p l a y i n g t h e o p t i m i z e d S Q L f o r t h e d a t a o w .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        N o _ D a t a _ T r a n s -      f e r _ J o b        c o n t a i n i n g a d a t a o w c a l l e d        N o _ D a t a _ T r a n s f e r _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    N o _ D a t a _ T r a n s f e r _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        N o _ D a t a _ T r a n s f e r _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      N o _ D a t a _ T r a n s f e r _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      N o _ D a t a _ T r a n s f e r _ D F        , a d d t h e      

E m p l o y e e _ C o m p        t a b l e f r o m t h e D e l t a d a t a s t o r e a n d t h e        E m p l o y e e        t a b l e      

f r o m t h e A l p h a d a t a s t o r e a s s o u r c e o b j e c t s .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     E m p l o y e e _ C o m p        t a b l e f r o m t h e D e l t a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t s t o t h e d a t a o w w o r k s p a c e a n d i n t h e   

c o n t e x t m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

c ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     E m p l o y e e        t a b l e f r o m t h e A l p h a d a t a s t o r e .  

d ) S e l e c t a n d d r a g t h e o b j e c t s t o t h e d a t a o w w o r k s p a c e a n d i n t h e      

c o n t e x t m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 8 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 410: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 410/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

3 . A d d a Q u e r y t r a n s f o r m t o t h e w o r k s p a c e c o n n e c t i n g e a c h s o u r c e o b j e c t t o i t    

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e s o u r c e t a b l e     E m p l o y e e _ C o m p        t o t h e Q u e r y t r a n s f o r m          

 b y s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g   

t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

c ) C o n n e c t t h e s o u r c e t a b l e        E m p l o y e e        t o t h e Q u e r y t r a n s f o r m b y      

s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g      

t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o      

c r e a t e t h e c o n n e c t i o n .  

4 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , a d d t h e        L a s t N a m e        a n d   

 B i r t h D a t e     c o l u m n s f r o m t h e        E m p l o y e e        t a b l e a n d t h e        C o m p _ T y p e        a n d     C o m p    

c o l u m n s f r o m t h e        E m p l o y e e _ C o m p      t a b l e t o t h e o u t p u t s c h e m a . J o i n t h e t w o      

t a b l e s o n t h e        E m p l o y e e I D          c o l u m n s .  

C o n t i n u e d o n n e x t p a g e      

3 8 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 411: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 411/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

C a u t i o n :      C r e a t e a t a r g e t t e m p l a t e t a b l e        E m p l o y e e _ T e m p      i n t h e D e l t a      

d a t a s t o r e . T h e n s a v e t h e b a t h j o b .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n i t s e d i t o r .  

 b ) F r o m t h e     S c h e m a I n        w o r k s p a c e , d r a g t h e e l d s      L a s t N a m e        a n d     B i r t h D a t e      

c o l u m n s f r o m t h e        E m p l o y e e        t a b l e t o t h e        S c h e m a I n        w o r k s p a c e .  

c ) F r o m t h e        S c h e m a I n        w o r k s p a c e , d r a g t h e e l d s      C o m p _ T y p e        a n d     C o m p    

c o l u m n s f r o m t h e        E m p l o y e e _ C o m p      t a b l e t o t h e        S c h e m a I n        w o r k s p a c e .  

d ) S e l e c t t h e        W H E R E          a n d e n t e r t h e e x p r e s s i o n :  

E m p l o y e e _ C o m p . E m p l o y e e I D = E m p l o y e e . E m p l o y e e I D      

N o t e :      I f t h e e l d        E m p l o y e e I D          i s n o t a v a i l a b l e , t h e n u s e t h e      

e l d        L a s t N a m e        . 

T h e e x p r e s s i o n w o u l d t h e n b e :  

E m p l o y e e _ C o m p . L a s t N a m e = E m p l o y e e . L a s t -       N a m e   

e ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

f ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

g ) I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      E m p l o y e e _ T e m p        a s t h e      

t e m p l a t e t a b l e n a m e .  

h ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t .  

i ) S e l e c t      O K      . 

 j ) C o n n e c t t h e Q u e r y t r a n s f o r m t o t h e t a r g e t t e m p l a t e t a b l e   

E m p l o y e e _ T e m p        b y s e l e c t i n g t h e Q u e r y t r a n s f o r m a n d h o l d i n g d o w n      

t h e m o u s e b u t t o n . T h e n d r a g t h e c u r s o r t o t h e t e m p l a t e t a b l e a n d      

r e l e a s e t h e m o u s e b u t t o n .  k ) G o t o t h e D e s i g n e r t o o l b a r a n d s e l e c t t h e        S a v e A l l      b u t t o n t o s a v e a l l    

o b j e c t s y o u h a v e c r e a t e d . D o        n o t    e x e c u t e t h e j o b .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 8 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 412: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 412/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

5 . V i e w t h e o p t i m i z e d S Q L f o r t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        . 

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a F l o w s      t a b a n d r i g h t - c l i c k      

t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        a n d c h o o s e t h e o p t i o n       D i s p l a y O p t i m i z e d S Q L     . 

 b ) I n t h e     O p t i m i z e d S Q L        d i a l o g b o x , n o t e t h a t t h e “ W H E R E ” c l a u s e        d o e s    

n o t    a p p e a r i n t h e S Q L s t a t e m e n t .  

T a s k 2 :    

C r e a t e a c o p y o f t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        a n d i n t h e c o p y u s e      

t h e D a t a T r a n s f e r t r a n s f o r m i n a d d i t i o n t o t h e Q u e r y t r a n s f o r m . T h e n v i e w t h e      

o p t i m i z e d S Q L t o s e e t h e p r e s e n c e o f t h e “ W H E R E ” c l a u s e .  

1 . C r e a t e a n e w b a t c h j o b        D a t a _ T r a n s f e r _ J o b        i n t h e O m e g a p r o j e c t    w i t h a r e p l i c a o f t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        c a l l e d      

D a t a _ T r a n s f e r _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    D a t a _ T r a n s f e r _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        D a t a _ T r a n s f e r _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a F l o w s      t a b a n d r i g h t - c l i c k      

o n t h e d a t a o w          N o _ D a t a _ T r a n s f e r _ D F        a n d c h o o s e t h e o p t i o n       R e p l i c a t e     . 

f ) R i g h t - c l i c k t h e d a t a o w          C o p y _ o f _ N o _ D a t a _ T r a n s f e r _ D F        a n d   

c h o o s e t h e o p t i o n        R e n a m e        . E n t e r t h e n a m e        D a t a _ T r a n s f e r _ D F        . 

g ) S e l e c t a n d d r a g t h e d a t a o w          D a t a _ T r a n s f e r _ D F        i n t o t h e      

D a t a _ T r a n s f e r _ J o b        w o r k s p a c e .  

h ) D o u b l e - c l i c k t h e d a t a o w          D a t a _ T r a n s f e r _ D F        t o o p e n t h e      

w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

3 8 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 413: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 413/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

2 . A d d a D a t a T r a n s f e r t r a n s f o r m t o t h e w o r k s p a c e a n d p l a c e i t b e t w e e n t h e      

s o u r c e t a b l e        E m p l o y e e _ C o m p        a n d t h e Q u e r y t r a n s f o r m .  

a ) R i g h t - c l i c k t h e l i n k b e t w e e n t h e s o u r c e t a b l e        E m p l o y e e _ C o m p        a n d   t h e Q u e r y t r a n s f o r m t o c h o o s e t h e o p t i o n        D e l e t e        . 

 b ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e     T r a n s f o r m s      t a b , s e l e c t t h e        D a t a      

T r a n s f o r m          t r a n s f o r m a n d d r a g i t t o t h e d a t a o w w o r k s p a c e .  

c ) C o n n e c t t h e s o u r c e t a b l e        E m p l o y e e _ C o m p        t o t h e D a t a T r a n s f e r    

t r a n s f o r m b y s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e      

 b u t t o n , d r a g t h e c u r s o r t o t h e D a t a T r a n s f e r t r a n s f o r m . T h e n r e l e a s e t h e   

m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

d ) C o n n e c t t h e D a t a T r a n s f e r t r a n s f o r m t o t h e Q u e r y t r a n s f o r m b y      

s e l e c t i n g t h e D a t a T r a n s f e r t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e      

 b u t t o n , d r a g t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e m o u s e    b u t t o n t o c r e a t e t h e c o n n e c t i o n . 

3 . C o n g u r e t h e D a t a T r a n s f e r t r a n s f o r m t o p u s h t h e j o i n o f d a t a t o t h e d a t a b a s e      

s e r v e r .  

a ) D o u b l e - c l i c k t h e D a t a T r a n s f e r t r a n s f o r m t o o p e n i t s e d i t o r .  

 b ) F o r t h e e l d     T r a n s f e r T y p e        , s e l e c t t h e o p t i o n        T a b l e        . 

c ) I n t h e        T a b l e O p t i o n s      s e c t i o n o f t h e t r a n s f o r m e d i t o r , s e l e c t t h e        e l i p s e s    

( . . . )   b u t t o n .  

S e l e c t t h e        A l p h a        d a t a s t o r e a n d s e l e c t      T a b l e N a m e        . 

d ) I n t h e e l d        T a b l e N a m e        e n t e r      P U S H D O W N _ D A T A        w i t h        S O U R C E        i n   

t h e     O w n e r        e l d .  

e ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 8 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 414: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 414/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

4 . C o n g u r e t h e Q u e r y t r a n s f o r m t o j o i n t h e D a t a T r a n s f e r t r a n s f o r m o u t p u t t o      

t h e t a r g e t t a b l e i n p u t . S a v e t h e o b j e c t s a n d d i s p l a y t h e o p t i m i z e d S Q L .  

a ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n i t s e d i t o r .  

 b ) G o t o t h e     W H E R E          t a b a n d u p d a t e t h e e x p r e s s i o n t o j o i n o n t h e      

 E m p l o y e e I D      e l d s i n t h e        E m p l o y e e        a n d     D a t a _ T r a n s f e r        t a b l e s .  

T h e e x p r e s s i o n i n t h e        W H E R E          t a b s h o u l d l o o k l i k e t h i s :  

D a t a _ T r a n s f e r . E m p l o y e e I D = E m p l o y e e . E m p l o y e e I D      

c ) V e r i f y t h a t t h e e l d s      C o m p _ T y p e        a n d     C o m p      c o l u m n s a r e m a p p e d t o t h e      

D a t a T r a n s f e r t r a n s f o r m .  

d ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  e ) G o t o t h e D e s i g n e r t o o l b a r a n d s e l e c t t h e        S a v e A l l      b u t t o n t o s a v e a l l    

o b j e c t s y o u h a v e c r e a t e d . D o        n o t    e x e c u t e t h e j o b .  

5 . V i e w t h e o p t i m i z e d S Q L f o r t h e d a t a o w          D a t a _ T r a n s f e r _ D F        . 

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a F l o w s      t a b a n d r i g h t - c l i c k      

t h e d a t a o w          D a t a _ T r a n s f e r _ D F        a n d c h o o s e t h e o p t i o n        D i s p l a y    

O p t i m i z e d S Q L        . 

 b ) I n t h e     O p t i m i z e d S Q L        d i a l o g b o x , n o t e t h a t t h e “ W H E R E ” c l a u s e        d o e s    

a p p e a r i n t h e S Q L s t a t e m e n t .  

N o t e :      I f y o u w e r e t o e x e c u t e t h e b a t c h j o b      D a t a _ T r a n s f e r _ J o b        , t h e j o b r e s u l t s i n a n e r r o r    

s i n c e t h e A l p h a d a t a s t o r e i s r e a d - o n l y . T h e p o i n t o f t h e e x e r c i s e      

i s t o s h o w t h e D a t a T r a n s f e r t r a n s f o r m p u s h e s t h e t a b l e j o i n      

t o t h e d a t a b a s e s e r v e r .  

O n c e t h i s j o b e x e c u t e s , t h e        W H E R E          c l a u s e n o l o n g e r a p p e a r s    

i n t h e o p t i m i z e d S Q L d i s p l a y . T h e s e l e c t i o n i s p u s h e d d o w n      

t o t h e d a t a b a s e s e r v e r a n d t h e J o b S e r v e r i s p r o c e s s i n g w h a t    

i s s e n t f r o m t h e d a t a b a s e . O n c e        D a t a _ T r a n s f e r _ J o b      i s e x e c u t e d , t h e o p t i m i z e d S Q L i s t h e s a m e a s t h e S Q L o f      

 N o _ D a t a _ T r a n s f e r _ J o b     . 

3 9 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 415: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 415/472

B O D S 1 0 L e s s o n : U s i n g t h e D a t a T r a n s f e r T r a n s f o r m a n d P e r f o r m a n c e O p t i m i z a t i o n      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • D e s c r i b e p e r f o r m a n c e o p t i m i z a t i o n      

• U s e t h e D a t a T r a n s f e r t r a n s f o r m          

• V i e w S Q L g e n e r a t e d b y a d a t a o w        

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e D a t a T r a n s f e r t r a n s f o r m s e e “ T r a n s f o r m s ”      

C h a p t e r 5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

• F o r m o r e i n f o r m a t i o n a b o u t a d v a n c e d c a c h i n g f e a t u r e s , s e e t h e        D a t a S e r v i c e s    

 P e r f o r m a n c e O p t i m i z a t i o n G u i d e   

• F o r m o r e i n f o r m a t i o n o n p r o c e s s s l i c i n g , s e e t h e        D a t a S e r v i c e s P e r f o r m a n c e      O p t i m i z a t i o n G u i d e        . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 416: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 416/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

L e s s o n O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e X M L P i p e l i n e t r a n s f o r m          

B u s i n e s s E x a m p l e      

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . I n y o u r p r o j e c t s , y o u   

e n c o u n t e r X M L d a t a w i t h r e p e a t e d n o d e s , h i e r a r c h y d a t a , o r s o u r c e s o f d a t a      

w h e r e t h e r e a r e e i t h e r t o o m a n y e l d s o r n o t e n o u g h e l d s . Y o u n d t h a t t h e      

 p l a t f o r m t r a n s f o r m s d o n o t p r o v i d e e n o u g h e x i b i l i t y a n d s o y o u t u r n t o t h e   

D a t a I n t e g r a t o r - s p e c i c t r a n s f o r m s f o r a s s i s t a n c e . H e r e y o u e n c o u n t e r t h a t    

t h e d a t a s o u r c e c o n s i s t s o f d o c u m e n t c o n t a i n i n g d a t a i n X M L f o r m a t . W h i l e      

n o n - r e p e a t a b l e n o d e s a r e n o t a p r o b l e m , t h e r e p e a t a b l e o n e s a r e d i f c u l t t o l o a d      

i n t o a r e l a t i o n a l d a t a b a s e w i t h o u t u s i n g c o m p l e x        W H E R E          e x p r e s s i o n s . Y o u u s e      

t h e X M L P i p e l i n e t r a n s f o r m t o p r o c e s s o n e i n s t a n c e o f a r e p e a t a b l e s t r u c t u r e a t a      

t i m e t h e r e b y p u s h i n g t h e o p e r a t i o n o f t h e s t r e a m i n g t r a n s f o r m t o t h e X M L s o u r c e .  

U s i n g t h e X M L P i p e l i n e t r a n s f o r m          

P e r f o r m a n c e C o n s i d e r a t i o n s    

• T h e X M L P i p e l i n e t r a n s f o r m i s u s e d t o p r o c e s s l a r g e X M L l e s m o r e      

e f c i e n t l y b y s e p a r a t i n g t h e m i n t o s m a l l b a t c h e s .  

• T h e X M L P i p e l i n e t r a n s f o r m i s u s e d t o p r o c e s s l a r g e X M L l e s , o n e i n s t a n c e      

o f a s p e c i e d r e p e a t a b l e s t r u c t u r e a t a t i m e .  

• W i t h t h i s t r a n s f o r m , D a t a S e r v i c e s d o e s n o t n e e d t o r e a d t h e e n t i r e X M L        

i n p u t i n t o m e m o r y a n d b u i l d a n i n t e r n a l d a t a s t r u c t u r e b e f o r e p e r f o r m i n g t h e      

t r a n s f o r m a t i o n .  

I n a N e s t e d R e l a t i o n a l D a t a M o d e l ( N R D M ) , t h e o n l y d i f f e r e n c e b e t w e e n      

r e l a t i o n a l d a t a a n d h i e r a r c h i c a l d a t a i s o n e a d d i t i o n a l d a t a t y p e . A c o l u m n c a n n o t    

o n l y b e o f t y p e n u m b e r o r c h a r a c t e r , i t c a n a l s o b e o f t y p e s c h e m a . I n o r d e r t o r e a d      

f r o m a t a b l e , a “ w h e r e ” c l a u s e i s u s e d . H o w e v e r , t h e “ w h e r e ” u s e d w i t h a c o l u m n      

o f t y p e s c h e m a w o u l d h a v e t o b e c o m p l e x . T o a v o i d t h i s , t h e d a t a i s r s t p a r s e d      

a n d d e c o d e d i n t o a s e t o f t a b l e , o p e r a t i o n s a r e p e r f o r m e d o n t h e m a n d t h e n t h e      

d a t a i s r e a s s e m b l e d i n t o t h e s c h e m a s t r u c t u r e .  

3 9 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 417: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 417/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

U s i n g t h e n e s t e d d a t a m e t h o d c a n b e m o r e c o n c i s e ( n o r e p e a t e d i n f o r m a t i o n ) , a n d      

c a n s c a l e t o p r e s e n t a d e e p e r l e v e l o f h i e r a r c h i c a l c o m p l e x i t y .  

F i g u r e 1 0 4 : E x a m p l e o f N e s t e d D a t a      

T o e x p a n d o n t h e e x a m p l e a b o v e , c o l u m n s i n s i d e a n e s t e d s c h e m a c a n a l s o c o n t a i n      c o l u m n s .  

T h e r e i s a u n i q u e i n s t a n c e o f e a c h n e s t e d s c h e m a f o r e a c h r o w a t e a c h l e v e l o f t h e      

r e l a t i o n s h i p a s s h o w n :  

G e n e r a l i z i n g f u r t h e r w i t h n e s t e d d a t a , e a c h r o w a t e a c h l e v e l c a n h a v e a n y n u m b e r    

o f c o l u m n s c o n t a i n i n g n e s t e d s c h e m a s .  

L o a d i n g a d a t a s e t t h a t c o n t a i n s n e s t e d s c h e m a s i n t o a r e l a t i o n a l t a r g e t r e q u i r e s    

t h a t t h e n e s t e d r o w s b e u n n e s t e d .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 418: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 418/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

F i g u r e 1 0 5 : U n n e s t i n g D a t a      

D a t a S e r v i c e s a l l o w s y o u t o u n n e s t a n y n u m b e r o f n e s t e d s c h e m a s a t a n y d e p t h .  

 N o m a t t e r h o w m a n y l e v e l s a r e i n v o l v e d , t h e r e s u l t o f u n n e s t i n g s c h e m a s i s a c r o s s  

 p r o d u c t o f t h e p a r e n t a n d c h i l d s c h e m a s . 

W h e n t w o o r m o r e l e v e l s o f u n n e s t i n g o c c u r , t h e i n n e r - m o s t c h i l d i s u n n e s t e d r s t ,    

t h e n t h e r e s u l t — t h e c r o s s p r o d u c t o f t h e p a r e n t a n d t h e i n n e r - m o s t c h i l d i s t h e n      

u n n e s t e d f r o m i t s p a r e n t , a n d c o n t i n u i n g t o t h e t o p - l e v e l s c h e m a .  

T h i s m e a n s t h a t a N R D M s t r u c t u r e i s n o t r e q u i r e d t o r e p r e s e n t t h e e n t i r e X M L        d a t a i n p u t . I n s t e a d , t h i s t r a n s f o r m u s e s a p o r t i o n o f m e m o r y t o p r o c e s s e a c h      

i n s t a n c e o f a r e p e a t a b l e s t r u c t u r e , t h e n c o n t i n u a l l y r e l e a s e s a n d r e u s e s t h e m e m o r y      

t o c o n t i n u o u s l y o w X M L d a t a t h r o u g h t h e t r a n s f o r m .  

D u r i n g e x e c u t i o n , D a t a S e r v i c e s p u s h e s o p e r a t i o n s o f t h e s t r e a m i n g t r a n s f o r m t o      

t h e X M L s o u r c e . T h e r e f o r e , y o u c a n n o t u s e a b r e a k p o i n t b e t w e e n y o u r X M L        

s o u r c e a n d a n X M L P i p e l i n e t r a n s f o r m .  

N o t e :      Y o u c a n u s e t h e X M L P i p e l i n e t r a n s f o r m t o l o a d i n t o a r e l a t i o n a l o r    

n e s t e d s c h e m a t a r g e t . T h i s c o u r s e f o c u s e s o n l o a d i n g X M L d a t a i n t o a      

r e l a t i o n a l t a r g e t .  

Y o u c a n u s e a n X M L l e o r X M L m e s s a g e . Y o u c a n a l s o c o n n e c t m o r e t h a n o n e      

X M L P i p e l i n e t r a n s f o r m t o a n X M L s o u r c e .  

W h e n c o n n e c t e d t o a n X M L s o u r c e , t h e t r a n s f o r m e d i t o r s h o w s t h e i n p u t a n d      

o u t p u t s c h e m a s t r u c t u r e s a s a r o o t s c h e m a c o n t a i n i n g r e p e a t i n g a n d n o n – r e p e a t i n g      

s u b s c h e m a s r e p r e s e n t e d b y t h e s e i c o n s a s s e e n i n t h e X M L P i p e l i n e t r a n s f o r m          

e d i t o r :  

3 9 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 419: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 419/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

F i g u r e 1 0 6 : X M L P i p e l i n e T r a n s f o r m E d i t o r      

K e e p i n m i n d t h e s e r u l e s w h e n u s i n g t h e X M L P i p e l i n e t r a n s f o r m :  

• Y o u c a n n o t d r a g a n d d r o p t h e r o o t l e v e l s c h e m a .  

• Y o u c a n d r a g a n d d r o p t h e s a m e c h i l d o b j e c t r e p e a t e d t i m e s t o t h e o u t p u t    

s c h e m a , b u t o n l y i f y o u g i v e e a c h i n s t a n c e o f t h a t o b j e c t a u n i q u e n a m e .  

R e n a m e t h e m a p p e d i n s t a n c e b e f o r e a t t e m p t i n g t o d r a g a n d d r o p t h e s a m e      

o b j e c t t o t h e o u t p u t a g a i n .  

• W h e n y o u d r a g a n d d r o p a c o l u m n o r s u b s c h e m a t o t h e o u t p u t s c h e m a , y o u      

c a n n o t t h e n m a p t h e p a r e n t s c h e m a f o r t h a t c o l u m n o r s u b s c h e m a . S i m i l a r l y ,    

w h e n y o u d r a g a n d d r o p a p a r e n t s c h e m a , y o u c a n n o t t h e n m a p a n i n d i v i d u a l    

c o l u m n o r s u b s c h e m a f r o m u n d e r t h a t p a r e n t .  

• Y o u c a n n o t m a p i t e m s f r o m t w o s i b l i n g r e p e a t i n g s u b s c h e m a s b e c a u s e t h e      

X M L P i p e l i n e t r a n s f o r m d o e s n o t s u p p o r t C a r t e s i a n p r o d u c t s ( c o m b i n i n g      

e v e r y r o w f r o m o n e t a b l e w i t h e v e r y r o w i n a n o t h e r t a b l e ) o f t w o r e p e a t a b l e      

s c h e m a s .  

T o t a k e a d v a n t a g e o f t h e X M L P i p e l i n e t r a n s f o r m ’ s p e r f o r m a n c e , a l w a y s s e l e c t a      

r e p e a t a b l e c o l u m n t o b e m a p p e d . F o r e x a m p l e , i f y o u m a p a r e p e a t a b l e s c h e m a      

c o l u m n , t h e X M L s o u r c e p r o d u c e s o n e r o w a f t e r p a r s i n g o n e i t e m .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 420: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 420/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

A v o i d s e l e c t i n g n o n – r e p e a t a b l e c o l u m n s t h a t o c c u r s t r u c t u r a l l y a f t e r t h e r e p e a t a b l e      

s c h e m a b e c a u s e t h e X M L s o u r c e m u s t t h e n a s s e m b l e t h e e n t i r e s t r u c t u r e o f i t e m s    

i n m e m o r y b e f o r e p r o c e s s i n g . S e l e c t i n g n o n – r e p e a t a b l e c o l u m n s t h a t o c c u r    s t r u c t u r a l l y a f t e r t h e r e p e a t a b l e s c h e m a i n c r e a s e s m e m o r y c o n s u m p t i o n t o p r o c e s s    

t h e o u t p u t i n t o y o u r t a r g e t .  

T o m a p b o t h t h e r e p e a t a b l e s c h e m a a n d a n o n – r e p e a t a b l e c o l u m n t h a t o c c u r s    

a f t e r t h e r e p e a t a b l e o n e , u s e t w o X M L P i p e l i n e t r a n s f o r m s , a n d u s e t h e Q u e r y      

t r a n s f o r m t o c o m b i n e t h e o u t p u t s o f t h e t w o X M L P i p e l i n e t r a n s f o r m s a n d m a p      

t h e c o l u m n s i n t o o n e s i n g l e t a r g e t .  

O p t i o n s    

T h e X M L P i p e l i n e i s s t r e a m l i n e d t o s u p p o r t m a s s i v e t h r o u g h p u t o f X M L d a t a ;    

t h e r e f o r e , i t d o e s n o t c o n t a i n a d d i t i o n a l o p t i o n s o t h e r t h a n i n p u t a n d o u t p u t    

s c h e m a s , a n d t h e M a p p i n g t a b .  

3 9 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 421: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 421/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

E x e r c i s e 2 4 : U s i n g t h e X M L P i p e l i n e      

t r a n s f o r m          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e X M L P i p e l i n e t r a n s f o r m          

B u s i n e s s E x a m p l e      

P u r c h a s e o r d e r i n f o r m a t i o n i s s t o r e d i n X M L l e s t h a t h a v e r e p e a t a b l e p u r c h a s e      

o r d e r s a n d i t e m s , a n d a n o n r e p e a t e d T o t a l P u r c h a s e O r d e r s c o l u m n . Y o u m u s t    

c o m b i n e t h e c u s t o m e r n a m e , o r d e r d a t e , o r d e r i t e m s , a n d t h e t o t a l s i n t o a s i n g l e      

r e l a t i o n a l t a r g e t t a b l e , w i t h o n e r o w p e r c u s t o m e r p e r i t e m .  

T a s k :    

U s e t h e X M L P i p e l i n e t r a n s f o r m t o u n n e s t p u r c h a s e o r d e r i n f o r m a t i o n s t o r e d i n      

X M L l e s w i t h r e p e a t a b l e a n d n o n r e p e a t a b l e e l e m e n t s .  

1 . O n t h e        F o r m a t s      t a b o f t h e L o c a l O b j e c t L i b r a r y , c r e a t e a l e f o r m a t f o r    

a n X M L s c h e m a c a l l e d        P u r c h a s e O r d e r s _ F o r m a t        b a s e d o n t h e      

 p u r c h a s e O r d e r s . x s d     l e i n t h e        A c t i v i t y _ S o u r c e        f o l d e r . U s e a r o o t e l e m e n t o f      

P u r c h a s e O r d e r s        . 

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ P u r c h a s e _ O r d e r s _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ P u r c h a s e _ O r d e r s _ D F     . 

3 . I n t h e w o r k s p a c e f o r      A l p h a _ P u r c h a s e _ O r d e r s _ D F        , a d d t h e      

P u r c h a s e O r d e r s _ F o r m a t        a s t h e X M L l e s o u r c e o b j e c t a n d c o n g u r e      

t h e l e f o r m a t i n t h e w o r k s p a c e t o p o i n t t o t h e        p o s . x m l      l e i n t h e        M y  

 D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e     f o l d e r .  

4 . A d d t w o X M L P i p e l i n e t r a n s f o r m s t o t h e w o r k s p a c e c o n n e c t i n g s o u r c e      

o b j e c t t o e a c h t r a n s f o r m .  

5 . I n t h e t r a n s f o r m e d i t o r o f t h e r s t X M L P i p e l i n e , m a p t h e s e c o l u m n s :  

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

a n d t h e e n t i r e r e p e a t a b l e s c h e m a f r o m t h e i n p u t s c h e m a t o t h e o u t p u t s c h e m a .  

6 . I n t h e t r a n s f o r m e d i t o r o f t h e s e c o n d X M L P i p e l i n e , m a p t h e s e c o l u m n s :  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 422: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 422/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

t o t a l P O s t o t a l P O s    

7 . A d d a Q u e r y t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t b o t h X M L P i p e l i n e      

t r a n s f o r m s t o t h e Q u e r y t r a n s f o r m . I n t h e Q u e r y t r a n s f o r m , m a p b o t h      

c o l u m n s a n d t h e r e p e a t a b l e s c h e m a f r o m t h e r s t X M L P i p e l i n e t r a n s f o r m          

f r o m t h e i n p u t s c h e m a t o t h e o u t p u t s c h e m a . I n a d d i t i o n , m a p t h e        t o t a l P O s    

c o l u m n f r o m t h e s e c o n d X M L P i p e l i n e t r a n s f o r m .  

8 . A d d a t a r g e t t e m p l a t e t a b l e        I t e m _ P O s        i n t h e D e l t a d a t a s t o r e a n d c o n n e c t i t    

t o t h e Q u e r y T r a n s f o r m . E x e c u t e t h e        A l p h a _ P u r c h a s e _ O r d e r s _ J o b      w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s .  

3 9 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 423: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 423/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

S o l u t i o n 2 4 : U s i n g t h e X M L P i p e l i n e      

t r a n s f o r m          T a s k :    

U s e t h e X M L P i p e l i n e t r a n s f o r m t o u n n e s t p u r c h a s e o r d e r i n f o r m a t i o n s t o r e d i n      

X M L l e s w i t h r e p e a t a b l e a n d n o n r e p e a t a b l e e l e m e n t s .  

1 . O n t h e        F o r m a t s      t a b o f t h e L o c a l O b j e c t L i b r a r y , c r e a t e a l e f o r m a t f o r    

a n X M L s c h e m a c a l l e d        P u r c h a s e O r d e r s _ F o r m a t        b a s e d o n t h e      

 p u r c h a s e O r d e r s . x s d     l e i n t h e        A c t i v i t y _ S o u r c e        f o l d e r . U s e a r o o t e l e m e n t o f      

P u r c h a s e O r d e r s        . 

a ) O n t h e        F o r m a t s      t a b o f t h e L o c a l O b j e c t L i b r a r y , r i g h t - c l i c k        X M L   

S c h e m a s      a n d s e l e c t t h e o p t i o n        N e w      . T h e        I m p o r t X M L S c h e m a F o r m a t    e d i t o r a p p e a r s .  

 b ) I n t h e     F o r m a t n a m e        , e n t e r t h e v a l u e        P u r c h a s e O r d e r s _ F o r m a t        . 

c ) I n t h e        F i l e n a m e / U R L        e l d , s e l e c t t h e        B r o w s e        b u t t o n a n d n a v i g a t e t o      

t h e f o l d e r      M y D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e        a n d s e l e c t t h e      

l e     p u r c h a s e O r d e r s . x s d        . T h e n s e l e c t      O K      t o r e t u r n t o t h e e d i t o r .  

d ) I n t h e e l d        R o o t e l e m e n t n a m e        d r o p - d o w n l i s t , s e l e c t t h e e l e m e n t    

P u r c h a s e O r d e r s        . 

e ) A c c e p t i n g a l l o t h e r d e f a u l t v a l u e s , s e l e c t      O K      t o s a v e y o u r X M L f o r m a t .  

2 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ P u r c h a s e _ O r d e r s _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ P u r c h a s e _ O r d e r s _ D F     . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ P u r c h a s e _ O r d e r s _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ P u r c h a s e _ O r d e r s _ J o b        b y d o u b l e - c l i c k i n g      

i t . 

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ P u r c h a s e _ O r d e r s _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     3 9 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 424: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 424/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

3 . I n t h e w o r k s p a c e f o r      A l p h a _ P u r c h a s e _ O r d e r s _ D F        , a d d t h e      

P u r c h a s e O r d e r s _ F o r m a t        a s t h e X M L l e s o u r c e o b j e c t a n d c o n g u r e      

t h e l e f o r m a t i n t h e w o r k s p a c e t o p o i n t t o t h e        p o s . x m l      l e i n t h e        M y   D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e     f o l d e r .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        X M L F o r m a t s      t a b a n d t h e n s e l e c t    

t h e     P u r c h a s e O r d e r s _ F o r m a t        . 

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

c ) D o u b l e - c l i c k t h e X M L l e f o r m a t      P u r c h a s e O r d e r s _ F o r m a t        t o   

o p e n t h e e d i t o r .  

d ) C h a n g e t h e l e p a t h n a m e t o        D : \ C o u r s e F i l e s \ D a t a -      S o u r c e s \ A c t i v i t y _ S o u r c e        . 

N o t e :      T h e p a t h n a m e        m u s t      b e t y p e d i n e x a c t l y .  

C h e c k w i t h y o u r i n s t r u c t o r t o v e r i f y t h a t t h e p a t h i s c o r r e c t    

 b e f o r e p r o c e e d i n g . 

e ) S e l e c t      O K      t o c l o s e t h e e d i t o r .  

4 . A d d t w o X M L P i p e l i n e t r a n s f o r m s t o t h e w o r k s p a c e c o n n e c t i n g s o u r c e      

o b j e c t t o e a c h t r a n s f o r m .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b , s e l e c t t h e        X M L   

 P i p e l i n e     t r a n s f o r m i c o n a n d d r a g i t t o t h e d a t a o w w o r k s p a c e .  

 b ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e     T r a n s f o r m s      t a b , s e l e c t t h e        X M L    P i p e l i n e     t r a n s f o r m i c o n a s e c o n d t i m e a n d d r a g i t t o t h e d a t a o w        

w o r k s p a c e .  

c ) C o n n e c t t h e s o u r c e f o r m a t      P u r c h a s e O r d e r s _ F o r m a t        t o t h e r s t    

X M L P i p e l i n e t r a n s f o r m b y s e l e c t i n g t h e s o u r c e f o r m a t a n d h o l d i n g      

d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e r s t X M L P i p e l i n e      

t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

N o t e :      T h i s X M L P i p e l i n e t r a n s f o r m h a s t h e n a m e      

 X M L _ P i p e l i n e     . 

d ) C o n n e c t t h e s o u r c e f o r m a t      P u r c h a s e O r d e r s _ F o r m a t        t o t h e      

s e c o n d X M L P i p e l i n e t r a n s f o r m b y s e l e c t i n g t h e s o u r c e f o r m a t a n d      

h o l d i n g d o w n t h e m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e s e c o n d X M L        

P i p e l i n e t r a n s f o r m . T h e n r e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e      

c o n n e c t i o n .  

N o t e :      T h i s X M L P i p e l i n e t r a n s f o r m h a s t h e n a m e      

 X M L _ P i p e l i n e _ 1     . 

5 . I n t h e t r a n s f o r m e d i t o r o f t h e r s t X M L P i p e l i n e , m a p t h e s e c o l u m n s :  

C o n t i n u e d o n n e x t p a g e      

4 0 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 425: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 425/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

a n d t h e e n t i r e r e p e a t a b l e s c h e m a f r o m t h e i n p u t s c h e m a t o t h e o u t p u t s c h e m a .  

a ) D o u b l e - c l i c k t h e r s t X M L P i p e l i n e t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) F r o m t h e     S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g t h e e l d s b e l o w t o      

t h e     S c h e m a O u t      w o r k s p a c e .  

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

c ) I n t h e        S c h e m a I n        w o r k s p a c e , l o c a t e , s e l e c t a n d d r a g t h e        i t e m        r e p e a t a b l e s c h e m a t o t h e        S c h e m a O u t      w o r k s p a c e .  

d ) S e l e c t      B a c k        t o c l o s e t h e e d i t o r .  

6 . I n t h e t r a n s f o r m e d i t o r o f t h e s e c o n d X M L P i p e l i n e , m a p t h e s e c o l u m n s :  

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

t o t a l P O s t o t a l P O s    

a ) D o u b l e - c l i c k t h e s e c o n d X M L P i p e l i n e t r a n s f o r m t o o p e n t h e e d i t o r .  

 b ) F r o m t h e     S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g t h e e l d s b e l o w t o      

t h e     S c h e m a O u t      w o r k s p a c e .  

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      t o t a l P O s t o t a l P O s    

c ) S e l e c t      B a c k        t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 0 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 426: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 426/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

7 . A d d a Q u e r y t r a n s f o r m t o t h e d a t a o w a n d c o n n e c t b o t h X M L P i p e l i n e      

t r a n s f o r m s t o t h e Q u e r y t r a n s f o r m . I n t h e Q u e r y t r a n s f o r m , m a p b o t h      

c o l u m n s a n d t h e r e p e a t a b l e s c h e m a f r o m t h e r s t X M L P i p e l i n e t r a n s f o r m          f r o m t h e i n p u t s c h e m a t o t h e o u t p u t s c h e m a . I n a d d i t i o n , m a p t h e        t o t a l P O s    

c o l u m n f r o m t h e s e c o n d X M L P i p e l i n e t r a n s f o r m .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t b o t h X M L P i p e l i n e t r a n s f o r m s t o t h e Q u e r y t r a n s f o r m b y   

s e l e c t i n g e a c h X M L P i p e l i n e t r a n s f o r m a n d h o l d i n g d o w n t h e m o u s e      

 b u t t o n . T h e n d r a g t h e c u r s o r t o t h e M e r g e t r a n s f o r m a n d r e l e a s e t h e   

m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

c ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n i t s e d i t o r .  

d ) F r o m t h e        S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g t h e e l d s f r o m t h e r s t    X M L P i p e l i n e t r a n s f o r m t o t h e        S c h e m a O u t      w o r k s p a c e .  

S c h e m a I n S c h e m a O u t    

c u s t o m e r N a m e c u s t o m e r N a m e      

o r d e r D a t e o r d e r D a t e      

i t e m ( r e p e a t a b l e s c h e m a * ) i t e m ( r e p e a t a b l e s c h e m a * )    

H i n t :      * T h e t e r m “ r e p e a t a b l e s c h e m a ” d o e s n o t a p p e a r i n e i t h e r    

t h e     S c h e m a I n        o r t h e        S c h e m a O u t      w o r k s p a c e s . T h e c o l u m n      i t e m          i s i d e n t i e d a s r e p e a t a b l e f r o m t h e i c o n a s s o c i a t e d w i t h      

i t . 

e ) F r o m t h e        S c h e m a I n        w o r k s p a c e , s e l e c t a n d d r a g t h i s e l d f r o m t h e      

s e c o n d X M L P i p e l i n e t r a n s f o r m t o t h e        S c h e m a O u t      w o r k s p a c e .  

S c h e m a I n S c h e m a O u t    

t o t a l P O s t o t a l P O s    

f ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k t h e        i t e m ( r e p e a t a b l e      

s c h e m a * )      a n d c h o o s e t h e o p t i o n        U n n e s t     . 

H i n t :      * T h e t e r m “ r e p e a t a b l e s c h e m a ” d o e s n o t a p p e a r i n e i t h e r    

t h e     S c h e m a I n        o r t h e        S c h e m a O u t      w o r k s p a c e s . T h e c o l u m n      

i t e m          i s i d e n t i e d a s r e p e a t a b l e f r o m t h e i c o n a s s o c i a t e d w i t h      

i t . 

C o n t i n u e d o n n e x t p a g e      

4 0 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 427: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 427/472

B O D S 1 0 L e s s o n : U s i n g t h e X M L P i p e l i n e T r a n s f o r m          

g ) I n t h e t r a n s f o r m e d i t o r o f t h e Q u e r y t r a n s f o r m , s e l e c t t h e        W H E R E          t a b a n d      

i n s e r t a c l a u s e t o j o i n t h e o u t p u t s f r o m t h e t w o X M L P i p e l i n e t r a n s f o r m s    

o n t h e        c u s t o m e r N a m e        c o l u m n        X M L _ P i p e l i n e . c u s t o m e r N a m e =      X M L _ P i p e l i n e _ 1 . c u s t o m e r N a m e        . 

h ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

8 . A d d a t a r g e t t e m p l a t e t a b l e        I t e m _ P O s        i n t h e D e l t a d a t a s t o r e a n d c o n n e c t i t    

t o t h e Q u e r y T r a n s f o r m . E x e c u t e t h e        A l p h a _ P u r c h a s e _ O r d e r s _ J o b      w i t h t h e d e f a u l t e x e c u t i o n p r o p e r t i e s .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

 b ) I n t h e     C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      I t e m _ P O s        a s t h e t e m p l a t e      

t a b l e n a m e .  

c ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t .  

d ) S e l e c t      O K      . 

e ) C o n n e c t t h e X M L P i p e l i n e t r a n s f o r m s t o t h e t a r g e t t a b l e b y s e l e c t i n g      

e a c h X M L P i p e l i n e t r a n s f o r m a n d w h i l e h o l d i n g d o w n t h e m o u s e      

 b u t t o n , d r a g t o t h e t a r g e t t a b l e . R e l e a s e t h e b u t t o n t o c r e a t e t h e l i n k . 

f ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ P u r c h a s e _ O r -      d e r s _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

g ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n      

s a v e d . S e l e c t      O K     . 

h ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

i ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t t a b l e      

 b y s e l e c t i n g t h e m a g n i f y i n g g l a s s b u t t o n o n t h e t a r g e t t a b l e . A l a r g e   

V i e w D a t a        p a n e a p p e a r s b e n e a t h t h e c u r r e n t w o r k s p a c e a r e a .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 0 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 428: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 428/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e X M L P i p e l i n e t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n c o n s t r u c t i n g n e s t e d s c h e m a s f o r y o u r t a r g e t , r e f e r    

t o t h e        D a t a S e r v i c e s D e s i g n e r G u i d e        . 

4 0 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 429: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 429/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m          

( O p t i o n a l )    

L e s s o n O v e r v i e w          

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . 

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

B u s i n e s s E x a m p l e      

D a t a I n t e g r a t o r t r a n s f o r m s a r e u s e d t o e n h a n c e y o u r d a t a i n t e g r a t i o n p r o j e c t s    

 b e y o n d t h e c o r e f u n c t i o n a l i t y o f t h e p l a t f o r m t r a n s f o r m s . I n y o u r p r o j e c t s , y o u   

e n c o u n t e r X M L d a t a w i t h r e p e a t e d n o d e s , h i e r a r c h y d a t a , o r s o u r c e s o f d a t a      

w h e r e t h e r e a r e e i t h e r t o o m a n y e l d s o r n o t e n o u g h e l d s . Y o u n d t h a t t h e      

 p l a t f o r m t r a n s f o r m s d o n o t p r o v i d e e n o u g h e x i b i l i t y a n d s o y o u t u r n t o t h e   

D a t a I n t e g r a t o r - s p e c i c t r a n s f o r m s f o r a s s i s t a n c e . H e r e y o u e n c o u n t e r a d a t a      

s o u r c e w h i c h s t r u c t u r e s i t s d a t a i n a h i e r a r c h y a n d y o u n e e d t o l o a d i t t o a a t    

s t r u c t u r e . Y o u u s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m t o p r o d u c e a h o r i z o n t a l l y -    

o r v e r i t i c a l l y - a t t e n e d s t r u c t u r e .  

U s i n g t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

T h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m e n a b l e s y o u t o b r e a k d o w n h i e r a r c h i c a l t a b l e      

s t r u c t u r e s i n t o a s i n g l e t a b l e t o s p e e d u p d a t a a c c e s s .  

E x p l a i n i n g t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

T h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m c o n s t r u c t s a c o m p l e t e h i e r a r c h y f r o m          

 p a r e n t / c h i l d r e l a t i o n s h i p s , a n d t h e n p r o d u c e s a d e s c r i p t i o n o f t h e h i e r a r c h y i n   

h o r i z o n t a l l y – o r v e r t i c a l l y – a t t e n e d f o r m a t .  

F o r h o r i z o n t a l l y – a t t e n e d h i e r a r c h i e s , e a c h r o w o f t h e o u t p u t d e s c r i b e s a s i n g l e      

n o d e i n t h e h i e r a r c h y a n d t h e p a t h t o t h a t n o d e f r o m t h e r o o t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 0 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 430: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 430/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

F i g u r e 1 0 7 : H i e r a r c h y F l a t t e n i n g T r a n s f o r m 1      

F o r v e r t i c a l l y – a t t e n e d h i e r a r c h i e s , e a c h r o w o f t h e o u t p u t d e s c r i b e s a s i n g l e      

r e l a t i o n s h i p b e t w e e n a n c e s t o r a n d d e s c e n d e n t a n d t h e n u m b e r o f n o d e s t h e      

r e l a t i o n s h i p i n c l u d e s . T h e r e i s a r o w i n t h e o u t p u t f o r e a c h n o d e a n d a l l o f      

t h e d e s c e n d a n t s o f t h a t n o d e . E a c h n o d e i s c o n s i d e r e d i t s o w n d e s c e n d e n t a n d ,    

t h e r e f o r e , i s l i s t e d o n e t i m e a s b o t h a n c e s t o r a n d d e s c e n d e n t .  

F i g u r e 1 0 8 : H i e r a r c h y F l a t t e n i n g T r a n s f o r m 2      

T h e n e x t s e c t i o n g i v e s a b r i e f d e s c r i p t i o n o f t h e f u n c t i o n , d a t a i n p u t r e q u i r e m e n t s ,    

o p t i o n s , a n d d a t a o u t p u t r e s u l t s f o r t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m .  

I n p u t s / O u t p u t s    

4 0 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 431: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 431/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

D a t a i n p u t i n c l u d e s r o w s d e s c r i b i n g i n d i v i d u a l p a r e n t – c h i l d r e l a t i o n s h i p s . E a c h      

r o w m u s t c o n t a i n t w o c o l u m n s t h a t f u n c t i o n a s t h e k e y s o f t h e p a r e n t a n d c h i l d      

i n t h e r e l a t i o n s h i p . T h e i n p u t c a n a l s o i n c l u d e c o l u m n s c o n t a i n i n g a t t r i b u t e s    d e s c r i b i n g t h e p a r e n t a n d / o r c h i l d .  

T h e i n p u t d a t a s e t c a n n o t i n c l u d e r o w s w i t h o p e r a t i o n s o t h e r t h a n N O R M A L , b u t    

c a n c o n t a i n h i e r a r c h i c a l d a t a .  

F o r a l i s t i n g o f t h e t a r g e t c o l u m n s , c o n s u l t t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

O p t i o n s    

T h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m o f f e r s s e v e r a l o p t i o n s :  

F i g u r e 1 0 9 : H i e r a r c h y F l a t t e n i n g T r a n s f o r m E d i t o r      

O p t i o n D e s c r i p t i o n      

P a r e n t c o l u m n      

  I d e n t i e s t h e c o l u m n o f t h e s o u r c e d a t a t h a t c o n t a i n s t h e      

 p a r e n t i d e n t i e r i n e a c h p a r e n t - c h i l d r e l a t i o n s h i p . 

C h i l d c o l u m n        I d e n t i e s t h e c o l u m n i n t h e s o u r c e d a t a t h a t c o n t a i n s t h e      

c h i l d i d e n t i e r i n e a c h p a r e n t - c h i l d r e l a t i o n s h i p .  

F l a t t e n i n g t y p e        I n d i c a t e s h o w t h e h i e r a r c h i c a l r e l a t i o n s h i p s a r e d e s c r i b e d      

i n t h e o u t p u t .  

U s e m a x i m u m          

l e n g t h p a t h s    

I n d i c a t e s w h e t h e r l o n g e s t o r s h o r t e s t p a t h s a r e u s e d t o      

d e s c r i b e r e l a t i o n s h i p s b e t w e e n d e s c e n d a n t s a n d a n c e s t o r s    

w h e n t h e d e s c e n d e n t h a s m o r e t h a n o n e p a r e n t .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 0 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 432: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 432/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

M a x i m u m d e p t h I n d i c a t e s t h e m a x i m u m d e p t h o f t h e h i e r a r c h y .  

P a r e n t a t t r i b u t e l i s t      I d e n t i e s a c o l u m n o r c o l u m n s t h a t a r e a s s o c i a t e d w i t h t h e      

 p a r e n t c o l u m n . 

C h i l d a t t r i b u t e l i s t      I d e n t i e s a c o l u m n o r c o l u m n s t h a t a r e a s s o c i a t e d w i t h      

t h e c h i l d c o l u m n .  

R u n a s a s e p a r a t e      

 p r o c e s s  

C r e a t e s a s e p a r a t e s u b d a t a o w p r o c e s s f o r t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m w h e n D a t a S e r v i c e s e x e c u t e s t h e      

d a t a o w .  

T h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m c a n a l s o d e a l w i t h c i r c u l a r d e p e n d e n c i e s .  

4 0 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 433: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 433/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

E x e r c i s e 2 5 : U s i n g t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m ( O p t i o n a l )    E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

B u s i n e s s E x a m p l e      

T h e e m p l o y e e t a b l e i n t h e A l p h a d a t a s t o r e c o n t a i n s e m p l o y e e d a t a i n a r e c u r s i v e      

h i e r a r c h y . T o d e t e r m i n e a l l r e p o r t s , d i r e c t o r i n d i r e c t , t o a g i v e n e x e c u t i v e o r    

m a n a g e r w o u l d r e q u i r e c o m p l e x S Q L s t a t e m e n t s t o t r a v e r s e t h e h i e r a r c h y .  

T a s k :    

F l a t t e n t h e E m p l o y e e t a b l e d a t a t o a l l o w m o r e e f f e c t i v e r e p o r t i n g o n d a t a      

c o n t a i n i n g a r e c u r s i v e h i e r a r c h y f o r a l l r e p o r t s , d i r e c t o r i n d i r e c t , t o a g i v e n      

e x e c u t i v e o r m a n a g e r .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ E m p l o y e e s _ R e p o r t _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ R e p o r t _ D F     . 

2 . I n t h e w o r k s p a c e f o r      A l p h a _ E m p l o y e e s _ R e p o r t _ D F        , a d d t h e      

E m p l o y e e        t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t . C r e a t e a      

t a r g e t t e m p l a t e t a b l e        M a n a g e r _ E m p s        i n t h e H R _ d a t a m a r t .  

3 . A d d a H i e r a r c h y F l a t t e n i n g t r a n s f o r m i n t h e w o r k s p a c e t o t h e r i g h t o f t h e      

s o u r c e t a b l e a n d c o n n e c t t h e s o u r c e t a b l e t o t h e t r a n s f o r m . I n t h e t r a n s f o r m          

e d i t o r , s e l e c t t h e o p t i o n s :  

O p t i o n s V a l u e      

F l a t t e n i n g T y p e V e r t i c a l    

P a r e n t C o l u m n R E P O R T S T O        

C h i l d C o l u m n E M P L O Y E E I D        

C h i l d A t t r i b u t e L i s t L A S T N A M E        F I R S T N A M E        

B I R T H D A T E        

H I R E D A T E        

A D D R E S S      

C I T Y I D        

R E G I O N I D        

C O U N T R Y I D        

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 0 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 434: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 434/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

P H O N E        

E M A I L        

D E P A R T M E N T I D        L a s t U p d a t e      

d i s c h a r g e _ d a t e      

4 . A d d a Q u e r y t r a n s f o r m i n t h e w o r k s p a c e t o t h e r i g h t o f t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m a n d c o n n e c t t h e t r a n s f o r m s .  

5 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s .  

6 . I n t h e Q u e r y t r a n s f o r m , m a p i n p u t c o l u m n s t o o u t p u t c o l u m n s . C r e a t e      

l o o k u p s f o r t h e o u t p u t e l d s      M A N A G E R _ N A M E          a n d     D E P A R T M E N T          . 

C o n c a t e n a t e t h e e m p l o y e e ' s l a s t n a m e a n d r s t n a m e s e p a r a t e d b y a c o m m a      

f o r t h e o u t p u t c o l u m n        E M P L O Y E E _ N A M E          . A d d a        W H E R E          c l a u s e t o r e t u r n      o n l y r o w w i t h a d e p t h g r e a t e r t h a n z e r o .  

7 . E x e c u t e t h e        A l p h a _ E m p l o y e e s _ R e p o r t _ J o b        w i t h t h e d e f a u l t    

e x e c u t i o n p r o p e r t i e s .  

4 1 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 435: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 435/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

S o l u t i o n 2 5 : U s i n g t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m ( O p t i o n a l )    T a s k :    

F l a t t e n t h e E m p l o y e e t a b l e d a t a t o a l l o w m o r e e f f e c t i v e r e p o r t i n g o n d a t a      

c o n t a i n i n g a r e c u r s i v e h i e r a r c h y f o r a l l r e p o r t s , d i r e c t o r i n d i r e c t , t o a g i v e n      

e x e c u t i v e o r m a n a g e r .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l -    p h a _ E m p l o y e e s _ R e p o r t _ J o b     c o n t a i n i n g a d a t a o w c a l l e d      

 A l p h a _ E m p l o y e e s _ R e p o r t _ D F     . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ E m p l o y e e s _ R e p o r t _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ E m p l o y e e s _ R e p o r t _ J o b        b y d o u b l e - c l i c k i n g      

i t . 

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ E m p l o y e e s _ R e p o r t _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

2 . I n t h e w o r k s p a c e f o r      A l p h a _ E m p l o y e e s _ R e p o r t _ D F        , a d d t h e      

E m p l o y e e        t a b l e f r o m t h e A l p h a d a t a s t o r e a s t h e s o u r c e o b j e c t . C r e a t e a      

t a r g e t t e m p l a t e t a b l e        M a n a g e r _ E m p s        i n t h e H R _ d a t a m a r t .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        D a t a s t o r e s      t a b a n d t h e n s e l e c t    

t h e     E m p l o y e e        t a b l e f r o m t h e A l p h a d a t a s t o r e .  

 b ) S e l e c t a n d d r a g t h e o b j e c t t o t h e d a t a o w w o r k s p a c e a n d i n t h e c o n t e x t  

m e n u , c h o o s e t h e o p t i o n        M a k e S o u r c e        . 

c ) I n t h e T o o l P a l e t t e , s e l e c t t h e        T e m p l a t e T a b l e        i c o n a n d s e l e c t t h e      w o r k s p a c e t o a d d a n e w t e m p l a t e t a b l e t o t h e d a t a o w .  

d ) I n t h e        C r e a t e T e m p l a t e        d i a l o g b o x , e n t e r      M a n a g e r _ E m p s        a s t h e      

t e m p l a t e t a b l e n a m e .  

e ) I n t h e        I n d a t a s t o r e        d r o p - d o w n l i s t , s e l e c t t h e        D e l t a        d a t a s t o r e a s t h e      

t e m p l a t e t a b l e d e s t i n a t i o n t a r g e t .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 436: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 436/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

3 . A d d a H i e r a r c h y F l a t t e n i n g t r a n s f o r m i n t h e w o r k s p a c e t o t h e r i g h t o f t h e      

s o u r c e t a b l e a n d c o n n e c t t h e s o u r c e t a b l e t o t h e t r a n s f o r m . I n t h e t r a n s f o r m          

e d i t o r , s e l e c t t h e o p t i o n s :  

O p t i o n s V a l u e      

F l a t t e n i n g T y p e V e r t i c a l    

P a r e n t C o l u m n R E P O R T S T O        

C h i l d C o l u m n E M P L O Y E E I D        

C h i l d A t t r i b u t e L i s t L A S T N A M E        

F I R S T N A M E        

B I R T H D A T E        

H I R E D A T E        

A D D R E S S      C I T Y I D        

R E G I O N I D        

C O U N T R Y I D        

P H O N E        

E M A I L        

D E P A R T M E N T I D        

L a s t U p d a t e      

d i s c h a r g e _ d a t e      

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        T r a n s f o r m s      t a b .  

T h e n s e l e c t a n d d r a g t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m t o t h e d a t a       o w w o r k s p a c e t o t h e r i g h t o f t h e Q u e r y t r a n s f o r m s .  

 b ) C o n n e c t t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m t o t h e s o u r c e t a b l e b y   

s e l e c t i n g t h e s o u r c e t a b l e a n d h o l d i n g d o w n t h e m o u s e b u t t o n . T h e n      

d r a g t h e c u r s o r t o t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m a n d r e l e a s e t h e      

m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n . D o u b l e - c l i c k t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m t o o p e n t h e e d i t o r .  

c ) I n t h e t r a n s f o r m e d i t o r f o r t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m , s e l e c t    

t h e o p t i o n s b y d r a g g i n g c o l u m n s f r o m t h e i n p u t s c h e m a i n t o t h e      

a p p r o p r i a t e w o r k s p a c e .  

O p t i o n s V a l u e      

F l a t t e n i n g T y p e V e r t i c a l ( s e l e c t w i t h d r o p d o w n      

l i s t )   

P a r e n t C o l u m n R E P O R T S T O        

C h i l d C o l u m n E M P L O Y E E I D        

C o n t i n u e d o n n e x t p a g e      

4 1 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 437: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 437/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

C h i l d A t t r i b u t e L i s t L A S T N A M E        

F I R S T N A M E        

B I R T H D A T E        H I R E D A T E        

A D D R E S S      

C I T Y I D        

R E G I O N I D        

C O U N T R Y I D        

P H O N E        

E M A I L        

D E P A R T M E N T I D        

L a s t U p d a t e      

d i s c h a r g e _ d a t e      

d ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

4 . A d d a Q u e r y t r a n s f o r m i n t h e w o r k s p a c e t o t h e r i g h t o f t h e H i e r a r c h y      

F l a t t e n i n g t r a n s f o r m a n d c o n n e c t t h e t r a n s f o r m s .  

a ) I n t h e T o o l P a l e t t e , s e l e c t t h e        Q u e r y t r a n s f o r m          i c o n a n d s e l e c t t h e      

w o r k s p a c e t o a d d a Q u e r y t e m p l a t e t o t h e d a t a o w .  

 b ) C o n n e c t t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m t o t h e Q u e r y t r a n s f o r m b y   

s e l e c t i n g t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m a n d h o l d i n g d o w n t h e      

m o u s e b u t t o n , d r a g t h e c u r s o r t o t h e Q u e r y t r a n s f o r m . T h e n r e l e a s e t h e      

m o u s e b u t t o n t o c r e a t e t h e c o n n e c t i o n .  

c ) D o u b l e - c l i c k t h e Q u e r y t r a n s f o r m t o o p e n t h e t r a n s f o r m e d i t o r .  

5 . I n t h e t r a n s f o r m e d i t o r f o r t h e Q u e r y t r a n s f o r m , c r e a t e o u t p u t c o l u m n s .  

a ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        Q u e r y      t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      a n d e n t e r t h e I t e m n a m e        M A N A G A E R I D        w i t h D a t a      

T y p e        v a r c h a r ( 1 0 )      . 

 b ) I n t h e     S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        M A N A G E R I D        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        M A N A G E R N A M E        w i t h D a t a T y p e      

v a r c h a r ( 5 0 )      . 

c ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        M A N A G E R N A M E        t o c h o o s e      t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        E M P L O Y E E I D        w i t h D a t a T y p e      

v a r c h a r ( 1 0 )      . 

d ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        E M P L O Y E E I D        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        E M P L O Y E E _ N A M E        w i t h D a t a T y p e      

v a r c h a r ( 1 0 2 )      . 

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 438: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 438/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

e ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        E M P L O Y E E _ N A M E        t o   

c h o o s e t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        D E P A R T M E N T        w i t h D a t a T y p e      v a r c h a r ( 5 0 )      . 

f ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        D E P A R T M E N T        t o c h o o s e      

t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        H I R E D A T E        w i t h D a t a T y p e      

d a t e t i m e        . 

g ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        H I R E D A T E        t o c h o o s e      

t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        L A S T U P D A T E        w i t h D a t a T y p e      

d a t e t i m e        . 

h ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        L A S T U P D A T E        t o c h o o s e      t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        P H O N E        w i t h D a t a T y p e      

v a r c h a r ( 2 0 )      . 

i ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        P H O N E        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        E M A I L        w i t h D a t a T y p e        v a r c h a r ( 5 0 )      . 

 j ) I n t h e     S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        E M A I L        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        A D D R E S S        w i t h D a t a T y p e        v a r c h a r ( 2 0 0 )      . 

k ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        A D D R E S S        t o c h o o s e t h e      o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        C I T Y        w i t h D a t a T y p e        v a r c h a r ( 5 0 )      . 

l ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        C I T Y        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        R E G I O N        w i t h D a t a T y p e        v a r c h a r ( 5 0 )      . 

m ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        R E G I O N        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        C O U N T R Y        w i t h D a t a T y p e        v a r c h a r ( 5 0 )      . 

n ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        C O U N T R Y        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n       B e l o w      a n d e n t e r t h e I t e m n a m e        D I S C H A R G E _ D A T E        w i t h D a t a T y p e      

d a t e t i m e        . 

o ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        D I S C H A R G E _ D A T E        t o   

c h o o s e t h e o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e      

o p t i o n        B e l o w          a n d e n t e r t h e I t e m n a m e        D E P T H        w i t h D a t a T y p e        i n t     . 

C o n t i n u e d o n n e x t p a g e      

4 1 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 439: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 439/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

 p ) I n t h e     S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        D E P T H        t o c h o o s e t h e o p t i o n      

 N e w O u t p u t I t e m      . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n        B e l o w          a n d   

e n t e r t h e I t e m n a m e        R O O T _ F L A G        w i t h D a t a T y p e        i n t     . q ) I n t h e        S c h e m a O u t      w o r k s p a c e , r i g h t - c l i c k        R O O T _ F L A G        t o c h o o s e t h e      

o p t i o n        N e w O u t p u t I t e m          . I n t h e n e x t d i a l o g b o x , c h o o s e t h e o p t i o n      

 B e l o w      a n d e n t e r t h e I t e m n a m e        L E A F _ F L A G        w i t h D a t a T y p e        i n t     . 

6 . I n t h e Q u e r y t r a n s f o r m , m a p i n p u t c o l u m n s t o o u t p u t c o l u m n s . C r e a t e      

l o o k u p s f o r t h e o u t p u t e l d s      M A N A G E R _ N A M E          a n d     D E P A R T M E N T          . 

C o n c a t e n a t e t h e e m p l o y e e ' s l a s t n a m e a n d r s t n a m e s e p a r a t e d b y a c o m m a      

f o r t h e o u t p u t c o l u m n        E M P L O Y E E _ N A M E          . A d d a        W H E R E          c l a u s e t o r e t u r n      

o n l y r o w w i t h a d e p t h g r e a t e r t h a n z e r o .  

a ) M a p i n p u t c o l u m n s t o o u t p u t c o l u m n s b y d r a g g i n g a n o u t p u t c o l u m n      

a n d d r o p p i n g i t o n t h e c o r r e s p o n d i n g i n p u t c o l u m n :  

S c h e m a I n S c h e m a O u t    

A N C E S T O R M A N A G E R I D        

D E S C E N D A N T E M P L O Y E E I D        

D E P T H D E P T H        

R O O T _ F L A G R O O T _ F L A G        

L E A F _ F L A G L E A F _ F L A G        

C _ A D D R E S S A D D R E S S      

C _ d i s c h a r g e _ d a t e D I S C H A R G E _ D A T E        

C _ E M A I L E M A I L        

C _ H I I R E D A T E H I R E D A T E        

C _ L a s t U p d a t e L A S T U P D A T E        

C _ P H O N E P H O N E        

 b ) I n t h e     M A P P I N G          t a b o f t h e        M A N A G E R _ N A M E          o u t p u t e l d , s e l e c t    

t h e     F u n c t i o n        b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n t h e      

c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      s e l e c t t h e        N e x t      b u t t o n .  

I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . E M P L O Y E E      

C o n d i t i o n      

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 440: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 440/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

C o l u m n s i n l o o k u p t a b l e         L A S T N A M E      

O p . ( & )       =   

E x p r e s s i o n         H I E R A R C H Y _ F L A T T E N -      I N G . A N C E S T O R        

O u t p u t    

C o l u m n i n l o o k u p t a b l e         E M P L O Y E E I D      

c ) I n t h e        M A P P I N G          t a b o f t h e        D E P A R T M E N T          o u t p u t e l d , s e l e c t t h e      

 F u n c t i o n     b u t t o n a n d i n t h e        S e l e c t F u n c t i o n        d i a l o g b o x , o p e n t h e      

c a t e g o r y o f “ D a t a b a s e F u n c t i o n s ” .  

F r o m t h e l i s t o f f u n c t i o n n a m e s , s e l e c t t h e        l o o k u p _ e x t      f u n c t i o n a n d      

s e l e c t t h e        N e x t      b u t t o n .  I n t h e        L o o k u p _ e x t - S e l e c t P a r a m e t e r s      d i a l o g b o x , e n t e r t h e p a r a m e t e r s :  

F i e l d / O p t i o n V a l u e      

L o o k u p t a b l e         A L P H A . S O U R C E . D E P A R T -       M E N T   

C o n d i t i o n      

C o l u m n s i n l o o k u p t a b l e         D E P A R T M E N T N A M E      

O p . ( & )       =   

E x p r e s s i o n         H I E R A R C H Y _ F L A T T E N -      I N G . C _ D E P A R T M E N T I D      

O u t p u t    

C o l u m n i n l o o k u p t a b l e         D E P A R T M E N T I D      

d ) S e l e c t t h e o u t p u t c o l u m n        E M P L O Y E E _ N A M E          a n d s e l e c t t h e        M A P P I N G        

t a b a n d e n t e r t h e e x p r e s s i o n :  

H i e r a r c h y _ F l a t t e n i n g . C _ L A S T N A M E | | ' , ' | |    H i e r a r c h y _ F l a t t e n i n g . C _ F I R S T N A M E      

e ) I n t h e Q u e r y t r a n s f o r m , s e l e c t t h e        W H E R E          t a b a n d e n t e r t h e e x p r e s s i o n :  

H i e a r c h y _ F l a t t e n i n g . D E P T H > 0      

f ) S e l e c t t h e        B a c k        i c o n t o c l o s e t h e e d i t o r .  

C o n t i n u e d o n n e x t p a g e      

4 1 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 441: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 441/472

B O D S 1 0 L e s s o n : U s i n g t h e H i e r a r c h y F l a t t e n i n g T r a n s f o r m ( O p t i o n a l )    

7 . E x e c u t e t h e        A l p h a _ E m p l o y e e s _ R e p o r t _ J o b        w i t h t h e d e f a u l t    

e x e c u t i o n p r o p e r t i e s .  

a ) I n t h e O m e g a p r o j e c t a r e a , r i g h t - c l i c k o n t h e        A l p h a _ E m p l o y -      e e s _ R e p o r t _ J o b        a n d s e l e c t t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) R e t u r n t o t h e d a t a o w w o r k s p a c e a n d v i e w t h e d a t a i n t h e t a r g e t t a b l e      

 b y s e l e c t i n g t h e M a g n i f y i n g G l a s s i c o n o n t h e t a r g e t t a b l e . 

N o t e :      1 7 9 r o w s a r e w r i t t e n t o t h e t a r g e t t a b l e .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 442: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 442/472

U n i t 9 : U s i n g D a t a I n t e g r a t o r P l a t f o r m s B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

R e l a t e d I n f o r m a t i o n      

• F o r m o r e i n f o r m a t i o n o n t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m s e e      

“ T r a n s f o r m s ” C h a p t e r 5 i n t h e        D a t a S e r v i c e s R e f e r e n c e G u i d e        . 

4 1 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 443: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 443/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• U s i n g t h e D a t a I n t e g r a t o r t r a n s f o r m s    

• U s e t h e P i v o t t r a n s f o r m          

• D e s c r i b e p e r f o r m a n c e o p t i m i z a t i o n      

• U s e t h e D a t a T r a n s f e r t r a n s f o r m          

• V i e w S Q L g e n e r a t e d b y a d a t a o w        

• U s e t h e X M L P i p e l i n e t r a n s f o r m          

• U s e t h e H i e r a r c h y F l a t t e n i n g t r a n s f o r m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 1 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 444: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 444/472

U n i t S u m m a r y B O D S 1 0      

4 2 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 445: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 445/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 446: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 446/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 447: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 447/472

U n i t 1 0        U s i n g T e x t D a t a P r o c e s s i n g      

U n i t O v e r v i e w          

I n t h i s I n f o r m a t i o n T e c h n o l o g y a g e , w e a r e a l l f a m i l i a r w i t h t h e m a s s i v e e x p l o s i o n      

o f d i g i t a l d a t a t h a t w e h a v e s e e n i n t h e l a s t d e c a d e s . I n 2 0 0 3 , t h e r e w e r e 5      

e x a b y t e s o f d a t a , t w i c e t h e a m o u n t f r o m t h r e e y e a r s e a r l i e r ( U C B e r k e l e y ) . D i g i t a l    i n f o r m a t i o n c r e a t e d , c a p t u r e d a n d r e p l i c a t e d w o r l d w i d e h a s g r o w n t e n f o l d i n v e      

y e a r s ( I D C 2 0 0 8 ) . 9 5 % o f d i g i t a l d a t a i s u n s t r u c t u r e d ( I D C 2 0 0 7 ) . T h i s i s t h e      

n a t i v e i n t e g r a t i o n o f t h e t e x t a n a l y t i c s t e c h n o l o g y a c q u i r e d i n 2 0 0 7 . T h e E n t i t y      

E x t r a c t i o n t r a n s f o r m i s a n e w f e a t u r e o f D a t a S e r v i c e s t o b r i n g t e x t d a t a o n t o t h e      

 p l a t f o r m a n d p r e p a r i n g i t f o r q u e r y , a n a l y t i c s , a n d r e p o r t i n g . 

U n i t O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s u n i t , y o u w i l l b e a b l e t o :  

• U s i n g t h e E n t i t y E x t r a c t i o n t r a n s f o r m          

U n i t C o n t e n t s      

L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 2      

E x e r c i s e 2 6 : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m . . . . . . . . . . . . . . . . . . . 4 3 5      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 2 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 448: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 448/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

L e s s o n O v e r v i e w          

T e x t D a t a P r o c e s s i n g c a n p a r s e d i g i t a l u n s t r u c t u r e d d a t a t o e x t r a c t m e a n i n g f r o m i t    

a n d t r a n s f o r m i t i n t o s t r u c t u r e d d a t a t h a t c a n b e i n t e g r a t e d i n t o a d a t a b a s e . O n c e      

i n t h e d a t a b a s e , o t h e r B u s i n e s s I n t e l l i g e n c e t o o l s c a n b e u s e d t o s u p p o r t q u e r y ,    

a n a l y s i s , a n d r e p o r t i n g o n t h a t t e x t d a t a      

L e s s o n O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s l e s s o n , y o u w i l l b e a b l e t o :  

• U s i n g t h e E n t i t y E x t r a c t i o n t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y w a n t s w h i c h i s b e i n g p u b l i s h e d a b o u t y o u r c o m p a n y . A l o n g w i t h      

t h e g e n e r a l e x p l o s i o n o f d i g i t a l d a t a i n t h e I n f o r m a t i o n T e c h n o l o g y a g e , m a n y      

i n d i v i d u a l p i e c e s o f d i g i t a l d a t a a r e b e i n g p u b l i s h e d a b o u t y o u r c o m p a n y . T o      

g a i n b u s i n e s s i n s i g h t , d e r i v e i n c r e a s e d g o v e r n a n c e a n d p r o d u c t i v i t y f r o m t h i s    

u n s t r u c t u r e d d a t a , y o u w a n t t o e x a m i n e , p a r s e , s t o r e i t a n d p r e p a r e s t r a t e g i c      

r e p o r t s f o r y o u r c o m p a n y . Y o u m u s t c r e a t e a n e w b a t c h j o b u s i n g t h e n e w E n t i t y      

E x t r a c t i o n t r a n s f o r m i n D a t a S e r v i c e s a n d a p p l y i t t o t h i s d a t a .  

I n t h i s I n f o r m a t i o n T e c h n o l o g y a g e , w e a r e a l l f a m i l i a r w i t h t h e m a s s i v e e x p l o s i o n      

o f d i g i t a l d a t a t h a t w e h a v e s e e n i n t h e l a s t d e c a d e s . S o m e f a c t s a b o u t t h i s    e x p l o s i o n :  

• I n 2 0 0 3 , t h e r e w e r e 5 e x a b y t e s o f d a t a , t w i c e t h e a m o u n t f r o m t h r e e y e a r s    

e a r l i e r ( U C B e r k e l e y )    

• D i g i t a l i n f o r m a t i o n c r e a t e d , c a p t u r e d a n d r e p l i c a t e d w o r l d w i d e h a s g r o w n      

t e n f o l d i n v e y e a r s ( I D C 2 0 0 8 )    

• 9 5 % o f d i g i t a l d a t a i s u n s t r u c t u r e d ( I D C 2 0 0 7 )    

A l a r g e p e r c e n t a g e o f t h e d i g i t a l d a t a i s u n s t r u c t u r e d , a n d I D C e s t i m a t e s t h a t 9 5 %          

o f d i g i t a l d a t a i s u n s t r u c t u r e d . A d d i t i o n a l e s t i m a t e s :  

• 7 0 - 9 5 p e r c e n t o f a l l d a t a s t o r e d i s u n s t r u c t u r e d f o r m a t ( B u t l e r G r o u p )    

• 8 0 p e r c e n t o f b u s i n e s s i s c o n d u c t e d o n u n s t r u c t u r e d i n f o r m a t i o n ( G a r t n e r    

G r o u p )    

• U n s t r u c t u r e d d a t a d o u b l e s e v e r y t h r e e m o n t h s ( G a r t n e r G r o u p )    

• 7 m i l l i o n W e b p a g e s a r e a d d e d e v e r y d a y ( G a r t n e r G r o u p )    

T h e e m e r g e n c e o f o p e n s o u r c e p l a t f o r m s f o r u n s t r u c t u r e d c o n t e n t a l s o p o i n t t o t h e      

g e n e r a l r e c o g n i t i o n t h a t u n s t r u c t u r e d d a t a i s b e c o m i n g m o r e p r o m i n e n t .  

4 2 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 449: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 449/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

T h i s n e w f e a t u r e o f D a t a S e r v i c e s b r i n g i n g t e x t d a t a o n t o p l a t f o r m a n d p r e p a r i n g      

i t f o r q u e r y , a n a l y t i c s , a n d r e p o r t i n g . T h i s i s t h e n a t i v e i n t e g r a t i o n o f t h e t e x t    

a n a l y t i c s t e c h n o l o g y a c q u i r e d i n 2 0 0 7 . B e n e t s i n c l u d e :  

• E n h a n c e d B u s i n e s s I n s i g h t s : t e x t d a t a p r o c e s s i n g e x t e n d s E n t e r p r i s e      

I n f o r m a t i o n M a n a g e m e n t a n d B u s i n e s s I n t e l l i g e n c e i n i t i a t i v e s t o      

u n s t r u c t u r e d t e x t c o n t e n t , f o r i m p r o v e d q u a l i t y o f a n a l y s i s a n d r e p o r t i n g ,    

a n d c o m p e t i t i v e a d v a n t a g e .  

• I m p r o v e d G o v e r n a n c e : t e x t d a t a p r o c e s s i n g c a n b e d e p l o y e d a s p a r t o f a n      

i n i t i a t i v e f o r i m p r o v e d t r a n s p a r e n c y a n d o v e r s i g h t b y m o n i t o r i n g .  

• I n c r e a s e d P r o d u c t i v i t y : t e x t d a t a p r o c e s s i n g a u t o m a t e s t e d i o u s m a n u a l t a s k s    

l e a d i n g t o i m p r o v e d e f c i e n c y a n d c o s t r e d u c t i o n .  

T h i s s l i d e s h o w s a c o n c e p t u a l o v e r v i e w o f h o w t e x t d a t a p r o c e s s i n g w o r k s .  

C o n t e n t d e r i v e d f r o m s o u r c e s s u c h a s n o t e s e l d s , l e s y s t e m s , s p r e a d s h e e t s , o r    o t h e r r e p o s i t o r i e s . T h e c u r r e n t r e l e a s e s u p p o r t s t e x t d o c u m e n t s t h a t a r e h t m l , t x t ,    

o r X M L . T e x t d a t a p r o c e s s i n g t h e n p a r s e s t h e t e x t t o e x t r a c t m e a n i n g f r o m i t a n d      

t r a n s f o r m i t i n t o s t r u c t u r e d d a t a t h a t c a n b e i n t e g r a t e d i n t o a d a t a b a s e . O n c e i n      

t h e d a t a b a s e , o u r B I t o o l s c a n b e u s e d t o s u p p o r t q u e r y , a n a l y s i s , a n d r e p o r t i n g      

o n t h a t t e x t d a t a      

F i g u r e 1 1 0 : T e x t D a t a P r o c e s s i n g i n D a t a S e r v i c e s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 2 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 450: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 450/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

I n t h i s e x a m p l e , w e s e e h i g h l i g h t e d s o m e o f t h e e n t i t i e s a n d f a c t s t h a t T e x t D a t a      

P r o c e s s i n g c a n a u t o m a t i c a l l y i d e n t i f y , a n d o u t p u t a s s t r u c t u r e d i n f o r m a t i o n . F o r    

e x a m p l e , w e h a v e a p e r s o n n a m e , d a t e s , t i t l e s , o r g a n i z a t i o n n a m e s , a n d c o n c e p t s .  W e a l s o s e e l a r g e r m a t c h e s , a l s o k n o w n a s f a c t s o r r e l a t i o n s , u n d e r l i n e d h e r e . F o r    

i n s t a n c e , w e h a v e a n e x e c u t i v e j o b c h a n g e a n d a m e r g e r a n d a c q u i s i t i o n f a c t .  

F i g u r e 1 1 1 : T e x t D a t a P r o c e s s i n g C a p a b i l i t i e s      

T h e s e e x t r a c t i o n s b e c o m e m e t a d a t a o r t a g s a b o u t t h e c o n t e n t t h a t i s s t o r e d t o a      

r e p o s i t o r y a n d t e l l s u s t h e m e a n i n g o f t h e c o n t e n t , w i t h o u t m a n u a l p r o c e s s i n g .  

4 2 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 451: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 451/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

F i g u r e 1 1 2 : W h a t i s n e w i n T e x t D a t a P r o c e s s i n g      

T h e n a t i v e t e x t d a t a p r o c e s s i n g c a p a b i l i t y o f D a t a S e r v i c e s , w e s e e :  

• • T h e e n t i t y e x t r a c t i o n t r a n s f o r m s u p p o r t s a s e t o f p r e d e n e d e n t i t y t y p e s , a s    

w e l l a s c u s t o m e r e n t i t i e s , s e n t i m e n t s , a n d o t h e r p a c k a g e d r u l e s .  

• • E n t i t y e x t r a c t i o n c a n b e c u s t o m i z e d u s i n g a d i c t i o n a r y .  

• • B e c a u s e T e x t D a t a P r o c e s s i n g i s p a r t o f D a t a S e r v i c e s , t h e a d m i n i s t r a t i o n      

h a p p e n s v i a t h e D a t a S e r v i c e s D e s i g n e r , s o w e h a v e u n i e d i n s t a l l a t i o n ,    

a d m i n i s t r a t i o n , a n d o u t p u t .  

F o r c u s t o m e r s i n t e r e s t e d i n t e x t a n a l y t i c s , t h i s n a t i v e i n t e g r a t i o n p r o v i d e s a      

n u m b e r o f b e n e t s . O n e m a j o r a r e a i s t h e s e r v e r f e a t u r e s l i k e s e c u r i t y a n d b a t c h      

 p r o c e s s i n g , h e t e r o g e n e o u s d a t a b a s e s u p p o r t , a n d c o n n e c t i v i t y t o m a n y d i f f e r e n t  

s o u r c e s i n c l u d i n g S A P s y s t e m s . A n o t h e r a r e a o f b e n e t s i s t h e e a s e o f c r e a t i n g      

c o m b i n e d w o r k o w s w i t h D a t a I n t e g r a t o r a n d D a t a Q u a l i t y S e r v i c e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 2 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 452: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 452/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

F i g u r e 1 1 3 : K e y C o n c e p t s D e n e d      

T h i s s l i d e s h o w s t h e a r c h i t e c t u r e f o r t e x t d a t a p r o c e s s i n g .  

4 2 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 453: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 453/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

F i g u r e 1 1 4 : T e x t D a t a P r o c e s s i n g A r c h i t e c t u r e      

1 . T h e E x t r a c t i o n , T r a n s f o r m a t i o n , a n d L o a d i n g ( E T L ) d e s i g n e r s e t s u p T e x t    

D a t a P r o c e s s i n g j o b s u s i n g t h e D a t a S e r v i c e s D e s i g n e r .  

2 . D a t a S e r v i c e s a c c e s s e s t e x t c o n t e n t f r o m s o u r c e s s u c h a s s u r v e y s , n o t e s    

e l d s i n d a t a b a s e s , o r t e x t l e s d i r e c t l y . C o n n e c t o r s t o e - m a i l s o r i n t e r n e t    

s o u r c e s c a n a l s o b e b u i l t . A s l o n g a s t h e c o n t e n t i s i n H T M L , X M L , o r T X T        w e c a n p r o c e s s i t . C o n v e r s i o n f r o m b i n a r y f o r m a t s s u c h a s W o r d a n d P D F i s    

 p l a n n e d f o r a f u t u r e r e l e a s e . 

3 . O p t i o n a l l y , t h e r e s u l t s o f t e x t D a t a P r o c e s s i n g c a n b e p a s s e d t o D a t a Q u a l i t y      

S e r v i c e s f o r c l e a n s i n g a n d n o r m a l i z a t i o n b e f o r e b e i n g s t o r e d t o a r e p o s i t o r y .  

F r o m h e r e , t h e r e s u l t s c a n b e c o n s u m e d e i t h e r d i r e c t l y b y a n a p p l i c a t i o n o r    

d a s h b o a r d o r v i a t h e B I s e m a n t i c l a y e r .  

T h i s s l i d e s h o w s t h e p r e d e n e d e n t i t y t y p e s t h a t a r e e x t r a c t e d , o r m a t c h e d , i n      

v a r i o u s l a n g u a g e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 2 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 454: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 454/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

F i g u r e 1 1 5 : S u p p o r t e d E n t i t y T y p e s      

T h e r e a r e t w o m e t h o d s t o c u s t o m i z e e n t i t y e x t r a c t i o n :  

1 . A d i c t i o n a r y i s a l i s t o f k n o w n e n t i t y n a m e s a n d t h e i r v a r i a n t s . T h i s i s    

t h e r e c o m m e n d e d m e t h o d f o r m a k i n g e n t i t y e x t r a c t i o n m o r e r e l e v a n t t o      

a s p e c i c b u s i n e s s d o m a i n .  

a ) S t a n d a r d f o r m a n d v a r i a n t s a r e m a t c h e d a n d n o r m a l i z e d      

 b ) S o u r c e c a n b e a n X L S s p r e a d s h e e t , X M L l e , o r t a b l e   

c ) P a c k a g e i n c l u d e s X S D w i t h c o r r e c t d i c t i o n a r y f o r m a t    

d ) S u p p o r t e d f o r a l l l a n g u a g e s    

e ) D i c t i o n a r y s u p p o r t s m u l t i p l e l a n g u a g e s    

2 . A r u l e i s a p a t t e r n w r i t t e n u s i n g a p r o p r i e t a r y l a n g u a g e i n a c o m p i l e d f o r m a t .  

T h i s i s a n a d v a n c e d f e a t u r e , w h i c h s h o u l d b e u s e d b y s p e c i a l i z e d c o n s u l t a n t s    

o r t r a i n e d p a r t n e r s o n l y .  

a ) P a t t e r n m a t c h i n g l a n g u a g e b a s e d o n r e g u l a r e x p r e s s i o n s , e n h a n c e d      w i t h n a t u r a l l a n g u a g e o p e r a t o r s    

 b ) C o m m a n d l i n e c o m p i l a t i o n   

c ) R u l e c u s t o m i z a t i o n s u p p o r t e d i n a l l l a n g u a g e s    

d ) P a c k a g e d r u l e s e t s f o r V o i c e o f C u s t o m e r ( s e n t i m e n t , r e q u e s t ) ,    

e n t e r p r i s e e v e n t s , p u b l i c s e c u r i t y e v e n t s    

e ) E n g a g e c o n s u l t i n g o r a p a r t n e r f o r a d d i t i o n a l c u s t o m i z a t i o n      

N o t e :      I n t h i s c o u r s e w e c o n s i d e r o n l y d i c t i o n a r y - b a s e d e n t i t y e x t r a c t i o n s .  

4 2 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 455: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 455/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

D i c t i o n a r i e s c a n b e u s e d t o c u s t o m i z e e x t r a c t i o n f o r a c u s t o m e r o r d o m a i n . A        

d i c t i o n a r y i s a l i s t o f e n t i t i e s t h a t s h o u l d a l w a y s b e e x t r a c t e d i f o n e o f t h e i r f o r m s    

a p p e a r s i n t h e i n p u t . A d i c t i o n a r y i s r e p r e s e n t e d i n a n X M L f o r m a t c o m p i l e d i n t o      a b i n a r y r e p r e s e n t a t i o n f o r r u n t i m e p r o c e s s i n g .  

D i c t i o n a r i e s c a n b e u s e d f o r n a m e v a r i a t i o n m a n a g e m e n t , d i s a m b i g u a t i o n o f      

u n k n o w n e n t i t i e s , a n d c o n t r o l o v e r e n t i t y r e c o g n i t i o n . T h i n g s a r e r e f e r r e d t o      

w i t h m u l t i p l e n a m e s . H u m a n s n a t u r a l l y a s s o c i a t e n a m e s t o g e t h e r a n d u s e t h e m          

i n t e r c h a n g e a b l y . Y o u c a n h e l p t h e e x t r a c t i o n p r o c e s s u n d e r s t a n d t h e s e v a r i a t i o n s    

 b y s p e c i f y i n g t h e m i n a d i c t i o n a r y . D o i n g s o i m p r o v e s t h e u s e f u l n e s s a n d a c c u r a c y   

o f r e s u l t s a s k n o w i n g a n e n t i t y r e f e r s t o t h e s a m e t h i n g a s a n o t h e r e n t i t y h e l p s w i t h      

a n a l y s i s . T a k e f o r e x a m p l e , t h e o c c u r r e n c e o f :  

• E x a m p l e :    I B M       ,    I n t e r n a t i o n a l B u s i n e s s M a c h i n e s      , a n d        B i g B l u e        a r e a l l n a m e s    

f o r t h e s a m e c o m p a n y .  

• P i c k a s t a n d a r d f o r m , s u c h a s      I B M       , a n d m a k e t h e o t h e r n a m e s v a r i a n t s    

o f t h i s f o r m .  

• P o s t - e x t r a c t i o n , a l l o f t h e e n t i t i e s t h a t h a v e t h e s a m e s t a n d a r d f o r m –        I B M       –   

c a n t h e n b e g r o u p e d t o g e t h e r e v e n i f t h e i n p u t t e x t u s e d a n o t h e r f o r m .  

W h i l e e a c h s u p p o r t e d l a n g u a g e p r o v i d e s b u i l t i n , s y s t e m d i c t i o n a r i e s t o k n o w t h e      

t y p e s o f s o m e e x t r a c t i o n s , s u c h a s S A P b e i n g a c o m p a n y , s o m e t i m e s a n e n t i t y i s    

e x t r a c t e d a s a        P R O P _ M I S C          ( p r o p e r m i s c e l l a n e o u s n a m e s ) . T h i s i n d i c a t e s t h a t t h e      

e x t r a c t i o n p r o c e s s k n o w s t h e e n t i t y i s m e a n i n g f u l , b u t d o e s n o t k n o w t o w h a t t y p e      

i t b e l o n g s . Y o u c a n i m p r o v e t h e a c c u r a c y o f y o u r r e s u l t s b y d i s a m b i g u a t i n g t h e      

t y p e o f t h e s e e n t i t i e s i n a d i c t i o n a r y .  

• E x a m p l e : P r o c e s s i n g t h e t e x t      T h e W o r l d C u p w a s h o s t e d b y S o u t h A f r i c a i n      

2 0 1 0        w o u l d n o t i d e n t i f y        W o r l d C u p        a s a s p o r t i n g e v e n t b y d e f a u l t .  

• A d d i n g        W o r l d C u p        , a n d a n y v a r i a t i o n s , t o a d i c t i o n a r y a s t y p e      

S P O R T I N G _ E V E N T          w o u l d r e s o l v e t h i s d u r i n g e x t r a c t i o n .  

T h e E n t i t y E x t r a c t i o n t r a n s f o r m i s l o c a t e d w i t h i n t h e n e w l y a d d e d T e x t D a t a      

P r o c e s s i n g c a t e g o r y i n t h e T r a n s f o r m s t a b w i t h i n t h e L o c a l O b j e c t L i b r a r y o f t h e      

D e s i g n e r . I t i n c l u d e s a s i n g l e c o n g u r a t i o n t h a t c a n b e u s e d f o r e x t r a c t i o n .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 2 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 456: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 456/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

F i g u r e 1 1 6 : T e x t D a t a P r o c e s s i n g : T h e E n t i t y E x t r a c t i o n T r a n s f o r m          

T h e T e x t D a t a P r o c e s s i n g E n t i t y E x t r a c t i o n t r a n s f o r m s u p p o r t s p r o c e s s i n g      

t e x t , H T M L , o r X M L c o n t e n t a s a v a r c h a r , L O N G , o r B L O B d a t a t y p e . T h i s    

c o n t e n t c a n c o m e f r o m m u l t i p l e s o u r c e s s u c h a s a a t l e , a c o l u m n o f a n E x c e l    

s p r e a d s h e e t , o r a d a t a b a s e t a b l e c o l u m n .  

F i g u r e 1 1 7 : E n t i t y E x t r a c t i o n : I n p u t F i e l d      

4 3 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 457: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 457/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

T h e E n t i t y E x t r a c t i o n t r a n s f o r m h a s a s i n g l e m a n d a t o r y e l d L a n g u a g e . A l w a y s    

s e l e c t t h e l a n g u a g e o f t h e c o n t e n t b e i n g p r o c e s s e d b e f o r e v a l i d a t i n g t h e t r a n s f o r m          

o r e x e c u t i n g a j o b c o n t a i n i n g i t . T h e E n t i t y E x t r a c t i o n t r a n s f o r m c a n p r o c e s s    t e x t i n t h e s e l a n g u a g e s : E n g l i s h , F r e n c h , G e r m a n , J a p a n e s e , S i m p l i e d C h i n e s e ,    

a n d S p a n i s h . H o w e v e r , i f w o r d s o r s e c t i o n s o f t h e c o n t e n t a r e i n a l a n g u a g e      

d i f f e r e n t f r o m t h e o n e s e l e c t e d i n t h e t r a n s f o r m , u n e x p e c t e d o r i n c o r r e c t r e s u l t s    

m a y b e o u t p u t .  

F i g u r e 1 1 8 : E n t i t y E x t r a c t i o n : O p t i o n s      

R e d u c e n o i s e f r o m t o o m a n y e x t r a c t i o n s b y s p e c i f y i n g a l a n g u a g e e n t i t y t y p e      

l t e r . O n l y e n t i t i e s o f t h e s e l e c t e d t y p e s a r e o u t p u t i f t h e y e x i s t i n t h e c o n t e n t    

 p r o c e s s e d . T h e s e l t e r s d i s c a r d t y p e s w h i c h d o n o t e x i s t i n t h e p r o c e s s e d c o n t e x t . 

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 3 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 458: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 458/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

F i g u r e 1 1 9 : O p t i o n s : F i l t e r i n g O u t p u t b y E n t i t y T y p e s i n S e l e c t e d L a n g u a g e s      

A d v a n c e d P a r s i n g e n r i c h e s n o u n p h r a s e e x t r a c t i o n w i t h p r o n o u n s , n u m b e r s , a n d      

d e t e r m i n e r s t h a t c a n b e u s e d w h e n w r i t i n g c u s t o m e x t r a c t i o n r u l e s . I t i s o n l y      

s u p p o r t e d b y t h e E n g l i s h l a n g u a g e . E n a b l i n g a d v a n c e d p a r s i n g d o e s n o t e n a b l e      

c o r e f e r e n c e r e s o l u t i o n – t h e a b i l i t y t o r e l a t e p r o n o u n s t o n a m e d e n t i t i e s .  

F i g u r e 1 2 0 : O p t i o n s : E n a b l i n g A d v a n c e d P a r s i n g      

4 3 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 459: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 459/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

T h e T e x t D a t a P r o c e s s i n g E n t i t y E x t r a c t i o n t r a n s f o r m o u t p u t s e n t i t i e s a n d      

f a c t s i n a a t s t r u c t u r e f o r e a s y c o n s u m p t i o n b y o t h e r t r a n s f o r m s . H o w e v e r ,    

t h e r e a r e i n h e r e n t r e l a t i o n s h i p s b e t w e e n o u t p u t r o w s . F o r i n s t a n c e , t h e e n t i t y      P e t e r R e z l e /      P E R S O N            c a n b e b r o k e n d o w n i n t o P e t e r /      P E R S O N _ G I V          a n d   

R e z l e /      P E R S O N _ F A M            s u b e n t i t i e s – e a c h o u t p u t a s a d i f f e r e n t r o w .  

T h e     I D      a n d     P A R E N T _ I D          c o l u m n s m a i n t a i n a n y r e l a t i o n s h i p b e t w e e n t h e r o w s    

o u t p u t f o r a p i e c e o f t e x t . T h e        S T A N D A R D _ F O R M            c o l u m n v a l u e r e p r e s e n t s    

t h e l o n g e s t , m o s t p r e c i s e o r o f c i a l n a m e a s s o c i a t e d w i t h t h e v a l u e o f t h e      

c o r r e s p o n d i n g        T Y P E          c o l u m n – P e t e r R e z l e i n t h e p r e v i o u s e x a m p l e v e r s u s P e t e      

R e z l e m e n t i o n e d e l s e w h e r e i n t h e c o n t e n t .  

T h e     C O N V E R T E D _ T E X T          c o l u m n v a l u e r e p r e s e n t s t h e p o s s i b l y t r a n s c o d e d i n p u t    

t e x t . T h i s c a n b e u s e d t o r e f e r t o t h e l o c a t i o n o f a n e x t r a c t i o n u s i n g t h e c h a r a c t e r    

O F F S E T          a n d     L E N G T H            c o l u m n v a l u e s f o r a n y e n t i t y o r f a c t .  

F i g u r e 1 2 1 : E n t i t y E x t r a c t i o n : O u t p u t F i e l d s      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 3 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 460: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 460/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

4 3 4      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 461: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 461/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

E x e r c i s e 2 6 : U s i n g t h e E n t i t y E x t r a c t i o n      

T r a n s f o r m          E x e r c i s e O b j e c t i v e s      

A f t e r c o m p l e t i n g t h i s e x e r c i s e , y o u w i l l b e a b l e t o :  

• U s i n g t h e E n t i t y E x t r a c t i o n t r a n s f o r m          

B u s i n e s s E x a m p l e      

Y o u r c o m p a n y w a n t s w h i c h i s b e i n g p u b l i s h e d a b o u t y o u r c o m p a n y . A l o n g w i t h      

t h e g e n e r a l e x p l o s i o n o f d i g i t a l d a t a i n t h e I n f o r m a t i o n T e c h n o l o g y a g e , m a n y      

i n d i v i d u a l p i e c e s o f d i g i t a l d a t a a r e b e i n g p u b l i s h e d a b o u t y o u r c o m p a n y . T o      

g a i n b u s i n e s s i n s i g h t , d e r i v e i n c r e a s e d g o v e r n a n c e a n d p r o d u c t i v i t y f r o m t h i s    u n s t r u c t u r e d d a t a , y o u w a n t t o e x a m i n e , p a r s e , s t o r e i t a n d p r e p a r e s t r a t e g i c      

r e p o r t s f o r y o u r c o m p a n y . Y o u m u s t c r e a t e a n e w b a t c h j o b u s i n g t h e n e w E n t i t y      

E x t r a c t i o n t r a n s f o r m i n D a t a S e r v i c e s a n d a p p l y i t t o t h i s d a t a .  

T a s k :    

Y o u n e e d t o p r o c e s s a s e t o f E n r o n e m a i l s t o i d e n t i f y t h e d i f f e r e n t e n t i t i e s    

c o n t a i n e d i n t h e m , l t e r i n g t h e o u t p u t t o i n c l u d e o n l y        P E R S O N            a n d   

O R G A N I Z A T I O N / C O M M E R C I A L        e n t i t i e s .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ T D P _ J o b      

c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ T D P _ D F        . 

2 . C r e a t e a n u n s t r u c t u r e d t e x t l e f o r m a t t o e x t r a c t E n r o n e m a i l s f r o m a      

d i r e c t o r y a n d p l a c e t h e f o r m a t i n t h e d a t a o w w o r k s p a c e .  

3 . C o n g u r e a n E n t i t y E x t r a c t i o n t r a n s f o r m t o p r o c e s s t h e E n r o n e m a i l s    

4 . C r e a t e a d e l i m i t e d l e f o r m a t      T D P _ E n r o n _ o u t p u t        t o l o a d t h e e x t r a c t i o n      

o u t p u t    

5 . E x e c u t e t h e j o b        A l p h a _ T D P _ J o b        , i n s p e c t t h e o u t p u t , a n d c o n g u r e a n      

e n t i t y t y p e l t e r    

6 . E x e c u t e t h e j o b        A l p h a _ T D P _ J o b        a g a i n , i n s p e c t t h e o u t p u t , a n d c o n g u r e      

a n e n t i t y t y p e l t e r    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 3 5   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 462: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 462/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

S o l u t i o n 2 6 : U s i n g t h e E n t i t y E x t r a c t i o n      

T r a n s f o r m          T a s k :    

Y o u n e e d t o p r o c e s s a s e t o f E n r o n e m a i l s t o i d e n t i f y t h e d i f f e r e n t e n t i t i e s    

c o n t a i n e d i n t h e m , l t e r i n g t h e o u t p u t t o i n c l u d e o n l y        P E R S O N            a n d   

O R G A N I Z A T I O N / C O M M E R C I A L        e n t i t i e s .  

1 . I n t h e O m e g a p r o j e c t , c r e a t e a n e w b a t c h j o b c a l l e d        A l p h a _ T D P _ J o b      c o n t a i n i n g a d a t a o w c a l l e d        A l p h a _ T D P _ D F        . 

a ) I n t h e        P r o j e c t      a r e a , r i g h t - c l i c k t h e p r o j e c t n a m e a n d c h o o s e        N e w B a t c h      

 J o b     f r o m t h e m e n u .  

 b ) E n t e r t h e n a m e o f t h e j o b a s    A l p h a _ T D P _ J o b        . 

c ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

d ) O p e n t h e j o b        A l p h a _ T D P _ J o b        b y d o u b l e - c l i c k i n g i t .  

e ) S e l e c t t h e D a t a F l o w i c o n i n t h e T o o l P a l e t t e .  

f ) S e l e c t t h e w o r k s p a c e w h e r e y o u w a n t t o a d d t h e d a t a o w .  

g ) E n t e r      A l p h a _ T D P _ D F        a s t h e n a m e .  

h ) P r e s s      E n t e r        t o c o m m i t t h e c h a n g e .  

i ) D o u b l e - c l i c k t h e d a t a o w t o o p e n t h e d a t a o w w o r k s p a c e .  

C o n t i n u e d o n n e x t p a g e      

4 3 6      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 463: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 463/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

2 . C r e a t e a n u n s t r u c t u r e d t e x t l e f o r m a t t o e x t r a c t E n r o n e m a i l s f r o m a      

d i r e c t o r y a n d p l a c e t h e f o r m a t i n t h e d a t a o w w o r k s p a c e .  

a ) I n t h e L o c a l O b j e c t L i b r a r y , s e l e c t t h e        F l a t F i l e s      t a b . R i g h t - c l i c k o n       F l a t F i l e s    a n d c h o o s e t h e o p t i o n        N e w      . 

 b ) 2 . S e l e c t    u n s t r u c t u r e d t e x t        f r o m t h e        T y p e        o p t i o n v a l u e      

d r o p - d o w n l i s t a n d s e l e c t      Y e s    t o o v e r w r i t e t h e s c h e m a .  

c ) 3 . S p e c i f y t h e        N a m e        v a l u e a s      T D P _ E n r o n _ e m a i l s        . 

d ) 4 . S e l e c t t h e f o l d e r i c o n n e x t t o t h e        R o o t d i r e c t o r y      o p t i o n a n d b r o w s e t o      

t h e     N : \ M y D o c u m e n t s → B O D S 1 0 → A c t i v i t y _ S o u r c e → E n r o n _ e m a i l s      . 

N o t e :      A l l l e s w i l l b e r e t r i e v e d a s t h e        F i l e n a m e ( s )    l t e r    

s p e c i e s      * . *     b y d e f a u l t . Y o u c a n c h a n g e t h e l t e r v a l u e t o      

l i m i t a p a r t i c u l a r t y p e o f l e , s u c h a s * . t x t o r * . h t m l , o r e v e n      s p e c i f y t h e n a m e o f a l e .  

e ) 5 . S e l e c t      S a v e & C l o s e        . 

f ) D o u b l e - c l i c k t h e d a t a o w          A l p h a _ T D P _ D F        t o o p e n t h e w o r k s p a c e .  

g ) 7 . D r a g t h e        T D P _ E n r o n _ e m a i l s        u n s t r u c t u r e d t e x t l e f o r m a t i n t o      

t h e d a t a o w w o r k s p a c e .  

3 . C o n g u r e a n E n t i t y E x t r a c t i o n t r a n s f o r m t o p r o c e s s t h e E n r o n e m a i l s    

a ) S e l e c t t h e        T r a n s f o r m s      t a b i n t h e L o c a l O b j e c t L i b r a r y , e x p a n d t h e        T e x t    

 D a t a P r o c e s s i n g     c a t e g o r y , a n d e x p a n d t h e        E n t i t y _ E x t r a c t i o n        t r a n s f o r m .  

2 . D r a g t h e        B a s e _ E n t i t y E x t r a c t i o n        t r a n s f o r m c o n g u r a t i o n      i n t o t h e d a t a o w w o r k s p a c e .  

 b ) C o n n e c t t h e     T D P _ E n r o n _ e m a i l s        l e f o r m a t t o t h e      

B a s e _ E n t i t y E x t r a c t i o n        t r a n s f o r m i n t h e d a t a o w .  

c ) D o u b l e - c l i c k t h e        B a s e _ E n t i t y E x t r a c t i o n        t r a n s f o r m i n t h e d a t a      

o w t o o p e n i t s e d i t o r .  

d ) S e l e c t t h e        I n p u t      a n d d r a g t h e        D a t a        c o l u m n f r o m t h e        S c h e m a I n        p a n e      

o n t o t h e        T E X T          c o l u m n i n t h e        I n p u t      t a b .  

e ) S e l e c t t h e        O p t i o n s      a n d s e l e c t      E n g l i s h        a s t h e        L a n g u a g e        o p t i o n v a l u e .  

f ) S e l e c t t h e        O u t p u t      t a b a n d c h e c k t h e s e e l d n a m e s t o m a p t h e m t o t h e      S c h e m a O u t      p a n e :    I D     ,    P A R E N T _ I D        ,    S T A N D A R D _ F O R M          ,    T Y P E        , a n d      

S O U R C E _ F O R M          . 

g ) D r a g t h e        F i l e N a m e        c o l u m n f r o m t h e        S c h e m a I n        p a n e o n t o t h e        S c h e m a      

O u t    p a n e .  

C o n t i n u e d o n n e x t p a g e      

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 3 7   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 464: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 464/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

4 . C r e a t e a d e l i m i t e d l e f o r m a t      T D P _ E n r o n _ o u t p u t        t o l o a d t h e e x t r a c t i o n      

o u t p u t    

a ) R i g h t - c l i c k t h e        B a s e _ E n t i t y E x t r a c t i o n        l a b e l i n t h e        S c h e m a O u t     p a n e a n d s e l e c t    C r e a t e F i l e F o r m a t     . 

 b ) S p e c i f y t h e n a m e a s    T D P _ E n r o n _ o u t p u t        . 

c ) E n t e r      N : \ M y D o c u m e n t s \ B O D S 1 0 \ A c t i v i t y _ S o u r c e \ E n -      r o n _ e m a i l s        i n t h e        R o o t d i r e c t o r y      o p t i o n v a l u e .  

d ) E n t e r      e n r o n _ e m a i l s _ o u t . t x t        i n t h e        F i l e n a m e ( s )    o p t i o n v a l u e .  

e ) S e l e c t      S a v e & C l o s e        . 

f ) S e l e c t      B a c k        t o c l o s e t h e        B a s e _ E n t i t y E x t r a c t i o n        t r a n s f o r m          

e d i t o r .  

g ) D r a g t h e        T D P _ E n r o n _ o u t p u t        l e f o r m a t i n t o t h e        A l p h a _ T D P _ D F      d a t a o w w o r k s p a c e a n d s e l e c t      M a k e T a r g e t     . 

h ) C o n n e c t t h e        B a s e _ E n t i t y E x t r a c t i o n        t r a n s f o r m t o t h e      

T D P _ E n r o n _ o u t p u t        l e f o r m a t i n t h e d a t a o w b y s e l e c t i n g t h e      

E n t i t y E x t r a c t i o n t r a n s f o r m a n d w h i l e h o l d i n g d o w n t h e m o u s e b u t t o n ,    

d r a g t o t h e t a r g e t l e f o r m a t . R e l e a s e t h e m o u s e b u t t o n t o c r e a t e t h e      

l i n k .  

C o n t i n u e d o n n e x t p a g e      

4 3 8      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 465: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 465/472

B O D S 1 0 L e s s o n : U s i n g t h e E n t i t y E x t r a c t i o n T r a n s f o r m          

5 . E x e c u t e t h e j o b        A l p h a _ T D P _ J o b        , i n s p e c t t h e o u t p u t , a n d c o n g u r e a n      

e n t i t y t y p e l t e r    

a ) I n t h e O m e g a p r o j e c t , r i g h t - c l i c k t h e j o b        A l p h a _ T D P _ D F        a n d s e l e c t    t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) O n c e t h e j o b c o m p l e t e s , c l o s e a n d t h e n o p e n t h e        A l p h a _ T D P _ D F      d a t a o w .  

e ) R i g h t - c l i c k t h e        T D P _ E n r o n _ o u t p u t        l e f o r m a t i n t h e d a t a o w a n d      

s e l e c t      V i e w D a t a .    t o i n s p e c t t h e e x t r a c t e d e n t i t i e s .  

f ) C l o s e t h e v i e w o f d a t a a n d d o u b l e - c l i c k t h e        B a s e _ E n t i t y E x t r a c -      t i o n        t r a n s f o r m i n s t a n c e i n t h e d a t a o w t o o p e n t h e e d i t o r .  

g ) S e l e c t t h e        O p t i o n s      a n d s e l e c t t h e        F i l t e r b y E n t i t y T y p e s      o p t i o n v a l u e      

w i t h i n t h e        L a n g u a g e s      o p t i o n g r o u p a n d s e l e c t      e l i p s e s ( . . . )   . 

h ) I n t h e        A v a i l a b l e v a l u e s      p a n e , s e l e c t t h e e l d s      O R G A N I Z A T I O N / C O M -       M E R I C I A L     a n d     P E R S O N        e n t i t y t y p e s a s l t e r v a l u e s . T h e n s e l e c t t h e      

 A d d     b u t t o n t o m o v e t h e e l d s t o t h e        S e l e c t e d v a l u e s      p a n e .  

i ) S e l e c t      B a c k        t o c l o s e t h e e d i t o r .  

6 . E x e c u t e t h e j o b        A l p h a _ T D P _ J o b        a g a i n , i n s p e c t t h e o u t p u t , a n d c o n g u r e      

a n e n t i t y t y p e l t e r    

a ) I n t h e O m e g a p r o j e c t , r i g h t - c l i c k t h e j o b        A l p h a _ T D P _ D F        a n d s e l e c t    

t h e o p t i o n        E x e c u t e        . 

 b ) D a t a S e r v i c e s p r o m p t s y o u t o s a v e a n y o b j e c t s t h a t h a v e n o t b e e n   

s a v e d . S e l e c t      O K     . 

c ) T h e        E x e c u t i o n P r o p e r t i e s      d i a l o g b o x a p p e a r s a n d s e l e c t      O K     . 

d ) O n c e t h e j o b c o m p l e t e s , c l o s e a n d t h e n o p e n t h e        A l p h a _ T D P _ D F      d a t a o w .  

e ) R i g h t - c l i c k t h e        T D P _ E n r o n _ o u t p u t        l e f o r m a t i n t h e      

d a t a o w a n d s e l e c t      V i e w D a t a .    t o i n s p e c t t h e e x t r a c t e d      O R G A N I Z A T I O N / C O M M E R C I A L        a n d     P E R S O N            e n t i t i e s .  

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 3 9   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 466: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 466/472

U n i t 1 0 : U s i n g T e x t D a t a P r o c e s s i n g B O D S 1 0      

L e s s o n S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  • U s i n g t h e E n t i t y E x t r a c t i o n t r a n s f o r m          

4 4 0      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 467: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 467/472

B O D S 1 0 U n i t S u m m a r y      

U n i t S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• U s i n g t h e E n t i t y E x t r a c t i o n t r a n s f o r m          

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 4 1   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 468: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 468/472

U n i t S u m m a r y B O D S 1 0      

4 4 2      © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d . 2 0 1 1    

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 469: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 469/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 470: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 470/472r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 471: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 471/472

B O D S 1 0 C o u r s e S u m m a r y      

C o u r s e S u m m a r y      

Y o u s h o u l d n o w b e a b l e t o :  

• I n t e g r a t e d i s p a r a t e d a t a s o u r c e s    

• C r e a t e , e x e c u t e , a n d t r o u b l e s h o o t b a t c h j o b s    

• U s e f u n c t i o n s , s c r i p t s , a n d t r a n s f o r m s t o m o d i f y d a t a s t r u c t u r e s a n d f o r m a t    

d a t a      

• H a n d l e e r r o r s i n t h e e x t r a c t i o n a n d t r a n s f o r m a t i o n p r o c e s s    

• C a p t u r e c h a n g e s i n d a t a f r o m d a t a s o u r c e s u s i n g d i f f e r e n t t e c h n i q u e s    

2 0 1 1 © 2 0 1 1 S A P A G . A l l r i g h t s r e s e r v e d .     4 4 3   

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]

Page 472: Sap Bods10 en Col96 Fv Part Nw

8/16/2019 Sap Bods10 en Col96 Fv Part Nw

http://slidepdf.com/reader/full/sap-bods10-en-col96-fv-part-nw 472/472

C o u r s e S u m m a r y B O D S 1 0      

r Any SAP / IBM / Oracle - Materials Purchase Visit : www.sapcertified.com OR Contact Via Email Directly At : [email protected]