Sie sind auf Seite 1von 26

0

SAP AG 2001
Transferring data using interactive lists
SAP - LUW
Batch Data Transfer
Tips & Tricks
Special Methds
!ntents"
SAP AG BC420 13-1

0#$
SAP AG 2001
At the cnclusin f this unit% &u 'ill (e a(le t"
Special Methds" Unit )(*ectives
Use interactive lists fr data transfer
+sti,ate the effects f the SAP - LUW architecture
n e-ternal data transfer
Scheduling data transfer
SAP AG BC420 13-2

0#.
SAP AG 1999
!urse )vervie' Diagra,
Daten/(ernah,e
D0 Wrk(ench
LSM Wrk(ench
Principles f Standard
Data Transfer
D
i
r
e
c
t

1
n
p
u
t
BAP1
T
A

2
e
c

r
d
e
r
!urse )vervie'
B
a
t
c
h

1
n
p
u
t
!
a
l
l

T
r
a
n
s
a
c
t
i

n
.
+D1
Basics
3
4
5
6 70
6
70
8
77
75
7$
77
7$
7
$
7.7.
77
SAP AG BC420 13-3

0#5
SAP AG 1999
Special Methds
1nteractive Lists
1nteractive Lists
SAP - LUW
SAP - LUW
Batch Data Transfer
Batch Data Transfer
Tips & Tricks
Tips & Tricks
SAP AG BC420 13-4

0#3
SAP AG 1999
Customer Overview
Customer no. Name
Z-00-10002 Thor Nielson
Z-00-10003 Elena Lopez
Z-00-10004 Donna Moore
Z-00-10005 Charlotte Sanford
Z-00-1000 !erd S"h#idt
Z-00-1000$ Nin% Shao
Z-00-1000& '(th Thi)idea(*
Z-00-1000+ ,el%a Martin
Z-00-10010 -ose .e%a
Z-00-10011 -onathan T(rner
Z-00-11001 Lisa ,of#eister
Z-00-12344 /riel Me0ers

0
The user selected this
record
De#o 1ro%ra#2 SAPBC420_SPTD_INTERACTIV_LIST
B1 and 1nteractive Lists
The de#o pro%ra# S/13C4204S1TD45NTE'/CT5.4L5ST "reates a list fro# 6hi"h 0o( "an sele"t details
)0 "hoosin% "he"7)o*es8
SAP AG BC420 13-5

0#9
SAP AG 1999
0
0
Customer overview
Customer no. Name
Z-00-10002 Elena Lopez
Z-00-10003 -ennifer 3el#ont
Z-00-10004 /neesha Mishra
Z-00-10005 Francesca Bertolini
Z-00-10006 Jose Vega
Z-00-1000$ 'odne0 9ashin%ton
Z-00-1000& -ean-1ierre D:/r"0
Z-00-1000+ Da;id !re""o
Z-00-10010 3ao <in
Z-00-10011 =le% >opp

Transactin 2ecrder 2esults
The field with an X for the
check box is not set.
09:0$ 0
These entries
must be
supplemented
04:0$ 0
;ld cntents
Supplement fields
BDC_CURSOR 07/02
BDC_OKCODE =PICK

;ield na,e
!lu,n 2'
9hen this transa"tion is re"orded (sin% the transa"tion re"order? 0o( "an see that the "he"7 )o*es in
the re"ordin% list are not "he"7ed8 These i#portant entries #(st )e added manuall8
To do this? 0o( #(st spe"if0 the position in the list (sin% @A< "oordinates B@ is the ro6? and < is the
"ol(#nC8
!m"ortant to note# $%e &irst column in t%e list %as t%e value '.
$%e selected row does not alwas matc% t%e row "osition( as t%e %eaders must also )e included
in t%e total num)er o& rows.
The fo(rth "he"7 )o* sele"ted in the e*a#ple is a"t(all0 the si*th ro6 as the header in"l(des t6o
ro6s8 The ;al(e for the 3DC4CD'S=' "(rsor field is set to E0$A02:? as this is the last position on
the last8
The fields to sele"t are therefore ro6 A "ol(#n 2 and ro6 $A "ol(#n 28
SAP AG BC420 13-!

0#4
SAP AG 1999
+diting the 2ecrding
Prgra, Screen St# ;ield na,e ;ield value
T B!5$0 BS
###
SAPMSS<0 7$0 0
09:0$ 0
04:0$ 0
BD!=!U2S)2 04:0$
BD!=)>!)D+ ?P1!>
SAPMSS<0 7$0 0
BD!=)>!)D+ ?BA!>
###
2ecrding
Changes in the
recording
The slide ill(strates the "han%es #ade in the re"ordin% editor8
SAP AG BC420 13-7

0#6
SAP AG 1999
Special Methds
1nteractive Lists
1nteractive Lists
SAP - LUW
SAP - LUW
Batch Data Transfer
Batch Data Transfer
Tips & Tricks
Tips & Tricks
SAP AG BC420 13-"

0#8
SAP AG 1999
S&nchrnus Prcessing
With B! the next transaction cannot be processed until the S"#$%&W has
been completed. #rocessing is alwa's s'nchronous.
)ne transactin
prcessed @SAP-LUW 7A
Mark
changes
Mark
changes
Update
Update
B WP
B WP
DB
)ne transactin prcessed
@SAP-LUW $A
Mark
changes
Mark
changes
Update
Update
B WP
B WP
DB
###
BBL)C BBL)C
Fro# a )(siness point-of-;ie6? an S/1 lo%i"al (nit of 6or7 BS/1-LD9 C "onsists of an S/1
transa"tion a (ser e*e"(tes online Bfirst part of LD9C and the "orrespondin% (pdate Bse"ond part of
LD9C8 5n online pro"essin%? the (ser "an pro"eed 6ith the ne*t S/1 transa"tion after sa;in%? (s(all0
at the end of the transa"tion pro"essin% Bonline partC8 The (ser therefore starts an additional S/1-
LD9 6hile the (pdate fro# the first S/1-LD9 6as r(nnin%8 This is as0n"hrono(s transa"tion
pro"essin%8
5n online pro"essin%? the (ser "an pro"eed 6ith the ne*t S/1 transa"tion after sa;in%? (s(all0 at the
end of the transa"tion pro"essin% Bonline partC8 The (ser therefore starts an additional S/1-LD9
6hile the (pdate fro# the first S/1-LD9 6as r(nnin%8 This is "alled as0n"hrono(s transa"tion
pro"essin%8
$%e "rocessing o& )atc% in"ut sessions( %owever( is snc%ronous. $%is means *+,--./ ' is not
started until t%e u"date &or *+,--./ 1 is com"leted.
SAP AG BC420 13-9

0#70
SAP AG 1999
When call transaction is used in
processing mode (") *as'nchronous+! the
next transaction could be started here *not
recommended+.
Update
Update
S"#$%&W ,
S"#$%&W ,
Mark
changes
B WP
B WP
Update
Update
S"#$%&W -
S"#$%&W -
Mark
changes
B WP
B WP
Update
Update
S"#$%&W ,
S"#$%&W ,
Mark
changes
B WP
B WP
As&nchrnus Prcessing
1ro"essin% #ode G/G for "all transa"tion2
/fter the first part of the S/1-LD9 is "o#pleted and the "han%es are #ar7ed? the ne*t S/1-LD9
"an )e started i##ediatel08 This #eans that e*ternal data i#ported (sin% "all transa"tion "o(ld )e
i#ported partiall0 in parallel Bo;erlappin% i#portC? if the (pdate ta7es lon%er than the "allin% of the
ne*t re"ord to )e pro"essed8
9e do not re"o##end the (se of as0n"hrono(s pro"essin% 6ith CTH if 0o( do (se it? test it
thoro(%hl0 )eforehand8
S/1 Notes on (pdatin% A lo"7s2
Lo"7 ta)le 1$2$? 13+0$? +$$0
Dpdate A repeat (pdate $00&5
SAP AG BC420 13-10

0#77
SAP AG 1999
Special Methds
1nteractive Lists
1nteractive Lists
SAP - LUW
SAP - LUW
Batch Data Transfer
Batch Data Transfer
Tips & Tricks
Tips & Tricks
SAP AG BC420 13-11

0#7$
SAP AG 1999
Scheduling Data Transfer
Scheduling the D0-WB in the
(ackgrund
Scheduling the LSMW in the
(ackgrund
Parallel prcessing f B1 sessins in
the (ackgrund 'ithut the D0-WB
and LSMW
The D@-93 and the LSM9 "an transfer the data in the )a"7%ro(nd8
'eport 'S3DCSD3 "an )e (sed to pro"ess )at"h inp(t sesssions in parallel or a(to#ati"all08
'S3DCSD3 "o(ld )e (sed as a D@-93 tas7 to pro"ess sessions "reated pre;io(sl0? in parallel in
'A3 Bin se;eral )at"h 6or7 pro"esses and on se;eral appli"ation ser;ersC8
SAP AG BC420 13-12

0#7.
SAP AG 2001
Scheduling D0-WB 2uns in the Backgrund
!reate variant fr prgra,
2D02UDSTA2T
ESchedule runE in D0-WB
Specif& 2D02UDSTA2T as a step
Deter,ine print para,eters
Bie' *( lgs
F( run
Define start ti,e f *(
Schedule run
Select run definition in pro.ect and
choose (Schedule run).
/ote0 a 1ariant must ha1e been defined
for the 2X$WB.
S#$%# %&'

Su(pr*ect
Map data
D0 WB pr*ect
2un definitin
Map data
/ r(n "an )e s"hed(led in the )a"7%ro(nd in the D@-93 )0 "hoosin% the Schedule run )(tton8
/ ;ariant of the D@-93 #ain pro%ra# I'D@'DNST/'TI #(st ha;e )een defined )eforehand8
The inp(t para#eter of the ;ariant sho(ld )e the proJe"t? s()proJe"t and r(n definition na#e8
SAP AG BC420 13-13

0#75
SAP AG 1999
()%* S#+,-
A##%./&#+
O/0+1#
O2'+%
D$#$ #%$'-3+%
BC420_DK
KLINGELS
)'1+ peridic
###
!nvert data
1,prt data
Main prgra, fr peridic data
transfer
Define (*ect attri(utes
Define surce structures
Define surce fields
###
Switch to (periodic)
" further work step appears with the
%S3W main program0
/SAPDMC/SAP_LSMW_INTERFACE
The LSMW Main Prgra,
5n the first LSM9 6or7 step 0o( "an spe"if0 6hether the data transfer sho(ld )e "arried o(t on"e
onl0 or periodi"all08 9ith periodi" data transfer a f(rther 6or7 step appears IMain 1ro%ra# for
1eriodi" Data TransferK8
The #ain pro%ra# AS/1DMCAS/14LSM945NTE'F/CE ena)les the LSM9 to start a(to#ati"all08
<o( "an spe"if0 n(#ero(s para#eters in this pro%ra# in a sele"tion s"reen8 To do this another
;ariant for this pro%ra# #(st )e "reated for the )a"7%ro(nd r(n and the Jo) spe"ified8
SAP AG BC420 13-14

0#73
SAP AG 1999
Selectin Screen f the LSMW Main Prgra,
Specif' pro.ect 4 subpro.ect 4
run definition to be started
P%)0+1#4 -&/,%)0+1#4 )/0+1#
R+$5 5$#$
###
C)'6+%# 5$#$
I7,)%# 5$#$8 /$#19 .',&#
I7,)%# 5$#$8 5.%+1# .',&#
I7,)%# 5$#$8 ID)1
P$%$7+#+%- )3 BI / CT / DI ,%):%$7-
C%+$#+ ID)1-
C%+$#+ $'5 ,%)1+-- ID)1-
S#$%# 5.%+1# .',&# ,%):%$7-
C%+$#+ -+--.)'-
C%+$#+ $'5 ,%)1+-- -+--.)'-
P%)1+-- -+--.)'- 2.#9 +%%)%- $;-)
T+-# %&' 2.#9)&# &,5$#+
# # #
###
###
###
Standard parameters for
B 4 CT 4 2
B 4 CT 4 2 parameters for
special programs such as
56BB%77
#arameters for transfer
using 2ocs
The sele"tion s"reen of the LSM9 #ain pro%ra# pro;ides a lot of sele"tion para#eters for transfer
(sin% #ethods 35 A CT A D5 and 5Do"8
The lo6er part of the sele"tion s"reen "ontains spe"ifi" para#eters for spe"ial 35 A CT A D5 pro%ra#s?
s("h as 'F353L008 <o( "an find a list of these spe"ial pro%ra#s and their para#eters in the LSM9
do"(#entation (nder I1eriodi" Data TransferK8
SAP AG BC420 13-15

0#79
SAP AG 1999
SeGuential
file
Create se1eral sessions
Dispatcher
### B B
Dispatcher
### B B
Dispatcher
### B
#rocess B sessions in se1eral batch work processes
B1 Prgra,
Schedule 2SBD!SUB
Parallel B1 Prcessing 'ith 2SBD!SUB
35 sessions "an )e pro"esssed in parallel in the )a"7%ro(nd (sin% pro%ra# 'S3DCSD38 5f se;eral
35 sessions are %enerated fro# the e*ternal data? pro%ra# 'S3DCSD3 "an s"hed(le a Jo) to pro"ess
ea"h 35 session8
=n the 'S3DCSD3 sele"tion s"reen the na#es of the reL(ired 35 sessions "an )e defined B0o( "an
also spe"if0 %eneri" sessions? for e*a#ple2 G)"420MGC8
SAP AG BC420 13-1!

0#74
SAP AG 1999
ABAP develp,ent
ABAP develp,ent
Save
Save
Prgra, 2SBD!SUB
!reate (ackgrund *(
'ith ST+P" 2SBD!SUB
!reate (ackgrund *(
'ith ST+P" 2SBD!SUB
Sessin na,e
Date created
;r,==== T
Sessin status
T prcess
With errrs
+-ecute
Bariant
- +dit
7A 2un 2SBD!SUB in test
,de t understand the
functins
$A !reate variant fr
2SBD!SUB
.A !reate *( 'ith t'
steps t schedule the B1
prgra, and 2SBD!SUB
Scheduling Batch 1nput 'ith 2SBD!SUB
9ith pro%ra# 'S3DCSD3 0o( "an s"hed(le sessions for )a"7%ro(nd pro"essin%8
1ro"eed as follo6s2
1C Call 'S3DCSD3 in test #ode to fa#iliarize 0o(rself 6ith the inp(t para#eters of the sele"tion
s"reen and 6ith the pro%ra# f(n"tions8
2C Create a ;ariant for 'S3DCSD38 The sele"tion "riteria are2
- Session na#e B0o( "an also enter a %eneri" na#e? e8%8 G)"420MGC
- Date "reated
- Session stat(s
- Not (s(all0 ne"essar0 to enter the tar%et "o#p(ter8 BLoad is a(to#ati"all0 distri)(tedC
- E*tended lo%
3C Create a )a"7%ro(nd Jo) for pro%ra# 'S3DCSD3 6ith the ;ariant 0o( defined8
SAP AG BC420 13-17

0#76
SAP AG 1999
8ob consists of two
steps
Step $" 2SBD!SUB
Step 7" B1 prgra,
n the first step the se9uential files
are read and B sessions created
from them.
*e.g. b' using the %S3W+
n the second step the B sessions
created are scheduled in parallel b'
5SB2CS&B and then processed
b' the batch work processes.
Structure f F(s
The "on;ersion of e*ternal data and data i#port into the 'A3 S0ste# "an )e s"hed(led in the
)a"7%ro(nd8
T6o pro%ra# steps are reL(ired for this2
1C Step 1 in;ol;es "allin% the 35 pro%ra# that "reates one or #ore 35 sessions8
2C Step 2 in;ol;es "allin% 'S3DCSD3 that for6ards the pre;io(sl0 "reated 35 sessions to
)a"7%ro(nd pro"essin%8
SAP AG BC420 13-1"

0#78
SAP AG 1999
Special Methds
1nteractive Lists
1nteractive Lists
SAP- LUW
SAP- LUW
Batch Data Transfer
Batch Data Transfer
Tips & Tricks
Tips & Tricks
SAP AG BC420 13-19

0#$0
SAP AG 1999
Components: 3C-/DM? 3C-D3-888?
3C->'N? C/-CL? 888
Notes:
LSM9 101014? 1&44? 15&1+&? 15&2&5
35 'e"order Bpre-inst8C $&44&
35 lo%s and reor%8 1&30$? 3+2&2? 2443&? 1&31+
/ll reor%8 Jo)s 10&3
35 and "o##it 6or7 2$03? 24141
35 and (pdatin% 33421? 4+33
35 in fore%ro(nd 4550$? 21$1? 4+132
35 and postpro"essin% 15+++
35 in the )a"7%ro(nd 3331+? 1+422
35 and lon% te*ts 15+$3&
35 and ta)le "ontrols 11$&&
Chara"ter sets888 42$0+
Confir#ation pro#pt 13&&2
Data transfer 6ith C/TT &$12
SAP Dtes n Data Transfer
S/1Net allo6s 0o( to "reate 0o(r o6n pro)le# #essa%es for S/1 s(pport? th(s speedin% (p and
opti#izin% pro"essin% of "(sto#er #essa%es8
<o( "an perfor# a free sear"h of the S/1 Note data)ase for ans6ers to L(estions 0o( #a0 ha;e8
SAP AG BC420 13-20

0#$7
SAP AG 1999
N 2SBD!2+)
< D+;+#+- $;; -+--.)'- #9$# $%+ 7$%*+5 $- -&11+--3&;;= 1)7,;+#+5 $'5 $%+
-#.;; .' #9+ -=-#+74 $'5 #9+ 1)%%+-,)'5.': -+--.)' ;):-
< P9=-.1$;;= 5+;+#+- $;; ;):- 3)% 29.19 -+--.)'- ') ;)':+% +>.-#
< R+)%:$'.?+- ;): 3.;+
< I'#+:%$#+5 .' /$#19 .',&# 7)'.#)%
< 2SBD!L)C
< C%+$#+- $ ;.-# )3 /$#19 .',&# ;):- -+;+1#+5 $11)%5.': #) -+--.)' '$7+
< @)& 1$' 5.-,;$= )% 5+;+#+ ;):- A.3 -+--.)'- +>.-#4 =)& 1$' $1#.6$#+ $'
$'$;=-.-B
< I'#+:%$#+5 .' /$#19 .',&# 7)'.#)%
< 2SBD!D2U
< A;;)2- #) -+;+1# -+--.)' 1)'#+'#- $'5 ,%.'# )&# #9+-+ -+;+1#.)'-
< I'#+:%$#+5 .' /$#19 .',&# 7)'.#)%
B1 Utilit& Prgra,s
'S3DC'E= is the #ost i#portant of the three (tilit0 pro%ra#s listed8 <o( (se this pro%ra# to
reor%anize )at"h inp(t sessions and their lo%s8
SAP AG BC420 13-21

0#$$
SAP AG 1999
B1 Prgra,,ing" 2educe 2ll(ack Seg,ent Lad
+ver& 700 t 7000
transactins"
Use !)MM1T W)2> t
prevent verlading the
data(ase rll(ack seg,ents#
ABAP Prgra,,

)pen seGuential file
)pen B1 sessin
2ead data recrd
@seGuential fileA
;ill BD! ta(le
;ill B1 sessin :
!ALL T2ADSA!T1)D
Last data recrdH
!lse B1 sessin
!lse seGuential file
!)MM1T W)2>
Data)ase roll)a"7 se%#ents are )(ffer areas that store the I)efore i#a%eK of the data)ase d(rin% a
data)ase lo%i"al (nit of 6or7 BLD9C BD3 - LD9 O data)ase pro"essin% stepC8 The I)efore i#a%eK is
the "han%e infor#ation needed to restore the data)ase to a "onsistent state? if an error o""(rs d(rin%
this s#all pro"essin% step8
The "all of 3DC45NSE'T to fill the )at"h inp(t session "a(ses data)ase "han%es that fill the roll)a"7
se%#ents8 To restri"t the %ro6th of these se%#ents? 6e re"o##end 0o( tri%%er a data)ase "o##it at
re%(lar inter;als Be;er0 100 or 1000 loopsC8 To do this? (se the /3/1 "o##and C=MM5T 9='>?
6hi"h resets the roll)a"7 se%#ents8
SAP AG BC420 13-22

0#$.
SAP AG 1999
;urther Tips and 1nfr,atin
Batch input lgs in D12=CL)BAL
Batch input sessins are stred in the data(ase in
ta(lespace PSAPSTABD
Lo%s2
The )at"h inp(t lo%s are stored in the dire"tor0 D5'4!L=3/L B 888A%lo)alC on the appli"ation ser;er8
<o( sho(ld (se the /3/1 pro%ra# 'S3DC'E= to reor%anize these files8
Ta)lespa"e size2
Dependin% on the size of the e*ternal data to )e transferred to the 'A3 S0ste#? the )at"h inp(t
session #a0 e*"eed the size of the ta)lespa"e8 5f this happens? the data)ase ad#inistrator #(st
in"rease the size of ta)lespa"e 1S/1ST/3D8
SAP AG BC420 13-23

0#$5
SAP AG 2001
<u are n' a(le t"
Special Methds" Unit Su,,ar&
Use interactive lists fr data transfer
+sti,ate the effects f the SAP - LUW architecture
n e-ternal data transfer
Scheduling data transfer
Use B1 service prgra,s
SAP AG BC420 13-24

01ercises
.nit# *"ecial 2et%ods
$o"ic# !nteractive -ists and Batc% !n"ut
Data transfer 6ith intera"ti;e lists
Sele"t the "he"7 )o*es of an intera"ti;e list (sin% the the )at"h inp(tA"all
transa"tion #ethod8 The transa"tion re"order first re"ords a pro%ra# and
then edits the re"ordin%8
3ecording# !-!*$455
$ransaction to )e recorded# BC6'0

1 'e"ordin% of intera"ti;e lists8
1-1 The pro%ra# S/13C4204S1TD4L5ST4C,EC>3=@ES displa0s "(sto#er
#aster data ;ia an intera"ti;e list8 Call this pro%ra#? fla% so#e of the "he"7)o*es
and then "li"7 on the #a%nif0in% %lass i"on Detailed displa0 P BThe detailed
displa0 sho6s the de)tor addressesC
1-2 'e"ord this pro%ra# Btransa"tion "ode2 3C420C8
1-3 E*e"(te the re"ordin% for test p(rposesP ,a;e the pro"essin% of the list and the
settin% of the "he"7 )o*es )een e*e"(ted "orre"tl0Q
4444444444
1-4 Edit and "orre"t the re"ordin%? so that the "he"7 )o*es "an )e set8 <o( 6ill find
the rele;ant infor#ation in the trainin% "o(rse slidesP
SAP AG BC420 13-25

*olutions
.nit# *"ecial 2et%ods
*olution to 1.7
1 'e"ordin% intera"ti;e lists
1-3 The list is not pro"essed "orre"tl08 The "he"7)o*es are not set in the re"ordin%8 5f
for e*a#ple the fields se;en and ei%ht are "he"7ed? enter the follo6in% to the
re"ordin% )elo6 the #od(le pool line S/1MSS<0? 120? @2
Field na#e Field ;al(e
G0+A02G ? G@G and
G10A02G ? G@G
This #ar7s the "he"7)o*es se;en and ei%ht8
The t6o lines a)o;e the first "he"7)o* Blist header and (nderlineC are added to
the line n(#)erin% in the o(tp(t list? so the line n(#)ers nine and ten in the
e*a#ple #ar7 the "he"7)o*es se;en and ei%ht Bthe G02G is the "ol(#n n(#)erC8
SAP AG BC420 13-2!

Das könnte Ihnen auch gefallen