0% found this document useful (0 votes)
24 views

SAP ABAP material A2

The document provides an overview of technical properties of tables in SAP ABAP, including delivery class, data browser maintenance, data class, size category, buffering, enhancement category, and table maintenance generator (TMG). It explains the types of buffering, the steps to create a TMG, and the differences between include structures and append structures. Additionally, it outlines the events in TMG and the purpose of the TMG in maintaining custom tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

SAP ABAP material A2

The document provides an overview of technical properties of tables in SAP ABAP, including delivery class, data browser maintenance, data class, size category, buffering, enhancement category, and table maintenance generator (TMG). It explains the types of buffering, the steps to create a TMG, and the differences between include structures and append structures. Additionally, it outlines the events in TMG and the purpose of the TMG in maintaining custom tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 134

SAP ABAP ALL

I
MPI
Q'S
BY
MR.Babu
DATADI
CTI
ONARY

DDI
CObj
ect
s
1)Whatar
ethet
echni
cal
proper
ti
esofat
abl
eandexpl
ainaboutt
hem?
Ans:
-Ther
ear
e7t
ypesoft
ech.pr
oper
ti
es.
Theyar
e
a)Del
i
ver
yCl
ass:
-Iti
susedt
ocont
rol
theTr
anspor
toft
het
abl
edat
a.
I
tisusedt
ospeci
fyt
het
ypeoft
het
abl
e.
 Wemost
lyuset
hedel
i
ver
ycl
ass'
C'
.
 I
ncaseofdel
i
ver
ycl
ass'
A't
het
abl
ecanmai
ntai
nedi
nanysy
stem (
dev
elopment
,qual
i
ty,
pr
oduct
ionsy
stems)usi
ngSM30.
b)Dat
aBr
owser
/tabl
evi
ewmai
ntenance:
-Thi
spr
oper
tyi
susedt
ospeci
fyt
hewhet
hert
he
t
abl
ecanbemai
ntai
nedornot
.
 Wemost
lyuse“
Displ
ay/
mai
ntenanceal
l
owed“
opt
ion.
 I
ncaseoft
heopt
ionDi
spl
ay/
mai
ntenanceal
l
owedwi
thr
est
ri
cti
ons&Di
spl
ayormai
ntenance
notal
l
owed,
thecust
om t
abl
eorMai
ntenancev
iewcan’
tbemai
ntai
ned.
c)Dat
aCl
ass:
-Iti
susedt
ospeci
fyt
het
ypeoft
hedat
atobemai
ntai
nedi
nthet
abl
e.
 Wemost
lyuseAPPL0orAPPL1.
 APPL0–Mast
erdat
a–Accessf
requent
ly&updat
ed(
changed)r
arel
y.Ex:
D.O.
B
 APPL1–Tr
ansact
ional
dat
a–Accessf
requent
ly&updat
edf
requent
ly.Ex:
Sal
 Or
gani
zat
ion&Cust
omi
zi
ngdat
a–Updat
edr
arel
y.Ex:
CompanyCodes
d)Si
zeCat
egor
y:-I
tisusedt
ospeci
fyt
hei
nit
ial
spacer
equi
redf
ort
het
abl
eint
hedat
abase.
 Wemost
lyuse'
0'cat
egor
y.(0–7)-
>[0–7100]
 I
ftheusert
ri
est
oent
erar
ecor
dov
ert
hatt
hesel
ect
edr
ange,
thesy
stem wi
l
lincr
easet
hesi
ze
cat
egor
yint
oanex
tcat
egor
y(0t
o1)
.
e)Buf
fer
ing:
-Iti
susedt
ocont
rol
(reduce)t
het
raf
fi
cint
hedat
abasewhent
het
abl
eaccessed
byt
hemul
ti
pleuser
s.
 Wemost
lyuset
hemode“
Buf
fer
ingnotal
l
owed"–Tabl
eCan’
tbebuf
fer
ed
 Buf
fer
ingal
l
owedbutSwi
tchedOf
f–Buf
fer
ingal
l
owedbutnotact
ivat
ed
 Buf
fer
ingSwi
tchedon–Thet
abl
ecanbebuf
fer
ed.I
ncaseoft
hisopt
ionanyoneoft
he
buf
fer
ingt
ypesshoul
dbesel
ect
ed.
 Si
ngl
erecor
dbuf
fer
ing:
Incaseoft
hisbuf
fer
ingt
ype,
recor
dbyr
ecor
disbuf
fer
edf
rom
t
hedat
abaset
abl
es.
 Gener
icAr
eabuf
fer
:Iti
susedt
obuf
fert
het
abl
edat
abasedont
hespeci
fi
edkeyf
iel
ds.
I
ncaseoft
hisbuf
fer
ingt
ype,
theno.ofkeyf
iel
dsmustbespeci
fi
ed.
 Ful
l
ybuf
fer
:Theent
ir
etabl
eisbuf
fer
ed.
f
)Enhancementcat
egor
y:-I
tisusedt
oenhancet
hepar
ti
cul
arf
iel
dsoft
het
abl
e.
 Wemost
lyuse“
Canbeenhanced(
DEEP)
”.
g)Tabl
eMai
ntenancegener
ator
:-I
tisusedt
omai
ntai
nmul
ti
pleent
ri
es&v
ali
dat
ethet
abl
edat
a
usi
ngt
heT-
codeSM30.

Q)Wh ati
stabl
eb u
ffe
r?Whi
chty
peofta
blesus
edthi
sb uff
er?
Ans:Bufferisnothi
ngbutamemor yarea.Tabl
ei sbuffer
edmeanst hatt
ableinfor
mati
onis avai
labl
e
onappl i
cati
onserver.Whenyoucall
datafrom databasetabl
eitwil
lcomef rom appli
cati
onserver.
Transparenttabl
esandpooltabl
esarebuffer
ed,whi l
eclust
ertabl
e cannotbebuf
fered.

Q:
WHATI
STABLEBUFFERI
NGANDADVANTAGE?

a:
TABLEBUFFERI
NGI
SUSEDTOI
MPROVEPERFORMANCEOFOPENSQLSTATEMENTS.
BUFFERI
NGI
SOFTHREETYPES.

1)SI
NGLERECORDBUFFERI
NG

2)GENERI
CBUFFERI
NG

3)FULLBUFFERI
NG

Thefrequentl
yr etri
eveddat
afrom thedat abasecanbestoredinappl
icat
ionser
verasasbuff
erdata,
soit
wil
lnothitthedat abasetogetthedata.Sot heexecut
ionoftheprogr
am will
befast
.Thesedatacanbe
def
inedasbuf fereddataoftabl
ewhi l
ecr eatingatabl
e.

2)Whatar
ethest
epst
ocr
eat
eTMG?
Ans:
- a)Execut
eSE11
b)Sel
ectt
heRadi
obut
tonDBTabl
e
c)Pr
ovi
det
heTabl
ename&cl
i
ckonchange
d)Cl
i
ckonut
il
it
iesmenui
tem.
e)Cl
i
ckonTabl
eMai
ntenanceGener
ator
.
f
)Sel
ectt
heaut
h.gr
oupas&NC&(
wit
houtaut
hor
izat
iongr
oup)
 Aut
hor
izat
iongr
oupi
susedt
ocont
rol
theuseraccess.
g)Pr
ovi
det
hef
unct
iongr
oupasy
ourt
abl
ename
 Thef
unct
iongr
oupmustbespeci
fi
ed.Si
nce,
thesy
stem gener
atest
hescr
een&t
he
cor
respondi
ngsour
cecodef
ort
het
abl
emai
ntenanceundert
hef
unct
iongr
oup.
h)Sel
ectt
heone-
stepr
adi
obut
ton.
 I
ncaseofonest
epmai
ntenance,
thesy
stem gener
ates‘
si
ngl
e’ov
erv
iewscr
eent
omai
ntai
n&
di
spl
ayt
hedat
a.
 I
ncaseoft
wost
epmai
ntenance,
thesy
stem gener
ates2scr
eenst
ocr
eat
easi
ngl
eent
ryata
t
ime&di
spl
ayt
ocr
eat
eadat
ainanot
herscr
een.Twost
epmai
ntenancei
sthedef
aul
topt
ion.
i
)Ent
erov
erv
iewscr
eennumber(
coul
dbeany
).[
4di
gitonl
y]
j
)Cl
i
ckoncr
eat
eicon(
F6)&Cl
i
ckonsav
eicon(
package:
$TMP-
>Sav
e)
k)Pr
essEnt
erbut
ton&Cl
i
ckonLocal
Obj
ect&Cl
i
ckonBacki
con.

3)Whatar
ethedi
ff
erencesbet
weenI
ncl
udest
ruct
ureandAppendst
ruct
ure?

.
INCLUDEStr
uct
ure .
APPENDStructure
1.I
tcanbei
nser
tedatanyposi
ti
on. 1.Itcaninser
tonl
yatendofthet abl
e.
2.Iti
spossiblet
oinser
tst
ructureforbot
h
2.I
tisnotpossi
blewiththest
andardt
abl
es Standard&Custom t
abl
es
3.Al
lthestepsofIncl
udestr
uctur
emustbe
3.Al
lthest
epsofAppendst
ruct
uremustbe
sav
edi
nei
therourownpackageor$TMP
sav
edi
nourownpackage

4.Thet
abl
emustbei
nchangemode 4.I
tcanbei
nser
tedi
nDi
spl
aymodeal
so
5.I
tispossi
blet
oaddt
headdi
ti
onal
fiel
ds 5.I
tisnotpossi
blet
oaddt
headdi
ti
onal
fiel
ds
manual
l
y af
terI
ncl
udest
ruct
ure manual
l
yaf
terAppendst
ruct
ure
6.I
tcanbeusedf
ormul
ti
plet
abl
es 6.I
tisspeci
fi
ctopar
ti
cul
art
abl
e/st
ruct
ure

4)Whatar
etheev
ent
sinTMG?
Ans:
Val
i
dat
ioncanbedonebyTabl
eev
ent
susi
ngSM30.Tot
all
y38ev
ent
sar
ether
einTMG.
1.Bef
oresav
ingt
hedat
aint
hedat
abase.
2.Af
tersav
ingt
hedat
aint
hedat
abase.
3.Bef
oredel
eti
ngt
hedat
adi
spl
ayed.
4.Af
terdel
eti
ngt
hedat
adi
spl
ayed.
5.Cr
eat
inganewent
ry.
5)Whati
sthepur
poseofTabl
eMai
ntenanceGener
ator(
TMG)
?

Ans:
-Iti
susedt
omai
ntai
n(Change,
creat
e,modi
fy)t
hecust
om t
abl
esusi
ngt
hest
andar
dT-
Code
SM30.
q:I
fihav
e6f i
eldsi
nourztabl
es,
Butwheni
woul
dli
ket
odi
spl
ayt
hecont
ent
s,t
henonl
y4f
iel
dswoul
dbe
comeup, HOW ITWILLHandl
e?

a:
Inse11gototabl
e->sel
ectcontents->sel
ectsett
ings-
>sel
ect-
>for
matl
i
st-
>choosef
iel
ds-
>choose
whichfi
eldsy
ouwanttodi
splay(
selectcheckboxes)

Byt
hiswecandi
spl
aywhi
chf
iel
dswewantt
odi
spl
ayr
emai
ningf
iel
dswi
l
lhi
de.

6)Whatar
ethet
ypesofdat
abaset
abl
esanddi
ff
erencesbet
weent
hem?

Ans:
-Ther
ear
e3t
ypesofdat
abaset
abl
es.
1)Tr
anspar
entt
abl
es:
-Onet
oOner
elat
ionshi
p–CanbeJoi
nWi
thOt
herTr
anspar
entt
abl
es
2)Pool
edt
abl
es:
-Manyt
oOner
elat
ionshi
p.
3)Cl
ust
ert
abl
es:
-Manyt
oOner
elat
ionshi
p.
 Wemost
lyuset
ranspar
entt
abl
es.

Transpar
entTables(
VBAK) Pool
edTabl
es(
TTDTG) Cl
ust
ert
abl
es(
BSEG)
1.Theyhav eone-
one
Relat
ionshi
pwiththedat
a Many–One Many–One
baset abl
es
2.Secondar yi
ndexescanbe
created. NotPossi
ble NotPossi
ble
3.Bot hOpen&nat i
veSQL
canbeused. Onl
yOpenSQL Onl
yOpenSQL
4.TheTabl ename,fi
eldsname
andno. offi
eldsaresimi
lar Tablenamesandf i
l
ednames Tabl
enamesandfi
lednames
inDDI CandDatabase aredi
ff
erenti
nDatabase ar
edi
ff
erenti
nDatabase
5.I
tFol l
owsbothBinaryand I
tfoll
owsBinarySear
ch
linearSearch Itf
oll
owsLi nearSearch
Iti
sstoredwi
thanot
hersetof I
tisstor
edwi t
hanot hersetof
6.I
tismi
rr
ori
mageofDBTabl
e t
ablescall
edt
abl
epool t
ablescal
ledCl ust
erPool

7.For
eignkey
scanbecr
eat
ed For
eignkeyscan’
tbecr
eated For
eignkeyscan’
tbecr
eated
si
ncekeyfi
eldnamesare si
ncekeyfi
eldnamesare
di
ff
erenti
nDDI C&Tabl
epool di
ff
erenti
nDDI C&Tabl
epool

8.Canbejoinedwit
hot
her Can’tbeusedwithJoi
ns,Since Can’
tbeusedwi
thJoi
ns
Transpar
enttabl
es theyareal
readysetoft
ables

OpenSQL:
Iti
sasetofst
atement
swhi
chcani
nter
actwi
thanyki
ndofdat
abase.
Nat
iveSQL:
Iti
sspeci
fi
ctot
hepar
ti
cul
ardat
abase&i
thi
tst
hedat
abasedi
rect
ly.
7)Howdat
aisst
oredi
ncl
ust
ert
abl
e?

Ans:
Acl
ust
ert
abl
econt
ainsdat
afr
om mul
ti
pleDDI
Ctabl
es.I
tst
oresdat
aasanamev
aluepai
r

(
var
key
,var
dat
a)

8)I
sitpossi
blet
ocr
eat
ecust
om t
ransact
ioncodet
omai
ntai
nthet
abl
e?I
fyes,
howt
ocr
eat
eit
?

Ans:
-Yes,
Wecancr
eat
ebyusi
ngt
hecust
om T-
Codeusi
ngSE93.
9)Howt
oident
if
ythest
andar
dtabl
es?(
Indi
cat
ions)

Ans:
- 1)Thet
abl
eswhi
chdoesn'
tst
artwi
thZorY.
2)Thet
abl
eswhi
chcan'
tbeseeni
ntheCHANGEmode.

10)Howt
oseet
her
elat
ionshi
pbet
weent
het
abl
es?

Ans:
-1)Usi
ngSQVIT-
Code.
2)Whi
l
emai
ntai
ndat
aint
hechi
l
dtabl
e(For
eignkeyr
elat
ionshi
p).

11)Whati
sWher
eUsedLi
st?

Ans:
Iti
susedt
oli
stoutal
lthedependentobj
ect
s&knowt
heusageoft
hepar
ti
cul
arobj
ect
.

 TheT-
codeSQVIi
susedt
ocheckt
her
elat
ionshi
psbet
weent
het
abl
es.

12)Canweadd/
Enhanceaddi
ti
onal
cust
omerspeci
fi
cfi
eldv
alest
ost
andar
ddomai
ns?

Ans:Yes,t
hestandar
ddomainscanbeenhancedtoadd,addi
ti
onal
customerspeci
fi
cfi
xedv
alues &
i
nter
valsusingt
heMenupath:Goto->Fi
xedValueAppendatDomainlevel
.

13)Howmanyt
ypesofI
ndexesar
ether
eandexpl
ainaboutt
hem?

Ans:
-Indexesar
eusedt
oav
oidt
hedupl
i
cat
edat
awhi
l
eaccessi
ngt
het
abl
e.I
ndexescanal
sobe
usedf
orbet
terper
for
mancewhi
l
eext
ract
ingt
hedat
athet
abl
es.Ther
ear
e2t
ypesofI
ndexes.
1)Pr
imar
yindex:
Iti
sgener
atedbyt
hesy
stem usi
ngt
hekeyf
iel
doft
het
abl
es.
Keyf
iel
dshol
dtheuni
quedat
a(I
mpl
i
citI
ndexes)
.
2)Secondar
yIndex:
Thesear
ecr
eat
edandmai
ntai
nedbyt
heTechni
cal
Consul
tant
s/ABAP’
er.
Wecancr
eat
e9secondar
yindexespert
abl
e.Wecancr
eat
ethesecondar
yindexesf
orbot
h
cust
om &st
andar
dtabl
es.I
tcanbedef
inedbybot
hkey&nonkeyf
il
edcombi
nat
ion.

Q)Howt
omakeSELECTst
atementt
omakeuseofanypar
ti
cul
arsecondar
yindex?

Ans:
TABLES:
spf
li
.

DATA:
t_spf
liLI
KEspf
liOCCURS0WI
THHEADERLI
NE.

SELECT*FROM spf
li
I
NTOTABLEt _
spfl
i
%_HINTSORACLE'
INDEX(
"SPFLI
""SPFLI
~001"
)'
.

LOOPATt_spfl
i.
WRITE:
/t_spf
li
.
ENDLOOP.

14)Whatar
ethedi
ff
erencesbet
weenCheckt
abl
eandVal
uet
abl
e?

Checkt
abl
e Val
uet
abl
e
1.Iti
smai ntai
nedattheTABLEl evel
. 1.I
tismai ntai
nedattheDOMAI Nl
evel
.
2.Itcanbeusedt oextractthedat ai
nt he 2.I
tcan'tbeusedt oextr
actdatasi
nceiti
sli
nked
programs. wit
hthedomai n.
3.TheSear chHelpisdisplayedfrom the 3.TheSear chHelpisdi
splayedoneachfi
eld
Checkt ableontheforeignkeyf i
eldofa whichisl i
nkedwitht
hesamedomai nofthe
forei
gnkeyt abl
e. Valuetable.
4.Itfor
cest heusert
osel ectanyoneoft he 4.I
tdoesnotf or
cetheusersincei
thasemptyvalue
checkt
abl
efi
eldent
ri
es bydefault
.

15)Whatar
ethet
ypesofVi
ewsandexpl
ainaboutt
hem?

Ans:
-Vi
ewsar
ethev
irt
ual
/i
magi
nar
ytabl
es.I
tdoesnotcont
aint
hedat
aper
manent
ly.
Vi
ewcont
ainst
hedat
aatRunt
imeonl
y.
1)Dat
abaseVi
ew:
-Iti
susedt
ocombi
net
hemul
ti
plet
abl
eddat
abyj
oini
ngt
hem.I
tcanbe
usedt
oext
ractt
hedat
aint
hepr
ogr
ams.
2)Mai
ntenanceVi
ew:
-Iti
susedt
omai
ntai
nmul
ti
plet
abl
esdat
ausi
ngt
heT-
codeSM30(
TMG)
.
3)Hel
pVi
ew:
-Iti
susedi
nthesel
ect
ionmet
hodi
nanEl
ement
arySear
chHel
ptopr
ovi
det
he
l
i
stofpossi
bleent
ri
esf
rom t
hemul
ti
plet
abl
es.
4)Pr
oject
ionVi
ew:
-Iti
susedt
oHI
DEt
heunwant
edf
iel
dsoft
het
abl
e.I
tcanbe
def
inedusi
ngonet
abl
eonl
y.
16)Whatar
etheSear
chHel
p,t
ypesandexpl
ainaboutt
hem?
Ans:
-Iti
susedt
opr
ovi
deal
lthepossi
bleent
ri
est
othei
nputv
ari
abl
eassear
chhel
p.
1)El
ement
arySear
chhel
p:-I
tiscr
eat
edusi
ngonebaset
abl
e.
2)Col
l
ect
iveSear
chhel
p:-I
tist
hecol
l
ect
ionofEl
ement
arySear
chhel
p.
Sear
chHel
pExi
t:I
tisaFunct
ionmodul
etof
il
terpossi
bleent
ri
esofasear
chhel
p.
I
tisusedt
omodi
fyt
heF4v
aluesatr
unt
ime.
 Theyar
eusedt
orest
ri
ctt
hest
andar
dsear
chhel
pret
urnedv
aluesaccor
dingt
ouser
’s
r
equi
rement
.
Ex:
whenUser1r equi
reonl
ymater
ialt
ypeasf
ini
shedgoods&User2r
equi
reonl
ymat
eri
alt
ypeasRaw
mater
ial
.Fort
hisscenar
iowecanuse.

 Tor
est
ri
ctt
hev
aluesf
ormat
eri
albymat
eri
alt
ypesear
chhel
pnamei
s:MAT1T_
E

18)I
sitpossi
blet
ocr
eat
eat
abl
e/st
ruct
urewi
thoutcr
eat
inganydat
ael
ementanddomai
ns?

Ans:
-Yes,
wecancr
eat
eusi
ngt
hepr
edef
inedt
ypes.
I
tisusedt
ocr
eat
ethet
abl
ewi
thoutusi
ngDat
aEl
ement
s/Domai
ns.
 I
fthet
abl
eorst
ruct
urei
scr
eat
edusi
ngpr
edef
inedt
ypes,
the‘
+’sy
mbol
sar
eappear
edwhi
l
e
mai
ntai
ningt
het
abl
einst
eadoff
iel
dlabel
s(Headi
ngs)
.
 Reusabi
l
ityi
snotpossi
blewi
tht
hePr
edef
inedTy
pes.
 For
eignkeyr
elat
ionshi
piscannotbecr
eat
edsi
ncei
tdoesn’
tcont
ainsDomai
ns.

19)Whatar
etheLockobj
ect
sandexpl
ainaboutt
hedi
ff
erentl
ockmodes?

Ans:
-Theyar
eusedt
ocont
rol
thepar
all
elaccessf
ort
hesamedat
abyt
hemul
ti
pleuser
s.I
tav
oids
t
heconcur
rencyaccessofmul
ti
pleuser
sont
hesameDat
abase.
 Thecust
om l
ockobj
ectnameshoul
dst
artwi
th'
E'f
oll
owedbyt
het
abl
ename.
Ex:
-E<ZB16_
Student>.
 I
tgener
atest
wof
unct
ionmodul
esonest
artwi
thENQUEQEandot
herst
artwi
thDEQUEQE.
 ENQUEQE-Requestf
orLock
 DEQUEQE-
ToRel
easet
heLock
Ty
pesofLocks:
1)Wr
it
e/Excl
usi
ve:
Thel
ockeddat
acanbeaccessedbysi
ngl
euseronl
y.Al
lot
herLockr
equest
s
ar
erej
ect
ed.
2)Read/
Shar
ed:Themul
ti
pleuser
scanaccesst
hesamedat
aatt
hesamet
ime.I
fnousert
ri
est
o
edi
tthedat
a,al
lot
heruser
scannotaccesst
hisdat
a.
3)Excl
usi
vebutnotCumul
ati
ve:
Itcanber
equest
edonl
yoncebyt
hegi
vent
ransact
ion
Codes.Al
lot
herl
ockr
equest
sar
erej
ect
ed.
SM12:
Thi
sT-
codei
susedt
oli
stoutt
hel
ockedobj
ect
s&t
odel
etet
hel
ockedobj
ect
s.

20)Whatar
ethedi
ff
erencebet
weenTabl
eandSt
ruct
ure?

Tabl
e St
ruct
ure

1.
Tabl
econt
ainst
hedat
a 1.St
ruct
uredoesnotcont
aint
hedat
a.I
tis

f
il
ledwi
thsi
ngl
erecor
datRunt
ime.

2.I
tmustcont
ainsatl
east1f
iel
das 2.I
tdoesnotcont
ainpr
imar
yfi
elds.

Pr
imar
yFi
elds.

3.
Dat
abasemustcont
ainsDel
i
ver
ycl
ass& 3.
Itdoesnotcont
ainsDel
i
ver
ycl
ass&

Techni
cal
set
ti
ngs. Techni
cal
set
ti
ngs.

21)Expl
ainaboutDat
ael
ement&Domai
n.

Ans:
-Dat
aEl
ement:
-Iti
soneoft
hedat
adi
cti
onar
yobj
ectwhi
chcanbeusedt
omai
ntai
nthe
f
iel
dlabel
s(descr
ipt
ions)oft
hef
iel
dsi
nthet
abl
eorst
ruct
ure.
 Par
amet
erI
D’sar
emai
ntai
nedatDat
aEl
ementl
evel
underFur
therChar
act
eri
sti
cs
t
ab.
Domai
n:-I
tisoneoft
hedat
adi
cti
onar
yobj
ectwhi
chcanbeusedt
omai
ntai
nthe
t
echni
cal
proper
ti
esoft
hef
iel
dsi
nthet
abl
esuchar
eDat
aty
pes(
char
,
numc.
..
.et
c),
lengt
hoft
hedat
a(10,
20.
..
etc)
 I
tcanbeusedt
omai
ntai
nVal
uet
abl
etopr
ovi
desear
chhel
pont
hef
iel
d.
 Conv
ersi
onRout
inesar
emai
ntai
nedatDomai
nLev
el.

22)Howt
oadj
ustt
het
abl
e/Vi
ew?

Ans:
-Ift
her
ewasanychangesmadeatt
het
abl
elev
elt
hesy
stem wi
l
lthr
owaner
roras

Str
uct
urechangeatf
iel
dlev
el'
.Thet
abl
emustbeadj
ust
edt
orect
if
ythi
ser
ror
.
 TheT-
CodeSE14ort
hepat
h:Ut
il
it
ies-
--
>dat
abaseobj
ect
s--
->dat
abaseut
il
it
ycanbeusedt
o
adj
ustt
het
abl
e.
 I
fthekeyf
iel
dischangedasnon-
keyf
iel
dthent
hesy
stem t
hrowsaner
ror‘
Conv
ertTabl
e’
:
st
ruct
urechangedatTabl
elev
el.
23)Ihav
eaZ-Tabl
e,Iwant
stoaddonemor
efi
eldt
othet
abl
ewi
thoutdi
stur
bingpr
evi
ousdat
a,what
shoul
dIdo?

Ans:
Whi
l
eadj
ust
ingdat
abaset
abl
einSE14,
sel
ect'
Sav
eDat
a'r
adi
obut
ton.
24)Whatar
ethedi
ff
erentway
stopr
ovi
desear
chhel
ps?

Ans:
-Wecanpr
ovi
dei
n3way
s.
 Usi
ngv
aluet
abl
eatDomai
nlev
el.
 For
eignkeyr
elat
ionshi
p.
 El
ement
aryandcol
l
ect
ivesear
chhel
p.

25)Whati
sty
pegr
oupandexpl
ain?

Ans:
-Iti
soneoft
hedat
adi
cti
onar
yobj
ect
s.
 I
tisusedt
odef
inet
heGl
obal
types,
Int
ernal
tabl
esandconst
ant
swhi
chcanber
efer
red
any
wher
eint
hesy
stem.
 TheABAPst
atementTYPE-
POOLSi
susedt
ocal
l
/def
inet
het
ypegr
oup.
26)Whati
stabl
ety
peandexpl
ain?

Ans:Iti
soneofthedatadi
cti
onar
yobj
ectusedt
odef
inet
hegl
obal
int
ernal
tabl
ewhi
chcanbe
ref
err
edacr
ossthesyst
em.

27)Whati
stheMaxi
mum No.ofst
ruct
urest
hatcanbei
ncl
udedi
nat
abl
eorSt
ruct
ure?

Ans:
-9(Ni
ne)

28)Cany
ouuseal
ltheVi
ewsi
ntheABAPPr
ogr
am?

Ans:
-No.Wecanuseonl
yPr
oject
ionv
ieworDat
abasev
iewi
nthePr
ogr
am.

29)I
nwhi
cht
abl
ear
ethepr
ogr
ams,
Tabl
es,
Dev
elopmentcl
asses(
packages)ar
est
oredi
n?

Ans:
-TheProgramsdetail
sar
estoredint
hetabl
eTRDI
R,Dat
abaset
abl
esi
nDD02LandDD02Tand
thedevelopmentcl
asspackagesi
nTDEVC.

30)Expl
ainaboutt
het
abl
esTADI
RandTRDI
R?

Ans:
TADI
Risat
abl
ewhi
chhol
dst
heDat
aDi
cti
onar
yobj
ect
s.i
.e;
Dat
ael
ement
s,Domai
ns,
Tabl
es, T-
codeset
c&TRDI
Rst
oresal
lthecl
i
enti
ndependentPr
ogr
amsdet
ail
s.

Q)Whati
sthedi
ff
erencebet
weenpackageanddev
elopmentcl
ass?
?

a:
Wecal
l
eddev
elopmentcl
assi
nthev
ersi
on4.
6.Andt
hatwecal
l
edPackagecal
l
edi
nthe4.
7EVERSI
ON.

Ther
eisnodi
ff
erencei
nbet
weent
hese2ones.

31)Wheny
oucr
eatenewent
ri
esi
nthet
abl
ethef
iel
dval
uesar
eal
way
sinUpper
case.Howdoy
ou get
thedat
awi
thmi
xedcase?

Ans:-Thereasonforthi
sist
hatt
heDomainf
ort
heFiel
dinthetablemighthav
eLower
case checkbox
unchecked.ChecktheLOWERCASECHECKBOXtopr
eserv
et hecaseofyourdata.

 ThecheckboxLowercaseischeckedtomakecharact
erfi
eldsasacasesensi
ti
vet
oacceptboth
Upper&Lowercaselet
ters.Si
ncethesyst
em t
akesthe‘Charact
er’
dat
atypeasUppercasel
ett
ers
bydefaul
t.

33)Whati
sTr
ansact
ioncode?

Ans:
Theyar
ethecommands/
shor
tcut
stoexecut
ecor
respondi
ngappl
i
cat
ion.I
nSAP
eachscr
eeni
sassoci
atedwi
thT-
Code.

a)St
andar
dTcode:
Theyar
ethesy
stem pr
ovi
dedt
owor
kwi
tht
hepr
e-def
inedappl
i
cat
ions.The

st
andar
dT-
codescoul
donl
ybet
hecombi
nat
ionofanyal
phabet
s/al
pha-
numer
ic

Ex:
SQVI
,SE11,
SE38(
SE-
Syst
em Engi
neer
ing,
SM –Sy
stem Machi
ne,
SQ-
Syst
em quer
y)

b)Cust
om Tcode:
Theyar
ecr
eat
ed&mai
ntai
nedbyABAPTechni
cal
Consul
tant

SE93i
susedt
owor
kwi
thcust
om T-
code.

 TSTC– I
tist
hest
andar
dtabl
ewhi
chcont
ainsal
ltheTr
ansact
ionCodesi
nthesy
stem.

 TFDI
R–Funct
ionModul
es

34)Whati
sDat
aDi
cti
onar
y/DDI
C?

Ans:Dat
aDicti
onaryiscent
ral&st
ruct
uredsour
ceofdata.Thedat
aobj
ect
scanber
efer
red
anywher
einthesystem &thedat
adefi
niti
onsar
emaintai
nedintheDDI
C.

q.
whati
sthedi
ff
erenceb/
wdat
adi
cti
onar
yanddat
abase?

a:
dat
adicti
onaryisacent
ralr
eposi
tor
ywher
ethedef
inedal
ltheobj
ectr
elat
edt
odat
abase.Adat
abasei
s
anor
ganizedcoll
ect
ionofdat
a

Q)Whati
sthebasicDif
fer
encebet
weeni
nternaltablesanddat
abaset
abl
es?Howcanwedi
ff
erent
iat
eby
l
ooki
ngatthet
ables?AndhowHandli
ngofInter
nal Tabl
es?

Ans:-Thebasi
cDiff
erenceisdatabaset
abl
esar
eSt
oredi
nDBSer
verandt
hei
nter
nal
tabl
esar
e
vi
rt
ualtabl
esthesear
ecr eat
edruntimeonl
y.

q.
whati
sdat
aconsi
stency

a:
DataConsi
stencymeanseachuserseesaconsi
stentv
iewoft
hedat
aincl
udi
ngchangesmadebyt
he
userowntr
ansacti
ons&other
stransact
ions.

35)Expl
ainabout3-
TierAr
chi
tect
ure?

Ans:
1.Pr
esent
ati
onLay
er(
GUI
):I
tisanenv
ironmentwher
eal
ltheuser
sar
esentf
ort
heser
vices.

2.Appl
i
cat
ionLay
er:
Itr
eceivesrequest
sfr
om thepresentati
onlayert
ogett
hem processed.
I
talsosendsbacktheservi
cestothepr esent
ati
onl
ayer
.Thereare4
t
ypesofcomponent si
napplicat
ionlayer.

a.Dispatcher:
Iti
sali
nkbet
weenthepr
esentat
ionl
ayer&t
heworkprocess.I
trecei
vesthe
requestfrom t
hepr
esent
ati
onl
ayer&sendsthem t
oanappr
opr
iat
ewor kprocesstoget
t
hem pr
ocessed.

b.Gateway
/ Lay
er:
Itisacommunicat
ionprot
ocol
oft
hecrossappl
i
cat
ioncomponent
ssuch
ar
eRFC, BAPIetc.I
tpr
ovi
desl
inkbetweentwoSAPsy
stems.

c. Shar
edMemor
y:I
tisacommonmemor
ywhi
chcanbeshar
edbyal
lthewor
kpr
ocess.

d.Wor
kPr
ocess:
Iti
sacomponentt
oexecut
etheappl
i
cat
ions.

3.Dat
abaseLay
er:
Iti
scent
ral
reposi
tor
yoft
hedat
a.I
tpr
ovi
desdat
abaseser
vicest
ogr
oupof
cl
i
ents.

36)Whati
sCommandf
iel
d?

Ans:
Iti
susedt
oexecut
etheT-
codesi
nSAPwhi
chi
slocat
edonst
andar
dtool
bar
.

/
o:I
tisusedt
oexecut
etheT-
codei
nanot
hernewsessi
on.

/
n:I
tisusedt
oexecut
etheT-
codeont
hesamesessi
onbycl
osi
ngcur
rentsessi
on.

37)Whatar
eWor
kbenchobj
ect
s/t
ool
s?

Ans:
Iti
sacoll
ecti
onoft
oolswhichcanbeusedtodevel
opt
heappli
cat
ions,
changet
heexi
sti
ng
appl
i
cati
ons&implementthecust
omerspeci
fi
cbusi
nessr
equir
ements.

38)Whati
sObj
ectNav
igat
or?

Ans:I
tisthecentr
alpoi
ntofentr
ytoworkwithanyki
ndofwor
kbenchobj
ect
ssuchasPr
ogr
ams,
DDICobject
s,Functi
ongroupset
c.TheT-codei
s:SE80.

39)Whati
sFor
eignKey
?

Ans:
Akeyf
iel
disdef
inedasat
abl
efi
eld&i
spr
imar
ykeyofanot
hert
abl
eiscal
l
edf
orei
gnkey
.

 TheCheckt
abl
efi
eldshoul
dbeapr
imar
ykey
.

 TheDomai
nnameoft
heCheckt
abl
e&f
orei
gnkeyt
abl
eshoul
dbesamebutf
iel
dnamei
sdi
ff
erent
.

 Asear
chhelpisdispl
ayedt
oseethepossi
bleent
ri
esofacheckt
abl
eont
hef
orei
gnkeyf
iel
dwhen
t
hefor
eignkeytablei
sexecut
ed.

40)Whati
saCl
i
entDependent&Cl
i
entI
ndependentt
abl
e?

Ans:
Thet
abl
ewhi
chhav
ethef
iel
dMANDTf
iel
d(Cl
i
entno)i
scal
l
edCl
i
entDependentt
abl
e.

Thet
abl
ewhi
chdon’
thav
etheMANDTf
iel
d(Cl
i
entno)i
scal
l
edCl
i
entI
ndependentt
abl
e.

41)Whatar
eKeyf
iel
d&Non-
keyf
iel
ds?

Ans:
Thekeyf i
eldsdon’
tall
owduplicat
es.I
tcont
ainsuni
quedat
a.Thekeyf
iel
dcheckboxesar
e
checkedt omakethefi
eldsasprimar
ykey.

Thenon-
keyf
iel
dsmay
/may
n’tal
l
owdupl
i
cat
es.Thekeyf
iel
dcheckboxesar
eunchecked.

42)Whati
sIni
ti
alVal
ueCheckbox?

Ans:
TheI
nit
ial
Val
ueCheckboxi
scheckedt
otaket
hedef
aul
tfi
eldv
aluesoft
hekeyf
iel
dsf
ort
he 1st
t
ime.

43)Di
ff
erencesbet
weent
het
abl
escr
eat
edusi
ngDat
ael
ement
s&Pr
e-def
inedt
ypes?

Dat
ael
ement
s Pr
e-def
inedt
ypes

1.Dat
ael
ement
scanber
eused 1.
Reusabi
l
tyi
snotpossi
ble

2.For
eignkeyr
elat
ionshi
pcanbecr
eat
edsi
nce 2.For
eignkeyr
elat
ionshi
pinnotbecr
eat
ed.

i
tcont
ainsdomai
ns.

3.Fi
eldl
abel
s(Headi
ngs)ar
edi
spl
ayedwhi
l
e 3.‘+’symbol
sareappearedwhi
l
emai
ntai
ningt
he
tableinst
eadoff
iel
dlabels.
mai
ntai
nthet
abl
e.

44)Whati
saLogi
cal
Dat
abase?

Ans:
Logical
Databasesar
eABAPprogramsthatr
etri
evedataandmakeitavai
l
abl
eto appli
cat
ion
pr
ograms.UseofLDB–i susedt
oreaddat
afrom databaset
ablesbyl
i
nking t
hem t
oexecut
abl
eABAP
pr
ograms.

45)Whati
sHot
key
?

 Thi
sisusedt
osel
ectt
heel
ement
arysear
chhel
pfr
om t
hecol
l
ect
ivesear
chhel
p.

 Toent
ert
her
est
ri
cti
onsi
nthedi
alogboxf
orr
est
ri
cti
ngv
aluesdi
rect
lyf
rom t
heent
ryf
iel
d.

Adv
ant
age:
Ift
heuserof
tensear
chesf
orv
aluesusi
ngt
hesamesear
chhel
p,t
hispr
ocedur
ecansav
eti
me.

46)Whatar
etheI
mpor
tantTabl
est
ost
oret
heDef
ini
ti
onsofDDI
C?

Tabl
e Shor
tText

DD01L Domai
ns

DD01T Domai
nText
s

DD02L SAPTabl
es

DD02T SAPTabl
eText
s–Tof
indt
abl
enamesusi
ngShor
tDescr
ipt
ion

DD03L Tabl
eFi
elds

DD03T Text
sforf
iel
ds

DD04L Dat
aEl
ement
s

DD04T Dat
aEl
ementText
s

DD05S For
eignKeyFi
elds

TSTC Tr
ansact
ionCodes
TFDI
R Funct
ionModul
es

47)Expl
ainaboutCur
rencyorQuant
it
yfi
eldsi
nDDI
C?

 I
nSAPt
hecur
rency&quant
it
yfi
eldsar
erequi
redcurr
encykey&quanti
tyuni
t.Hence,
ther
efer
ence
t
abl
e&t
heref
erencef
iel
dmustbespecif
iedf
orcurr
ency&quant
it
yfiel
ds.

 Thedat
aty
pef
ort
hecur
rencyf
iel
dis‘
CURR’
&thedat
aty
pef
ort
hecur
rencykeyi
s‘CUKY’
.

 Thedat
aty
pef
ort
hequant
it
yfi
eldi
s‘QUAN’
&thedat
aty
pef
ort
hequant
it
ykeyi
s‘QUAN’
.

 Ther
efer
encet
abl
ecoul
dbeanyt
abl
ewhi
chhast
hecur
rencykey&quant
it
yuni
tfi
elds.

 Thesamet
abl
ecanal
sobeusedasar
efer
encet
abl
eifi
thast
hecur
rencykeyorquant
it
yuni
tfi
elds

48)Whatar
edi
ff
erentt
ypesofDat
aDi
cti
onar
yObj
ect
s?

1.Dat
abaseTabl
es

2.Domai
ns

3.Dat
aty
pes

a.Dat
ael
ement

b.St
ruct
ure

c. Tabl
ety
pe

4.Sear
chhel
ps

a.El
ement
arysear
chhel
p

b.Col
l
ect
ivesear
chhel
p

5.Vi
ews

a.Dat
abasev
iew

b.Mai
ntenancev
iew

c. Hel
pvi
ew

d.Pr
oject
ionv
iew

6.Lockobj
ect
s

a.Wr
it
e/Excl
usi
veLock

b.Read/
Shar
edLock

c. Excl
usi
veButnotCumul
ati
ve

7.Ty
pegr
oups

 TheObj
ect
sViews,MatchCodeandLockobj
ect
sar
ecal
l
edAggr
egat
eObj
ect
sbecauset
heyar
e
for
medfr
om sever
alr
elat
edtabl
e.
49)Whati
sCl
i
ent&Ser
ver
?

 Cli
ent:I
tisasof
twar
e/har
dwar
ecombi
nat
ionwhi
chcansendt
her
equest
sforser
vicesf
rom t
he
centr
alsyst
em.

 Ser
ver
:Iti
sasof
twar
e/har
dwar
ecombi
nat
ionwhi
chcanpr
ovi
det
heser
vicest
oagr
oupofcl
i
ent
s.

Fundament
als
Fundament
als

1)Expl
ainaboutABAPQuer
ies?
Ans:
-Iti
sthesy
stem pr
ovi
dedt
ool
togener
atet
her
epor
ts.I
tdoesn'
trequi
reanypr
ogr
ammi
ng
Knowl
edge.

2)Whatar
etheTr
ansact
ionCodesassoci
atedwi
thABAPQuer
ies?
Ans:
-TheT-
CodesSQ03,
SQ02,
SQ01ar
eusedt
owor
kwi
tht
heABAPQuer
ies.
3)Whatar
ethepur
posesofSQ01,
SQ02andSQ03?
Ans:
-
SQ03:
-Iti
susedt
omai
ntai
ntheusergr
oups.Ausergr
oupi
sacol
l
ect
ionofI
nfoset
sand
Quer
ies.Usergr
oupscanal
sobeusedt
ocont
rol
theuseraut
hor
izat
iont
oaccesst
he
cor
respondi
ngquer
ies.
SQ02:
-Iti
susedt
omai
ntai
ntheI
nfoset
s.Thesear
eusedt
ospeci
fyt
hedi
ff
erentdat
a
sour
cesf
orm whi
cht
hedat
acanbeext
ract
ed.
SQ01:
-Iti
susedt
omai
ntai
ntheQuer
ies.I
tisusedt
osel
ectt
heI
nput(
sel
ect
ionf
iel
ds)&
Out
put(
li
stf
iel
ds)
.

4)I
sitpossi
blet
owr
it
eanABAPcodei
nQuer
ies?
Ans:
-Yes.Usi
ngCodei
con(
shi
ft
+f8)
.
5)Whati
sthedi
ff
erencebet
weenTYPEandLI
KE?
Ans:
-
TYPE:
-Iti
susedt
oref
ert
hebot
hEl
ement
arydat
aty
pes(
I,F,
P)&DDI
Cobj
ect
ssuchasdat
a
el
ement
s,t
abl
es,
str
uct
uresm dbv
iews,
fiel
dset
c.
 Thi
sSt
atementdoesn'
tcopyt
heexi
sti
ngpr
oper
ti
esoft
heobj
ect
s.
Sy
ntax:
DATA:
<gv
-var
>TYPE<I
/D/
F/C.
..
..
.>.
LI
KE:
-Iti
susedt
oref
eronl
ythedat
aobj
ect
s.
Sy
ntax:
DATA:
<gv
-fi
eld>LI
KE<dbt
ab_
fiel
d>.
 Thi
sSt
atementcopi
est
heexi
sti
ngpr
oper
ti
esoft
heobj
ect
s.
6)Whati
sthedef
aul
tty
peandl
engt
hoft
hev
ari
abl
e?
Ans:
-Thedef
aul
tty
pei
sChar
act
er(C)andl
engt
hisone(
1).
7)
.Di
ff
erencesbet
weenWr
it
e&Mov
eSt
atement
?
Ans:
Wri
te:
Iti
susedt
omov
ethedat
afr
om t
hesour
cedat
avar
iabl
etodest
inat
ionv
ari
abl
ewi
thout
mi
ssi
ngconv
ersat
ions.i
.e;
Cur
rency&Quant
it
yfi
elds.
Mov
e::
Iti
susedt
omov
ethedat
afr
om t
hesour
cedat
avar
iabl
etodest
inat
ionv
ari
abl
ewi
th
mi
ssi
ngconv
ersat
ions(
maybemi
ssedout
).
I
ncaseofWr
it
e I
ncaseofMov
e

<gv
_cur
rency
><gv
_dest
> <gv
_cur
rency
><gv
_dest
>

5,
895.
50 5895.
50 5,
895.
50 5,
89550
32)Di
ff
erencesbet
weenTy
pes&Fi
eldSt
ri
ngs?

Ty
pes Fi
eldSt
ri
ngs

1.Theycanbeusedasr
efer
encef
orWor
kar
ea’
s 1.Theycanbeusedt
odecl
areWor
kar
ea’
s&

&I
nter
nal
tabl
es I
nter
nal
tabl
esdi
rect
ly.

2.TheABAPst
atementTYPESi
susedt
odecl
are 2.TheABAPst
atementDATAi
susedt
odecl
are

Ty
pes. Fi
eldSt
ri
ngs.

3.I
tdon’
thol
dthedat
asi
ncet
heyar
enotdat
a 3.I
thol
dst
hedat
asi
ncet
heyar
edat
avar
iabl
es.

obj
ect
s.

8)Whatar
ethedi
ff
erencesbet
weenWor
kAr
eaandFi
eldSy
mbol
?

WorkAr ea Fiel
dSymbol
1.Iti
sthedat avari
able. 1.Iti
saPoi nt
er.
2.TheABAPst atementisDATAi susedtodeclaret
hework 2.TheABAPst atementFIELD- SYMBOLSis
areas,I
tabs,vari
ablesetcinappli
cati
onpr
ogr am. usedt odecl
areFiel
dsymbol s.
3.TheABAPst atementINTOi susedtoprocess recor
d 3.TheABAPst atementASSI GNINGisused
byrecordthroughwor karea. toassigntheFIELD-SYMBOLS.
4.TheABAPst atementMODI FYmustbeusedt o 4.Noneedt ouseMODI FY, Sincei
tisa
modifytheint
ernaltabl
e. pointer.
5.ItMustbespeci f
ywithi
nt heAngular
5.Noneedt
ospeci
fywi
thi
ntheAngul
arbr
acket
s(<>)
. brackets(<>)
.

Q)Fi
eldsy
mbolwor
kasapoi
nter
,buti
tst
oreaddr
essofv
alue.myquest
ionis,i
tgotaddr
essf
rom sap
memoryorABAPmemor
yori
ndatabaseser
ver?Imeant
hataddr
essindicat
etowhi
chmemory?

a:
Ital
l
ocat
eABAPMemor
y

9)Di
ff
erencesbet
weenWor
kar
eaandi
nter
nal
tabl
es?

WorkArea Int
ernalTabl
es
1.ItHoldssi
ngl
erecordatati
me. 1.HoldsMulti
plerecords.
2.Itdoesn'
thav
eBODY. 2.IthasBODY[].
3.TheRecordbyrecordi
sprocessed 3.Incaseofint
ernaltablewithheaderli
net
her
ecor
dby
throughtheworkarea recordi
sprocessedthroughheaderl i
ne.

Q)Whati
sdi
ff
erencebet
weenI
nter
nal
Tabl
ewi
thoutHeaderLi
neandI
nter
nal
Tabl
ewi
thHeaderLi
ne?

Ans:I
nternalTablewithoutHeaderLinecreat
esani
nter
nalt
abl
eandworkareaseparat
ely
.Whenweuse,
theI
nternalTablewithheaderli
ne,t
ableiscreat
edt
henthewor
kareai
screatedautomati
cal
l
ywit
hthe
samenamet hatoftheinter
naltabl
e.

Q.whati
sthemai
ndi
ff
erencebet
weenheaderl
i
neandwor
kar
ea?

Ans:
 Headerl
ineiscr
eat
edbydefaul
twhenwecr
eat
etheI
nter
nalt
ableusi
ng"begi
nof
"orexpl
i
cit
ly“
wit
h
headerl
i
ne".Usi
ngheaderl
i
newecanpasst
heval
uei
ntothei
nternal
tabl
e.

 Workareashouldhavethesamest
ruct
ureasthatofinter
nalt
abl
e.I
tshoul
dbecreatedbyus,wher
e
astheheaderl
ineiscr
eatedaut
omati
cal
ly.Workareaitholdt
hesi
ngl
edatadur
ingtheexecut
ionof
thepr
ogram.

 Functi
onofworkareaandheaderl
i
neissame.Bothareusedt
oprocessedt
hedat
afr
om i
nter
nal
tabl
e.asiknowthedefaul
tworkar
eaofanint
ernalt
ablei
saheaderl
ine.

10)
.Expl
ainaboutTy
pes.

Ans:
-TYPES:
-Iti
susedt
ocl
ubt
hemul
ti
plef
iel
dsf
rom t
hemul
ti
plet
abl
esasasi
ngl
euni
t.I
tis

usedasar
efer
encet
odecl
aret
heDat
avar
iabl
es,
Wor
kar
eas,
Int
ernal
tabl
eset
c.
DATA:
Iti
susedt
odecl
aret
hedat
avar
iabl
essuchasv
ari
abl
es,
wor
kar
eas,
int
ernal
t
abl
eset
cinanappl
i
cat
ionpr
ogr
am.
Sy
ntax:
-TYPES:
BEGI
NOF<t
yp_
dbt
ab1_
dbt
ab2>,
<F1>TYPE<dat
ael
ement
1/dbt
ab1-
F1/
dbst
r_F1>,
.
<F5>TYPE<dat
ael
ement
5/dbt
ab1-
F5/
dbst
r_F5>,
ENDOF<t
yp_
dbt
ab1_
dbt
ab2>.
DATA:
<gs-
dbt
ab1_
dbt
ab2>TYPE<t
yp-
dbt
ab1_
dbt
ab2>./
/decl
aret
hewor
kar
ea
11)Whatar
ethedi
ff
erentway
stodecl
aret
heI
nter
nal
Tabl
eandwhi
chi
spr
efer
abl
e?

Ans:
-Ther
ear
etwoway
stodecl
aret
heI
nter
nal
tabl
es.
1) Sy
ntax:
-
DATA:
<gt
_dbt
ab>TYPESTANDARDTABLEOF<dbt
ab/
dbst
r.
..
..
>./
/Pr
efer
abl
e.
2) Sy
ntax:
-
DATA:
<gt
_dbt
ab>TYPETABLEOF<t
yp_
dbt
ab/
dbt
ab/
dbst
r>WI
THHEARDERLI
NE.
12)Whatar
ethedi
ff
erencesbet
weenPARAMETERSandSELECT-
OPTI
ONS?

PARAMETERS SELECT-
OPTI
ONS
1.Itisusedtodefi
neCheckboxes, Listboxes,
Radio
buttons&singl
eI /
Pf iel
ds. 1.I
tisusedt
odef
ineSi
ngl
e&Rangei
nputFi
elds.
2.TheABAPst at
ement sTYPE/ LI
KEisusedt oref
erthe
Datat y
pes 2.TheABAPst atementFORisused.
3.TheOper at
or'EQ'or'='isusedintheWHERE 3.Theoper ator'
I
N' i
susedinthe WHERE
conditi
on. condit
ion.
4.Itisuseasansi ngleinputdatavari
able 4.Itissystem generat
edint
ernal
tabl
ewi
tht
he
fi
eldsSIGN, OPTION,HIGH&LOW
5.I
tbehav
esasp_
input=‘
=space’
. 5.Itbehavesass_ i
nput=‘*’
.

13)Whatar
ethedi
ff
erentt
ypesofi
nter
nal
tabl
esandexpl
ainaboutt
hem?

Ans:
-Int
ernal
Tabl
es:
-Theyar
ethei
nter
medi
atet
abl
est
ohol
dthemul
ti
pler
ecor
dsatr
unt
ime.
 Ther
ear
e3t
ypesofi
nter
nal
tabl
es.
1.STANDARDI
nter
nal
tabl
es:
-Thest
andar
dInt
ernal
Tabl
esar
efi
l
ledusi
ngt
heABAP
st
atement'
APPEND'
/’
INSERT’
.I
taccept
sthedupl
i
cat
erecor
ds.Sear
chi
ngofar
ecor
dis
Li
nearSear
ch.I
tist
hedef
aul
tindext
abl
e.St
andar
dint
ernal
tabl
ecanbesor
ted
expl
i
cit
lyei
therAscendi
ng/
Descendi
ng.
Sy
ntax:
-DATA:
<gt
_dbt
ab>TYPESTANDARDTABLEOF<t
yp_
dbt
ab/
dbst
r.
..
..
>.

2.SORTEDI
nter
nal
tabl
e:-TheABAPst
atement'
I
NSERT/
APPEND'
isusedt
ofi
l
lSor
ted
I
nter
nal
Tabl
e.I
tdoesnotacceptt
heDupl
i
cat
erecor
ds.Sear
chi
ngofar
ecor
disBi
nar
y
Sear
ch.Sor
tedi
nter
nal
tabl
ecannotbesor
tedexpl
i
cit
ly.An
addi
ti
onal
stat
ementwi
thUNI
QUE/
NON-
UNI
QUEkeymustbeusedt
odecl
areSor
ted
I
nter
nal
Tabl
es.
Sy
ntax:
-DATA:
<gt
_dbt
ab>TYPESORTEDTABLEOF<dbt
ab/
dbst
r.
..
..
>WI
TH
UNI
QUE/
NON-
UNI
QUEKEY<k-
f1><k-
f2>.
3.HASHEDI
nter
nal
tabl
es:
-Theyar
eNonI
ndext
abl
es.TheHashedI
nter
nal
Tabl
eshol
dshuge
amountofdat
athanSt
andar
d&Sor
tedi
nter
nal
tabl
essi
ncet
heyf
oll
ow‘
HashedAl
gor
it
hm’
.The
ABAPst
atement‘
WITHUNI
QUEKEY'
mustbeusedt
odecl
areHashedI
nter
nal
Tabl
es.
I
thol
dshugeamountofdat
a(2GB)t
hanst
andar
d&sor
tedi
nter
nal
tabl
es.
Sy
ntax:
-DATA:
<gt
_dbt
ab>TYPEHASHEDTABLEOF<dbt
ab/
dbst
r.
..
..
>WI
TH
UNI
QUEKEY<k-
f1><k-
f2>.
Q)Canwesor
tint
ernal
tabl
ewi
thoutusi
ngSORTst
atement
.Expl
ain?

Ans:
Wecansor
tint
ernal
tabl
ewi
thoutusi
ngSORTst
atementbydecl
ari
ngsor
tedi
nter
nal
tabl
e.

Ex:
DATA:
IT_
MARATYPESORTEDTABLEOFMARA.

Q)Whati
stheSi
zeoft
hei
nter
nal
tabl
es?

Ans:-Int
ernalTabl
eshav
e2GB(
Gigaby
tes)ofmemor
yspaceandt
hei
nit
ial
i
zesi
zei
sof8kbwhi
ch can
beextendfurt
her.

14)Howt
odef
ineSELECT-
OPTI
ONSwi
thoutspeci
fyi
ngt
het
abl
ename?

Ans:
-Bydecl
ari
ngaGl
obal
Var
iabl
eandusei
tasar
efer
encewhi
l
edef
ini
ngasel
ectopt
ion
i
nst
eadofTABLESst
atement.
TABLES:
Thi
sst
atementi
susedt
ospeci
fyt
hedat
abaset
abl
es/
dat
abasest
ruct
urenames
Whi
chcanbeusedasar
efer
encewhi
l
edecl
ari
ngt
heSELECT-
OPTI
ONS
 Thi
sst
atementi
nnotadv
isabl
esi
ncei
tcr
eat
esunnecessar
ywor
kar
eas.
 TheTabl
esst
atementcanbeav
oidedbydecl
ari
ngt
her
equi
reddat
avar
iabl
e.
15)Expl
ainf
ewoft
headdi
ti
onst
oPARAMTERSandSELECT-
OPTI
ONSst
atement
s.

Ans:
-Obl
i
gat
ory
:Iti
sthekey
wor
dtomaket
hei
nputf
iel
dasmandat
ory

Def
aul
t:I
tist
hekey
wor
dtopasst
hedef
aul
tval
uest
othei
nputf
iel
ds.

Ascheckbox:
Iti
sthekey
wor
dtodef
inet
hecheckboxesi
nthesel
ect
ionscr
een

Radi
obut
tongr
oup:
Iti
sthekey
wor
dtodef
inet
her
adi
obut
tonsi
nthesel
ect
ionscr
een

Asl
i
stbox:
Iti
susedt
odef
inet
hedr
opdownl
i
sti
nthesel
ect
ionscr
een
MATCHCODEOBJECT:
Iti
susedt
ospeci
fyDDI
Csear
chhel
ptot
hei
nputf
iel
ds

MODI
FID:
Iti
susedt
oassi
gnal
lthescr
eenel
ement
stot
hemodi
fi
cat
iongr
oupt
ofor
matt
he

Sel
ect
ionf
iel
dsdy
nami
cal
l
y

LOWERCASE:
Iti
susedt
omaket
hei
nputf
iel
dsascasesensi
ti
vet
oacceptbot
hupper&

Lowercasel
ett
ers

Memor
yID:
Iti
sthekey
wor
dtoaccesst
hef
iel
dval
uef
rom onesessi
ont
oanot
hersessi
on

Addi
ti
onsofSELECT-
OPTI
ONS

a)NO-
EXTENSI
ONS:
Thi
saddi
ti
oni
susedt
ohi
det
hemul
ti
plesel
ect
ionbut
toni
nthe

Sel
ect
ionscr
een.

b)NOI
NTERVALS:
Thi
saddi
ti
oni
susedt
ohi
det
hehi
gherl
i
mitofsel
ect
-opt
ionsi
nthe

Sel
ect
ionscr
een.

c)DEFAULT…TO:Thi
saddi
ti
oni
susedt
opasst
hedef
aul
tval
uest
olower&upperl
i
mit
s

Q)Whati
spr
ett
ypr
int
er?

Ans:
Thi
sisusedt
oal
i
gnapr
ogr
am &conv
ertt
hekey
wor
ds/
sour
cecodei
nupper
/l
owercase.

I
tispr
efer
abl
etoconv
ertt
hekey
wor
dsi
nupper
case.

16)Expl
ainSomeAddi
ti
onst
oRepor
tst
atement
?

Ans:
1.Nost
andar
dpageheadi
ng:
Thi
saddi
ti
oni
susedt
ohi
det
hepageheadi
ngi
ntheout
put
.

2.Li
nesi
ze:
Thi
saddi
tioni
susedt
ospeci
fyt
hewi
dthofal
i
sti
ntheout
put
.Thedef
aul
twi
dth
ofbasi
cli
sti
s255char
act
ers.

3.Li
necount
:Thi
saddi
ti
oni
susedt
ospeci
fyt
hel
engt
hoft
heout
putl
i
sti
napage.

4.MessageI
D:Thi
saddi
ti
oni
susedt
ospeci
fyt
hemessagecl
ass

17)
.Di
ff
erencesbet
weenRanges&SELECT-
OPTI
ONS?

Ans:I
tisusedt
odef
iner
angei
nter
nal
tabl
es.I
tissi
mil
art
oSELECT-
OPTI
ONS.

 SELECT-
OPTI
ONSar
edi
spl
ayedi
nsel
ect
ionscr
eenwher
easRangesdoesn’
tdi
spl
ayedi
nthe
sel
ect
ionscr
een.

 Thest
andar
dst
ruct
ure‘
SELOPT’
isr
efer
redf
orSELECT-
OPTI
ONS/
Rangesi
mpl
i
cit
lyorexpl
i
cit
ly.

Q)SomeKey
wor
ds?

Ans:
Append:I
tist
hekey
wor
dusedt
oappendr
ecor
dbyr
ecor
dfr
om wor
kar
eat
oatl
astr
ecor
dof
t
hei
nter
nal
tabl
e.APPENDcr
eat
esal
way
sanewr
owi
nthei
nter
nal
tabl
e.I
tAl
l
ows
Dupl
i
cat
es.Her
eitwi
l
lnotcheckwhet
hert
her
ecor
disexi
stedwi
tht
hesamef
iel
d
v
aluesornot
.
Sy
ntax:
APPEND<gs_
dbt
ab>TO<gt
_dbt
ab>.
I
nser
t:Thi
sst
atementi
susedt
oinser
tanewr
ecor
datanyposi
ti
onofani
nter
nal
tabl
e.I
fthe
r
ow(
key
)exi
sts,
issuesaner
ror
.
Sy
ntax:
INSERT<gs_
final
>INDEX<n>?SY-
TABI
X.
UPDATE:
Thi
sst
atementupdat
esanexi
sti
ngr
ecor
dtot
het
abl
e.I
fther
ow(
key
)doesnotexi
st,
i
ssuesaner
ror
.
MODI
FY:
Ift
hekeyexi
sts,
modi
fi
est
her
ecor
d.I
fthekeydoesnotexi
st,
addst
her
ecor
dtot
he
t
abl
e.
Col
l
ect
:Ital
sousedl
i
keanAPPENDst
atement
.Col
l
ectst
atementwi
l
lremov
ethedupl
i
cat
ion
whi
l
eaddi
ngt
her
ecor
ds.
Thi
sst
atementi
susedt
ocompar
echar
act
er/
str
ingf
iel
dsdat
a &
summar
izest
henumer
icf
iel
ddat
a.I
tisusedt
odi
spl
aysub-
tot
als.
Sy
ntax:
COLLECT<gs_
sour
ce>I
NTO<gs_
col
l
ect
>.
Li
nes:
Iti
sthekey
wor
dwhi
chr
etur
nsnoofr
ecor
dsav
ail
abl
eint
hei
nter
nal
tabl
e.
Occur
s:I
tist
hekey
wor
d;i
tal
l
ocat
es8KBofmemor
yfort
hei
nter
nal
tabl
ebydef
aul
t.I
fthedat
a
i
ntheI
nter
nal
tabl
eexceeds8KBt
heni
twi
l
lbr
ingonemor
e8KBofmemor
y&soonup
t
o2GB.
Cl
ear
:Itcl
ear
sthecont
ent
soft
hewor
kar
ea&i
nter
nal
tabl
ewi
thheaderl
i
neI
TAB[]&v
ari
abl
es
Ref
resh:
Itcl
ear
sthecont
ent
soft
hei
nter
nal
tabl
eonl
y.
Fr
ee:
Itcl
ear
sthecont
ent
sofi
nter
nal
tabl
eal
ongwi
thal
l
ocat
edmemor
y.
19)Expl
ainaboutt
heSy
stem Fi
eldswi
thwhi
chy
ouhav
ewor
ked?

I
NDEX I
ndexoft
hel
oop

DATUM Cur
rentsy
stem dat
e

UZEI
T Cur
rentsy
stem t
ime

SUBRC Wr
it
tencodeoft
heABAPkey
wor
ds

TABI
X I
ndexofani
nter
nal
tabl
e

DBCNT Theno.ofext
ract
edr
ecor
dsf
rom t
hedat
abase

BATCH Pr
ogr
am i
srunni
ngi
nbackgr
ound

REPI
D Cur
rentpr
ogr
am name

18)Expl
ainsomeoft
heusef
uladdi
ti
onsofWRI
TEst
atement
?

 .
..
.WRI
TE:
/--
--
>Iti
susedt
odi
spl
ayt
hedat
ainanewl
i
ne.
 .
..
.WRI
TE:
/n(
m)-
--
--
>Di
spl
ays'
m'char
act
ersf
orm posi
ti
on'
n'
.
 …UNDEROTHEROBJECT-
--
>Todi
spl
ayt
hedat
aundert
hepr
evi
ousdi
spl
ayeddat
a.
 .
..
.COLOR-
--
->I
tisusedt
odi
spl
ayt
hedat
aindi
ff
erentcol
ors.col
orcodes[
0–7]
 …LEFT-
JUSTI
FIED/
CENTERED/
RIGHT-
JUSTI
FIED:
Thesear
eusedt
oadj
ustt
hedat
aat
l
efthandsi
de,
cent
er&r
ighthandsi
de.
 .
..
.ASCHECKBOX-
--
->Di
spl
ayt
hecheckboxesi
ntheout
put
.
 .
..
.EDI
TMASK-
--
->I
tisusedt
odi
spl
ayt
hemaskonconf
ident
ial
dat
a.
 …I
NPUT:
Iti
susedt
omakeout
putl
i
stasedi
tabl
e.
 .
..
.NO_
GAP-
--
->Tor
emov
ethegapsi
nthedat
a.
 …CURRENCY:I
tisusedt
ospeci
fyt
hecur
rencykey
sfort
hecur
rencydat
avar
iabl
es.
 .
..
.UNI
T--
--
>Iti
susedt
ospeci
fyt
her
equi
reduni
tswhi
l
edi
spl
ayi
ngt
hequant
it
ydat
a.
 …HOTSPOT:
Iti
susedt
odi
spl
ayt
hehandsy
mbol
sont
heout
putdat
awhent
hecur
sor
i
spl
aced.
20)Expl
ainaboutSt
ri
ngCompar
isonOper
ati
onsandMat
hemat
icFunct
ions?

Ans: Thebel
owst
ri
ngcompar
isonoper
ator
scanbeusedt
ocompar
ethest
ri
ngdat
avar
iabl
es.
Operator
Cont
ainsAny( CA)
Contai
nsNotAny( NA)
Cont
ainsOnly(CO)
Cont
ainsNotOnl y(CN)
Cont
ainsPattern(CP)
Cont
ainsNoPat tern(
NP)
Cont
ainsStri
ng( CS)
Cont
ainsNoSt ring(NS)
CA:
Thi
scondi
ti
onbecomest r
uewhent hesour
cest
ri
ngcont
ainsanyoneoft
hechar
act
eri
nthet
arget
st
ri
ng.
NA:
Thi
scondi
ti
onbecomest
ruei
ncaseofst
ri
ngcompar
isonoper
atorCAi
sfal
se.
CO:
Thi
scondi
ti
onbecomest
rue,
whent
hesour
cest
ri
ngcont
ainsonl
ythesi
mil
arst
ri
ngi
nthet
arget
st
ri
ngi
ncl
udi
ngcase.
CN:
Thi
scondi
ti
onbecomest
ruei
ncaseofst
ri
ngcompar
isonoper
atorCOi
sfal
se.
CP:
Thi
scondi
ti
onbecomest
rue,
whent
hesour
cest
ri
ngcont
ainst
hespeci
fi
edpat
ter
nint
het
arget
st
ri
ng.
NP:
Thi
scondi
ti
onbecomest
ruei
ncaseofLogi
cal
expr
essi
onswi
thast
ri
ngoper
atorCPi
sfal
se.
(
Opposi
tet
oCP)
CS:
Thi
scondi
ti
onbecomest
rue,
whent
hesour
cest
ri
ngcont
ainssi
mil
arst
ri
ngi
nthet
argeti
nbot
h
Upper&Lowercase(
notacasesensi
ti
ve)
.
NS:
Thi
scondi
ti
onbecomest
ruei
ncaseofst
ri
ngoper
atorCSi
sfal
se(
Opposi
tet
oCS)
.

Mat
hemat
ical
Funct
ions:
-Thebel
owMat
hemat
ical
oper
ator
scanbeusedont
henumber
s.
St
atem
Operat
or ent
EqualTo EQ
NotEqualTo NE
LessThan LT
Great
erThan GT
LessThanorEqualTo LE
Great
erThanorEqualTo GE
21)Expl
ainaboutConst
ant
s,TextSy
mbol
s,Sel
ect
ionText
sandVar
iant
s?

Const
ant
s:-
Theyar
eusedt
oav
oidt
hehar
dcodedt
exti
nthepr
ogr
amsandi
mpr
ovet
her
eusabi
l
ityi
n
t
hepr
ogr
am.TheABAPst
atement‘
CONSTANTS’
isusedt
odef
ineconst
ant
s.
TextSy
mbol
s:-TheABAPSt
atementTEXTf
oll
owedbyt
hesy
mbol
number(
XXX)canusedt
o
def
ineorcal
lthet
extsy
mbol
.
Sel
ect
iont
ext
s:-Theyar
eusedt
omai
ntai
ntheFi
eldl
abel
s(descr
ipt
ions)oft
hei
nputf
iel
dsof
t
hesel
ect
ionscr
een.TheT-
codeSE63i
susedt
otr
ansl
atet
het
extel
ement
s.
Var
iant
s:-Theyar
eusedt
osav
ethei
nputdat
aforf
urt
herexecut
ioni
nthesel
ect
ionscr
een.Theycan
al
sobeusedt
oav
oidt
hedat
aent
ryer
ror
s&schedul
eapr
ogr
am i
nthebackgr
ound.
22)Expl
ainaboutt
heusef
ulSt
ri
ngOper
ati
ons?

Oper
ator Descri
pti
on
STRLEN Returnsthenoofchar s/l
engthoft hestr
ing
CONCATENATE Tocombi nethemultiplestri
ngsintosinglet
argetst
ri
ng
REPLACE Tor epl
acewithonest ri
ngtoanot hertar
getstr
ing
FI
ND Fi
ndt hestri
nginthesour ceStri
ng
SPLI
T Separatethesour
cest ri
ngi nt
odiffstr
ings
CONDENSE I
tcompr essthestri
ngwi thoutanygaps

TRANSLATE I
ttr
ansl
atest
hest
ri
ngi
ntoupper
/l
owercase.

SHI
FT I
tshi
ft
sspeci
fi
ednoofpl
acesatLef
t/Ri
ght
.

2.Howt
oret
ri
evet
hedel
etedpr
ogr
am?

 Ir
ecent
lydel
etedacust
om pr
ogr
am (whi
chisal
readyt
ranspor
tedtoproduct
ion)acci
dent
all
yand
waswonderi
ngift
herei
sanymethodofr
etr
ievi
ngtheprogr
am back.

Af
tersomer
esear
ch,
Ifoundawayofget
ti
ngbackt
hepr
ogr
am.

Fol
l
owi
ngar
ethest
epsi
nget
ti
ngbackt
hepr
ogr
am:

Ans:
1)Cr
eat
eapr
ogr
am wi
tht
hesamenameasear
li
er(
whi
chi
sdel
eted)

2)Cl
i
ckon"
Uti
l
iti
es"-
->"
Ver
sions"-
->"
Ver
sionManagement
"

3)Sel
ectt
hev
ersi
onofy
ourear
li
erpr
ogr
am andcl
i
ckondi
spl
ay.

4)Yourear
li
erpr
ogr
am i
sdi
spl
ayedher
e.

26)Whatar
ethedi
ff
erencesbet
weenCl
assi
cal
Repor
tsandABAPQuer
ies?

ABAPQuer i
es Cl
assicalr
eport
s
1.Iti
sthesystem pr
ovidedtoolt
ogeneratethereport
s. 1.Iti
saUt il
it
y.
2.Itdoesn’
trequi
reanyprogramminglanguage. 2.Itrequi
restheprogramminglanguage.
3.Iti
snotpossibl
etochanget hesyst
em generated 3.Itcanbechangesi nceiti
sinCustom
program wi
thouthavi
ngAccesskey . namespace( ZorY) .
4.ColumnAl i
gnmentisdonebyt hesyst
em. 4.I
tisCOMPLEXt oAl i
gntheColumns

23)Expl
ainsomeoft
heusef
uladdi
ti
onsofSel
ect
ion-
Scr
een?
Ans:
-
SELECTI
ON-
SCREEN:
-Thi
sst
atementi
susedt
ofor
matt
hesel
ect
ionscr
een.Thedef
aul
t
scr
eennumberf
ort
hesel
ect
ionscr
eeni
s1000.
Someoft
heusef
ulAddi
ti
ons:
-
 .
..
..
.BEGI
NOFBLOCK.
..
.WI
THFRAME:
-Iti
susedt
odef
inet
hesel
ect
ionscr
eenbl
ocks
wi
thf
rames
 .
..
..
WITHFRAMETI
TLE:
-Anaddi
ti
onTI
TLEwi
tht
hesel
ect
ionscr
eenFRAMESi
sused
t
odef
inet
heTI
TLESf
ort
hesel
ect
ionscr
eenFr
ames.
 .
..
..
SKI
P:-I
tisusedt
okeept
hebl
ankl
i
nesi
nthesel
ect
ionscr
een.
 .
..
..
ULI
NE:
-Todi
spl
ayhor
izont
all
i
nesi
nthesel
ect
ionscr
een.
 .
..
..
BEGI
NOFLI
NE:
-Iti
susedt
odef
inet
hei
nputf
iel
ds,
radi
obut
tons,
pushbut
tons,
checkboxeset
cint
hesamel
i
ne.
 …PUSHBUTTON:
Iti
susedt
odef
inet
hepushbut
tonsi
nthesel
ect
ionscr
een.
 …LI
NE:
Iti
susedt
odef
inet
heI
nputf
iel
ds,
Radi
obut
tons,
Checkboxes,
Pushbut
tons
et
cint
hesamel
i
ne.
24)Whatar
ethedi
ff
erencesbet
weenNor
mal
Sear
ch(
SELECT…ENDSELECT)andPoi
nterSear
ch
(I
NTOTABLE)?

Normal Search(SELECT…..ENDSELECT) PointerSearch(INTOTabl


e)
1.Ithit
sthedat abaset ableforeachrecor
dsincei
tisa 1.I
thit
st hedatabaset abl
eoncetoextr
act
l
oopst atement al
ltherequir
eddat asinceiti
sastatement
2.TheABAPst atement'APPEND' mustbeusedt oappend
recordbyr ecordint
oani nternalt
abl
e 2.Noneedt ouse'APPEND'
3.Somet imesitmaygi ver unti
meerrorwhil
edebuggi
ng 3.I
tdoesn’tgi
veanyshortdumps
4.Notadv i
sableduet olackofperformance&database 4.Itisadv
isabl
esinceitext
ract
sthedat
a
l
oad faster&hasgoodperformance

25)Whati
sthedi
ff
erencebet
weenSY-
INDEXandSY-
TABI
X?

 SY-TABIX:SY-TABI
Xisasyst
em var
iabl
ewhichstor
estheindexcurr
entprocessi
ngr
ecor
d ofan
i
nternal
table.Sowhenyouarel
oopi
ngov erani
nter
nal
t abl
e,youuseSY-TABIX.

LOOPATI
TABI
NTOWA.*
*SY-
TABI
Xst
oresi
ndexnumberofi
nter
nal
tabl
erecor
dENDLOOP.

 SY-I
NDEX: SY-
INDEXisasyst
em v
ari
abl
ewhi
chact
sasaloopit
erat
ioncounter
,itst
oresloop
i
ter
ationnumber.WhenyouuseDOENDDO/WHILEforl
oopi
ng,t
hereisnotabl
ei nv
olved.Soyou
useSY-INDEX.

Ex:
DO10t
imes.*
*SY-
INDEXst
oresnumberofi
ter
ati
onofl
oopENDDO.

26)Whatar
ethedi
ff
erencesbet
weenCl
assi
cal
Repor
tsandABAPQuer
ies?

ABAPQuer i
es Cl
assicalr
eport
s
1.Iti
sthesystem pr
ovidedtoolt
ogeneratethereport
s. 1.Iti
saUt il
it
y.
2.Itdoesn’
trequi
reanyprogramminglanguage. 2.Itrequi
restheprogramminglanguage.
3.Iti
snotpossibl
etochanget hesyst
em generated 3.Itcanbechangesi nceiti
sinCustom
program wi
thouthavi
ngAccesskey . namespace( ZorY) .
4.ColumnAl i
gnmentisdonebyt hesyst
em. 4.I
tisCOMPLEXt oAl i
gntheColumns
Q)Whati
sthedi
ff
erencebet
weenSKI
PandNEW-
LINE?

Ans:
SKI
Pgener
atesabl
ankl
i
ne,
whi
l
etheNEW-
LINEcausest
hecont
rol
tomov
etonextl
i
ne.

Q)Oneofmyuser shasaccesst oSE38transacti


on,
andsohecanr untheprogr
am devel
opedbyyou.You
haveatt
achedthi
srepor
t/t
ransacti
onalpr
ogram toaparti
cul
arZ*t
ransacti
on.Torest
ri
cttheuser
sto
execut
ethi
sprogram,whatyoudoi tf
rom programmingsi
de?

Ans:
Checkf
orAut
hor
izat
ionobj
ectS_
TCODEwi
thv
alue“
Z—-
”ini
nit
ial
i
zat
ionev
ent
.

(
Code:
Aut
hor
it
y-checkobj
ect‘
S_TCODE’
id‘
TCD’
fiel
d‘ZBC_
REQ’
.
)

Modul
ari
zat
ionTechni
ques
Modul
ari
zat
ionTechni
ques

1)Whatar
etheModul
ari
zat
iont
echni
queswhi
chy
ouf
oll
ow?

Ans:
-Theyar
eusedt
oor
gani
zet
heABAPcodei
nthepr
operway,
maket
hepr
ogr
am mor
e
Under
standabl
eandmakeuseoft
hecoder
e-usabl
etoav
oidt
hedupl
i
cat
edat
a.
Todi
vi
det
hebusi
nesspr
ocessi
ngl
ogi
cint
oreusabl
ebl
ockofst
atement
s.
 Fol
l
owi
ngar
ethedi
ff
erentt
ypesofModul
ari
zat
iont
echni
ques
o I
NCLUDES:Thesepr
ogr
amsar
epar
tofanot
hermai
n/i
ncl
udepr
ogr
ams.I
ncl
udepr
ogr
ams
can’
tbeexecut
edi
ndependent
lywher
east
hesamei
ncl
udepr
ogr
am canbei
ncl
udedi
nany
noofexecut
abl
epr
ogr
ams.TheABAPst
atementI
NCLUDEi
susedt
ocal
lordef
inet
he
I
NCLUDEpr
ogr
ams.
o Subr
out
ines:
Thesear
est
atement
slocal
modul
ari
zat
iont
echni
ques.Thesub-
rout
inescan
bedebuggedatr
unt
ime.Cal
l
i dbe1st&Def
ngshoul ini
ti
onshoul
dbenext
.TheABAP
st
atementPERFORM i
susedt
ocal
lthesub-
rout
ines&FORM…ENDFORM i
susedt
odef
ine
t
hesub-
rout
ines.
Ther
ear
e2t
ypesofsub-
rout
ines.
I
. I
nter
nal
Subr
out
ine:
Thesear
edef
ined&cal
l
edi
nthesamepr
ogr
am.
I
I. Ext
ernal
Subr
out
ine:
Thesear
edef
inedi
nonepr
ogr
am &cal
l
edi
nanot
her
pr
ogr
am.
Act
ual
Par
amet
ers:
Thepar
amet
erswhi
chcanbecal
l
edwhi
l
ecal
l
ingt
hesubr
out
ines
(
wit
hPERFORM st
atement
).
For
mal
Par
amet
ers:
Thepar
amet
erswhi
chcanbepassedwhi
l
edef
ini
ngt
hesubr
out
ine
(
wit
hFORM st
atement
).
 Thenoofact
ual
par
amet
ersshoul
dbesi
mil
art
othenooff
ormal
par
amet
ers.
 Thesub-
rout
inesdef
ini
ti
onsshoul
dnotbenest
ed(
for
m wi
thi
nthef
orm)butt
hesub-
r
out
inecanbecal
l
edwi
thi
nthesub-
rout
ine.
 Thest
atement
sbet
ween2sub-
rout
inesdef
ini
ti
onscannotbeaccessed

o Macr
os:
Thesear
eusedf
ort
hecompl
exwr
it
est
atement
s&f
orl
ongcal
cul
ati
ons.Macr
os
cant
akeupt
o9pl
acehol
der
s(&1….&9)
.Inmacr
osDef
ini
ti dbe1st&Cal
onshoul l
ingshoul
d
benext
.TheABAPst
atement
,DEFI
NE…END-
DEFI
NTI
ONi
susedt
odef
ineamacr
o.The
macr
odef
ini
ti
onscannotbedebuggedatr
unt
ime.Thest
andar
dtabl
eTRMACpool
edt
abl
e
i
susedt
omai
ntai
nmacr
os.
o Funct
ionModul
es:Thesear
egl
obal
modul
ari
zat
ionobj
ect
s.Thef
unct
ionmodul
escanbe
cal
l
edanywher
eint
hesamesy
stem &i
nanot
hersy
stem al
so.Thef
unct
ionmodul
esar
e
def
inedi
nfunct
ionbui
l
der
.

TheT-
codeSE37i
susedt
owor
kwi
tht
hef
unct
ionmodul
es&SE80i
susedt
owor
kwi
tht
he
f
unct
iongr
oup.Thef
unct
ionmodul
esshoul
dbeassi
gnedt
oaf
unct
iongr
oup&Funct
ion
gr
oupi
sthecol
l
ect
ionoff
unct
ionmodul
es.
 Thest
andar
dtabl
e‘TFDI
R’i
susedt
ofi
ndFMssi
ncei
tcont
ainst
heent
ir
eFunct
ion
modul
eint
hesy
stem.
 Nor
mal
Funct
ionModul
e:Thesear
edef
ined&cal
l
edi
nthesamesy
stem t
oreuset
he
cent
ral
sour
cecode.
 Remot
eFunct
ionModul
e:Thesear
edef
inedi
nonesy
stem &canbecal
l
edanot
her
sy
stem.
 Updat
eFunct
ionModul
e:Thi
sisusedf
orSAPLUW (
Logi
cUni
tofWor
k).These
f
unct
ionmodul
esar
etr
igger
edi
ncaseofi
mpl
i
citorexpl
i
citCOMMI
Twor
kis
encount
ered.Commi
tWor
kisusedt
omakechangesi
ndat
abaseper
manent
ly.
o Messagecl
ass:
Thi
stool
isusedt
omai
ntai
ntheMessagesi
nthemessagepool
.
Theyar
eusedt
ogi
vemessagesf
ori
nst
ruct
ingt
heuser
s.
Thest
andar
dT-
CodeSE91i
susedt
owor
kwi
tht
hemessagepool
.
Di
ff
erentt
ypesofmessagesar
eEr
ror
,Success,
War
ning,
Inf
ormat
ion,
Abor
t,Exi
t.
Sy
ntax:
MESSAGE‘
<MSGText
>’t
ype‘
E/I
/W/
S’.

o Textsy
mbol
s&Const
ant
s:TheABAPSt
atementTEXTf
oll
owedbyt
hesy
mbol
number(
XXX)
canusedt
odef
ineorcal
lthet
extsy
mbol
.Const
ant
sar
eusedt
oav
oidt
hehar
dcodedt
ext
andi
mpr
ovet
her
euset
hem i
nthepr
ogr
am.
TheT-
codeSE63i
susedt
otr
ansl
atet
hedi
ff
erentt
ypesoft
extel
ement
s.
2)Whatar
ethedi
ff
erencesbet
weenSubr
out
inesandFunct
ionModul
es?

Subr
out
ines Funct
ionmodul
es

1.Thesear
elocal
.Wecanaccesst
he 1.Thesear
egl
obal
.Wecanaccesst
he

Subr
out
inewi
thi
ntheser
veronl
y. f
unct
ionmodul
ewi
thi
nser
veraswel
las

Out
sidet
heser
ver
.

2.Wecan’
texecut
ethesubr
out
inei
ndependent
ly 2.wecanexecut
efunct
ionmodul
eindependent
ly
usi
ngt
heT-
codeSE37

3.Subr
out
inescan’
thandl
etheExcept
ions. 3.Funct
ionmodul
ecanhandl
etheer
ror
s

t
hroughExcept
ions.

3)Whatar
ethedi
ff
erencesbet
weenMacr
o&subr
out
ine?
Macr
o Subr
out
ine

1.Def
ini
ti
on&cal
l
ingi
nthesamepr
ogr
am. 1.Def
ini
ti
on&cal
l
ingmay
/maynoti
nthesame

Pr
ogr
am.

2.Def
ini
ti
onshoul he1st&cal
dbet l
ingshoul
dbe 2.Cal
l
ingshoul he1st&Def
dbet ini
ti
onshoul
d

Thenext
. Bet
henext
.

3.Macr
oscant
akeupt
o9i
nput
s. 3.Subr
out
inescant
akeanynoofi
nput
s.

4.Macr
oscannotbedebugged. 4.Sub-
rout
inescanbedebuggedatr
unt
ime.

4)Whatar
ethedi
ff
erentpar
amet
ersi
nFunct
ionModul
esandExpl
ainaboutt
hem?

Ans: Fol
l
owi
ngar
ethedi
ff
erentt
ypesofPar
amet
ersi
nFunct
ionModul
es
 At
tri
but
es:
I
tcont
ainst
echni
cal
proper
ti
esofaf
unct
ionmodul
esuchar
ety
peoff
unct
ionmodul
e,
f
unct
iongr
oup.
 I
mpor
tpar
amet
ers:
Theyar
eimpor
tedf
rom t
hecal
l
ingpr
ogr
am t
othef
unct
ionmodul
e.
 Expor
tpar
amet
ers:
Thesear
eusedt
oexpor
tedt
hedat
afr
om t
hef
unct
ionmodul
etot
hecal
l
ing
pr
ogr
ams.

 Changi
ngpar
amet
ers:
Thesear
eimpor
tedf
rom t
hecal
l
ingpr
ogr
am,
changedt
hem i
nthef
unct
ionmodul
es&
expor
ted/
ret
urnedt
othecal
l
ingpr
ogr
am.(
Impor
t->Change-
>Expor
t)
 Tabl
es:
Thesecanbeusedt
oimpor
t&expor
tonl
yfori
nter
nal
tabl
es.
 Except
ions:
Theyar
eusedt
orai
se/
handl
ethemessagesi
nthef
unct
ionmodul
ebasedonr
etur
n
code(
SY-
SUBRC)
.
 Sour
cecode:
Iti
susedt
owr
it
ecent
ral
ABAPsour
cecode.

5)Expl
ainaboutdi
ff
erentmet
hodst
opasst
hepar
amet
erst
osubr
out
ines?
Met
hod Descripti
on Ef
fect
Iti
st hedefaultmet hod.Thepoi nterusedt hesamememor yallocati
on
BY forbot hactual &formal par ameters.From call
ingt odefi
nit
ion& TheActualparameter
s
Ref
eren defi
ni t
iontocal l
ing,all
par amet ervaluesarepassi ngalongwi t
ht he arechangedwiththe
ce memor y. Formalparameter
s.
Thesy stem allocatesnewmemor y.Theal l
ocatedmemor yisfreed TheActualparameter
s
By oncet hesubr outineends.Fr om cal
li
ngt odefinit
ion&def i
niti
ont o arenotchangedwiththe
Val
ue call
ing, t
hepar amet ervaluesonl ypassing. Formalparameter
s.
By
Val
ue TheActualpar
ameters
and Iti
sal mostsimi lartoByv aluebutonl ythedif
ferenceistheFor mal arechangewit
hthe
Ret
urn par amet ervaluesar eretur nedtoAct ualparameters. Formalparamet
ers.

q:
Howt
oconv
ertNor
mal
funct
ionmodul
etoRFCenabl
edFunct
ionModul
e?

a:
InFM at
tri
but
e,sel
ectt
heRemot
eEnabl
edRadi
oBut
ton,
toconv
ertFM t
oRFC.

 COMMITWor k:Thi
sst
atementi
susedt
omakechangesi
ndat
abaseper
manent
ly&
compl
etecur
rentSAPLUW.

 ROLLBACKWORK: Thi
sstat
ementi
susedt
oter
minat
ecur
rentSAPLUW wi
thout
makingchangesi
ndat
abase.
s
Debugger
Debugger

1)Expl
ainaboutDebugger
,Br
eakpoi
ntsandWat
chpoi
nts?

Ans:
-Debugger:
-Thi
stool
isusedt
ocheckt
hepr
ogr
am l
i
nebyl
i
ne&bl
ockbybl
ockf
orf
indi
ng and
r
ect
if
yinger
ror
sorbugs.
Br
eakPoi
nts:
-Thesear
eSt
atementbased.Theyar
eusedt
ost
opt
hepr
ogr
am i
nthe debugger
t
ool
forchecki
ngl
i
nebyl
i
neorbl
ockbybl
ock.
 Br
eakpoi
ntsar
eof4t
ypes.Wecanpl
aceupt
o30br
eakpoi
ntsi
nthepr
ogr
am.
1.Sessi
onBr
eakPoi
nt:
Ani
conset
/del
etebr
eakpoi
nti
conorcl
i
ckonst
atementl
i
neat
gr
aycol
orv
ert
ical
sel
ect
ioni
nthesour
cecode.
2.St
ati
cBr
eakPoi
nt:
TheABAPst
atementBREAK-
POI
NT/
BREAK<user
_name>i
sused t
o
sett
heSt
ati
cbr
eakpoi
nt.TheABAPst
atementBREAK-
POI
NT shoul
dnotbeusedsi
nce
al
ltheuser
sar
est
opped.
3.Dy
nami
cBr
eakPoi
nt:
Theyar
eusedt
ocheckt
hepr
ogr
am i
ncaseofnotpossi
blet
o f
ind
al
ocat
ion.Thecommand/
Hisusedt
osetdy
nami
cbr
eakpoi
nts.Thepr
ogr
am i
s
st
oppedatt
hef
ir
stst
atementl
i
neoft
heper
for
medact
ion.
4.Ext
ernal
BreakPoi
nt:
Theyar
eusedt
ocheckt
hecr
ossappl
i
cat
ioncomponent
ssuch
asRFC,
BAPIf
rom onesy
stem t
oanot
her
.Ani
consetordel
eteext
ernal
break-
poi
nts i
s
usedt
osetordel
eteext
ernal
break-
poi
nts.
Wat
chPoi
nts:
-Thesear
eCondi
ti
onbased.Theyar
eusedt
ost
opt
hepr
ogr
am oncet
hesetcondi
ti
on
i
sreached.TheWat
chpoi
ntscanbeseti
nsi
det
hedebuggert
ool
.Wecanpl
aceupt
o9wat
chpoi
ntsi
n
t
hepr
ogr
am.Wecanr
educedebuggi
ngt
imeusi
ngwat
chpoi
nts.

2) Di
ff
erencesbet
weenCl
assi
cal
&Newdebugger
?

Ans:
Cl
assi
cal
debugger Newdebugger

1.
Iti
stheol
ddebugger 1.
Iti
sint
roducedf
rom t
hev
ersi
onECC5.
0

2.
Itr
unsont
hesamesessi
ont
ocheck&r
esol
vet
he 2.
Itr
unsont
hesepar
atesessi
on
i
ssuesi
nthepr
ogr
am

3.I
thasLot
sofl
i
mit
ati
onssuchasdi
ff
erent 3.
Iti
sver
yef
fi
cientt
ool
tocheckl
otsofact
ions
deskt
opsar
enott
her
e,nosepar
atesect
ionsf
or suchasdi
ff
erentdeskt
ops,
separ
ateact
ionsf
or
l
ocal
,gl
obal
Var
iabl
eset
c l
ocal
&gl
obal
Var
iabl
es&obj
ect
satat
ime

Si
ngl
eSt
epF5:
Thef
unct
ionkeyF5i
susedt
ocheckLi
neByLi
neoft
hepr
ogr
am.
Execut
eF6:
Thef
unct
ionkeyF6i
susedt
ocheckBl
ockByBl
ockoft
hepr
ogr
am.
Ret
urnF7:
Thef
unct
ionkeyF7i
susedt
oRet
urnf
rom t
hesour
cecodeoft
hepr
ocessbl
ockssuch
assub-
rout
ines,
funct
ionmodul
es,
met
hodset
c.
Cont
inueF8:
Thef
unct
ionkeyF8i
susedt
ojumpf
rom onebr
eakpoi
nti
ntot
henextbr
eakpoi
nt
t
henexecut
eoncet
hel
astbr
eakpoi
nti
sreached&t
henexecut
e.
3)Howt
odebugBackgr
oundJobs?

Ans:
TheBackgr
oundj
obscanbedebuggi
ngusi
ngt
hecommand‘
JDBG’
.

 Execut
etheT-
codeSM37

 Checkt
her
equi
redbackgr
oundj
obt
obedebugged.

 Ent
erJDBGi
ntheCommandf
iel
d&Pr
essEnt
er

 Keeponpr
essi
ngF7unt
ilt
her
equi
redpr
ogr
am i
sst
opped.

 Uset
heFuncti
onkey
sF5/
F6/
F7t
ocheckt
hepr
ogr
am Li
nebyl
i
ne/
BlockbyBl
ockonce
i
tisr
eached.

4)Whatar
ethest
epst
odebugPop-
upwi
ndow?

Ans:

 Cr
eat
eat
extf
il
ewi
tht
her
equi
redst
atement
s&sav
eitonLocal
PC/
Deskt
op.

[
FUNCTI
ON]

COMMAND = ‘
/H’

Ti
tl
e = ‘
Debugger

Ty
pe = ‘
Syst
em Command’

 Mi
nimi
zet
heSAPPop-
upwi
ndowscr
eent
oappearbot
hTextf
il
e&Pop-
upwi
ndowscr
een.

 Dr
ag&dr
opt
hesav
edt
extf
il
eint
oPop-
upwi
ndowscr
een.

Not
e:Thesy
stem gi
vest
hesuccessmessageasDebuggi
ngSwi
tchedON.

 Per
for
mther
equi
redact
iont
ost
opt
hecor
respondi
ngpr
ogr
am (
Yesbut
ton)
.

5)Whatar
ethet
ypesofexecut
ionmodes?
Ans:Ther
ear
e2t
ypesofexecut
ionmodet
oexecut
eapr
ogr
am ort
het
ransact
ioncodes.

1.Foregr
ound:
Iti
susedt oexecutetheprogramsorthetr
ansact
ioncodesdi
rect
lybypr
essi
ng
executei
conorF8funct
ionkey.Itrequi
resuseri
nter
acti
on.

2.Background:Thi
sexecuti
onmodeisusedtoexecut
et hepr
ogramsorthetransacti
oncodes
peri
odical
lysuchasHourly
,Dai
l
y,Weekly,
Monthl
yetcinbackground.I
tdoesn’
t r
equir
eanyuser
i
nteracti
on.Thevari
ant
smustbecreatedbef
oretheprogramsare schedul
edinback
ground.

 TheT-
codeSM36i
susedt
odef
inet
hebackgr
oundj
obs&

 TheT-
codeSM37i
susedt
ocheckt
hest
atusoft
hebackgr
oundj
obs.

Thest
andar
dfunct
ionmodul
esJOB_
OPEN-
>Toopenbackgr
oundj
ob

JOB_
SUBMI
T->Tosubmi
tjobi
nbackgr
ound

JOB_
CLOSE-
>Tocl
oseschedul
edj
ob.

Q).
wegoi
ndebuggi
ngbutAm i
n5t
hli
neofdebuggi
ngandi
wantt
ogoagai
nin4t
hli
neofi
tthenhowt
odo
t
hat?

a:
Onceuenteri
nthedebuggi
ngscr
eenputt
hecour
seronpar
ti
cul
arl
i
nef
rom menudebuggi
ngsel
ectgot
o
st
atement
.
Repor
tsEv
ent
s

EVENTS
1)Whatar
etheSel
ect
ion-
Scr
eenev
ent
s,expl
ain?

 ATSELECTI
ON-
SCREEN-
>Thi
sev
enti
str
igger
edaf
terpr
ovi
dingI
nputt
othesel
ect
ion
scr
een.

 ATSELECTI
ON-
SCREENOUTPUT-
>Thi
sev
enti
str
igger
edwhi
l
eper
for
minganyact
ion
i
nthesel
ect
ionscr
een.I
tisusedt
omodi
fy(
for
mat
)thesel
ect
ionscr
een.

 ATSELECTI
ON-
SCREENON-
>Thi
sev
enti
str
igger
edaf
teri
nputv
aluespr
ovi
dedi
nthe
sel
ect
ionscr
eenbased.I
tisusedt
oval
i
dat
e/checkt
hei
nputdat
aoft
hesel
ect
ion
scr
een.
 ATSELECTI
ON-
SCREENONVALUEREQUESTFOR-
>Thi
sev
enti
str
igger
edwhent
he
usercl
i
cksonF4but
ton.Thest
andar
dfunct
ionmodul
e
F4I
F_I
NT_
TABLE_
VALUE_
REQUESTcanbeusedt
odi
spl
ayt
hepossi
bleent
ri
esas
sear
chhel
p.
 Thef
unct
ionmodul
eDYNP_
VALUES_
READi
susedt
ocapt
uret
hesel
ect
ionf
iel
d
v
aluesi
nthesamesel
ect
ionscr
eenf
orDy
nami
csear
chhel
p

 Atsel
ect
ion-
scr
eenONHELP-
REQUESTFOR-
>Thi
sev
enti
str
igger
edwhent
heuser
cl
i
cksonF1but
ton.
Thest
andar
dfunct
ionmodul
e‘HELP_
OBJECT_
SHOW’canbeused
t
opr
ovi
det
heHel
pdocumentt
othei
nputv
ari
abl
e.TheT-
codeSE61/
SO72i
susedt
o
mai
ntai
ntheHel
pdocument
ati
onaspert
hespeci
fi
cat
ion.
3)HowmanyTi
mest
heEv
entI
NITI
ALI
ZATI
ONTr
igger
swhi
l
edi
spl
ayi
ngt
hel
i
stof20pagesandal
soTOP-
OF-PAGE?

Ans:
-INI
TIALI
ZATI
ONTr
igger
sOnl
yOnet
imeandTOP-
OF-
PAGEt
ri
gger
s20t
imes.

4)Whati
sthepr
e-r
equi
sit
etouse“
FORALLENTRI
ES”
?

Ans:
-TheBasei
nter
nal
tabl
ewhi
chcanbeusedi
nthe'
FORALLENTRI
ES'
stat
ementmustbe
checkedwhet
heri
thasdat
aornot
.
Quest
ion:
whatar
ethePr
erequi
sit
esf
orbi
nar
ysear
ch?

Thelistofar
ray(
element
soritems)t
hatar
etobesearchedf
orar
equi
redel
ementshoul
dbei
nascendi
ng
orderorsort
edorderf
orthesear
chtobeperf
ormed.

Eg:
21,
3,4,
2,5

sear
chf
or2-
>notf
ound

2,
3,7,
56,
133

sear
chf
or2-
>found

5)Whatar
eJoi
ns&t
ypesofJoi
ns?
Ans:
Joi
nsar
eusedt
ofet
cht
hedat
afr
om mor
ethanonet
abl
e.
1.I
nnerj
oin:
Thi
sst
atementi
susedt
oext
ractt
hedat
afr
om t
hemul
ti
plest
abl
esby
j
oini
ngt
hem.Upt
o2t
abl
escanonl
ybej
oined.Formor
ethan3t
abl
esi
s notadv
isabl
e
asi
tput
sheav
yloadondat
abase
2.Foral
lent
ri
es:
Thi
sst
atementi
susedt
oext
ractt
hedat
afr
om t
hedat
abaset
abl
e
basedont
heent
ri
esoft
heBasei
nter
nal
tabl
e.Thel
oadondat
abase wi
l
lbe
v
eryl
ess.

6)Expl
ainaboutLoopt
ermi
nat
ionst
atement
s?

Ans:
-Thef
oll
owi
ngst
atement
sar
eusedt
ocomeoutoft
hel
oopsandcont
inuewi
tht
henext
l
oopst
atement
s.
 EXI
T:-Thi
sst
atementi
susedt
ocomeoutoft
hel
oopst
atementandcont
inuewi
tht
he
nextst
atementl
i
neout
sideoft
hel
oopst
atement
sint
hepr
ogr
am.
 STOP:
-Thi
sst
atementi
susedt
ost
opt
heLooppr
ocessal
ongwi
tht
henextpar
toft
he
l
oopst
atement
.
 CONTI
NUE:
-Thi
sst
atementi
susedt
ost
opt
hecur
rentl
ooppr
ocessandcont
inuewi
th
t
henextl
ooppr
ocess.
 CHECK:
-Thi
sst
atementi
susedt
ocheckt
hespeci
fi
edcondi
ti
onsandcont
inuewi
tht
henext
l
ooppr
ocess.
 CHECK=CONDI
TION+CONTI
NUE.

1.
Whi
choft
hef
oll
owi
ngi
snotanEXI
Tcommand?
opt
ions:BACK,
CANCEL,
STOP,
EXI
T?

a:
STOP

7)Expl
ainaboutt
heev
ent
sassoci
atedwi
thCl
assi
cal
Repor
ts?

 LOAD-
OF-
PROGRAM :
Thi
sev
entt
ri
gger
satt
het
imeofl
oadi
ngt
hepr
ogr
am
i
ntoamemor
y.Wedi
dn’
twr
otei
npr
ogr
am l
evel
.
 I
NITI
ALI
ZATI
ON:
Thi
sev
enti
str
igger
edbef
oret
hesel
ect
ionscr
eeni
sdi
spl
ayed.I
tis
usedt
ocl
ear&r
efr
esht
hedat
avar
iabl
esandusedt
opasst
hedef
aul
tval
uest
othe
sel
ect
ionf
iel
ds.
 ATSELECTI
ON-
SCREEN:
Thi
sev
enti
str
igger
edaf
terpr
ovi
dingt
hei
nputi
nthe
sel
ect
ionscr
een.
 START-
OF-
SELECTI
ON:
Iti
sthedef
aul
tev
ent&mandat
oryt
oexecut
eanyexecut
abl
e
pr
ogr
am.I
tisusedt
ofet
cht
hedat
afr
om t
heDB.I
fnoev
enti
susedi
nthe
execut
abl
epr
ogr
am,
theent
ir
epr
ogr
am wi
l
lbet
ri
gger
edunder
St
art
-Of
-Sel
ect
ion.Whenev
ery
ouar
egoi
ngt
ouseanyoneoft
heev
entbef
oresel
ect
st
atementwemustusest
art
_of
_sel
ect
ionev
ent
.
 END-
OF-
SELECTI
ON:
Thi
sev
enti
str
igger
edaf
terSt
art
-Of
-Sel
ect
ionev
enti
s
pr
ocessed.I
tisusedt
ospeci
fyt
hedat
apr
ocessst
atement
s.
 TOP-
OF-
PAGE:
Thi
sev
enti
str
igger
edwi
tht
hef
ir
stULI
NE/
WRI
TE/
SKI
P/NEW PAGE
st
atementi
nSTART_
OF-
SELECTI
ONev
enti
nthepr
ogr
am.I
tisusedt
odi
spl
ayt
he
col
umnheadi
ngs.
 END-
OF-
PAGE:
Thi
sev
enti
str
igger
edatt
heendofeachpage.I
tisusedt
odi
spl
ay
t
hef
oot
erdet
ail
sofapagesuchast
otal
set
c..
Ther
epor
taddi
ti
on
LI
NE-
COUNTmustbespeci
fi
edt
otr
iggert
hisev
ent
.
8)Whi
chi
sthedef
aul
tev
ent
?

Ans:
-Thedef
aul
tev
enti
sSTART-
OF-
SELECTI
ON.
Ifnoev
enti
susedi
ntheexecut
abl
epr
ogr
am,
the
ent
ir
epr
ogr
am wi
l
lbet
ri
gger
edSt
art
-Of
-Sel
ect
ion.Themai
npr
ogr
am begi
nswi
tht
hisev
ent
.
9)
.Isi
tpossi
blet
odi
spl
aypr
evi
ousdr
il
ldownl
i
stf
rom cur
rentone?

Ex:
I n10thdr
fsupposeam i il
ldownl
i
st.I
sitpossi
blet
odi ay5thdr
spl il
ldownl
i
stf
rom cur
rentl
i
st?

 Ihave1basi
cli
stand15secondar
yli
stsi
nint
eract
iver
epor
t.I
fiam i
n9t
hli
st,
howcani
come
dir
ectl
ytot
hebasi
clist
?

Ans:
Yes.Byr
e-set
ti
ngl
i
sti
ndex=5.i
.e;
SY-
LSI
ND=5.

 Sy
stem v
ari
abl
eSY-
LSI
NDst
orest
hel
i
stnumber
,byusi
ngt
hiswecangot
obasi
cli
st.

10)I
nint
eract
iver
epor
tifuser19t
imesdoubl
ecl
i
cked,
agai
nhewantt
omai
nscr
een.Howcandot
his?

Ans:
IfSy
-ucomm ='
BACK'
.

Leav
etoscr
een0.

Endi
f.

Quest
ion:
Ifi
doubl
ecl
i
ckonanysal
esor
dernoi
tshoul
dtakemet
othet
ransact
ionhow?
a:
UseATUSER-
COMMAND.

CASESY-
UCOMM.

WHEN'
SONo'
.

GETCURSORFI
ELDFNAM VALUEFVAL.

SETPARAMETERI
D'VBE'
FIELDVBELN.

CALLTRVA01ANDSKI
PFI
RSTSCREEN.

11)Whatar
etheev
ent
sassoci
atedwi
thI
nter
act
iveRepor
ts?

Ans:
-Fol
l
owi
ngar
etheEVENTSassoci
atedwi
tht
heI
nter
act
iveRepor
ts.
 ATLI
NE-
SELECTI
ON:
Thi
sev
enti
str
igger
edatt
het
imeofusercl
i
cksonanyr
ecor
d
ofanyl
i
st.I
tisusedt
opr
ovi
det
hedet
ail
edl
i
stbasedont
hecur
rentl
i
st.
Thesy
stem f
iel
dSY-
LSI
NDhol
dst
heI
ndexoft
henextdr
il
ldownl
i
st.
 ATUSER-
COMMAND:
Thi
sev
enti
str
igger
edatt
het
imeofusercl
i
cksonanymenu
i
tem.Thi
sev
enti
susedt
opr
ovi
det
headdi
ti
onal
funct
ional
i
tybasedont
hesel
ect
ed
pushbut
ton.
 TOP-
OF-
PAGEDURI
NGLI
NE-
SELECTI
ON:
Thi
sev
enti
str
igger
edwi
tht
hef
ir
st
WRI
TE/
ULI
NE/
SKI
Poft
hedr
il
ldownl
i
st.I
tisusedt
opr
ovi
det
hecol
umnheadi
ngs
f
ort
hedr
il
ldownl
i
st.
 ATPF:
Thi
sev
enti
str
igger
edwhent
hef
unct
ionkeyi
spr
essed.Thi
sev
enti
susedt
o
pr
ovi
det
headdi
ti
onal
funct
ional
i
tybasedont
hesel
ect
edmenui
tem.
 SETPF-
STATUS:
Thi
sev
enti
str
igger
edatt
het
imeofat
tachi
ngourownGUIt
othe
l
i
st.I
tisusedt
ocal
lthemenust
atus.
 Upt
o35Pushbut
tonscanbecr
eat
edont
heAppl
i
cat
iont
ool
bar
.

12)Whatar
edi
ff
erencesbet
weenCl
assi
cal
&Int
eract
iver
epor
ts?

Ans:
 TheCl
assi
cal
repor
tsar
eusedt
odi
spl
ayt
heent
ir
einf
ormat
ioni
nasi
ngl
e/basi
cli
st
 TheI
nter
act
iveRepor
tsar
eusedt
odi
spl
ayt
hesummar
izedi
nfor
mat
ioni
nthebasi
cli
st&
det
ail
edi
nfor
mat
ioni
nthenextdr
il
ldownl
i
st.Upt
o20secondar
yli
stsar
epr
ovi
ded&t
het
otal
noofl
i
stsar
e21.
13)Whi
cht
echni
quesusedt
oident
if
yther
ecor
dwhi
chwascl
i
ckedbyt
heuseri
nthepr
evi
ousl
i
st?
Ans:
HIDE&GET-
CURSOR
HI
DE:
Thi
sst
atementi
susedt
ohi
det
hesel
ect
edf
iel
dval
uewhi
chcanbepassedt
othe
cor
respondi
ngdr
il
ldownl
i
stt
ofi
l
tert
heunwant
edr
ecor
ds.I
tisusedt
ocapt
uret
he sel
ect
ed
f
iel
dval
uest
othenextdr
il
ldownl
i
st.Hi
dest
atementpr
ovi
desSi
ngl
edr
il
ldownl
i
st.
GET-
CURSOR:
Thi
sst
atementi
susedt
ocapt
uret
hesel
ect
edf
iel
dval
ues&f
iel
dnamesbased
ont
hecur
sorposi
ti
on.Thi
sst
atementpr
ovi
desdr
il
lmul
ti
pledownl
i
sts.
14)Whatar
etheSy
stem Fi
eldsassoci
atedwi
thI
nter
act
iveRepor
ts?

Fieldname Descri
pt i
on
LSI ND I
ndexofthenextdri
lldown-contentsofthecur rentli
stIndexno
LISEL Sel
ectedl
istl
i
nev al
ue-content
soft heselectedr ecord
LILLI Sel
ectedl
istl
i
nenumber–cont ainstheexactl inenooft heselect
edr
ecor
d
UCOMM Fun.Codeofthesel
ectedpushbutton/Menui tem
PFKey Functi
onKey

15)Whatar
etheCont
rol
BreakSt
atement
s,expl
ainaboutt
hem?

Ans:
-
Cont
rol
Breakst
atement
s:-Theyar
eusedt
ocont
rol
thedat
afl
owofani
nter
nal
tabl
e.
 TheCont
rol
breakst
atement
sst
artwi
thATandendswi
thENDAT.
 Thesest
atement
sshoul
dbeusedwi
thi
ntheLOOPst
atement
sonl
y
 Fol
l
owi
ngar
ethedi
ff
erentt
ypesofCont
rol
breakst
atement
s.
 ATFI
RST:
-Thi
sev
enti
str
igger
edatt
hef
ir
str
ecor
dofani
nter
nal
tabl
e.Thi
sisusedt
odi
spl
ayt
he
Headeri
nfor
mat
ion.
 ATNEW:
-Thi
sev
enti
str
igger
edatt
hef
ir
str
ecor
dofeachbl
ock.Thi
sisusedt
odi
spl
ayt
he
i
ndi
vi
dual
headi
ngs.
 ATENDOF:
-Thi
sev
enti
str
igger
edatt
hel
astr
ecor
dofeachbl
ock.Thi
sisusedt
odi
spl
ayt
he
t
otal
/subt
otal
sint
hei
nter
nal
tabl
e.
 ATLAST:
-Thi
sev
enti
str
igger
edatt
hel
astr
ecor
dofani
nter
nal
tabl
e.
 ONCHANGEOF:
-Iti
saspeci
alcont
rol
breakst
atementwhi
chcanbeusedout
sideoft
he
l
oopst
atemental
so.
 I
tisal
mostsi
mil
art
oATNEW st
atementbuti
tdoesn'
tconsi
dert
hepr
ecedi
ngf
iel
ds.
 I
tcanbeusedont
hemul
ti
plef
iel
dsusi
ngSEToper
ator
s(AND,
OR,
BETWEEN)
.

16)Whati
sthedi
ff
erencebet
weenATNEW andONCHANGEOF?

ATNEW ONCHANGEOF
1.Theymustbeusedwi thi
nt hel
oop 1.I
tcanbeusedwi thinthel
oopstatement&
statements. out
sideoftheloopstatementsal
so
2.Itconsi
derspr ecedingfi
eldsal
so 2.I
tdoesn'
tconsider
3.Itcan’
tbeusedonmor ethanonefiel
dusi
ng 3.I
tcanbeusedont hemulti
plefi
eldsusingthe
theSEToper ator‘OR’ SEToperat
or‘OR’
4.Thewor kar eaisimpactedbyrepl
acingwi
th
Asteri
sk(*******)marks 4.I
tdoesn’
timpacttheWor kArea
q:
Whati sthedifferencebetweenAtNewandOnchangeOfinsi
deal oop??Iwanti
nsideal oopdif
ference
notbasicdif
ference? ?

1.Atnewi
sal
way
sfol
l
owedbysi
ngl
efi
eld.

eg:
ATNEW MATNR.

i
fanychangesinmat
nroccur
satneweventt
ri
gger
s.atthiscaser
ightsi
def
iel
dsofmat
nrappear
sli
ket
his.
Ri
ghtsi
decharact
erf
iel
dsappear
sli
ke*
***&numericf
ieldbecomenulli
nworkar
ea.
2.
onchangeoff
oll
owsbysi
ngl
eormor
efi
elds.

eg:
ONCHANGEOFMATNRORLABSTORWERKS.

Her
eanychangei
nanyf
iel
donchangeofev
entt
ri
gger
s.Her
ewecanseeal
lfi
eldsi
nwor
kar
ea.

17)Whatar
ethedi
ff
erencesbet
weenSELECTSI
NGLEandUPTO1ROWS?
SELECTSI
NGLE UPTO1ROWS
1.Itext
ract
ssi
ngl
erecor
dfr
om t
hedat
abase 1.Itextr
actsal
lther
ecor
dsint
oabuf
ferandmov
es
table thefir
strecor
dintoanappl
i
cati
onpr
ogram
2.I
tdoesn’
trequi
reENDSELECTst
atement 2.I
tr equiresENDSELECT
3.Uset hisone,i
ncaseofnotpossi
bletouseallt
he
3.Usethi
sone,incaseofall
keyfi
eldscanbe keyfields.Wecanreadappropr
iat
erecordfr
om
consi
der
ed.Toreadexactr
ecordfrom dat
abase databaset abl
e;wemaynotneedtoprovideall
key
tabl
eweneedtoprovideal
lkeyfi
elds. fi
elds.

4.I
tissl
owerbecausei
tisaconst
ructt
oread 4.I
tisfast
erbecausey
ouar
enotusi
ngal
lthepr
imar
y
dat
abaser
ecor
dswi
thpr
imar
ykey
.Int
he keyfi
elds.

absenceoft
hepr
imar
ykey
,itmi
ghtendupdoi
ng
asequent
ial
sear
ch

18)Whatar
ethedi
ff
erencesbet
weenNor
mal
Repor
tsandALVRepor
ts?

Classi
cal
repor
ts ALVReport
s
1.Simplereport
susingtheWRITEstat
ementswithi
n 1.Thesyst
em generat
edFuncti
onsst
artwi
th
theloops. REUSE*areusedtodispl
aythedat
a.
2.Perfor
mancei snotasgoodasALVRepor t
ssince
theLOOPst atementmustbeusedtodispl
aythe 2.Perfor
mancei sgoodsincethedataisdispl
ayed
data. usi
ngt hefunct
ionmodulesoutsideoftheloops.
3.I
tcanbepossi bl
etoedittheFiel
dsint he
3.Notpossi
blet
oedi
ttheFi
eldsi
ntheOut
put
. Output.
4.I
tissoEASYt odi
splaytheLOGOSi nthe
4.I
tisdi
ff
icul
ttodispl
ayt
heLOGOSintheout
put
. output.
5.I
tisCOMPLEXt oAli
gntheCol
umns. 5.ColumnAl i
gnmentisdonebyt hesystem.

19)
.whatar
eConv
ersi
onRout
ines?

 Theconver
sionr
out
inesaret
hefunct
ionmodul
esusedt
oconv
ertt
hedat
afr
om i
nter
nal
for
matt
o
anext
ernalf
ormat&exter
nalf
ormatt
ointer
nal
for
mat.

 Theconv
ersi
onr
out
inesar
emai
ntai
nedatt
heDomai
nlev
elofaf
iel
d.

20)Howt
omaket
hef
iel
dedi
tabl
einALVGr
id?

Ans:
-Bypassi
ngt
hef
iel
dnameEDI
T=‘
X’t
otheSLI
S_T_
FIELDCAT_
ALV(
wit
hHeaderLi
ne)
.
 WA_
FIELDCAT-EDI
T=‘
X’.
21)Whatar
etheev
ent
sassoci
atedwi
thALVRepor
ts?

Ans:
-Ther
ear
e17ev
ent
sinALVRepor
ts.
 Fol
l
owi
ngar
esomeoft
hemostusef
ulev
ent
s.
 TOP_
OF_
PAGE:
Iti
sanev
entwhi
chi
str
igger
edatt
het
opofeachpage.Thi
sev
enti
s
usedt
odi
spl
ayt
hel
i
stheadi
ngs&Logos.
 PF_
STATUS_
SET:
Thi
sev
enti
str
igger
edatt
het
imeofat
tachi
ngourownGUIt
othe
pr
ogr
am.Thi
sev
enti
susedt
ocal
lthemenust
atusf
oraddi
ngmenui
tems&push
but
tons.
 USER_
COMMAND:
Iti
sanev
entwhi
chi
str
igger
edatt
het
imeofusercl
i
cksonany
r
ecor
dofanyl
i
staswel
lascl
i
cksonanymenui
tem.Thi
sev
enti
susedt
opr
ovi
dean
i
nter
act
ivef
unct
ional
i
tybasedont
hesel
ect
edr
ecor
d/pushbut
ton/menui
tem i
nALV
r
epor
ts.
 END_
OF_
LIST:
Iti
susedt
odi
spl
ayt
heFoot
erdet
ail
sinALVr
epor
ts.
22)Whatar
etheFunct
ionModul
esassoci
atedwi
thALVRepor
ts?

o Thest
andar
dALVdi
spl
ayFunct
ionmodul
e'REUSE_
ALV_
LIST_
DISPLAY'
isusedt
odi
spl
ay
t
hepopul
atedf
inal
int
ernal
tabl
edat
ainALVLI
STf
ormat
.
 TheFi
eldv
aluescannotbeedi
tedi
ncaseofALVLi
stf
ormat
.
 Logos/
Imagescannotbedi
spl
ayedi
nALVLi
stf
ormat
.
o Thest
andar
dALVdi
spl
ayFunct
ionmodul
e'REUSE_
ALV_
GRI
D_DI
SPLAY'
isusedt
odi
spl
ay
t
hepopul
atedf
inal
int
ernal
tabl
edat
ainALVGRI
Dfor
mat
.
 TheFi
eldv
aluescanbeedi
tedi
ncaseofALVGRI
Dfor
mat
.
 Logos/I
magescanbedi
spl
ayedi
nALVGRI
Dfor
mat
.
o TheBl
ockedALV’
sar
eusedt
odi
spl
ayt
hedat
afr
om t
hemul
ti
plei
nter
nal
tabl
esassepar
ate
bl
ocki
ntheout
put
.
 Thest
andar
dALVdi
spl
ayFunct
ionmodul
es'
REUSE_
ALV_
BLOCK_
LIST_
INI
T'i
sused
t
oini
ti
ali
zet
hedi
ff
erentbl
ocksi
ntheout
put
.
 '
REUSE_
ALV_
BLOCK_
LIST_
APPEND'
isusedt
oappendt
hei
nter
nal
tabl
esassepar
ate
bl
ocks.
 '
REUSE_
ALV_
BLOCK_
LIST_
DISPLAY’
isusedt
odi
spl
ayt
heappendedbl
ocksi
nthe
out
put
.
o Thest
andar
dALVdi
spl
ayFunct
ionmodul
e'REUSE_
ALV_
HIERSEQ_
LIST_
DISPLAY'
isusedt
o
di
spl
ayt
heHeader&cor
respondi
ngi
tem det
ail
sinHI
ERARI
CHALmanner
.
23)Whatar
etheway
stopopul
ateFi
eldCat
alogandwhi
chonedoy
oupr
efer
?

Ans:
-Ther
ear
etwoway
stopopul
atet
heFI
LEDCATALOG.
1.Usi
ngALVFunct
ionModul
e'REUSE_
ALV_
FIELDCATALOG_
MERGE'
//NotAdv
isabl
e
2.Manual
Popul
ati
on/
/Adv
isabl
e
1.St
epst
oPopul
ateFi
eldCat
alogusi
ngt
heFunct
ionModul
e:

 Def
ineDat
adi
cti
onar
yst
ruct
ure/
Int
ernal
tabl
ewi
tht
her
equi
redf
iel
ds.

 Call
ALVfunct
ionmodule‘REUSE_ALV_FI
ELDCATALOG_
MERGE’
topopul
atef
iel
dcat
alog
fr
om theDDI
Cstruct
ure/
Inter
nalt
able.

 Modi
fyt
hespeci
fi
edf
iel
dcat
alogi
nter
nal
tabl
e‘GT_
FCAT’
aspert
hespeci
fi
cat
ioni
frequi
red.

 Passthefil
ledfi
eldcat
alogi
nter
nal
tabl
etoanExpor
tpar
amet
er‘
I
T_FI
ELDCAT’
oft
heALV
Displ
ayfuncti
onmodules.

St
epst
oInser
tBor
derLi
nef
or72Char
act
ers:

 Oncet
hepr
ogr
am i
sinchangemode.

 Cl
i
ckonUtil
i
ties-
>Set
ti
ngs-
>Checkt
hecheckbox“
Downwar
dscompat
ibl
eli
nel
engt
h(72)
&Cli
ckonYesbutt
on.

 Oner
edcol
orv
ert
ical
bor
derl
i
nei
sinser
tedat72char
act
ersposi
ti
on.

2.St
epst
oPopul
ateFi
eldCat
alogManual
l
y:

 Popul
ateFi
eldCat
alogI
nter
nal
tabl
ewi
tht
her
equi
redf
iel
dval
ues.

 Passthepopul
atedFi
eldCat
alogI
nter
nal
tabl
etoanexpor
tpar
amet
erofALVdi
spl
ay
funct
ionmodul
e.

24)I
sitpossi
blet
odev
elopt
heALVr
epor
tswi
thoutpopul
ati
ngorusi
nganyFI
ELDCATALOG?

Ans:
-Yes,
Wecandev
elop.
 Cr
eat
eDDI
Cst
ruct
urewi
tht
her
equi
redf
iel
ds.
 Ext
ractt
her
equi
reddat
afr
om t
hedat
abaset
abl
esbasedont
hegi
veni
nput
.
 Popul
atet
heFi
nal
int
ernal
tabl
es.
 Uset
hef
unct
ionmodul
eei
ther‘
REUSE_
ALV_
GRI
D_DI
SPLAY’
or‘
REUSE_
ALV_
LIST_
DISPLAY’
todi
spl
ay
f
inal
dat
abyexpor
ti
ngDDI
Cst
ruct
urename&t
heFi
nal
int
ernal
tabl
e.
25)
.whatar
ethedi
ff
erentway
stopopul
ateev
ent
sinALVr
epor
t?

1.Manual
Popul
ati
on:

 Popul
ateani
nter
nalt
abl
eoft
het
ype‘
sl
is_
t_ev
ent
’wi
tht
her
equi
redev
ent
s&cor
respondi
ng
dynami
csub-
routi
ne.

 Def
inet
hedy
nami
csub-
rout
ineofanev
entwi
tht
her
equi
redf
unct
ional
i
ty.

 Passt
hepopulat
edev
ent
sint
ernal
tabl
etoExpor
t,I
mpor
tpar
amet
ersofanALVdi
spl
ayf
unct
ion
modul
e‘i
t_ev
ent’
.

2.Byusi
ngALVf
unct
ionmodul
e–REUSE_
ALV_
EVENT_
GET:

 I
tisnotadv
isabl
esi
ncei
text
ract
sal
ltheev
ent
s&l
oopi
srequi
red.
 Thedy
nami
csub-
rout
inef
oreachev
entcanbepopul
atedwi
thi
nthel
oopofev
enti
nter
nal
tabl
e.

 Passt
hepopul
ateev
enti
nter
nal
tabl
etoanexpor
tpar
amet
er.

3.Thecal
lbackexpor
tparamet
ercanal
sobeusedt
ospeci
fyt
hedy
nami
csub-
rout
inenameofALV
event
sinALVdispl
ayfuncti
onmodul
e.

26)Expl
aint
hest
epst
opr
ovi
deheadi
ngsandl
ogoi
nALVr
epor
ts?(
Or)

St
epst
owor
kwi
thanALVev
entTOP_
OF_
PAGE?
 UseanALVev
ent‘
TOP_
OF_
PAGE’
wit
hthecor
respondi
ngdy
nami
csubr
out
inenamei
ntoan
i
nter
nal
tabl
e
 Popul
atet
her
equi
redheaderdat
aint
oani
nter
nal
tabl
eoft
het
ype(
sli
s_t
_li
st_
header
)in
bet
weent
hedef
ini
ti
onofdy
nami
csubr
out
ine.
 Uset
heALVFunct
ionmodul
e‘REUSE_
ALV_
COMMENTARY_
WRI
TE’
todi
spl
ayt
he
Popul
atedheaderandLogos.
27)Howtopr
ovi
decustom Funct
ion(
Push)But
tonal
ongwi
thSy
stem gener
atedFunct
ionsi
nALV? (
Or)
Howtoaddpushbut
tonstoALV?

(
Or)St
epst
owor
kwi
thPFSTATUSSETi
nALV?

 Copyt
hesy
stem pr
ovi
dedgener
icf
unct
ions/
pushbut
tonsf
rom t
hest
andar
dpr
ogr
am ‘
SAPLSALV’
&
t
hest
atus:
STANDARDi
ntocust
om pr
ogr
am &menust
atususi
ngSE41.
 Addaddi
ti
onal
cust
omerspeci
fi
c‘pushbut
tons’
tot
hecopi
edmenust
atus.
 UseanALVev
ent‘
PF_
STATUS_
SET’
&cal
lthecopi
edmenust
atuswi
thi
nthedy
nami
csubr
out
ine
ofPF_
STATUS_
SET.
 Cal
lthecopi
edmenust
atususi
ngt
heABAPst
atement‘
SET_
PF_
STATUS’
.
28)Howt
ohandl
eInt
eract
iveFunct
ional
i
ty?(
Doubl
eCl
i
ck)

 Ani
nter
act
ivef
unct
ional
i
tycanbepr
ovi
dedwi
thi
nthedy
nami
csub-
rout
ineofanALVEv
ent
USER_
COMMAND.
 Pr
ovi
det
hei
nter
act
ivef
unct
ional
i
tysuchast
odi
spl
ayanot
herALVdr
il
ldownr
epor
t/cal
l
anot
herpr
ogr
am whent
hepushbut
tonsar
esel
ect
ed.
 Thef
unct
ioncodef
ort
hedoubl
ecl
i
cki
nALVr
epor
tsi
s‘&I
C1’
andi
nInt
eract
ivecl
assi
cal
repor
t
i
n‘PI
CK’
.
29)
.Howt
ocapt
uresel
ect
edr
owsi
nALVout
put(
or)

Whatar
ethest
epst
ogetsel
ect
edr
owsi
nthenextdr
il
ldownl
i
sti
nALV(
or)

I
nter
act
ivef
unct
ional
i
tybasedont
hesel
ect
edr
ows?

Ans:

 AddSi
ngl
eChar
act
erf
iel
dtot
heLay
out
.

 PassBOXsi
ngl
echar
act
erf
il
ednamet
othel
ayout
.

 Passpopul
atedLay
outt
oALVdi
spl
ayf
unct
ionmodul
es.

 Copyf
inal
int
ernal
tabl
eint
otempor
aryi
nter
nal
tabl
e.

 Del
etenonsel
ect
edent
ri
esf
rom t
empor
aryi
nter
nal
tabl
e.
30)
.whatar
est
epst
odi
spl
ayeachr
owi
ndi
ff
erentcol
orsi
nALVr
epor
t?

Ans:

 Add4Char
act
erf
iel
dtot
hef
inal
int
ernal
tabl
efor
m whi
cht
hedat
ashoul
dbedi
spl
ayed.

 Popul
atecol
orcodedy
nami
cal
l
y.

 Passcol
orcodef
iel
dnamet
othef
iel
d‘i
nfo_
fiel
dname’
oft
hel
ayout
.

31)
.Howt
odi
spl
ayTr
aff
icl
i
ght
sinALVRepor
t?

Ans:

 Add4char
act
erf
iel
dtot
hef
inal
int
ernal
tabl
e.

 Popul
atet
raf
fi
cli
ght
sbasedont
hest
atus.

 Popul
ateFi
eldCat
alogwi
tht
raf
fi
cli
ght
sfi
eldname.

32)Expl
ainaboutsomeoft
heusef
ult
ypeswi
thwhi
chy
ouhav
ewor
kedi
nSLI
STy
peGr
oup.

Ans:
-
Fi
eldName Descr
ipt
ion
Tabname Fi
nalI
nter
nalName
Tabindex I
ndexno.oftheselect
edr
ecor
dint
hef
inal
int
ernal
tabl
e.
Val
ue Sel
ectedf
iel
dv al
ue
Fi
eldname Fi
eldnameofasel ect
edr
ow

33)
.Expl
ainsomeusef
ult
ypesi
nthet
ypegr
oup‘
SLI
S’?

Ans:

I
. SLIS_
T_FI
ELDCAT_ALV:I
tisusedt
oformatthecol
umnsi
nALVr
epor
tssuchasPopul
atecol
umn
headi
ngs,
Editt
hecolumns,Di
spl
ayhandsymbols.

I
I. SLI
S_LAYOUT_ ALV:Iti
susedtof
ormattheent
ir
elay
outinALVr
epor
tssuchasdi
spl
aydat
ain
di
ff
erentcol
ors.Inst
eadoffor
matstat
ementweuselay
out.

I
II
. SLI
S_T_
_EVENT:
Iti
susedt
opopul
ateanALVev
ent
.

I
V. SLI
S_T_
_LI
ST_
HEADER:
Iti
susedt
odi
spl
ayt
heLi
stHeadi
ngs&Logosi
nALV.

V. SLIS_
T_ _EXTAB:
Iti
susedt
opopul
atet
hef
unct
ioncodesoft
hepushbut
tonst
obehi
ddeni
nALV
repor
t/output
.

VI
. SLI
S_T_
_SELFI
ELD:
Iti
susedt
ocapt
uret
hesel
ect
edr
ow/
li
nev
aluei
nALV.

VI
I. SLI
S_KEYINFO_
ALV: I
tisusedtopopulat
ethekeyf
iel
d’si
nfor
mat
iont
odi
spl
ayheader&t
he
cor
respondi
ngi
tem datai
nHi er
archi
calALV.
VI
II
. SLI
S_T_
SORT_
INFO:
Iti
susedt
opr
ovi
desubt
otal
s&gr
andt
otal
sinALVr
epor
t.

34)Whatar
ethet
ypesofMemor
ies,
expl
ainaboutt
hem?
Ans:
-TheMemor
yconcepti
susedt
oaccesst
hedat
aacr
osst
hei
nter
nal
orExt
ernal
Sessi
ons.
 Ther
ear
e2t
ypesofmemor
ies.
o SAPMemor
y:-I
tisusedt
oaccesst
hedat
afr
om onesessi
ont
oanot
hersessi
ont
hrough
Par
amet
erI
DorMemor
yID.
 TheABAPst
atement
sSETPARAMETERI
DandGETPARAMETERI
Dar
eusedt
o
wor
kwi
tht
heSAPmemor
y.
 SETPARAMETERI
Disusedt
opasst
hef
iel
dval
uef
rom anappl
i
cat
ionpr
ogr
am i
nto
t
hespeci
fi
edSAPMemor
yIDorPar
amet
erI
D.
 GETPARAMETERI
Disusedt
ogett
hedat
afr
om t
hespeci
fi
edmemor
yIDor
Par
amet
erI
Dint
ofi
l
edofanappl
i
cat
ionpr
ogr
am.
 ThePar
amet
erI
D’sar
emai
ntai
nedatDat
aEl
ementl
evel
underFur
ther
Char
act
eri
sti
cs.
o ABAPmemory:-I
tisusedt
oaccessthedat
aacr
ossi
nter
nal
sessi
ons.TheABAP
st
atement
sIMPORT&EXPORTar eusedtowor
kwit
htheABAPMemor y.

 TheI
MPORTst
atementi
susedt
oimpor
tthedat
afr
om t
hespeci
fi
edmemor
yIDi
nto
dat
avar
iabl
e.
 TheEXPORTst
atementi
susedt
oexpor
tthedat
aint
othespeci
fi
edmemor
yIDf
ormt
he
pr
ogr
am.
35)Canwepl
aceMor
ethanonesel
ect
ionscr
eenEl
ementi
nonel
i
ne,
IfYes,
How?

Ans:
-Yes.

SELECTI
ON-
SCREENBEGI
NOFLI
NE.

*Li
stofPARAMETERS

SELECTI
ON-
SCREENENDOFLI
NE.

236Howt
opl
acet
hePUSHbut
tons(
Funct
ionkey
s)onSel
ect
ionScr
eens?

Ans:
-Requi
rement
:

Thr
eebut
tonsdi
spl
ay,
change,
creat
etobecr
eat
edal
ongwi
tht
hei
rrespect
ivei
consont
hesel
ect
ionscr
een.

St
epst
obef
oll
owed:

St
ep1:
Creat
epr
ogr
am i
nSE38wi
thsomemeani
ngf
uldescr
ipt
ion.
St
ep2:
Creat
easel
ect
ionscr
eenwi
tht
woort
hreef
iel
ds.

Wr
it
ethebel
owcodei
nthepr
ogr
am af
tert
heabov
esel
ect
ionscr
eenst
atement
.
Wr
it
ethebel
owcodei
nthepr
ogr
am i
ntheI
nit
ial
i
zat
ionev
ent
.

Execut
ether
epor
tandy
ouwi
l
lseet
hreepushbut
tonsont
hesel
ect
ionscr
eenasbel
ow.

Nowtohandl
ethebut
tonsi
nthepr
ogr
am,
fir
stweneedt
ocr
eat
eacust
om GUIst
atuscopi
edf
rom t
hest
andar
dGUI
asbel
ow

RSSYSTDB&%_
00r
efert
othest
andar
dGUIst
atus.
Nowweneedt
oaddt
hef
unct
ioncodesf
ort
heabov
ethr
eebut
tonscr
eat
edont
hesel
ect
ionscr
een.

FC01,
FC02andFC03r
efert
othet
hreebut
tonswhi
chwehav
eact
ivat
edabov
e.

Herewewilladdt
hefuncti
oncodesforthethr
eebutt
ons.Thesef
unct
ioncodeswi
l
lbecapt
uredi
nthesy
stem
var
iabl
eSY-
UCOMM fi
eldandthi
scanbeusedi
nthepr
ogram l
ogi
c.

Funct
ioncode‘DISP’i
susedher
efort
hef
ir
stpushbut
ton(
FC01)
,si
mil
arl
y‘CHAN’and‘
CREA’f
orsecondandt
hir
d
pushbutt
onsrespecti
vel
y.

Af
terent
eri
ngt
hef
unct
ioncodesf
oral
lthepushbut
tonsact
ivet
hepf
-st
atus.

Nowcomebackt
othepr
ogr
am andwr
it
ethebel
owcodei
nthe

ATSELECTI
ONSCREENOUTPUTev
ent
.
Nowexecut
ethepr
ogr
am andy
oucanf
indt
hebel
owsel
ect
ionscr
een.

Summar
y:I
nthi
swaywecr
eat
ebut
tonsal
ongwi
tht
hei
consont
hesel
ect
ionscr
een.

Q)Howt
otr
anspor
tav
ari
antofanABAPr
epor
ttopr
oduct
ioni
nSAP?

Ans:usi
ngpr
ogr
am RSTRANSP

+-

I
nreal
-t
imebusi
nessappl
i
cat
ions,
weneedt
otr
anspor
tvar
iant
sofapr
ogr
amst
opr
oduct
ion,
ingener
al
v
ari
ant
swi
l
lnotbet
ranspor
tedaut
omat
ical
l
yal
ongwi
thpr
ogr
am,
weneedt
oaddt
hem t
oaTRt
otr
anspor
t,
t
oaddt
ranspor
ttoaTRweusepr
ogr
am RSTRANSP.
Met
hod1t
otr
anspor
tvar
ianti
nSAP

Got
oSE38,
prov
idepr
ogr
am nameasRSTRANSPandexecut
e.

Pr
ovi
depr
ogr
am nameandv
ari
antname,
execut
e,i
twi
l
laskf
oraTR.

Youcannott
ranspor
tvar
iant
sofal
ocal
($t
mp)pr
ogr
am(pr
ogr
am sav
edi
nlocal
obj
ect
).

Met
hod2t
otr
anspor
tvar
ianti
nSAP

Got
oSE38,
prov
idey
ourpr
ogr
am name,
sel
ectv
ari
antanddi
spl
ay.
Got
out
il
it
ies-
>tr
anspor
trequest
,pr
ovi
dev
ari
antnameandexecut
e,i
twi
l
laskf
orTR.
Modul
ePool
Progr
ammi
ng/
Scr
eenPai
nter
Modul
ePool
Progr
ammi
ng/
Scr
eenPai
nter
 Thi
sconcepti
susedt
omai
ntai
ndi
ff
erentt
ypesofscr
eens&cor
respondi
ngf
lowl
ogi
c.

 Thi
sconceptcont
ainsmai
nly2par
ts.

 Modul
epool
progr
am

 Scr
eenpai
nter

1)Whati
stheScr
eenPai
nter(
Lay
out
)andexpl
aindi
ff
erentcomponent
sinscr
eenpai
nter
?
Ans:
Scr
eenpai
nter
:-I
tisat
ool
usedt
omai
ntai
ndi
ff
erentt
ypesofscr
eens.
 TheT-
codeSE51i
s usedt
owor
kwi
thscr
eenpai
nter
.
a)Nor
mal
scr
een:
 Thenor
mal
/mai
nscr
eenswhi
chcanbecal
l
edt
hrought
ransact
ioncodes/
usi
ngABAP
st
atement‘
CALLSCREEN’
.
b)Subscr
een:

 Thesubscr
eensar
epar
tofmai
nscr
eens(
nor
mal
)

 Thesubscr
eencan’
tbeexecut
edi
ndependent
ly

 Thef
lowlogi
cABAPst at
ement‘
CALLSUBSCREEN’
isusedt
ocal
lthesubscr
eenar
eas
i
nthenor
mal scr
eens

 Thepushbut
tons/
menust
atusi
snotpossi
bleont
hesubscr
een

 I
tisnotpossi
blet
ocal
lsubscr
eenwi
thi
nthesubscr
een

c) Modal
dial
ogscr
een:

 I
tisusedtopopul
ate/
displ
aythedat
aonpopdi
alogboxwi
thsomegener
icf
unct
ions
(Todispl
ayi
consatbottom)
d)Sel
ect
ionscr
een:

 Thesel
ect
ionscr
eeni
sreser
vedf
orRepor
ts/
Execut
abl
epr
ogr
ams.

 Thescr
eennumber1000i
sreser
vedf
orsel
ect
ionscr
een.

 Di
ff
erentComponent
s/El
ement
s:-
1.At
tri
but
es:
Itcont
ainst
het
echni
cal
det
ail
soft
hescr
eensuchar
ety
peoft
he
scr
een,
nextscr
eennumber
,packageet
c.
2.El
ementLi
st:
Itcont
ainst
hescr
eenel
ement
s,at
tri
but
es&pr
oper
ti
esoft
hescr
een el
ement
s
i
nthenor
mal
scr
een&subscr
een&at
tri
but
essuchar
egener
al at
tri
but
es,
text
s
ori
nputout
putt
empl
ates,
speci
alat
tri
but
es,
displ
ayat
tri
but
es,
modi
fi
cat
iongr
oups.
 Makeani
nputl
i
stasdr
opdownl
i
stbysel
ect
ing,
opt
ionundert
het
abi
nput
/out
put
.
 Thi
scomponenti
susedt
omaket
hescr
eenel
ement
svi
sibl
e,i
nvi
sibl
e,changet
he
di
mensi
onset
c.
 Themodi
fi
cat
iongr
oupswhi
chcanbeusedt
ofor
matt
hescr
eendy
nami
cal
l
yar
e
speci
fi
edbyusi
ngmodi
fi
cat
iongr
oups.
3.Fl
owLogi
c:
 Thi
scomponenti
susedt
opr
ovi
det
hel
i
nkbet
weent
hemodul
epool pr
ogr
am &
scr
eens.
 I
tcanal
sobeusedt
ocont
rol
thedat
afl
owbet
weent
hescr
eens
 Thescr
eenr
elat
edABAPst
atement
ssuchar
emodul
es,MODULE,CALLSUBSCREEN,
CHAI
Net
c.st
atement
scanbeusedi
nfl
owl
ogi
c.
3.Lay
out
:Iti
susedt
odesi
gnt
hescr
eenswi
thdi
ff
erentscr
eenel
ement
s
a.Textf
iel
ds:
Todef
inet
het
extf
iel
dsf
orscr
eenf
iel
dlabel
sont
hescr
een.
b.I
nput
/out
putf
iel
d:I
tisusedt
odef
inei
nput
/out
putf
iel
dsont
hescr
een.
c. Checkbox:
Todef
inet
hecheckboxont
hescr
een.
d.Pushbut
ton:
Iti
susedt
odef
inet
hepushbut
tonont
hescr
een.
e. Tabst
ri
pcont
rol
:Iti
susedt
odef
inet
het
abst
ri
pcont
rol
towor
kwi
tht
hedi
ff
erent
subar
easont
hescr
een.
f
. Tabst
ri
p(wi
thwi
zar
d):
iti
susedt
odef
inet
het
abst
ri
pcont
rol
usi
ngt
hewi
zar
d.
g.Subscr
eenar
ea:
Iti
susedt
odef
inet
hesubscr
eenar
easont
hemai
nscr
ren/
ont
het
ab
st
ri
pcont
rol
.
h.Tabl
econt
rol
:Iti
susedt
odef
inet
het
abl
econt
rol
stomai
ntai
nmul
ti
plel
i
nei
temsor
r
ecor
dsont
hescr
een.
i
. Tabl
econt
rol
wit
hwi
zar
d:I
tisusedt
odef
inet
het
abl
econt
rol
susi
ngwi
zar
ds.
j
. Cust
om cont
rol
:Iti
susedt
odef
inet
hecust
om cont
rol
sint
hescr
eens.
k. St
atusi
con:
Iti
susedt
odef
inet
hest
atusi
consont
hescr
een.
l
. Box:
iti
susedt
odef
inet
heboxesar
oundscr
eenel
ement
sint
hescr
eens.

2)Whatar
etheScr
eenpai
nterat
tri
but
es?

Ans:Theyareusedtomaint
aindif
fer
entat
tri
but
es/
set
ti
ngsofascr
eenel
ement
ssuchar
efunct
ion
code,f
uncti
ontype,
dropdownlistet
c.
a)Dr
opdown:
Ther
ear
e2t
ypesofdr
opdownopt
ions

I
. Li
stBox:
Tol
i
stoutonl
ythev
alues.

I
I. Li
stboxwi
thkey
:Tol
i
stoutt
hev
alueswi
thcor
respondi
ngkey
swhent
hedr
opdowni
coni
s
pr
essed

 Ther
emustbef
orei
gnkeyr
elat
ionshi
pbet
weenv
alue&t
extf
iel
dsofat
extt
abl
e.

b)Gr
oups:
Theyar
eusedt
ospeci
fyt
her
adi
obut
tongr
oupnameormodi
fi
cat
iongr
oupname.

c) FCTcode:
Funct
ioncodeofapushbut
tonsormenui
tems.

d)Di
cti
onar
yAt
tri
but
es:

 I
tisusedt
omai
ntai
ntheat
tri
but
esoft
hedat
adi
cti
onar
yobj
ect
ssuchar
etabl
eorst
ruct
uref
iel
ds.

 Someoft
hedat
adi
cti
onar
yobj
ect
sar
e:dat
efor
mat
,sear
chhel
p,conv
ersi
onexi
tet
c.

e) Pr
ogr
am At
tri
but
es:

 I
tisusedt
omai
ntai
nthedi
ff
erentat
tri
but
esofi
nputorout
putf
iel
ds.

I
. Requi
red:
Tomaket
hescr
eeni
nputf
iel
dasmandat
ory

I
I. Possi
ble:
Iti
sdef
aul
ticont
oacceptt
hei
nputv
aluesatr
unt
ime.

I
II
. Notpossi
ble:
Incaseoft
hisopt
ion,
inputi
snotpossi
blebutt
hef
iel
dcanbeusedasout
put
f
iel
d.

I
V. Recommended: Tomaket hei
nputf
iel
dasopt
ional
.Thesy
mbol
quest
ionmar
kisappear
ed
i
ntheinputoroutputf
iel
d.

 Checkt
hecheckboxout
putonl
ytor
est
ri
ctt
hei
nputdat
a.

V. Di
spl
ayAtt
ri
but
es:
Tomai
ntai
ndi
ff
erentat
tri
but
essuchar
einv
isi
ble,
out
putst
yles,
2D
di
spl
ayet
c.

3)Whati
sthedi
ff
erencebet
weenFl
owLogi
candModul
ePool
progr
am?

 Fl
owLogi
cisusedt
odef
inet
heFl
owLogi
coft
hescr
eenel
ement
s.Themodul
esar
eusedt
o
communi
cat
ewi
tht
heModul
ePool
Progr
am.
 Modul
ePool
Progr
am i
susedt
odef
inet
hemodul
esoft
heFl
owLogi
cinscr
eens.TheT-
code
SE38/
SE80i
susedt
odev
elop&cr
eat
etheM.
P.P.
 I
tcanhav
e4I
ncl
udepr
ogr
amssuchar
e*TOP,
*F01,
*I01,
*O01.
4)Whatar
ethesy
stemsgener
atedI
ncl
udepr
ogr
amsi
nModul
ePool
progr
am?
Ans:
-Ther
ear
e4I
ncl
udepr
ogr
amsi
nmodul
epool
progr
ams.
a)TOPI
ncl
ude:
Iti
susedt
odecl
aregl
obal
dat
adecl
arat
ionswhi
chcanbeaccessedacr
oss
t
hescr
eens.
b) F01I
ncl
ude:
Iti
susedt
odef
inet
heFORMS(
Subr
out
ines)whi
chcanbeusedi
nmodul
e
def
ini
ti
ons.
c)O01I
ncl
ude:
Iti
susedt
odef
inet
hePBO(
ProcessBef
oreOut
put
)modul
es.
d)I
01I
ncl
ude:
Iti
susedt
odef
inet
hePAI(
ProcessAf
terI
nput
)modul
es.
 Themodul
epool
name&scr
eenpr
ogr
am namemustbesi
mil
ar.
5)Whatar
etheev
ent
sassoci
atedwi
thScr
eenPai
nter
?

1.PROCESSBEFOREOUTPUT(
PBO)
:

 Thi
sev
enti
str
igger
edbef
oret
hescr
eeni
sdi
spl
ayed.
 I
tcanal
sobet
ri
gger
edwhi
l
eper
for
minganyact
ionont
hescr
een.
 Thi
sisusedt
opr
ovi
det
hedef
aul
tval
uest
othescr
eenf
iel
ds.
 I
tcanal
sobeusedt
ofor
matt
hescr
eenel
ement
sdy
nami
cal
l
y.
2.PROCESSAFTERI
NPUT(
PAI
):

 Thi
sev
enti
str
igger
edaf
tert
heI
nputv
aluesar
epr
ovi
dedt
othescr
een.
 Thi
sev
enti
susedt
oval
i
dat
ethei
nputdat
aont
hescr
eens.
 I
tcanal
sobeusedt
opr
ocesst
hescr
eendat
abasedont
heper
for
medact
ion (
pressed
pushbut
tonmenui
tem et
c)
3.PROCESSONHELP-
REQUEST(
POH)
:

 Thi
sev
enti
str
igger
edwhent
hef
unct
ionkeyF1orhel
picon(
?)i
spr
essed.

 Thi
sev
enti
susedt
opr
ovi
det
hehel
pdocument
ati
onont
hescr
eenf
iel
ds.

 TheT-
code: SE61/
SO72i
susedt
omai
ntai
nhel
pdocument
ati
on.

 Thestandar
df unct
ionmodul
e‘HELP_
OBJECT_
SHOW’
isusedt
odi
spl
ayt
hemai
ntai
nhel
p
documentat
ion.

4.PROCESSONVALUE-
REQUEST(
POV)
:

 Thi
sev
enti
str
igger
edi
ncaseofi
ncaseoff
unct
ionkeyF4orsear
chhel
piconi
spr
essed.

 Thi
sev
enti
susedt
opopul
ate&di
spl
ayt
hecust
om sear
chhel
ponscr
eeni
nputf
iel
ds.

 Thestandardfunct
ionmodule“
F4I
F_INT_TABLE_
VALUE_
REQUEST”i
susedt
odi
spl
ayt
he
popul
atedinter
naltabl
edat
aassearchhelp.

6)Whatar
ethest
epst
opr
ovi
deSear
chHel
p?

I
. UseanEv
entPROCESSONVALUE-
REQUEST.
I
I. Speci
fyordef
inet
heModul
eont
her
equi
redScr
eenFi
eld.
I
II
. Uset
heSt
andar
dFn.Modul
eF4I
F_I
NT_
TABLE_
VALUE_
REQUESTt
odi
spl
ayt
hePopul
ateddat
a
i
nthesear
chhel
pWi
ndow.

7)Whatar
ethest
epst
opr
ovi
deHel
pDocument
ati
on?

a)Uset
heFl
owl
ogi
cev
ent‘
PROCESSONHELP-
REQUEST’
.
b)Speci
fyt
hemodul
enameont
hepar
ti
cul
arscr
eenf
iel
d.
c) Uset
hest
andar
dfunct
ionmodul
eHELP_
OBJECT_
SHOW (
wit
htechni
cal
descr
ipt
ion)or
DSYS_
SHOW_
FOR_
F1HELP(
wit
houtt
echni
cal
descr
ipt
ion)t
odi
spl
ayt
hemai
ntai
nedHel
p
Document
ati
on.
8)Whatar
ethedi
ff
erentway
stoexecut
etheScr
eens?
Ans:
-Ther
ear
e2way
stoexecut
ethescr
eens.
1.Usi
ngt
heTcode:
Thescr
eenscanbeexecut
edt
hrought
heTcodest
owhi
cht
he
Modul
epool
progr
am &t
hescr
eennoi
sassi
gned.
2.Usi
nganExecut
abl
epr
ogr
am:
Thescr
eenscanbecal
l
ed&def
inedusi
ngt
he
St
atement‘
CALLSCREEN’
.CALLSCREENi
susedt
ocal
lthespeci
fi
edscr
eennumber
.
9)Howt
oval
i
dat
e/checkt
hef
iel
ds(
scr
een)i
nModul
ePool
progr
am?

Ans:
-a)Useanev
entPr
ocessAf
terI
nputt
oval
i
dat
etheI
nput
//scr
eenf
iel
dval
ues.
b)Oncet
heFl
owl
ogi
cisi
nChangemode,
def
inet
hemodul
ewi
tht
hef
iel
dst
atementbet
ween
CHAI
N…ENDCHAI
Nscr
eenst
atement
.
C)Fet
cht
hedat
afr
om t
hedat
abase&gi
vet
hepr
opermessagei
fdat
adoesn’
texi
st.
 Thest
atementCHAI
N….
ENDCHAI
Nissuedt
omakeal
lthescr
eeni
nputf
iel
dsenabl
est
oent
eri
nput
dat
a.
 Thescr
eenv
ali
dat
ionswi
thoutCHAI
N….
ENDCHAI
Nst
atement
smaket
hescr
eeni
nputf
iel
dsgr
ayed
out(
displ
aymode)
.
10)Howt
omakescr
eenf
iel
dasmandat
oryi
nScr
eenpai
nter
?
Ans:
-Inscr
eenpai
nterdoubl
ecl
i
ckt
hescr
eenf
iel
d
GotoATTRI
BUTES->PROGRAM
Ther
esel
ecti
nputasREQUIRED
Requi
red:
Tomaket
hescr
eeni
nputf
iel
dsasmandat
ory
.

11)Howt
omaket
heScr
eenf
iel
dsi
nvi
sibl
ebasedoncer
tai
ncondi
ti
onsdy
nami
cal
l
yandwhi
ch
Ev
entshoul
dbeused?
Ans:
-Theev
entATSELECTI
ONSCREENOUTPUTi
susedt
ofor
matt
hesel
ect
ionscr
eendy
nami
cal
l
yby
set
ti
ngal
oopt
oscr
eent
abl
e(f
iel
dAct
ivecanbeusedt
oHi
de/
Appeart
hescr
eens)
.

12)Modul
escr
eenf
lowst
atement
s?

Ans:
Thi
sst
atementi
susedi
nfl
owl
ogi
ctocal
lthedef
inepr
ocessmodul
epool
progr
ams.

Sy
ntax:
[FI
ELD<scr
een-
fi
eld>]
MODULE<modul
e-name>.

Addi
ti
ons:

I
. ….ATEXI
T-COMMAND:
Thiscommandisusedt
otri
ggert
hedi
aloguemodul
eincaseofpushbut
ton
ormenuit
em wi
tht
hef
uncti
onty
pe‘
E’exi
tispr
essed.

I
I. …ATCURSOR- SELECTION:Thisaddit
ionisusedtotri
ggert
hecorr
espondingmodul ewhent he
cursori
spl
acedont heinputf
iel
dofascr een.I
tcanalsobeusedtotr
iggercorr
espondingmodul ei
n
caseofapushbuttonormenui tem wit
hf-ty
pe‘S’(
system)orCS(cur
sorselect
ion)ispressed.

I
II
. CHAI
N…ENDCHAI N:Thi
sstat
ementisusedinf
lowlogict
odefi
net
hepr
ocesschai
ns.I
tcanbeused
tomakeal
lthescr
eeninputf
iel
dsenabl
estoenteri
nputdat
a.

Usef
uladdi
ti
onst
oCHAI
N…ENDCHAI
Nst
atement
:
I
. MODULEONCHAI
N-REQUEST:
Themodul
ewi
thONCHAI
N-REQUESTi
susedt
otr
iggert
he
cor
respondi
ngmodul
eont
hespeci
fi
edscr
eenf
iel
ds(
int
hesequence)
.
I
I. MODULEONCHAI
NINPUT:
Themodul
eONCHAI
NINPUTi
susedt
ocheckt
hei
ndi
vi
dual
condi
ti
ons
oft
hescr
eenf
iel
dsi
nthesequence.
Q)whati
stheuseofatexi
tcommandi
nmpp?
Ans:
Atexi
tCommandi
smai
nlyusedt
oqui
tthepr
ogr
am.
Thi
scommandi
susedt
otr
iggert
hedi
aloguemodul
eincaseofpushbut
tonormenui
tem wi
tht
he
f
unct
iont
ype‘
E’exi
tispr
essed.
Scenar
io:
Ihav
efi
vei
nputf
iel
dsi
nmyscr
een,
all
thef
ivef
iel
dsar
emandat
ory
i
hav
etogobackt
othepr
ogr
am (
LEAVEPROGRAM)
.
Nor
mal
l
yift
her
eisanyonemandat
oryf
iel
dsi
nscr
eeni
fam t
ri
gger
inganyev
ent
,
t
hatt
imet
hesy
stem aut
omat
ical
l
ythr
owsaner
rorl
i
ke“
Pleasef
il
li
nthemandat
oryf
iel
ds”
.
I
nthatcaset
heATEXI
TCOMMANDwi
l
lbeused.
13)Whatar
ethest
epst
owor
kwi
thTabSt
ri
pCont
rol
?
Ans:
-
 I
tisasetofpages&usedt
opl
acedi
ff
erentsubscr
eensofappl
i
cat
iononsi
ngl
escr
een.
 Eacht
abpagecont
ainst
it
le&i
tspagear
ea.
 Cr
eat
etabst
ri
pcont
rol
wit
hti
tl
eonMai
nscr
een.
 Assi
gnsubscr
eenar
eat
othecor
respondi
ngt
ab.
 Maket
henecessar
ycodechangesi
nfl
owl
ogi
c.
 Wr
it
epr
ocessi
ngl
ogi
cinModul
ePool
Progr
am.
14)Whatar
ethest
epst
owor
kwi
thTabl
eCont
rol
?
Ans:
-
 I
tisusedt
omai
ntai
nmul
ti
pleent
ri
esi
ntabul
arf
ormat
.Mul
ti
pler
owsar
epr
ocessedusi
ngLoop
wi
thcont
rol
.
 Def
ineordecl
aret
abst
ri
pcont
rol
inModul
ePool
progr
am.
 Def
ineorcr
eat
eTabl
econt
rol
onscr
eenbyf
il
li
ngal
lnecessar
yfi
elds.
 Makenecessar
ycodechangesi
nfl
owl
ogi
c&wr
it
epr
ocessl
ogi
cinMPP.
SAPSCRI
PTS

SAPSCRI
PTS
1)Whatar
etheComponent
sofSAPScr
ipt(
For
m Pai
nter
/Lay
outset
)?
Ans:
SAPScr
iptf
orm cont
ains2par
ts.
1.For
m pai
nter(
Lay
outSet
) 2.Pr
intPr
ogr
am
1.Header
:Iti
susedt
omai
ntai
ntheAdmi
nist
rat
ive&basi
cset
ti
ngsdat
a.
a.Admi
nist
rat
ivedat
a:
 I
tcont
ainst
het
echni
cal
det
ail
ssuchar
ePackagename,
Changedby
,Cr
eat
edbyet
c..
b.Basi
cdat
a:

 I
tisusedt
omai
ntai
nthedef
aul
tset
ti
ngswhi
chcanbeappl
i
edacr
osst
hef
orms.

 TheBasi
cset
ti
ngsar
epagef
ormat
,or
ient
ati
on,
fontsi
zeet
c.

 Thef
ir
stpage&t
hedef
aul
tpar
agr
aphnamesmustbespeci
fi
edoncet
heyar
ecr
eat
ed.
2.Pages:
 Theyar
ether
ect
angul
arf
ormatoft
hedocument
s.
 Thi
sel
ementi
susedt
omai
ntai
nthenextpage,
pri
ntmode,
pagecount
ermodeet
c.
3.Wi
ndows:
 Theyar
ethesmal
lcomponent
sont
hepages.
 Wecanpl
acet
hesamewi
ndowi
nanynoofpages.
 Thewi
ndowsar
enotposi
ti
onedont
hepagesunl
esst
heyar
eassi
gnedt
othepages.
4.Pagewi
ndow:
 Theyar
eusedt
oposi
ti
ont
hewi
ndowont
hepages.
 Di
ff
erentposi
ti
onat
tri
but
esLef
tmar
gin,
uppermar
gin,
Windowwi
dth,
Hei
ghtar
emai
ntai
ned.
I
tisusedt
opl
acet
hewi
ndowont
hepagewi
thco-
ordi
nat
es.
5.Par
agr
aphf
ormat
:
 Theyar
eusedt
opr
int
/for
matt
heent
ir
epar
agr
aphwi
thar
equi
redf
ormat&st
yle.
a.StandardAttr
ibut
es:I
tisusedtomai
ntai
nthest
andar
dat
tri
but
essuchar
eal
i
gnment
,li
ne
spacing,l
eftmargi
n,r
ightmargi
net
c.

b.FontAtt
ri
but
es:Theyar
eusedt
omai
ntai
nthef
ontset
ti
ngsuchar
efontf
ami
l
y,f
ontsi
ze,
bol
d,it
ali
cet
c.

6.Char
act
erf
ormat
:
 Theyar
eusedt
opr
int
/for
matt
hepar
ti
cul
art
ext
/st
ri
ngwi
tht
her
equi
redf
ont&st
yle.
 Theycanal
sobeusedt
osel
ectt
heBarcodes.
a.St
andar
dAt
tri
but
es:
Iti
susedt
osel
ectbar
code,
superscr
ipt
,subscr
ipt
set
c..

b.FontAt
tri
but
es:
Theyar
eusedt
omai
ntai
nthef
ontt
ype,
fontsi
ze,
bol
d,i
tal
i
cet
c.

2.Pr
intPr
ogr
am orDr
iverPr
ogr
am:

 TheDri
v erprogr
am i
susedtoext
ractt
hedataf
rom t
hedatabaset
abl
esorvi
ews, pr
ocess
theext
racteddata&passthepr
ocesseddat
atoSAPScri
ptformtodi
spl
ay/
printonthe
document .

2)Whatar
ethedi
ff
erencet
ypesofWi
ndows?

Ans: Wi
ndows:
-Theyar
eusedt
odef
inet
hedi
ff
erentt
ypesofwi
ndows.
 Fol
l
owi
ngar
ethedi
ff
erentt
ypesofwi
ndows.
 Mai
nWi
ndow:
Iti
sthedef
aul
twi
dow.I
tisusedt
odi
spl
ayt
hecont
inuoust
extont
he
pages.Wi
thoutmai
nwi
ndowwecan’
tdesi
gnSAPscr
ipt
s.Thesy
stem gener
atest
he
pagesdy
nami
cal
l
yformai
nwi
ndow.Upt
o99mai
nwi
ndowscanbecr
eat
edi
naf
orm.
Thewi
ndowt
ypei
s‘MAI
N’.
 Const
antWi
ndow:
Thi
swi
ndowcont
ainst
hest
ati
ccont
entwhi
chcanbef
ormat
tedonl
y
oncet
opr
int
/di
spl
ayt
hesamecont
ent
sonal
lthepages.
 Var
iabl
eWi
ndow:
Iti
susedt
opr
intt
hedat
abasedont
hewi
ndowsi
ze.I
tcanbe
f
ormat
tedf
oreachpaget
opr
int
/di
spl
ayt
hedi
ff
erentcont
ent
s.Wi
thoutav
ari
abl
e
wi
ndowal
sowecandesi
gnt
heSAPscr
ipt
.
 Gr
aphi
cWi
ndow:
Iti
susedt
opr
int
/di
spl
ayt
hegr
aphi
cs/
logosont
hepage.
3)Whatar
ethedi
ff
erentt
ypesofSy
mbol
sinScr
ipt
s?
Ans:
-TheSy
mbol
sar
etheconst
ant
swhi
chcanbei
nser
tednt
hepagewi
ndowst
odi
spl
ay/
pri
ntt
he
cor
respondi
ngcont
ent
s/dat
a.Sy
mbol
sar
eof3Ty
pes.
1.Sy
stem Sy
mbol
s:Theyar
eusedt
odi
spl
ayt
hesy
stem dat
asuchasdat
e,t
imeet
c…
Ex:
&DATE&,
&DAY&,
&MONTH&
Symbol Descri
ption
&DATE& Syst
em Date
&DAY& DayoftheSy stem
&MONTH& MonthoftheSy st
em
&YEAR& Yearofthesy stem
&TI
ME& Syst
em Time
&HOURS& Syst
em Hour s(HH)
&ULI
NE& Hori
zontalLi
ne

 Thesyst
em pr
ovi
dedst
andar
dst
ruct
ureSAPSCRI
PTcont
ainssomeoft
heSAPScr
ipt
syst
em f
iel
ds.

Note:
Numberofpagesl
i
ke“
1of10”canbedi
spl
ayedusi
ngt
hesy
stem sy
mbol
sPAGE&
FORM PAGEasbel
ow.

Ex:
&PAGE&of&SAPSCRI
PT-
FORMPAGES&

Cur
rentPagenumber
,Tot
alnoofpages

2.Standar
dSy mbols:
Theyaret
hepr
edef
inedsy
mbol
s.Thepool
edt
abl
eTTDTGi
susedt
o
maint
ainthestandar
dsy mbol
s.

3.Appl
i
cat
ionSy
mbols:
Thesear eusedt odi
spl
ay/
pri
ntt
heprocesseddat
afr
om t
hepr
int
pr
ogram ordatabase.Ex:
&WA_T001-
BUKRS&

4)Whatar
ethedi
ff
erentTAGcol
umnsi
nSAPScr
iptf
orm?

Ans:Tag Meani
ng

* Def
aul
tpar
agr
aphf
ormat

= Ext
endedLi
ne

/
: CommandLi
ne

/
* CommentLi
ne

/
E TextEl
ement-
>Di
spl
aymul
ti
pleent
ri
esofani
nter
nal
tabl
e

P Par
agr
aphf
ormat

/
= Li
nef
eed&Ext
endedl
i
ne

5)Whatar
etheFunct
ionModul
esassoci
atedwi
thScr
ipt
s?
1.OPEN_
FORM:
(*)
 Thi
sfunct
ionmodul
eisusedt
opr
ovi
det
hel
i
nkbet
weent
hepr
int
pr
ogr
am &SAPscr
iptf
orm.
 Thegl
obal
dat
avar
iabl
esoft
hepr
intpr
ogr
am canbeaccessedi
nSAPScr
iptf
orm af
ter
t
hisf
unct
ionmodul
eiscal
l
edt
oopenaf
orm/
used.
2.START_
FORM:

 Thi
sfunct
ionmodul
eisusedt
ospeci
fyt
hest
art
ingpagef
rom wher
ethe
documentt
obepr
int
edordi
spl
ayed.
3.WRI
TE_
FORM:
(*)

 Thi
sfunct
ionmodul
eisusedt
opasst
hemul
ti
pleent
ri
esofani
nter
nal
t
abl
eint
otheSAPScr
iptf
ormt
opr
int
/di
spl
ayt
hemul
ti
pleent
ri
esor
l
i
nei
temst
hrought
heTextEl
ement
s.
4.END_
FORM:

 I
tisanopt
ional
funct
ionmodul
ewhi
chi
susedt
oEndt
hest
art
edFor
m.
5.CLOSE_
FORM:
(*)

 Thi
sfunct
ionmodul
eisusedt
ocl
oset
heOpenedFor
m &sendt
he
Spool
Request
/Pr
intt
othedev
ice.
 I
tcanal
sobeusedt
ogett
heSAPScr
iptf
orm dat
aint
oOTF(
OtherText
)for
mat
.
Not
e:Thest
andar
dfunct
ionmodul
e‘CONVERT_
OTF’
or‘
CONVERT_
OTF_
2_PDF’
can
beusedt
oconv
ertt
heSAPScr
iptOTFDat
aint
oPDFf
ormat
.
 Thest
andar
dfunct
ionmodul
eSO_
NEW_
DOCUMENT_
ATT_
SEND_
API
1isusedt
o
sendanEmai
lwi
tht
her
equi
redat
tachment
sindi
ff
erentf
ormat
s.
6.CONTROL_
FORM:

 Thi
sfunct
ionmodul
eisusedt
ocont
rol
thef
orm bycr
eat
ingt
hepagesor
wi
ndowsdy
nami
cal
l
y.
Not
e:AniconTranspor
t(Lorr
yicon)ori
nthemenupath,Graphi
c->Transpor
tisusedt
o
gener
atetr
ansportr
equesttor
eleaseLOGO’sform onesy
stem t
oanothersy
stem.

6)Whatar
ethedi
ff
erentway
stodebugt
heScr
ipt
?

Ans:
-Ther
ear
etwoway
stodebugt
heScr
iptFor
m.
 Thepat
hSE71-
--
>Ut
il
it
ies-
--
>Act
ivat
edebugger
.
 Byexecut
ingSt
andar
dPr
ogr
am/Repor
t'RSTXDBUG'
.
7)Di
ff
erent
iat
ebet
weenPage1&Page2f
ormati
nsapscr
ipt
?
Ans:
Page1f
ormat
:Int
hisal
lpageshav
ethesamef
ormat
.
Page2f
ormat
:Int
hist
her
eisv
ari
ati
oni
npagef
ormati
.e.f
ir
stpagehasdi
ff
erentf
ormatt
han
secondpage.
8)Someoft
heusef
ulCont
rol
commands/
Stat
ement
sinSAPscr
ipt
s?
1./
:Addr
ess…Endaddr
ess:
Iti
susedt
odi
spl
ayt
headdr
essdet
ail
soft
hegi
venaddr
ess
numberi
nthest
andar
dfor
mat
.
Sy
ntax:
/:ADDRESS
/
:ADDRESSnumber&GS_
KNA1-
ADRNR&.
/
:ENDADDRESS
2./
:SetDat
emask:
Thi
scommandi
susedt
opr
int
/for
matt
hesy
stem Dat
eint
her
equi
redf
ormat
.
Sy
ntax:
SETDATEMASK=‘
<DD.
MMMM.
YYYY>’
.
*Dat
e:&DATE&
3./
:SetTi
meMask:
Thi
scommandi
susedt
opr
int
/for
matt
hesy
stem Ti
mei
nther
equi
redf
ormat
.
Sy
ntax:
/:SETTI
MEMASK=‘
SS:
MM:
HH’
.
Not
e:Passbl
ankspacest
othef
ormat
teddat
e&t
imet
ofor
matt
hem i
ntodef
aul
tfor
mat
.
 Ther
eisnol
oopst
atement
sinSAPScr
iptf
ormsbutt
het
extel
ement
scanbeusedt
o
communi
cat
ionwi
tht
hef
unct
ionmodul
eWRI
TE_
FORM usedwi
thi
nthel
oopoft
hepr
intpr
ogr
am t
o
di
spl
ayt
hemul
ti
pleent
ri
es.
TextEl
ement
:
 TextEl
ementi
sthenamegi
vet
othebl
ockofst
atement
sint
hepagewi
ndow.I
fwepasst
het
ext
el
ementnamet
otheWRI
TE_
FORM f
unct
ionmodul
ethent
heWRI
TE_
FORM f
unct
ionmodul
e
t
ransf
erst
hedat
afor
m dr
iverpr
ogr
am t
oal
lthest
atement
swhi
char
eav
ail
abl
eunderTextEl
ement
.
 Whenev
erwear
ewor
kingwi
thmai
nwi
ndow,
thenwemustpr
ovi
deTextEl
ementname,
other
wise
he1sti
t nfor
mat
ionpr
int
edt
wice.
4.Pr
otect
…Endpr
otect
:Iti
susedt
opr
intt
hecont
inuoust
extwi
thoutanypagebr
eaksi
nSAP
Scr
iptf
or 1stt
ms. hesy
stem checkseach&ev
erypagewhi
chpagei
shav
ingt
heenoughpl
ace
t
opr
intt
hecont
inuoust
ext
.Ifnopagei
shav
ingenoughspacei
tsi
mpl
ybr
eakt
het
ext&
pr
int
ingi
ndi
ff
erentpages.
Sy
ntax:
/:PROTECT
/
EELE
/
:ENDPROTECT
5.Def
ine:
Thi
scommandi
susedt
odef
ine/
decl
aret
hesy
mbol
sinSAPScr
ipt
.
Sy
ntax:
/:Def
ine&GV_
SYMBOL&
6.Box:
Thi
scommandi
susedt
odr
awt
heBoxes/
Framesont
hepagewi
ndows.
Sy
ntax:
/:BOXXPOS<*
*>cm/
mm YPOS<y
y>cm/
mm
/
:WI
DTH<ww>cm/
mm HEI
GHT<y
y>cm/
mm
/
:FRAME<FF>TW I
NTENSI
TY<y
y>TW
Not
e:Anaddi
ti
onI
NTENSI
TYi
susedt
ogr
ayoutt
heboxes.
 Thecommandposi
ti
on&si
zecanal
sobeusedt
odef
inet
heboxposi
ti
on&si
zes.
8.Top…EndTop:
Thi
scommandi
susedt
odi
spl
ay/
pri
ntt
hecont
ent
satt
heToppor
ti
on/
Header
oft
hespeci
fi
edwi
ndow.
Sy
ntax:
/:TOP
/
*Di
spl
ay/
Pri
ntatTopofpagewi
ndow.
/
:ENDTOP
9.Bot
tom…Endbot
tom:
Thi
scommandi
susedt
odi
spl
ay/
pri
ntt
hecont
ent
satt
he
Bot
tom/
Foot
erpor
ti
onofspeci
fi
edwi
ndow.
Sy
ntax:
/:BOTTOM
/
*Di
spl
ay/
Pri
ntatBot
tom ofpagewi
ndow.
/
:ENDBOTTOM
10.New-
Page:
Thi
scommandi
susedt
ogener
atet
henextpages.

Sy
ntax:
/:NEW-
PAGE.

11.New-
Window:
Thi
scommandi
susedt
ogener
atet
henewwi
ndows.

Sy
ntax:
/:NEW-
WINDOW.

9)Howt
oadd,
addi
ti
onal
funct
ional
i
tyt
oscr
iptwi
thoutmodi
fyi
ngt
hepr
int(
dri
ver
)pr
ogr
am?

Ans:
-TheFor
m Rout
ines(
PERFORM .
..
..
.ENDPERFORM)ar
eusedt
oaddt
headdi
ti
onal
f
unct
ional
i
tyt
otheSAPScr
iptf
orm wi
thoutmaki
nganychangesi
nthepr
intpr
ogr
am.
10)Whatar
ecl
i
entdependantobj
ect
sinabap/
sap?
Ans:
SAPScr
iptl
ayout
,textel
ement
,andsomeDDI
Cobj
ect
s.
11)Canwecal
lanot
herFor
mfr
om samepr
intpr
ogr
am i
nsapscr
ipt
?
Ans:
Yes,
wecancal
lot
herf
ormsi
nthesamepr
intpr
ogr
am/
dri
verpr
ogr
am.
12)Howt
ocopyt
heSt
andar
dScr
iptandmaket
hechanges?

Ans:
-Thepat
hSE71-
--
>Ut
il
it
ies-
--
>CopyFr
om Cl
i
entcanbeusedandmaket
henecessar
y
changes.
13)Howt
oconv
ertt
hel
anguagef
rom DEt
oourr
equi
redl
anguage?
Ans:
InSE71,
Uti
l
iti
es-
>Conv
ertOr
igi
nal
Language,
Prov
idet
heToLanguage&pr
essEnt
er

14)Howt
otr
anspor
ttextel
ement
sinSAPABAP?

Ans:
Ifi
tisfi
rstt
ime,theywi
l
lautomat
ical
l
ytr
anspor
tal
ongwi
tht
hepr
ogr
am,
ify
ouchanget
hem nextt
ime,
i
twil
laskforTR,youcanmovethatTR

15)Whatar
etheSt
andar
dText
s?
Ans:
-TheSt
andar
dtext
sar
eusedt
omai
ntai
ntheLongt
extusi
ngt
heT-
Code'
SO10'
.
 ThecommandI
NCLUDE….
OBJECTi
susedt
oinser
tthest
andar
dtextonpagewi
ndow.
Sy
ntax:
/:I
NCLUDE<ZSTP_
TEXT_
NAME>OBJECT<obj
-name>
I
D<i
d_name>LANGAUGE <EN/
..
>
 Thest
andar
dfunct
ionmodul
e‘READ_
TEXT’
canal
sobeusedi
nthepr
ogr
amst
oreadst
andar
d
t
ext&appl
i
cat
iont
ext
.
 ByDef
aul
ttheSy
stem doesn'
tgener
ateanyt
ranspor
trequestf
orst
andar
dtext
s.
 Thest
andar
dRepor
t'RSTXTRAN'
isusedt
ogener
atet
heTr
anspor
tRequestnumberf
or
St
andar
dtext
s.
16)Tel
lsomeoft
heSt
andar
dScr
ipt
sandPr
intpr
ogr
ams?
For
m name Pr
intpr
ogr
am For
mrout
ine Appl
i
cat
ion

MEDRUCK SAPM &SP/


SAPFM06P Ent
ry_
new Pur
chaseor
deronl
y

RVOROADDRS RVADOR01 ENTRY Sal


esor
der

RVDELNOTE RVADDN01 ENTRY Shi


ppi
ng
RVADI
N01 RVI
NVOI
CE01 ENTRY Bi
l
li
ng

17)Howt
oexecut
ethepr
ogr
am i
nbackgr
ound?
Ans:
Execut
eSE38,
prov
idet
hepr
ogr
am name&Execut
e,pr
ovi
det
heI
nput
I
ntheMenubar
,cl
i
ckonpr
ogr
am -
>Execut
einBackgr
ound
Pr
ovi
det
heout
putdev
iceLP01&cl
i
ckonent
er
Cl
i
ckonI
mmedi
ate&sav
e.
18)Howt
ocopyt
heSAPscr
iptf
rom 800cl
i
entt
o810cl
i
ent
?
Ans:
Int
heTar
getcl
i
ent810,
Execut
eSE38&Pr
ovi
det
hepr
ogr
am name:
RSTXFCPY&Execut
e
Pr
ovi
det
heFor
m name,
Insour
cecl
i
ent800,
Prov
idet
heTar
getFor
m name&Execut
e.
 Al
lthest
andar
dscr
iptf
ormsar
eav
ail
abl
eint
hecl
i
ent000.
19)Expl
ainaboutsomeoft
heSy
mbol
For
mat
ti
ngOpt
ionsi
nScr
ipt
s?
SYMBOLFORMAT DESCRI
PTI
ON

&SYMBOL& Di
spl
ays/
Pri
ntt
hecont
ent
sofsy
mbol
swi
thoutanyf
ormat

&SYMBOL(
C)& Tocompr
esst
hecont
entwi
thoutspaces

&SYMBOL(
Z)& Tor
emov
etheunwant
edpr
ecedi
ngzer
os

&SYMBOL(
R)& Di
spl
ayst
hecont
ent
sbyj
ust
if
yingt
heRi
ghthandsi
de

&SYMBOL(
K)& Toav
oidConv
ersi
onRout
ine

&SYMBOL(
<)& Todi
spl
ayt
hesy
mbol
ssi
gnatLef
thandsi
de

&SYMBOL(
S)& Di
spl
ay/
Pri
ntt
hesi
gnoft
henumber
s

&SYMBOL(
N)& Di
spl
ay/
Pri
nt‘
N’noofchar
act
ers

&SYMBOL+N(
M)& Di
spl
ay/
Pri
nt‘
M’noofchar
act
ersf
ormt
heNt
hposi
ti
on

&SYMBOL(
.D)
& Di
spl
ay/
Pri
nt‘
D’noofDeci
mal
s

20)Howt
ofor
matt
hedat
e,t
imeandcount
ryi
nScr
ipt
s?
Ans:
-ThecommandsSETDATEMASK,
SETTI
MEMASK,
SETCOUNTRYcanbeusedt
o
f
ormatt
hedat
e,t
imeandcount
ry.
21)Whatar
ethef
iel
dsi
nITCSYSt
ruct
ure?
Ans:
-
Fi
eld Descript
ion
NAME Nameoft heprogram Symbol(
wit
hout&)
VALUE TextSy
mbol Val
ue
Thest
andar
dst
ructur
eisuseasar
efer
enceImport&Exportt
hesymbol
wit
hthef
ormr
out
inesi
nSAP
Scr
iptf
orm.
22)Howdowecr
eat
e/mai
ntai
ndi
ff
erentst
ylesi
nScr
ipt
s?
Ans:
-TheT-
CodeSE72i
susedt
omai
ntai
ntheSAPScr
iptFor
m St
ylessuchar
ePar
agr
aph
For
mat
s,Char
act
erf
ormat
s.Bar
codesar
emai
ntai
nedi
ntheChar
act
erFor
mat
.
23)Whatar
etheway
stoupl
oadt
heLogosanddi
spl
ay?
Ans:
-TheT-
CodeSE78(
or)t
hest
andar
drepor
t'RSTXLDMC'
isusedt
oupl
oadt
heLOGOS/
IMAGES
 Whenev
erwear
ewor
kingwi
th.
BMPi
maget
henwemustconv
ert.
BMPt
ogr
aphi
csby
usi
ngSE78T-
code.
 Whenev
erwear
ewor
kingwi
th.
TIFFi
maget
henwemustconv
ertTI
FFt
otexti
mageby
usi
ngRSTXLDMCst
andar
dpr
ogr
am.
24)Howcany
oupasst
hedat
atot
heScr
iptf
rom t
hePr
intpr
ogr
am wi
thoutusi
ngWRI
TE_
FORM?
Ans:
-Af
terAccessi
ngt
heFun.Modul
e'OPEN_
FORM'
wecandecl
aret
heGl
obal
dat
a.
25)Howt
odev
elopt
heSAPScr
ipt
sinDi
ff
.languages?
Ans:
-InSE63,
Cli
ckTr
ansl
ati
on-
--
>LongText
s--
->Sapscr
ipt
s--
->For
ms.
26)Howt
oconv
ertsapscr
iptspool
srequestt
oPDF?
Ans:
-RSTXPDFT4.
27)Howt
oconv
ert
/mi
grat
esapscr
ipt
stoSmar
tFor
ms?
Ans:
-Execut
eSMARTFORMS&Ent
ert
heNewSmar
tFor
m name
Thepat
hSMARTFORMS-
--
>Ut
il
it
ies-
--
>Mi
grat
ion-
--
>Impor
tSAPscr
iptFor
m
Ent
ert
heExi
sti
ngSAPscr
iptFor
m name&cl
i
ckonYesbut
ton.
28)Howt
osett
heout
putdev
iceLP01bydef
aul
tinourownpc?
Ans:
Execut
eSU01&pr
ovi
det
heusernameas:
SAPUSER,
cli
ckonchangemode
Cl
i
ckonDef
aul
ttab&pr
ovi
det
heout
putdev
iceLP01
Sel
ectt
her
equi
reddeci
mal
not
ati
on(
1,234,
576.
89)&dat
efor
mat&cl
i
ckonsav
e.
29)Howt
oident
if
ythedr
iverpr
ogr
am basedont
hef
orm name?
Ans:
Execut
eSE11,
opent
heTabl
eTTXFP&Cl
i
ckonDi
spl
ay&Cl
i
ckonCont
ent
s
Pr
ovi
det
heFor
m name&Execut
e,I
dent
if
ytheDr
iverpr
ogr
am.
30)Howdowedi
spl
ayt
heAppl
i
cat
ionText
s?
Ans:
-Usi
ngt
heFunct
ionModul
e'READ_
TEXT'
.
31)Howt
ospl
i
tthel
i
nei
ntot
henextl
i
nei
nScr
ipt
s?
Ans:
-TheFunct
ionModul
e'RKD_
WORD_
WRAP'
isusedt
ospl
i
tthet
exti
ntomul
ti
plel
i
nes.
.
32)Whatar
etheTr
ansact
ionCodesassoci
atedwi
thScr
ipt
s?

T-Code Descri
pti
on
NACE Tomai ntainOutputtypes
SE71 Form pai nter
SE72 Form St yle
SE73 ToMai ntaindiff
erentty
pesofforms&Barcodes
SE78 GraphicsorLOGO
Translationst otr
anslat
ethetextsymbol
s&textel
ement
sin
SE63 di
fferentl anguages
SO10 Standar dt ext
s

 Barcodescanbesel
ect
edunder‘
Standar
dAt
tri
but
est
ab.
 TheT-
codeSLXTi
susedt
ogener
ateTr
anspor
tRequestf
orTr
ansl
ati
ons
33)St
andar
drepor
tsassoci
atedwi
thSAPscr
ipt
s?
Ans:RSTXDBUG -
> Act
ivat
e/Deact
ivat
efor
m debugger
RSTXLDMC -
> Toupl
oadGr
aphi
cs/
Logo
RSTXSCRP -
> Downl
oad/
Upl
oadt
heFor
ms,
Sty
les&St
andar
dText
RSTXPDFT4 -
> Toconv
ertt
hespool
joboft
heSAPscr
ipti
ntoPDFf
ormat
RSTXFCPY -
> Copyt
heSAPscr
iptf
rom onecl
i
entt
oot
her
RSTXTRAN -
>Tocr
eat
eTr
anspor
tRequestf
orst
andar
dtext
RSTRANSP -
>tot
ranspor
tav
ari
antofanABAPr
epor
ttopr
oduct
ioni
nSAP

Q)Whatar
ethet
abl
esassoci
atedwi
thScr
ipt
s?

Ans:
-TNAPR
Q)Howt
ogener
ateTr
anspor
tRequestf
orTr
ansl
ati
ons?
Ans:
 Execut
etheT-
codeSLXT
 Sel
ectt
her
equi
redt
argetl
anguage(
DE)
 Ent
ert
her
equi
redt
extel
ement
/textsy
mbol
name(
%TEXT1)i
ndescr
ipt
ion
 Sel
ectar
adi
obut
tonwor
kbenchr
equest
 Cl
i
ckonexecut
e

q:I
Nscript
swehavest
dl ay
outsli
keMEDRUK,
inSMARTFORM dowehav
eany
?ifi
copyt
hest
dscr
ipti
n
zscri
ptandmi
grat
ewil
litwork?

a:
1)I
nSmar
tfor
msal
sohav
est
andar
dFor
ms.

Got
oSmar
tfor
m->For
m->F4

Youcanf
indal
lthest
andar
dsmar
tfor
ms.

2)Whenev
ery
oucopi
edst
andar
dscr
ipty
ouhav
etochanget
heconf
igur
ati
oni
nNACEt
heni
twi
l
lwor
k.

SELECTwit
hBYPASSI
NGBUFFERi
nSAPABAPpr
ogr
ammi
ngl
anguage,
bypassi
ngbuf
feri
nSAPSel
ect
st
atement
s

Whenev
erweuseopenSQLst
atement
stogetf
etchdat
ainSAP,
itwi
l
lgetdat
afr
om buf
ferar
ea(
depends
ont
abl
ebuf
ferset
ti
ngs)f
orbet
terper
for
mance,
buti
nreal
wor
ldscenar
iossomet
abl
esmayupdat
edv
ery
f
requent
ly(
mil
l
iseconds)
,wemayneedt
oby
passbuf
fert
ogetr
eal
-t
imedat
a,i
nthatcasewewi
l
lby
pass
buf
ferusi
ng'
BYPASSI
NGBUFFER'
key
wor
d.

Sy
ntaxf
orSELECTWI
THBYPASSI
NGBUFFERi
nSAPABAP

sel
ect*FROM <TABLE>I
NTOTABLE<I
TAB>BYPASSI
NGBUFFER.

Exampl
eforSELECTWI
THBYPASSI
NGBUFFERi
nSAPABAP

Thebel
owexampl
eisusedt
ofet
chdat
afr
om MARA(
Mat
eri
alMast
er)t
abl
eby
passi
ngbuf
fer
.

TYPES:
BEGI
NOFt
y_mar
a,
mat
nrTYPEmar
a-mat
nr,
mt
artTYPEmar
a-mt
art
,
ENDOFt
y_mar
a.
DATA:
it_
mar
aTYPETABLEOFt
y_mar
a,
wa_
mar
aTYPE t
y_mar
a.

START-
OF-
SELECTI
ON.
SELECTmat
nrmt
artFROM mar
aINTOTABLEi
t_mar
aBYPASSI
NGBUFFER.

LOOPATi
t_mar
aINTOwa_
mar
a.
WRI
TE:
/wa_
mar
a-mat
nr,
wa_
mar
a-mt
art
.
ENDLOOP.

SMARTFORMS
SMARTFORMS
1)Whatar
ethemaj
ordi
ff
erencesbet
weenScr
ipt
sandSmar
tFor
ms?
Ans:
-
SAPScr
ipt SMARTFORMS

1.Theyar
eCl
i
entdependent
. 1.Theyar
eCl
i
entI
ndependent
.

2.ThebackGr
oundI
magesar
enotpossi
ble. 2.BackGr
oundI
magesar
epossi
ble

3.I
tisnotpossi
blet
ocr
eat
eSAPScr
iptwi
thout 3.I
tCanbecr
eat
edwi
thoutMai
nWi
ndowal
so.
MainWindow.

4.Mul
ti
plepageFor
mat
sar
enotpossi
ble. 4.Mul
ti
plepageFor
mat
sar
epossi
ble.

5.Itcannotbeexecut
edwi
thoutPr
int
/Dr
iver 5.Itcanbeexecut
edwithoutDri
verPr
ogram by
Program. executi
ngthesyst
em generat
edFunct
ionModules

6.Col
orf
ont
scannotbedi
spl
ayed. 6.Col
orf
ont
scanbemai
ntai
ned.

7.Thedataext
ractl
ogi
c(ABAPCODE)can'
tbe 7.Thedataext
ractl
ogi
c(ABAPCODE)canbewrit
ten
wri
tten. underI
NITIALI
ZATIONandprogr
am l
i
nesnode.

8.TheTabl
es&Templ
atesar
enotpossi
blebut 8.TheTabl
es&Templ
atescanbedr
awnt
odi
spl
ay
theCommandboxi
susedtodrawtheboxes. stat
icordy
nami
cdat
a.

9.Byusi
ngRSTXDBUGst
andar
dpr
ogr
am wecan 9.Byusi
ngBREAK-
POI
NTkey
wor
dwecandebugt
he
debugt
heSAPscr
ipt
. smar
tfor
m.

2)Whyt
heScr
ipt
sar
eCl
i
entdependentandSmar
tFor
msar
eCl
i
enti
ndependent
?
Ans:
-
 SAPscr
ipt
sar
ecl
i
entdependentt
hatmeans,
ifwedesi
gnt
heSAPscr
ipti
nonecl
i
entt
hati
snot
r
efl
ect
edt
oot
hercl
i
ent
sint
hesameser
ver
.
TheScr
ipt
sar
ecl
i
entdependentbecauset
hecont
ent
sordat
adi
spl
ayedusi
ng
t
het
extel
ement
s.Thet
extel
ement
sar
ecl
i
entdependenthencet
hescr
ipt
sar
eCl
i
ent
dependent
.
 SMARTFORMSar
ecl
i
entdependentt
hatmeansi
fwedesi
gnt
heSAPscr
ipti
nonecl
i
entt
hati
s
aut
omat
ical
l
yref
lect
edt
oal
lot
hercl
i
ent
sint
hesameser
ver
.
TheSmar
tfor
msar
ecl
i
enti
ndependentbecauseoneUNI
QUEFUNCTI
ONMODULEi
sgener
ated
byt
hesy
stem whi
l
eact
ivat
ingt
hesmar
tfor
ms.Thegener
atedf
unct
ionmodul
eiscl
i
ent
i
ndependenthencet
hesmar
tfor
msar
ecl
i
enti
ndependent
.
3)Whatar
etheTr
ansact
ionCodesassoci
atedwi
thSmar
tFor
ms?
Ans:
- 1.SMARTFORMS-Tomai
ntai
nSMARTFORMS.
2.SMARTSTYLES-Tomai
ntai
nthest
ylesf
orsmar
tfor
ms.
3.SMARTFORM_
TRACE-Todebugt
heSMARTFORMSandact
ivat
ethedat
abaset
racer
.
 Textmodul
eisusedt
omai
ntai
nthel
ongt
ext
s.
4)Howt
odi
spl
ayAddr
esswi
ndowdy
nami
cal
l
y?

Ans:
-ThePat
h%PAGE-
--
>CREATE-
--
>ADDRESS-
--
>Ty
peDETERMI
NEDYNAMI
CALLY
5)Howt
opr
intLogosi
nSmar
tFor
ms?

Ans:
ThePat
h%PAGE-
--
>CREATE-
--
>GRAPHI
C--
->LOGO

Q)Howt
odi
spl
ayBackgr
oundi
magesi
nsmar
tfor
ms?
Ans: 1.
TCODE-
SMARTFORMS
2.Cl
i
ckOnThePageYouWantToDi
spl
ayTheBackgr
oundI
mage.
3.Sel
ectbackgr
oundpi
ctur
etab.
4.Pr
essF4andpl
acey
ourbackgr
oundi
mageand
5.Sel
ectt
heout
putmodeopt
ionas"
Pri
ntPr
evi
ewandPr
int
"thenact
ivat
e.
6)Whatar
ethecomponent
sofSmar
tFor
m?
Ans: 1.Smar
tFor
m Lay
out 2.Funct
ionModul
e 3.Pr
intPr
ogr
am
7)Whatar
ethemai
ncomponent
sinSmar
tFor
m?

Ans:
Themai
ncomponent
sar
e,1.Gl
obal
Set
ti
ngs 2.Pages&Wi
ndows
1.Gl
obal
Set
ti
ngs:
Iti
susedt
omai
ntai
nthegl
obal
set
ti
ngs,
def
ini
ti
onswhi
chcanbeappl
i
ed
acr
osst
hemar
tfor
ms.I
tiscol
l
ect
ionofFor
m At
tri
but
es,
For
mInt
erf
ace&Gl
obal
Def
ini
ti
on
I
. Form At
tri
but
es:Thesear
eusedtomaint
ainthesmartform at
tri
but
es&outputsuchar
e
pagefor
mat ,
sty
lenameetc.Thedef
aul
tstyl
eforsmartformis‘SYSTEM’
.

I
I. For
mInt
erf
ace:
Thesear
eusedt
odecl
aret
hev
ari
abl
es,
wor
kar
eas&i
nter
nal
tabl
es
whi
char
eneededt
otr
ansf
ert
hedat
afr
om pr
intpr
ogr
am t
olay
out
.Iti
sthesy
stem
gener
atedf
unct
ionmodul
ewi
thal
lthepar
amet
ersexceptchangi
ngpar
amet
ers.
I
II
.Gl
obal
Def
ini
ti
ons:
Iti
susedt
omai
ntai
nthegl
obal
def
ini
ti
onswhi
chcanbeusedacr
oss t
he
di
ff
erentGl
obal
def
ini
ti
ons.
a)Gl
obal
Dat
a:I
tisusedt
omai
ntai
nthegl
obal
dat
adef
ini
ti
onssuchar
evar
iabl
es,
wor
k
ar
eas,
Int
ernal
Tabl
eset
c.
b)Ty
pes:
Iti
susedt
odef
inet
het
ypeswhi
chcanber
efer
redt
odecl
arei
nter
nal
tabl
es&
wor
kar
eas.
c)Fi
eldSy
mbol
s:I
tisusedt
odef
inet
hef
iel
dsy
mbol
s.
d)I
nit
ial
i
zat
ion:
Iti
spr
ocessedbef
oret
hesmar
tfor
m pages&wi
ndowsar
epr
ocessed.I
t
i
susedt
oext
ractal
lther
equi
reddat
afr
om t
hedat
abaset
abl
e&
pr
ocesst
heext
ract
eddat
a.I
mpor
t&Expor
tpar
amet
ersmustbe
speci
fi
edbef
oret
heyar
eused.
e)For
mrout
ines:
Iti
susedt
odef
inet
hesubr
out
ineswhi
chcanbecal
l
edacr
osst
he
smar
tfor
m.I
tisusedt
odef
inet
hecur
rency
/quant
it
yfi
eldsasl
i
ket
he
DDI
Ctabl
es/
str
uct
ures.
f
)Cur
rency
/Quant
it
yFi
eld:
Iti
susedt
odef
inet
heCur
rency
/Quant
it
yFi
eldsasl
i
ket
he
DDI
Ctabl
es/
str
uct
ures.
2.Pages&Wi
ndows:
Iti
susedt
odesi
gnt
hedi
ff
erentpagef
ormat
s&wi
ndows.Fol
l
owi
ng
ar
ethedi
ff
erentnodesi
nsmar
tfor
ms.
a)Wi
ndows:
Theyar
eposi
ti
onedont
hepages.Fol
l
owi
ngar
edi
ff
erentt
ypeofwi
ndows.
 Mai
nWi
ndow:
Iti
susedt
odi
spl
ayt
hecont
inuoust
extont
hepages.Thi
swi
ndowi
sthe
def
aul
twi
dow.Wi
thoutmai
nwi
ndowal
sowecandesi
gnSmar
tfor
ms.
 Secondar
ywi
ndow:
Iti
susedt
opr
intt
hedi
ff
erentcont
ent
soneachpage(
simi
l
art
o
v
ari
abl
ewi
ndowi
nSAPScr
ipt
s).
 Copi
eswi
ndow:
Iti
susedt
othepr
intt
hesamedocumentwi
thmul
ti
ple
copi
eswi
thdi
ff
erentheadi
ngs.
 Fi
nal
window:
Thi
sisusedt
opr
intt
het
otal
amountaf
teral
lthel
i
nesorl
i
nei
temsar
e
pr
int
ed.
b)Gr
aphi
cs:
Iti
susedt
ocr
eat
eagr
aphi
cnode(
window)t
odi
spl
ayt
hegr
aphi
cs/
logos.

c) Addr
ess:I
tisusedtodefi
netheaddressnode/windowt
odi
spl
ay/
pri
ntt
heor
gani
zat
ion
addr
ess/
personaladdr
ess/wor
kplaceadd/ress.

 Theaddr
esscanbedet
ermi
neddy
nami
cal
l
yal
sousi
nganopt
ionDet
ermi
neDy
nami
cal
l
y.

d)Text
:Iti
susedt
odi
spl
ay/
pri
ntt
hecont
ent
soft
hedi
ff
erentsy
mbol
s/f
iel
ds.

e) Tabl
e:At
abl
eisusedt
opr
intt
hemul
ti
pleent
ri
es/
dynami
cdat
aofani
nter
nal
tabl
e.The
Tabl
enodecanbeusedast
empl
atet
odi
spl
ayst
ati
crecor
dbyun-
checki
ngt
hecheckbox
i
nter
nal
tabl
e.Li
net
ypescanbecr
eat
edunderTabl
enode.
f
) Templ
ate:
ATempl
atei
susedt
odi
spl
ayt
hest
ati
cdat
a(si
ngl
erecor
d).Thi
snodedoesnot
hav
ethesepar
ateheader
,mai
nar
ea&f
oot
erwher
eas,
thet
abl
enodecont
ainst
hedi
ff
erent
sessi
onssuchar
eheader
,mai
nar
ea&f
oot
er.Thet
empl
atenodecanbeusedast
abl
eby
def
ini
ngi
tunderl
oopnodet
odi
spl
ayt
hedy
nami
cdat
aasl
i
ket
het
abl
enode.
g)Fl
owl
ogi
c:Thef
lowl
ogi
cnodesar
eusedt
ocont
rol
thenodes&def
inet
hepr
ogr
am l
i
nesi
n
smar
tfor
ms.Fol
l
owi
ngar
ethedi
ff
erentf
lowl
ogi
cnodes.
I
. Loop:I
tisusedt
opr
ocesst
hecor
respondi
ngnodesbasedont
henumberofent
ri
es
ofani
nter
nal
tabl
e.
I
I. Pr
ogr
am l
i
nes:
Iti
susedt
owr
it
eABAPsour
cecode.I
nput&Out
putpar
amet
ers
mustbef
il
ledwi
tht
hedat
avar
iabl
esbef
oret
heyar
eused.
I
II
. Al
ter
nat
ive:
Iti
susedt
ocont
rol
thecor
respondi
ngnodesbasedont
hespeci
fi
ed
condi
ti
on.I
tisusedt
opr
ocesst
heal
ter
nat
iveei
therTr
ue/
Fal
sepr
ocessbl
ocks
basedont
heSETcondi
ti
ons.
I
V. Command:
Thi
snodei
susedt
ogot
oanewpagebasedont
hespeci
fi
edcondi
ti
ons.
Thi
sisusedt
obr
eakt
hepagebasedont
hecondi
ti
on.
8)Whatar
etheway
stodebugt
heSmar
tFor
m?

1StWay
:-Byset
ti
ngt
heSessi
onBr
eakpoi
nti
ntheGener
atedFunct
ionmodul
e.
 TheSMARTFORMScanbedebugbyset
ti
ngt
heSessi
onBr
eakpoi
ntsatt
her
equi
redst
atement
l
i
nei
nthesy
stem Gener
atedFunct
ionmodul
e.
 Thesy
stem gener
atedi
nter
nal
tabl
e%TEXTcont
ainst
hef
oll
owi
ngf
iel
dswhi
char
efi
l
ledwi
th
t
het
extnodecont
ent
satRunt
imet
odebugt
extel
ement
s.
Fi
eldname Descr
ipt
ion

TDFORMAT Tagcol
umnoft
het
extel
ement
s

TDLI
NE Cont
ent
soft
het
extel
ement
/textnode

2ndWay
:-Byset
ti
ngt
heSt
ati
cBr
eakpoi
ntsi
ntheSMARTFORMS.
 TheSMARTFORMScanbedebugbyset
ti
ngt
heSt
ati
cBr
eakpoi
ntsi
nther
equi
redpr
ogr
am
l
i
nes/
ini
ti
ali
zat
ionnodeundergl
obal
def
ini
ti
onsoft
heSMARTFORM.Thest
atementBREAK
f
oll
owedbyusernamecanbeused.

9)Whatar
etheSmar
tFor
m ev
ent
s?

Ans:
-1.Onl
yOnFi
rstPage:
ToPr
int
/Di
spl
ayt
hedat he1stpageonl
aont y.
2.NotonFi
rstPage:
Thecor
respondi
ngcont
ent
sar
enott
oPr
int
/Di
spl he1stpage.
ayont
3.Onl
yaf
terendofMai
nWi
ndow:
ToPr
int
/Di
spl
ayt
hecor
respondi
ngcont
ent
saf
tert
he
MAI
Nwi
ndowi
spr
ocessed.
4.Onl
yBef
oreendofMai
nWi
ndow:
ToPr
int
/Di
spl
ayt
hecor
respondi
ngcont
ent
soft
henode
ort
extnodebef
oret
heMAI
Nwi
ndowi
sended.
5.Onl
yOnpage:
Topr
int
/Di
spl
ayt
hedat
aont
hespeci
fi
edpage.
10)Whatar
ethedi
ff
erencesbet
weenTempl
ateandTabl
e?

Ans:
-
 A Tabl
eisusedt
opr
intt
hemul
ti
pleent
ri
es/
dynami
cdat
aofani
nter
nal
tabl
e.TheTabl
enode
canbeusedast
empl
atet
odi
spl
ayst
ati
crecor
dbyun-
checki
ngt
hecheckboxi
nter
nal
tabl
e.
Li
net
ypescanbecr
eat
edunderTabl
enode.
 ATempl
atei
susedt
odi
spl
ayt
hest
ati
cdat
a(si
ngl
erecor
d).Thi
snodedoesnothav
ethe
separ
ateheader
,mai
nar
ea&f
oot
erwher
eas,
thet
abl
enodecont
ainst
hedi
ff
erentsessi
ons
suchar
eheader
,mai
nar
ea&f
oot
er.Thet
empl
atenodecanbeusedast
abl
ebydef
ini
ngi
t
underl
oopnodet
odi
spl
ayt
hedy
nami
cdat
aasl
i
ket
het
abl
enode.

11)Howt
ofi
ndt
hesy
stem gener
atedf
unct
ionmodul
e?

I
. Execut
etheT-
code‘
SMARTFORMS’
.

I
I. Ent
ert
her
equi
redsmar
tfor
m &cl
i
ckonDi
spl
aybut
ton.

I
II
. Cl
i
ckonEnv
ironmentmenui
tem.

I
V. Cl
i
ckonf
unct
ionmodul
ename.

 Thesyst
em gener
atedfunct
ionmodul
enamef
orsmar
tfor
mscoul
dbedi
ff
erentf
rom sy
stem t
o
syst
em [
R3D->R3Q- >R3P].

 Hencecapt
uret
hesy
stem gener
atedfuncti
onmodul
enamedy nami
call
ythr
oughanExpor
t
par
ameter‘
FM_NAME’=l
v_namet othefuncti
onmodul
e‘SSF_
FUNCTION_MODULE_NAME’.

12)Howt
ofi
ndt
hesy
stem gener
atedf
unct
ionmodul
eoft
hesmar
tfor
m?
Ans:
Execut
eT-
code…>SMARTFORMS,
Ent
ert
heFor
m name&cl
i
cki
nDi
spl
aybut
ton
Cl
i
ckonEnv
ironment…>Funct
ionmodul
ename.
.
13)Cany
oumov
eaSmar
tfor
mfr
om oneSAPsy
stem t
oanot
herwi
thoutusi
ngt
ranspor
ts?
Ans:
Yes,
thi
scanbeachi
evedusi
ngt
heUpl
oad/
Downl
oadf
eat
uref
orSmar
tfor
ms.
Onecandownl
oadt
heSmar
tfor
mfr
om onesy
stem andsav
eitasasnXMLf
il
e.
Oncet
hati
sdone,
theXMLf
il
ecanbeusedt
oupl
oadt
heSmar
tfor
minanot
hersy
stem.

14)Howt
oupl
oadt
hesmar
tfor
m?
I
. Execut
etheT-
codeSMARTFORMS.
I
I. Cl
i
ckonut
il
it
iesmenui
tem &cl
i
ckonupl
oadf
orm.
I
II
. Ent
ernewf
orm namet
obecr
eat
edbyupl
oadi
ngt
heexi
sti
ngdownl
oadedsmar
tfor
m.
I
V. Cl
i
ckony
esbut
ton.
V. Sel
ectt
her
equi
reddownl
oadedsmar
tfor
mfi
l
e(xml
for
mat
)
VI
. Cl
i
ckonopenbut
ton
VI
I. Ent
erpackagename&cl
i
ckonsav
eicon.
VI
II
. Cr
eat
ethe‘
Transpor
trequest
’numberbypr
essi
ngcr
eat
erequesti
con.
I
X. Cl
i
ckony
esbut
ton&cl
i
ckonchangebut
ton.
X. Maket
henecessar
ychangesi
frequi
red.
XI
. Cl
i
ckonact
ivat
eicon7cl
i
ckonbacki
con.

15)Whatar
etheSy
stem Fi
eldsassoci
atedwi
thSmar
tFor
ms?

Ans:
-SFSYi
sthesy
stem pr
ovi
dedst
ruct
urewhi
chcont
ainsasmar
tfor
m sy
stem f
iel
ds.
Fi
eld Descr
ipt
ion
PAGE Cur
rentpageNumber
FORMPAGES TotalNo.ofpages
JOBPAGES TotalNo.ofpagesofpri
ntjob
DATE CurrentdateofAppl
i
cati
onServer
TI
ME CurrentTimeofAppli
cat
ionServer
SUBRC Returnvalue
USERNAME username
PAGENAME pagename+v ari
ant
Not
e:
 Smar
tSt
ylesar
eusedt
ocr
eat
ethepar
agr
aph&char
act
erf
ormat
s.TheT-
codei
s
SMARTSTYLES.
 SSF_
FUNCTI
ON_
MODULE_
NAMEi
sthef
unct
ionmodul
ewhi
chi
susedt
ogener
atet
hesmar
t
f
ormf
unct
ionmodul
enobasedont
hesmar
tfor
m name.
 SPELL_
AMOUNTi
sthef
unct
ionmodul
ewhi
chi
susedt
oconv
ertt
heamounti
nwor
ds.
 Thebut
tonSWAPi
susedt
ochanget
heSour
cel
anguaget
oTar
getLanguage.
 TheT-
codeSOSTi
susedt
ocheckt
hesendmai
l
s&pusht
hem.
16)Whati
sther
oleofTNAPRt
abl
einSAP?

Ans:
ItSt
oresal
lthef
ormsanddr
iverpr
ogr
amsandaswel
lasal
lNACEset
ti
ngs.

17)Whati
sther
oleofNASTt
abl
einSAP?

Ans:Aft
ert
hefi
nalselecti
onoft
heout
puti
sdoneandtheappl
i
cat
iondocumentissaved,
entr
iesar
e
creat
edint
heNASTt ablewit
happl
i
cat
ionI
D,Appl
i
cati
ondocumentnumber,
outputty
pe,out
putmedium,
outputt
imi
ngandStatuscode.

18)Howt
ofi
ndpr
intpr
ogr
am andf
ormi
fan‘
out
putt
ype’
isgi
ven?

Ans:
-TheT-
codeNACE/NACOort
hest
andar
dtabl
eTNAPRi
susedt
ofi
ndt
hef
orm det
ail
sorout
putt
ype
det
ail
sint
hesy
stem.
19)Expl
ainaboutNACEt
ransact
ioncode?

Ans:
-NACE:
-Iti
susedt
omai
ntai
ntheOut
putt
ypesandf
indt
hef
orm nameandpr
int
pr
ogr
am names.I
fyoucr
eat
etheout
putt
ypeusi
ngNACEt
heni
twi
l
lbe
aut
omat
ical
l
yvi
sibl
eint
abl
eNASTandTNAPR.
Thest
andar
dpr
ogr
am TNAPRcanal
sobeusedt
ofi
ndt
hef
orm &pr
intpr
ogr
am name.
 Execut
etheT-
codeNACE.
 Sel
ectanappr
opr
iat
erequi
redappl
i
cat
ion.
 Cl
i
ckonout
putbut
tonont
ool
bar
 Cl
i
ckonposi
ti
onbut
ton.
 Ent
ert
her
equi
redOut
putt
ype:
NEU&Pr
essEnt
erbut
ton.
 Sel
ectt
hef
ontOut
putt
ype(
NEU)
.
 Doubl
ecl
i
ckONpr
ocessi
ngr
out
inesf
older
.
 Cl
i
ckondi
spl
ay/
changei
con.
 Changepr
ocessi
ngr
out
inedet
ail
ssuchar
epr
intpr
ogr
am,
for
mrout
ine,
for
m nameet
c.
 Cl
i
ckonsav
e&cl
i
ckoncr
eat
erequesti
con.
 Ent
ershor
tdescr
ipt
ionaspert
hepr
ojectst
andar
ds.
 Cl
i
ckonsav
eicon&cl
i
ckonYesbut
ton.
20)Whatar
ethest
epst
osendaFORM/
REPORTasPDF/
XLS/
.TXTat
tachmentt
hroughanE-
Mai
l
?
Ans:
 Passf
lag‘
X’t
ofi
eld‘
GETOTF’
ofexpor
tpar
amet
ercont
rol
_par
amet
ers.
 Gett
hef
orm dat
ainOTFf
ormatusi
ngt
hesy
stem gener
atedf
unct
ionmodul
eoft
heSMARTFORM.
Not
e:Uset
hest
andar
dfunct
ionmodul
e‘CLOSE_
FORM’
togetSAPScr
iptf
orm dat
ainOTFf
ormat
.
 Conv
ertt
heOTFdat
aoft
hef
ormsi
ntoaPDFf
ormatusi
ngt
hef
unct
ionmodul
eCONVERT_
OTF.
 Popul
atet
hemai
lsubj
ect
,mai
lbody
,recei
ver
sli
stet
c.
 Uset
hest
andar
dfunct
ionmodul
e‘SO_
NEW_
DOCUMENT_
ATT_
SEND_
API
1’t
osendanemai
lwi
than
at
tachmentsuchasPDForExcel
etc.
Q)Howdoy
ouachi
evePagePr
otect
ioni
nSmar
tfor
m?
Ans:
Whi
l
eonecanuset
hePROTECT.
..
..
..ENDPROTECTcommandf
orSAP-
Scr
ipt
s,f
orSmar
t f
ormst
he
Page-
Prot
ect
ioncheckboxcanbeusedt
oensur
epagepr
otect
ion
 Youhav
ePage-
prot
ect
ionpr
oper
tyonl
yforTextEl
ement
sint
heMai
nWi
ndow.

Fi
l
eHandl
i
ngTechni
ques
Fi
l
eHandl
i
ngTechni
ques
1)Whatar
etheFunct
ionModul
esassoci
atedwi
thLocal
PC/
FrontEndsy
stem?
Ans:
-GUI
_UPLOAD-Toupl
oadt
hef
latf
il
efr
om t
hespeci
fi
edf
il
epat
hofLocal
PC/Fr
ontEndi
nto
i
nter
nal
tabl
e.
GUI
_DOWNLOAD-Todownl
oadt
hedat
afr
om ani
nter
nal
tabl
eint
othespeci
fi
edf
il
epat
hof
Local
PC/
FrontEnd.

2)Howt
ohandl
ethef
il
esi
nAppl
i
cat
ionSer
ver
?
Ans:
-
 I
tisusedt
omai
ntai
nfi
l
essecur
ely
.
 TheT-
Code‘
AL11’
isusedt
owor
kwi
thAppl
i
cat
ionser
ver
.
I
ntheappl
i
cat
ionser
vereachf
il
eiscal
l
edoneDat
aset
.Wecan’
tcr
eat
ethef
il
edi
rect
lyi
nthe
appl
i
cat
ionser
ver
.Thr
oughpr
ogr
am onl
ywecancr
eat
ethef
il
eint
heappl
i
cat
ionser
ver(
downl
oad
t
hedat
aint
oappl
i
cat
ionser
ver
).

3)Whatar
ethest
epsi
nvol
vedi
nhandl
i
ngAppl
i
cat
ionser
ver
?
Ans:
-TheT-
CodeAL11i
susedt
owor
kwi
tht
heAppl
i
cat
ionser
ver
.
 Thebel
owABAPst
atement
sar
eusedt
oDownl
oad/
Transf
ert
hedat
afr
om ani
nter
nal
tabl
eint
o
t
hespeci
fi
edf
il
epat
hofanappl
i
cat
ionser
ver
.
1.OPENDATASETFOROUTPUT:
Thi
sst
atementi
susedt
oopent
her
equi
redf
il
esi
n
wr
it
emodei
nappl
i
cat
ionser
ver
.
2.TRANSFER:
Thi
sst
atementi
susedt
otr
ansf
ert
heconcat
enat
eddat
aint
otheopenedf
il
e.
3.CLOSEDATASET:
Iti
susedt
ocl
oset
heopenedf
il
eint
heser
ver
.
 Thebel
owABAPst
atement
sar
eusedt
oUpl
oad/
Readt
hedat
afr
om f
il
einappl
i
cat
ionser
ver
i
ntoani
nter
nal
tabl
eoft
hepr
ogr
am.
1.OPENDATASETFORI
NPUT:
Thi
sst
atementi
susedt
oopenf
il
esi
nreadmode.
2.READDATASET:
Thi
sst
atementi
susedt
oreadr
ecor
dbyr
ecor
dfr
om t
heopenedf
il
ein
Appl
i
cat
ionser
ver
.
3.CLOSEDATASET:
Thi
sst
atementi
susedt
ocl
oset
heopenedf
il
e.
4)Howt
oupl
oadt
hef
il
efr
om pr
esent
ati
onser
ver(
Frontend)t
oAppl
i
cat
ionser
vermanual
l
y?
 TheCode'
CG3Z'
isusedt
oupl
oadt
hef
il
esf
rom t
heFr
ontendsy
stem i
ntot
hespeci
fi
edf
il
e
pat
hofanappl
i
cat
ionser
ver
.
 Oncet
hef
il
eisopeni
n'AL11'
.
 Execut
etheT-
Code'
CG3Z'
.
 Ent
ert
hesour
cef
il
enameont
heFr
ontendsy
stem.
 Ent
ert
heTar
getf
il
enameonanappl
i
cat
ionser
ver
.
 Sel
ectt
her
equi
redf
il
ety
peandf
il
enameont
hef
rontendsy
stem bypr
essi
ngt
hesear
chhel
p
i
con(
BIN/
ASC)
.
 Cl
i
ckonUpl
oadi
con.
5)Whatar
etheFunct
ionModul
est
opr
ovi
deSear
chHel
ponPr
esent
ati
onser
ver
/l
ocal
PCandAppl
i
cat
ion
Ser
veraswel
l
?
Ans:
-
 TheFunct
ionmodul
e‘F4_
FILENAME’
isusedt
opr
ovi
det
hesear
chhel
ptosel
ectt
her
equi
red
f
il
epat
hoft
hepr
esent
ati
onser
ver
/Local
PC.
 TheFunct
ionmodul
es'
F4_
DXFI
LENAME_
TOPRECURSI
ON'
OR
'
/SAPDMC/
LSM_
F4_
SERVER_
FILE'
isusedt
opr
ovi
det
hesear
chhel
ptochooset
hef
il
es
f
rom t
heAppl
i
cat
ionser
ver
.
NOTE:
-Thef
unct
ionmodul
e'F4_
DXFI
LENAME_
TOPRECURSI
ON'
canbeusedf
orbot
h
Pr
esent
ati
onandAppl
i
cat
ionser
ver
.

6)Howt
oconv
ertl
ogi
cal
fil
eint
ocor
respondi
ngphy
sical
fil
epat
h?
Ans:
-Usi
ngFi
l
etr
ansact
ioncode.
 Thef
unct
ionmodul
e‘FI
LE_
GET_
NAME’
canbeusedt
ogett
hel
ogi
cal
fil
epat
hoft
hephy
sical
f
il
epat
h.

Not
e:ALSM_
EXCEL_
TO_
INTERNAL_
TABLEi
sthef
unct
ionmodul
ewhi
chi
susedt
oupl
oadt
heexcel
sheet
i
nfor
mat
ioni
ntoi
nter
nal
tabl
e.
 TheT-
codeCG3Yi
susedt
odownl
oadt
hef
il
esf
rom t
heAppl
i
cat
ionser
ver
/Backendi
ntot
he
speci
fi
edf
il
epat
hoft
hePr
esent
ati
onser
ver
/Fr
ontend.
 TheT-
codeCG3Zi
susedt
oupl
oadt
hef
il
esf
rom t
hePr
esent
ati
onser
ver
/Fr
ontendi
ntot
he
speci
fi
edf
il
epat
hoft
heAppl
i
cat
ionser
ver
/Backendi
nto.
DATAMI
GRATI
ON/
CONVERSI
ON
DATAMI
GRATI
ON/
CONVERSI
ON
13.Whatar
ethet
ool
sav
ail
abl
efordat
ami
grat
ioni
nSAP?

Ans:
BDC,LSMW,
CATT(Comput
erAi
dedTestTool
),
IDOC(
IDOCGENERALLYUSEDTOMI
GRATEDATA
FROM THESAPSYSTEM..

-
>LSMW i
sbasi
cal
l
yforst
andar
dSAPappl
i
cat
ionwhi
l
ebdcbasi
cal
l
yforcust
omi
zedappl
i
cat
ion.

1)Whatar
ethecommonst
epsi
nvol
vedi
nDat
aMi
grat
ion/
BDC?
Ans:
-
Commonst
epsi
nvol
vedi
nDat
aMi
grat
ion:
-
 Recor
dtheScr
eenFl
owoft
her
equi
redf
unct
ional
T-codeusi
ngt
heT-
Code‘
SHDB’
.
 Conv
ertt
her
ecor
dedscr
eenFl
owi
ntoat
empor
arypr
ogr
am.
.
 Upl
oadt
heFl
atf
il
edat
afr
om t
heLegacySy
stem (
Local
PC/
Al11)i
ntoanI
nter
nal
Tabl
e.
 Conv
ertt
heupl
oadedf
latf
il
edat
awi
thi
nthel
oopoff
latf
il
eint
ernal
tabl
e(gt
_fl
at_
fil
e).
 Copyt
hesy
stem gener
atedsubr
out
ineswhi
chst
art
swi
thBDC_
DYNPRO&BDC-
FIELDf
rom t
he
t
empor
arypr
ogr
am &past
ethem wi
thi
nthel
oopofFl
atf
il
eint
ernal
tabl
e.
 Commentscr
eendef
aul
tval
ues&passt
hef
latf
il
edat
a.
 Useanyoneofei
thersessi
on/
cal
ltr
ansact
iont
oupdat
e/mi
grat
ethedat
a.
Not
e:Ani
conexpor
tisusedt
odownl
oadt
her
ecor
dingi
ntol
ocal
pc.

Ani
conr
eadf
ormf
il
eisusedt
ogener
ateapr
ogr
am usi
ngt
hegi
venr
ecor
dingf
il
e.

2)Whati
sLSMW?
Ans:
-LegacySy
stem Mi
grat
ionWor
kbench.
 I
tist
hesy
stem pr
ovi
dedt
ool
tomi
grat
eorconv
ertt
hel
egacysy
stem dat
a.
 TheT-
Code'
LSMW'
isusedt
owor
kwi
tht
hist
ool
.
 Ani
conexpor
tisusedt
odownl
oadt
her
ecor
dingi
ntoLocal
PC.
 Anopt
ionr
eadf
rom f
il
eisusedt
ogener
ateapr
ogr
am usi
ngt
hegi
venr
ecor
dingf
il
e.
3)Whatar
ethest
epsf
orLSMW?

Ans:
Ther
ear
etot
all
y14st
epsi
nLSMW.

1.Mai
ntai
nobj
ectat
tri
but
es
2.Mai
ntai
nsour
cest
ruct
ures

3.Mai
ntai
nsour
cef
iel
ds

4.Mai
ntai
nst
ruct
urer
elat
ions

5.Mai
ntai
nfi
eldmappi
ngconv
ersi
onr
ules

6.Mai
ntai
nfi
xedv
alues,
transl
ati
ons&user
-def
inedr
out
ines

7.Speci
fyf
il
es

8.Assi
gnf
il
es

9.Readdat
a

10.Di
spl
ayr
eaddat
a

11.Conv
ertdat
a

12.Di
spl
ayconv
ert
eddat
a

13.Cr
eat
ebat
chi
nputsessi
on

14.Runbat
chi
nputsessi
on

4)Whatar
ethedi
ff
erencesbet
weenLSMW andBDC?

LSMW BDC
1.Itisthesy stem provi
dedt ool. 1.I
tistheUti
l
itytodevel
opaprogr
am.
2.Doesn’ trequir
eanypr ogrammi ngknowl edge. 2.I
trequi
resprogrammingknowl
edge.
.
3.Thedat acanbei mpor t
edi ndifferentimport
met hodssuchar eBatchInputRecor ding,BAPI 3.Thedataisprocessedormi
grat
edinBat
chInput
andI DOC. Methodonly
4.TheFi eldmappi ngisdoneaut omat ical
lybythe 4.TheFi
eldmappi ngshoul
dbedonemanuall
yby
System. passi
ngtheFlatdata.
5.TheT- CodeLSMW i sused. 5.TheT-CodeSM35i susedtodevel
opBDCprogram
6.Most lyusedf orbothHuge&smal lamount
(Mast er
)ofdat a. 6.BDCcanbeusedforSmallamountofdat
aonly.
7.LSMW i spossibleforcustom scr eens/standar
d 7.BDCcanbeusedcustom scr
eens/
custom f
iel
dsof
withcust om fi
eldsofapplications. appl
icat
ional
so.

SHDB:
Iti
stheT-
codeusedt
orecor
dthescr
eenf
lowast
heT-
codes.

1.Whati
saBat
chInputSessi
on?
Ans:
Inthi
smet
hodtransf
erdataf
rom i
nter
nal
tabl
etodat
abaset
abl
ethr
oughsessi
ons.

Sessi
onisintermedi
atest
epbetweenint
ernal
tabl
e&dat
abaset
abl
e.Unl
esssessi
oni
spr
ocessed,
thedat
a
i
snottransferr
edtothedat
abasetabl
e.

Dataal
ongwiththeact
ionisstor
edinsessioni.
e.dataforscr
eenf
iel
ds,
towhi
chscr
eeni
tispassed,
pr
ogram namebehi
ndit
, andhownextscreenisprocessed.

Q.Bat
chI
nput&Di
rectI
nput
?

Ans:Dir
ectInput(DI)programswor kexactlysi
mil
artoBIprogr
ams.Buttheonlydi f
fer
enceis,insteadof
pr
ocessingscreenst heyvali
datef
ieldsanddi r
ect
lyl
oadthedataint
otablesusingstandardfunction
modules.Forthisreason,DIprogr
amsar emuchfaster(
RMDATI ND-Material
Mast erDIprogram wor ksat
l
east5timesf aster)t
hantheBDCcount erpar
tandsoideal
l
ysuitedforl
oadinglargevolumedat a.DI
pr
ogr
amsar
enotav
ail
abl
eforal
lappl
i
cat
ionar
eas.

6)I
sitpossi
blet
owr
it
eanABAPcodei
nLSMW?

Ans:
-Yes,
bycl
i
cki
ngont
hechange(
penci
l
)icont
hatappear
sbesi
det
her
ecor
dingst
ruct
uref
iel
d.
Q)Whi
chmet
hoddoy
oupr
efert
omi
grat
ethedat
aift
hemet
hodi
snotment
ioned?
Ans:
-CALLTRANSACTI
ON.
q.LSMW canber
uni
ntwoway
s;For
egr
oundandBackgr
ound

A:
Ify
ouchooseFor
egr
oundandexecut
eLSMW,

Wherev
erther
eisani
ssue,sy
stem wi
l
lasky
out
ocor
rectt
hater
rorandonl
yaf
tery
oui
nputt
hecor
rectdat
a,
sy
stem wi
l
l pr
oceedt
onextdata.

Ify
ouruninbackgroundal
lerror
swi
l
lbestor
edanditkeepsoncontinui
ngti
ll
endofthelastr
ecor
d.Oncei
t
i
scompleted,
youcancheckhowmanyr ecor
dsar
eincorrectbysel
ecti
ngtheAnal
ysi
stab.Youhaveto
corr
ecty
ourrecordsaccor
dingly
.

Q)Whatar
etheEv
ent
sinLSMW?
Ans:
LSMW Ev
ent
s:
1.GLOBAL_
DATA:
Global
Dat
aDef
ini
ti
ons&Decl
arat
ions
2.BEGI
N_OF_
PROCESSI
NG:
Bef
oreDat
aPr
ocessi
ngSt
art
s
3.BEGI
N_OF_
TRANSACTI
ON:
Bef
oreTr
ansact
ionSt
art
s
-
BEGI
N_OF_
RECORD
-
END_
OF_
RECORD
4.END_
OF_
TRANSACTI
ON:
Aft
erTr
ansact
ionPr
ocessi
ngFi
nishes
5.END_
OF_
PROCESSI
NG:
Aft
erDat
aPr
ocessi
ngFi
nishes
6.FORM_
ROUTI
NES:
Int
hisy
oucanwr
it
eal
lthef
ormr
out
ineABAPRout
ines

Wecanseeal
ltheabov
eev
ent
sin‘
Fi
eldMappi
ngandRul
eSt
ep’
.I
fyouar
enotabl
etoseet
heabov
eLSMW
ev
ent
stheny
ouhav
etocl
i
ckont
heLay
outbut
tonandcheckmar
kthePr
ocessi
ngTi
mesopt
ion.
7)Whatar
etheFunct
ionModul
esassoci
atedwi
thBDCSessi
onMet
hod?

Ans:
-TheSy
stem pr
ovi
dedFunct
ional
Modul
esar
e
 '
BDC_
OPEN_
GROUP’
:I
tisusedt
ocr
eat
ethesessi
onusi
ngt
heT-
codeSM35.
 '
BDC_
INSERT’
:I
tisusedt
oinser
tthef
latf
il
edat
aoft
hest
ruct
ure‘
BDCDATA’
wit
htr
ansact
ion
i
ntosessi
on.
Note:
Anexpor
tparameter“CTUPARMS”isusedtohandl
ethescr
eenr
esol
uti
oni
ncaseoft
abl
econt
rol
to
pr
ocesst
hemulti
plel
ineit
emsi nsessi
onmethod.

 '
BDC_
CLOSE_
GROUP’
:I
tisusedt
ocl
oset
heopenedbat
chi
nputsessi
on.

Q)Howt
oDebugLSMW?

Ans:LSMW canbedebuggedi
ntwoways.
1.Byhardcodi
ng‘BREAK-
POINT’
int
heCodesect
ionof‘
ChangeFi
eldMappi
ng
andConv
ersi
onRul
es’
.
2. Byset
ti
ngbr
eakpoi
ntsi
ntheDi
spl
ayReadPr
ogr
am/Di
spl
ayConv
ersi
on
Pr
ogr
am whi
char
eaut
omat
ical
l
ygener
atedbySAP.

Byhar
dcodi
ng‘
BREAK-
POI
NT’
int
heCodesect
ionof‘
ChangeFi
eldMappi
ngandConv
ersi
onRul
es’
.

1.Executet
he‘ChangeFi
eldMappi
ngandConv
ersi
onRul
es’
Step.
2.OpentheFiel
dsFolder
.
3.DoubleCl
ickonCodeoption.
4.Addanewl
i
neofcode‘
BREAK-
POI
NT'
.

Byset
ti
ngbr
eakpoi
ntsi
ntheDi
spl
ayReadPr
ogr
am/Di
spl
ayConv
ersi
onPr
ogr
am whi
char
eaut
omat
ical
l
y
gener
atedbySAP.

1.I
nordertosetthebreakpoi
nts,
fir
stwehavetoenabl
ethecheckboxesofDispl
ayReadProgram/Displ
ay
Conver
sionProgr
am inthe‘UserMenu’ofLSMW Scr
eenwhereweexecutethesteps(
Ini
ti
alScr
een).

2.Nowexecut
etheDi
spl
ayReadPr
ogr
am St
eps.
3.ARepor
twi
l
lbedi
spl
ayed,
sett
hebr
eakpoi
ntsatt
her
equi
redpl
aces.

4.Execut
eReadDat
aSt
ep.

5.Assoonasy
ouexecut
etheReadDat
aSt
epy
ouwi
l
lent
ert
hedebuggi
ngmode.
I
fyouar
efacingthepr obl
em inConvertedDatathenyoucansettheBreakpoint
sin‘
Displ
ayConv
ersi
on
Pr
ogr
am’af
terthatexecutethe‘
ConvertData’
Step,youwi
l
lent
erthedebugger.

Q)Howt
oTr
anspor
tLSMW Obj
ect
’s?
Youcant
ranspor
tLSMW i
nsev
eral
way
s.

 Fi
l
eexpor
tandi
mpor
t.
 Tr
anspor
tusi
ngt
ranspor
trequest
.
Fi
l
eExportandImpor
t
Gotot
ransact
ionLSMW i
nyoursour
cecl
i
entandsel
ectt
hepr
oject
.

Sel Ext
ect" ras>Expor
tPr
oject
"fr
om mai
nmenuar
ea.

Sel
ectt
heobj
ect
syoui
ntendt
otr
anspor
t.Youcansel
ectwhi
chr
ecor
dings,
sub-
proj
ect
syouwantt
o
t
ranspor
tbycl
i
cki
ngonnodear
eaorbysel
ect
i sel
ng" ect
/desel
ect
"opt
ion.
Sel Expor
ect" t"opt
ion.

Sav
e.

Nowexecut
etr
ansact
ionLSMW i
nyourt
argetcl
i
ent
.

Sel
ectt
heexpor
tedf
il
eint
hepr
evi
ousst
epusi Ext
ng" ras>I
mpor
tPr
oject
"menuopt
ion.
Tr
anspor
tusi
ngTr
anspor
tRequest

Youhav
etoat
tacht
hepr
ojectt
otr
anspor
trequestusi
ngmenuar Ext
ea" ras>Gener
ateTr
anspor
tRequest
".

8)Howt
ohandl
emessagesi
nCal
lTr
ansact
ionMet
hod?

 Gett
hemessagedet
ail
ssuchar
emessaget
ype,
messagenumberi
ntoani
nter
nal
tabl
e
(
gt_
bdcmsgcol
l
)oft
het
ypeBDCMSGCOLLusi
nganaddi
ti
on“
….MESSAGESI
NTO”wi
thCALL
TRANSACTI
ONst
atement
.
 Setal
oopi
ntoani
nter
nal
tabl
e(gt
_bdcmsgcol
l
)oft
het
ype“
bdcmsgcol
l
”.
 Useanyoft
hef
unct
ionmodul
es“
FORAMT_
MESSAGE”
/”WRI
TE_
MESSAGE”t
ogett
he
cor
respondi
ngmessaget
ext
,si
ncet
hest
ruct
ure“
BDCMSGCOLL”doesnothav
eanymessaget
ext
f
iel
d.
 Di
spl
ayt
hepopul
atedmessageswi
thmessaget
extei
therl
i
storALV.
Not
e:Thest
andar
dtabl
e‘T100’
canal
sobeusedt
opopul
atet
hemessaget
ext
.

9)Whati
sthesy
ntaxt
omakeuseofCal
lTr
ansact
ion?

Ans:
- CALLTRANSACTI
ON'
<T-
CODE>'
USI
NG<gt
_bdcdat
a>MODE<A/
N/E>UPDATE<S/
A>
MODE<A/
N/E>UPDATE<S/
A>
MESSAGESI
NTO<GT_
BDCMSGCOLL>.
 Her
e<T-
CODE>i
sther
equi
redt
ransact
ioncodet
hroughwhi
cht
hef
latf
il
edat
atobemi
grat
ed.
 <gt
_bdcdat
a>i
sani
nter
nal
tabl
eoft
ype“
bdcdat
a”st
ruct
ure
 <A/
N/E>ar
edi
ff
erentdat
apr
ocessmodes
A=Al
lscr
eens,
N=Noscr
eens,
E=Er
rorscr
eens
 <S/
A>ar
ethedi
ff
erentupdat
emodes
10)Whatar
ethef
iel
dsi
nBDCMSGCOLLst
ruct
ure?

Ans:
BDCMSGCOLLi
sonest
ruct
urei
nDDI
Cwhi
chcont
ainst
hebel
owf
iel
ds
Fi
eld Descr i
ption
TCODE BDCTransact i
oncode
DYNAME Scr
eenprogr am name
**DYNUMB Scr
eennumber
**MSGTYP MessageTy pe( E/W/I
/S….
)
*
*MSGSPRA Messagelanguage.
MSGID MessageID
MSGNR MessageNumber

11)Whatar
ethef
iel
dsi
nBDCDATAst
ruct
ure?

Ans:
-Iti
sast
ruct
urei
nDDI
Cwhi
chcont
ains5f
iel
ds.
Fi
eld Descr
ipt
ion
PROGRAM BDCModulepool
DYNPRO BDCScreennumber
DYNBEGIN BDCScreenStar
t
FNAM fi
eldNameofthescreen
FVAL BDCFiel
dValue(
flatf
il
e)

12)Cany
ousetupbackgr
oundpr
ocessi
ngusi
ngCALLTRANSACTI
ON?

Ans:
Yes,
Usi
ngNoScr
eenModei
n'CALLTRANSACTI
ON'

5)Whatar
ethedi
ff
erencesbet
weenSessi
onMet
hodandCal
lTr
ansact
ionMet
hod?

Sessi
on Cal
lTr
ansact
ion

1.ThestandardFunct
ionmodules 1.TheABAPst
atementCALLTRANSACTI
ON….
isused.
'
BDC_ OPEN_GROUP’,'
BDC_INSERT'and
'
BDC_ CLOSE_GROUP'areusedtoworkwit
h
thesessi
onmet hod.

2.ThedataisupdatedinSynchr
onousl
ymode 2.Thedataisupdat
edi
nbothsy
nchr
onousand
(RecordbyRecord)&f l
atf
il
edatai
s Asynchr
onousmodes.Fl
atf
il
edatai
sprocessed
processedAsynchronous. synchr
onously
.

3.AnEr
rorLOGFil
eisgenerat
edbyt
he 3.Themessages/
err
orsarehandledexpl
i
cit
lyusingthe
syst
em t
ohandl
etheerror
s. str
uct
ureBDCMSGCOLL&t hefunct
ionmodules
'
FORMAT_ MESSAGE’or'
WRI TE_MESSAGE’orthetable
T100.

4.Sessi
onmethodcanpr
ocessanynoof 4.Cal
lTr
ansact
ioncanpr
ocessonl
yonet
ransact
ionata
tr
ansact
ionsatat
ime. ti
me.

5.Af
terpr
ocessingthesessiont
hroughSM35 5.I
mmedi
atedat
abaseupdat
ion.
onl
y,t
hedatabaseisupdated.

6.Sessi
onmet
hodi
ssl
ower
. 6.Cal
ltr
ansact
ionmet
hodi
sfast
er

7.Wecanschedul
ethesessi
onmet
hodi
n 7.Wecan’
tschedul
ethecal
ltr
ansact
ioni
nbackgr
ound.
backgr
ound.

Sy
nchr
onous:
Int
hismode,
thedat
aisnotcont
inuousl
yupdat
edi
ncaseofer
rorr
ecor
ds.
Asy
nchr
onous:
Iti
susedt
oupdat
ethedat
acont
inuousl
ybyski
ppi
ngt
heer
rorr
ecor
ds.

13)Canweusecal
ltr
ansact
ionandsessi
onmet
hodi
nthesamepr
ogr
am?Expl
ain?

Ans:Yes,wecancall
, cal
ltr
ansact
ionandsessi
onmethodi
nsameprogram,
general
l
yweusecal
l
tr
ansacti
onforupdat
ingandsessionmethodforl
oggi
ngerr
orsi
nthesameprogr
am .

14)Howt
orunt
heSessi
oni
nBackgr
ound?

Ans:-Thestandar
drepor
tpr
ogr
am RSBDCSUBi
susedt
oschedul
etheBat
chI
nputSessi
onsi
n
Background.(
OR)

Wecanal
soSUBMI
Tthepr
ogr
am RSBDCSUBwi
thi
ntheBDCsessi
onpr
ogr
am i
tsel
f.

Q.
cany
oucal
labdcpr
ogr
am f
rom r
epor
tpr
ogr
am?

a:
yeswecancal
labdcpr
ogr
am f
rom ar
epor
tusi
ngSUBMI
Tkeywor
dforst
andar
dpr
ogr
am RSBDCSUB.

15)WhatI
sBDCRECCX1?

Ans:
-Inastandar
dprogram,Gener
atedfr
om r
ecordi
ngwhichcont
ainsal
lther
e-usabl
edecl
arat
ionsand
al
sother
e-usabl
eSubrouti
neDefi
nit
ionsf
oral
ltheBDCPrograms.

16)Howcany
ouPRI
NTasessi
onl
ogf
il
e?

Ans:
-Execut
eRSBDCLOG.

17)Howt
oExpor
ttheSessi
on?

Ans:
-Fr
om SM35-
--
>Ut
il
it
ies-
--
>Expor
tSessi
on.

18)Whi
l
eUpl
oadi
ngaf
latf
il
ethr
oughBDCCal
lTr
ansact
ion,
Thesy
stem(
notSAPSer
ver

i
.e.t
hecur
rent
lywor
kingMachi
ne)suddenl
ygetCRASHED.Howdoi
knowhowmanyr
ecor
ds

hav
ebeenupdat
ed?

Ans:-Eventhoughiti
sBULKDat aProcessi
ng,
butupdat
ingthedatabaseisalwaysrecordby recordonl
y.
SoAf t
erCalli
ngtheTransact
ion,Mai
ntai
nthest
atusoft
hecalli
ngtransact
ion i ntoonecust
om tabl
e
i
ncludingtherecor
ddetail
s.Sothatwecanknowthecustom t
ablefor t helatestdet
ail
s.

19)Afterr
unni
ngaBDCpr ogram inbackgr
ound,
nextdaymorningwheny
ouseet
her
esul
ts,
few
recor
dsarenotupdat
ed(
errorrecords)
.Whatwil
lyoudothen?

Ans:Wewil
llooki
ntoi
ncor
rectsessi
on,
anal
yzet
heer
rorscr
een,
andr
epr
ocesst
hesessi
onaf
ter
cor
rect
ingt
hedata.

q:whi
ler
unni
ngbdccal
ltr
ansact
ionmethodforuserdef
inedt
abl
e,al
lther
ecor
dsar
esav
edexceptt
hel
ast
recor
d.what
’st
hepr
oblem?cananybodycl
arif
yme?

a:
fi
rstanal
yzet
het
ransact
ionbyusi
ngSM35andf
indt
heer
rorandr
epr
ocesst
hesame

f
rom wher
etheer
rorhasoccur
ed.
Quest
ion:
Howdoesuknowt
hatupdat
ingi
ssuccessf
uli
nBDC?

A:
Usi
ngBDCMSGCOLLwecanf
indouti
tissuccessornot

Af
terr
unt
heBDCPROGRAM (
CREATI
NGBATCHSEESI
ON)
.

Usi
ngsm35youcanpr
oceedbatchsession,
ifupdat
ioni
ssuccessf
ull
ydonet
henst
atusshowi
nggr
eent
ick.
i
fanyer
rorov
ert
heret
henit
’sshowi
ngr edti
ck.

q:
IfBDCi
sdev
elopedi
nDev
elopmentsy
stem wi
thnodat
a,wher
edowedot
her
ecor
ding?

a:
Wecandotherecor
dingi
nQAsy st
em t
hathasdataandexpor
tther
ecor
dingf
rom QAsy
stem t
onot
epad
andi
mpor
titi
ntodevel
opmentsy
stem'st
ransact
ionrecor
der
.

20)Youaregivenfunct
ional
specsforaBDCpr
ogram andy
ouneedt
odeci
dewhet
hert
owr
it
ea
methodcall
transact
ionorasessi
on.Howuwil
ldeci
de?

Ans:
Basedont
heamountofdat
a(numberofr
ecor
dst
oupdat
e),
Iwi
l
ldeci
dewhatmet
hodt
ouse.

Ex:
Ifdat
aisl
esst
he5000,
Iwi
l
lusecal
ltr
ansact
ion.

I
fdat
aismor
ethan5000r
ecor
dsIpr
efersessi
onmet
hod.

21)
.Howt
ohandl
escr
eenResol
uti
on?

 Decl
areast
ruct
uredat
avar
iabl
eoft
het
ype‘
CTU_
PARAMS’
.

 Passtherequi
reddatasuchasdef
aul
tsi
ze,
displ
aymode,
updat
emodeet
ctot
hedef
ined
ct
u_paramsstruct
urevari
abl
e.

 Usethepopul
atedst
ruct
urev
ari
abl
eoft
ype‘
ctu_
par
ams’
wit
hCALLTRANSACTI
ONusi
ngan
addi
ti
on‘OPTI
ONS’.

22)Howt
ohandl
eTabl
eCont
rol
inBDC?

Ans:
-Tabl
econt
rol
isusedt
omi
grat
e/updat
ethemul
ti
pler
ecor
ds(
li
nei
tems)i
nBDC.
 Pr
essPageDowni
nthet
abl
econt
rol
tor
ecor
dthef
unct
ioncodef
orpagedown.
 Thenexti
tem noi
sthe1sti
tem nowhent
hePageDowni
spr
essed.
 Recor
dtheScr
eenf
lowwi
thl
i
nei
temsusi
ngt
heT-
Code“
SHDB”
.

 Conv
ertt
her
ecor
dingi
ntoapr
ogr
am usi
ngt
hebut
tonpr
ogr
am.

 Maket
hechangesi
ntheor
igi
nal
mai
npr
ogr
am l
i
ke,

 Upl
oadt
hef
latf
il
edat
awhi
chcont
ainsbot
hHeader&I
tem dat
a.

 Spl
itt
heuploadedFlatf
il
edat
aint
otheHeaderandI
tem t
abl
es,
usi
ngt
he
Contr
olBr
eakSt at
ements.

 Setal
oopt
oHeaderi
nter
nal
tabl
ethenpr
ocesst
heHeaderr
elat
eddat
abycopy&past
ethe
sy
stem gener
atedheaderr
elat
edsub-
rout
inesf
rom t
het
empor
aryr
ecor
dingpr
ogr
am
 Setal
oopt
oIt
em t
abl
edat
atopr
ocesst
hemul
ti
plel
i
nei
tems.
 Maket
heI
tem numberasdy
nami
cbyconcat
enat
ingt
hescr
eenf
iel
dnamewi
tht
hescr
een
number
.'
 Uset
hef
unct
ioncode“
p+”t
ohandl
epagedowni
ntabl
econt
rol
.
 Useanyoneofmet
hodswi
thBDC_
INSERT(
Sessi
on)orCALLTRANSACTI
ONt
omi
grat
ethe
dat
afr
om i
nter
nal
tabl
eGT_
BDCDATA.
Note:TheHeader&It
em dat
acanbepr
ocessedsepar
atel
yusi
ngt
hecont
rol
breakst
atement
swi
thout
spl
i
t t
ingt
heflatf
il
edata.

 Thecontr
olbreakst
atement
scanal
sobeusedt
opr
ocessHeader&I
tem dat
asepar
atel
yby
avoi
dingnest
edloops.

23)Whatarethepr
obl
emsi
npr
ocessi
ngbat
chi
nputsessi
ons?Howi
sbat
chi
nputpr
ocessdi
ff
erentf
rom
processi
ngonli
ne?

Ans:
1)Iftheuserf
orget
stooptforkeepsessionthenthesessi
onwi l
lbeaut
omat
ical
lyr
emov
ed
fr
om thesessi
onqueue(l
ogremains)
.Howev er,
ifsessi
onisprocessedwemaydelet
eit manual
l
y.

2)I
fsessi
onpr
ocessi
ngf
ail
s,dat
awi
l
lnotbet
ransf
err
edt
oSAPdat
abaset
abl
e.

Q)Expl
ainaboutt
hePar
all
elCur
sorMet
hod?

Ans:
-Thi
sMet
hodi
susedf
orbet
terPer
for
mancei
ncaseoft
henest
edl
oops(
Loopwi
thi
nthe
l
oop)
.
St
epst
ouset
hisMet
hod:
-
 Readt
he2ndi
nter
nal
tabl
e(I
tem t
abl
e)wi
thi
nthel
oopoft
heBase/
Mai
nint
ernal
tabl
e(gt
_header
)
wi
tht
her
equi
redkey
sandgett
hei
ndexoft
hecur
rentr
ecor
d.
 Sett
hel
oopt
othe2ndi
nter
nal
tabl
e(I
TEM i
nter
nal
tabl
e)t
opr
ocesst
hedat
afr
om t
heSETI
NDEX
anduseEXI
Tst
atementt
ocomeoutoft
his2ndl
oopf
ort
heunmat
cheddat
a.

ENHANCEMENTS
Enhancement
s
1)Whati
sEnhancement
sandwhatar
ethedi
ff
erentt
echni
quesandexpl
aint
hem?
Ans:
-Enhancement
sar
eusedt
oaddsomeaddi
ti
onal
cust
omerspeci
fi
cfunct
ional
i
tyt
othe st
andar
d
appl
i
cat
ions/
progr
ams.
o Cust
omerExi
ts:
Thesear
etheFunct
ionModul
esav
ail
abl
einmostoft
hef
unct
ional
areas
suchasSD,
MM,
FICOet
c.Theyar
eusedt
oaddt
headdi
ti
onal
funct
ional
i
tiesi
nthest
andar
d
appl
i
cat
ions/
progr
amswi
thoutusi
ngaccesskeyt
obr
eakt
hem.Theaccesskeyi
sthe
uni
quekeypr
ovi
dedbyt
heBASI
Sconsul
tantt
obr
eakt
hest
andar
dappl
i
cat
ions.The
appl
i
cat
ionwi
l
lbecomecust
om dev
elopmentoncet
heyar
ebr
oken.
 Fi
eldExi
ts:
Thesear
eusedt
ochanget
hef
iel
dlabel
soft
hest
andar
ddat
ael
ement
s.

 Funct
ionExi
ts:
Thesear
eusedt
oaddt
headdi
ti
onal
funct
ional
i
tyt
othest
andar
d
pr
ogr
amswi
thoutbr
eaki
ngt
hem.EachFunct
ionExi
tcont
ainacust
om i
ncl
ude
pr
ogr
am whi
chst
art
swi
thZ*t
oimpl
ementt
hecust
omerspeci
fi
caddi
ti
onal
busi
ness
l
ogi
c.TheFunct
ionExi
tist
he3di
gitnowhi
chi
scal
l
edusi
ngt
heABAPst
atement
CALLCUSTOMER_
FUNCTI
ON.
 MenuExi
ts:
Thesear
eusedt
oaddt
hecust
om speci
fi
cmenui
tems&cor
respondi
ng
addi
ti
onal
funct
ional
i
tybasedont
hesel
ect
edmenui
tem.
 Scr
eenExi
ts:
Thesear
eusedt
oaddt
headdi
ti
onal
scr
eenel
ement
s&t
he
cor
respondi
ngaddi
ti
onal
funct
ional
i
tyt
othest
andar
dscr
eens/
transact
ion.
 T-
CodeSMOD:
Iti
susedt
ofi
ndt
hecust
omerexi
tsoft
hest
andar
dpackage.
 T-
codeCMOD:
Iti
susedt
oassi
gnanenhancement
/exi
ttopr
oject
.
o UserExi
ts:
Thesear
etheSub-
rout
ineswhi
chst
artwi
thUSEREXI
T_*&t
hesear
edef
inedi
n
t
hest
andar
dIncl
udepr
ogr
ams.Theyar
emost
lyusedi
nSDf
unct
ional
area.TheAccesskey
i
srequi
redt
obr
eakt
hest
andar
dIncl
udepr
ogr
amsoft
heUserExi
tsf
ort
hef
ir
stt
ime.TheT-
codeSPROi
susedt
ofi
ndt
heUserExi
ts.
o BTE(
Busi
nessTr
ansact
ionEv
ent
s):
Thesear
etheSour
cecodepl
ug-
inst
oaddanaddi
ti
onal
f
unct
ional
i
tyi
nthest
andar
dpr
ogr
am.
 T-
codeBERE:
Iti
susedt
ofi
ndt
heBTE’
s.
 T-
codeFI
BF:
Iti
susedt
owor
kwi
thBTE’
s.
o EnhancementFr
amewor
k:Theenhancementf
ramewor
kisadv
ancedt
ouserexi
tsf
or
€addi
nganaddi
ti
onal
funct
ional
i
tywi
thoutbr
eaki
ngt
hest
andar
dpr
ogr
ams.I
tisusedt
o
at
tach/
hookt
hesour
cecodepl
ug-
inssuchasenhancementsect
ionorenhancementpoi
nts
i
nthest
andar
dpr
ogr
ams.
 I
nUser
-exi
tswewr
it
ecodeonl
yint
hef
ormr
out
ines(
ie.i
nFor
m..
.EndFor
m).and
Whenwegof
orupgr
adet
hev
ersi
ons,
weagai
nneedt
ochanget
hecodei
ntheuser
-exi
t
whi
chwewr
it
teni
npr
evi
ousv
ersi
onsbutwi
thEnhancementFr
amewor
kther
eisnotmuch
codechangei
srequi
redwhenwegof
orupgr
ades.
o BADI
:Thesear
enewenhancementt
echni
quet
oaddt
headdi
ti
onal
cust
omerspeci
fi
c
busi
nessl
ogi
ctot
hest
andar
dpr
ogr
ams.

2)
.whatar
etheway
stof
indt
heExi
ts?

I
. Usi
ngt
hePackagenameoft
heappl
i
cat
ions
I
I. Usi
ngt
heT-
codeSE84
 Fi
ndt
hepackagenameoft
her
equi
redT-
code.
 Execut
etheT-
codeSE84.
 ExpandEnhancementf
older
 Doubl
ecl
i
ckonenhancement
s
 Ent
ert
her
equi
redpackagename/
Exi
tname
 Cl
i
ckonexecut
eicon
I
II
. Usi
ngt
heFi
ndf
unct
ioni
nst
andar
dpr
ogr
ams.
I
V. Usi
ngt
hest
andar
dTabl
esMODSAP&MODACT
3)Whatar
ethet
ypesofEnhancementFr
amewor
k?
 I
tisanadv
ancedenhancement
sconcepti
ntr
oducedf
rom t
hev
ersi
onECC6.
 I
tisusedt
oat
tach/
hookt
hesour
cecodepl
ug-
inssuchasenhancement
ssect
ionorenhancement
poi
ntsi
nthest
andar
dpr
ogr
ams.
1.I
mpl
i
citEnhancementSect
ion:
Theyar
epr
ovi
dedi
mpl
i
cit
lyatt
hepar
ti
cul
arl
ocat
ionsby
SAP.Theyar
emost
lypr
esent
edatt
hebegi
nni
ng&endoft
hesubr
out
ines
(
FORM-
ENDFORM)
,begi
nni
ng&endoft
hef
unct
ionmodul
es,
begi
nni
ng&endoft
he
pr
ogr
ams.
2.Expl
i
citEnhancementSect
ion:
Theyar
epr
ecodedbySAP&pr
ovi
dedatt
hespeci
fi
c
l
ocat
ioni
nthest
andar
dpr
ogr
ams.Ther
ear
e2t
ypesofExpl
i
citEnhancement
.
 Enhancement
-Sect
ion:
Iti
susedt
ocopy
,changet
heexi
sti
ngst
andar
dsour
cecode&
addaddi
ti
onal
busi
nessl
ogi
ctot
hest
andar
dpr
ogr
am.TheABAPst
atement
ENHANCEMENT-
SECTI
ONi
susedt
ospeci
fyt
heEnhancementSect
ions.
 EnhancementSect
ioncanbeusedt
orepl
aceasetofst
atement
swi
thcust
om code
.
Ify
ouhav
ewr
it
tencodeusi
ngenhancementsect
ion,
onl
yyourcust
om codewi
l
lbe
execut
edr
epl
aci
ngst
andar
dcode.St
andar
dcodewi
l
lnotbeexecut
ed.
 Enhancement
-Poi
nt:
Iti
susedt
oaddt
headdi
ti
onal
cust
omerspeci
fi
cbusi
nessl
ogi
c
t
othest
andar
dpr
ogr
am.
 EnhancementPoi
nti
sonewhi
chcanbepr
ovi
dedataspeci
fi
cpl
ace.
 I
fyouhav
ewr
it
tencodeusi
ngenhancementpoi
nty
ourcust
om codewi
l
lbe
execut
edal
ongwi
tht
hest
andar
dcode.

4)Whatar
ethedi
ff
erencesbet
weenCust
omerExi
tsandUserExi
ts?

Cust
omerExi
ts UserExi
t

1.Thesear
etheFunct
ionmodul
es 1.
Thesear
ethesubr
out
ines

2.TheCust
omerExi
thav
edi
ff
erentt
ypesuchas 2.
UserExi
tdonothav
edi
ff
erentt
ypes
f
unct
ionexi
t,menuexi
t,scr
eenexi
t&f
iel
dexi
t

3.Thesear
eav
ail
abl
eundermostoft
hef
unct
ional 3.
Thesear
emost
lyav
ail
abl
einSDf
unct
ional
area
ar
eassuchasSD,
MM,
FIet
c

4.
Accesskeyi
snotr
equi
redt
oaddt
headdi
ti
onal 4.
Accesskeyi
srequi
redt
obr
eakt
hest
andar
d
f
unct
ional
i
ty pr
ogr
am

5.
TheCust
omerExi
tsar
ecal
l
edusi
ng 5.TheUserExi
tst
art
swi
thUSEREXI
TS(
subr
out
ines
CALLCUSTOMER_
Funct
ion i
nst
andar
dincl
ude)

5)Whatar
etheTr
ansact
ionCodesassoci
atedwi
thBADI
s?

Ans:
-
T-
codeSE18&SE19:
areusedt
owor
kwi
tht
heBADI

s
T-
codeSE18:
usedt
odef
inet
heBADI

s
T-
codeSE19:
usedt
oimpl
ementt
heBADI

6)Whatar
ethet
ypes&subt
ypesofBADI
sandexpl
ainaboutt
hem?

Ans:
-Iti
susedt
oaddt
headdi
ti
onal
cust
omerspeci
fi
cbusi
nessl
ogi
ctot
hest
andar
dpr
ogr
ams.
1.Cl
assi
c/Ol
dBADI
:Thesear
emost
lyusedi
nthef
unct
ional
areasl
i
keSD,
MM,
FI/
CO.Thest
andar
d
met
hod“
GET_
INSTANCE”oft
hest
andar
dcl
ass“
CL_
EXI
T_HANDLER”i
susedt
owor
kwi
tht
he
cl
assi
cBADI

s.
2.Ker
nel
/NewBADI
:TheABAPst
atement
s“GETBADI&CALLBADI
”ar
eusedt
owor
kwi
thNew
BADI

s.I
tisf
ast
ert
hanCl
assi
cal
BADI

s.
GETBADI
:Thi
sst
atementi
susedt
ogener
ateaNewBADIobj
ect&set
stheBADIr
efer
encet
o
t
heobj
ect
sint
heBADIr
efer
encev
ari
abl
es.
CALLBADI
:Thi
sst
atementi
susedt
ocal
ltheMet
hodsoft
heNewBADI

s.
Subt
ypes:

a.Singl
euseBADI
:Thesingl
euseBADIcan’
tbei
mpl
ement
edf
ormul
ti
plet
imes.Thi
sBADIcanhav
e
onlyonei
mpl
ementat
ion.

b.Mul
ti
pleuseBADI
:Themul
ti
pleuseBADI

scan’
tbei
mpl
ement
edf
ort
hemul
ti
plet
imes.

c. Fil
terDependentBADI:Itisusedtocont
rol
theBADIimplementat
ionbasedonthespeci
fi
edf
il
ter
val
ue.Thesy st
em gener atesanI
mportpar
ameter‘
FLT_VAL’topassthefi
lt
erv
aluesfor
control
l
ingthebusinessl ogi
coft
heBADIimplement
ati
on.

 I
nter
face:I
tisasepar
atest
ruct
urewhi
chcanbeusedt
oext
endt
hescopeofacl
ass.

7)Whati
sFALLBACKcl
assi
nBADI
?

Ans:
-IfaBADIdoesn’
thav
eanyact
ivei
mpl
ement
ati
ons,
thepr
ogr
am goest
orunt
imeer
ror
.
TheFal
lbackcl
assesar
eusedt
ocal
lthedef
aul
tmet
hodsi
ncaseofaBADIdoesn’
thav
e any
act
iveI
mpl
ement
ati
ons.
 Theexcept
ionscanal
sober
aisedt
oav
oidsuchki
ndofer
ror
s.

8)Whatar
ethedi
ff
erencesbet
weenExi
tsandBADI
s?
Ans:
-
Exi
ts BADI
s

1.Theyar
epr
ocedur
alABAPbased 1.Theyar
eObj
ectOr
ient
edABAPbased

2.I
tisnotpossi
blet
oassi
gnanExi
ttomor
ethan 2.Themul
ti
pleuseBADIcanbei
mpl
ement
ed
onepr
oject
Formul
ti
plet
imes

3.TheFi
l
terv
aluescan’
tbesett
otheExi
ts 3.TheFi
l
terv
aluescanbesetf
orFi
l
ter
DependentBADI

s

4.TheT-
codesSMOD&CMODar
eused 4.TheT-
codesSE18&SE19ar
eused

9)Whatar
etheway
stof
indBADI
s?

Ans:
-
 Mostoft
heSt
andar
dBADI

sar
ecl
assi
cBADI

s.

 Theyareusedtoaddtheaddi
ti
onal
cust
omerspeci
fi
cfunct
ional
i
ty/
busi
nessl
ogi
ctot
hest
andar
d
progr
ams/T-codes.

 Ther
ear
e4way
stof
indt
heBADI

s

I
. Usi
ngt
hest
andar
dcl
assCL_
EXI
THANDLER
 Execut
etheT-
code:
SE24t
omai
ntai
nthegl
obal
class.
 Ent
ert
hest
andar
dcl
assnameCL_
EXI
THANDLER
 Cl
i
ckondi
spl
aybut
ton.
 Doubl
ecl
i
ckont
hemet
hodGET_
INSTANCE
 Setasessi
onbr
eakpoi
ntont
hemet
hodGET_
CLASS_
NAME_
BY_
INTERFACE
 Execut
ether
equi
redf
unct
ional
T-codeEx:
MM02
 Per
for
mther
equi
redact
ionEx:
sav
emat
eri
al
 Doubl
ecl
i
ckonapassi
ngpar
amet
er(
EXT_
NAME)t
oli
stoutt
hecor
respondi
ngBADI
.Ex:
BADI
_MATERAI
L_CHECK
I
I. Usi
ngt
heT-
codeSE84
I
II
. Usi
ngt
heT-
codeST05(
SQLTr
acer
)
I
V. Usi
ngt
heT-
codeSPRO

10)Whatar
ethedi
ff
erencesbet
weenCl
assi
c(Ol
d)BADIandNew(
Ker
nel
)BADI
?

Ans:
-
Cl
assi
corOl
dBADI NeworKer
nel
BADI

1.Thest
andar
dmet
hodGET_
INSTANCEoft
he 1.TheABAPst
atement
sGETBADI&CALLBADI
st
andar
dcl
assCL_
EXI
T_HANDLERi
susedt
ocal
l ar
eusedt
owor
kwi
thNewBADI

s.

2.Ani
nter
faceofaBADIr
efer
redt
ocr
eat
ethe 2.Thedef
ini
ti
onofaBADIi
sref
err
edt
ocr
eat
ethe
Ref
erenceobj
ect Ref
erenceobj
ect

3.I
tisnotf
ast
erasl
i
ket
heKer
nel
BADI 3.I
tisf
ast
ert
hant
heCl
assi
cBADI

4.I
tcanbeamul
ti
pleuseBADI 4.I
tmustbeasi
ngl
euseBADI

5.TheFal
lbackcl
asscan’
tbedef
ined 5.TheFal
lbackcl
asscanbedef
ined

6.I
tcanbeaFi
l
terDependentBADI 6.I
tisnotpossi
blet
omai
ntai
ntheFi
l
terv
alues

11)Whatar
ethest
atement
snotbeusedi
nExi
tsandBADI
s?

Ans:
-TheABAPst
atement
sCOMMI
Twor
k&ROLLBACKwor
kshoul
dnotbeusedi
nEXI
TS.
TheABAPst
atement
sSTOP&EXI
Tar
eal
sonotadv
isabl
e.
12)Whatar
etheEnhancementSpot
s?

Ans:
-
 Theenhancementspot
sar
eusedt
omanageexpl
i
citenhancementopt
ionst
hatmeansy
oucanadd
y
ourcodei
nst
andar
dABAPcodewi
thoutneedofaccesskey
,whi
chi
mpl
i
est
hatt
hest
andar
dcode
i
snotdi
stur
bed.
 Enhancementspot
sspeci
fyt
hepl
aceswher
ewecanaddourcodei
nst
andar
dSAP.
 Eachenhancementspotel
ementdef
ini
ti
onmustbeassi
gnedt
oatl
eastoneenhancementspot
.
 Enhancementspotscarryinf
ormati
onaboutt
heposit
ionsatwhi
chenhancementopti
onswere
creat
ed.Oneenhancementspotcanmanageseveralenhancementopti
onsofaReposi
tor
yobject
.
Conversel
y,sev
eralenhancementspot
scanbeassignedtooneenhancementopt
ion.

13)Whatar
ethest
epst
oinser
ttheEnhancementSpotandwor
k?

Ans:
 I
mpli
citenhancementSpotsar
eav ai
labl
einev
eryprogr
am onsomepredefi
nedspotsasabegi
nof
FM,
endofFM, beginofsomeeventandsoon.Itmeansthaty
oucaneasil
ymodifyanypr
ogram,
FM,
subr out
inewithsomelimi
tat
ions.

 I
fyouwantt
oseeall
impli
citspot
sinpr
ogram,
gotoSE80-
>Edi
t->EnhancementOper
ati
ons-
>ShowI
mpl
i
citEnhancementOpt
ions
Cr
ossAppl
i
cat
ions/
I
nter
faces
(
RFC,
BAPI
,I
DOC)

Cr
ossAppl
i
cat
ions(
RFC,
BAPI
,I
DOC)

1.Whati
stheCr
ossAppl
i
cat
ion/
Int
erf
acesconcept
?
Ans:
-Thi
sconcepti
susedt
odi
str
ibut
ethedat
abet
weenSAPt
oSAPsy
stems
(
SAPR/
3<-
>SAPCRM)&SAPt
oNonSAPsy
stems(
SAP<-
>.NET,
JAVA)
2)Whati
sRemot
eFunct
ionCal
l(RFC)&t
ypesofRFC’
s?
Ans:
 I
tisaSAPspeci
fi
cpr
otocol
topr
ovi
decommuni
cat
ionbet
weendi
ff
erentsy
stems.
 I
tist
hepr
ocessofcal
l
ingFunct
ionmodul
esf
rom anot
hersy
stem.
 SAPUsesCPI
C(CommonPr
ogr
ammi
ngI
nter
facef
orCommuni
cat
ion)Pr
otocol
tot
ransf
erdat
a
bet
weenSy
stems.
Ty
pes:

1.SynchronousRFC:IncaseofthisRFCbotht
heSender/SourceandReceiv
er/Tar
get
syst
emsshoul dbeav ai
l
ablewhiledi
str
ibuti
ngthedat
a.Thenextpartofcal
li
ngprogram i sn’
tcont
inued
unti
lcal
lfuncti
oniscompleted.

2.AsynchronousRFC: I
ncaseofthi
sRFCboththeSender/Sour
ceandReceiver
/Tar
get
sy
stemsshouldnotbeav ai
labl
ewhil
edistr
ibut
ingt
hedata.Thenextpartofcal
l
ing pr
ogr
am
i
sconti
nuedwithoutcompleti
ngcall
functi
on.

3.Transact
ional
RFC(TRFC)
:Iti
salmostsimil
artoAsynchr
onousRFC.TheTransact
ional
RFCisexecut
edonlyoncei
nanRFCser ver&sav
et hecorr
espondi
ngdataunderuni
que t r
ansacti
onI
Din
theDat
abase.

4.QueuedRFC:I
ncaseoft
hisRFCthemulti
plet
ransact
ional
RFC’
sar
eser
ial
i
zedi
nthe
sequenceusingt
heFuncti
onmodul
e‘TRFC_SET_
QUEUE_ NAME’.

 Anaddi
ti
onal
stat
ement‘
Dest
inat
ion’
isusedwhi
l
ecal
l
ingRemot
eEnabl
edFunct
ions.

3)Howt
oDebugRFCFunct
ionmodul
e?

Ans:

 SE38->Ut
il
it
ies-
>Sett
ings->ABAPEdit
or->Debuggi
ngact
ivat
etheext
ernal
debuggi
ngandchoose
theNewDebuggeropt
ioninABAPdebugger.

 Gotot
heparti
cul
arpl
acei
nthecodeandputbr
eakpoi
nt,
popwi
l
lappeart
henchooset
heHTTP
br
eakpoi
nt.

 I
fy ouar
etr
iggeri
ngtheRFCfrom SAPpor
tal
makesurethatbot
htheuserI
Dshoul
dbesameI
fthe
usersar
edi
fferentt
henprov
idetheXI/
Por
talUserI
Dint
heusersfi
eld.

4)Howdoy ouconnecttother emoteserv erifyouarewor kingfrom theofficeforthecli


entinremot eplace?
Ans:WASwebappl i
cati
onser verorITS(InternetTr
ansacti
onSer ver)aregener al
l
yusedf orthi
spur pose.If
youaresi
tt
ingatyouroff
icewi thaserverwhi chisinthesy stem andt heotherserverisatt
hecl i
entsplace
youcangenerat
eIDOC,intermediatedocument swhichcarryt hedatay ouwantt otransf
erorthe
document
sy ouwanttotransfer,t
heseIDOCar ei
nterpr
etedbyt hesy stem atthereceivi
ngendwi ththe
messageclasswit
hwhichi ti
sboundwi t
h.I fyouwantt ologonasy stem whichisv er
ydist
ant,thenremot e
l
ogincanbeusedthisdependsont hei
nter netspeed.

5)Whatar
ethest
epst
owor
kwi
thRemot
eEnabl
edFunct
ion/
mai
ntai
nRFCconnect
ion?

Ans:
Anaddi
ti
onal
st ement‘
at Dest
inat
ion’
isusedwhi
l
ecal
l
ingr
emot
eenabl
edf
unct
ions.

1.Def
ineRFCDest
inat
ion: 2.Cr
eat
ionofRemot
eEnabl
edFunct
ion:
SE80

 Execut
etheT-
Code:
SM59

 Sel
ectt
her
equi
redRFCconnect
ionsuchasABAPconnect
ions/
Type3connect
ions.
 Cl
i
ckoncr
eat
eicon

 Ent
erRFCdest
inat
ionname&Descr
ipt
ion:
SAPR/
3toSAPCRM

 Ent
ert
het
argetappl
i
cat
ionser
vername/
addr
essi
nthet
argethostf
iel
d:CRM sy
stem

 Ent
ert
het
argetsy
stem numberEx:
33

 Cl
i
ckon“
Logon&Secur
it
y”t
ab

 Ent
ert
hel
ogoncr
edent
ial
soft
heRecei
ver
/Tar
getsy
stem

Note:ThecheckboxCur
rentusercanbecheckedt
omakeuseoft
hesameUsername&passwor
dfort
he
t
argetsyst
em

 Cl
i
ckonsav
eicon&cl
i
ckony
esbut
ton

 Cl
i
ckon‘
Connect
ionTest
’but
tont
otestRFCdest
inat
ion

 Cl
i
ckon‘
Remot
eLogon’
but
tont
otestt
her
emot
econnect
ion

6)Howt
omakeDest
inat
ion(
syst
em-
id)asdy
nami
c?

Ans: I
FSy
-sy
sidEQ‘
CMD.

<gv
_dest
>=‘
R3D’
.

ELSEI
FSy
-sy
sidEQ‘
CMQ.

<gv
_dest
>=‘
R3Q’
.

ELSESy
-sy
sidEQ‘
CMP.

<gv
_dest
>=‘
R3P’
.

*
Cal
lRFC

CALLFUNCTI
ON‘
ZRFC/
RFC’

DESTI
NATI
ON<gv
_dest
>“R3D

7)Whatar
ethedi
ff
erencesbet
weenRFCandBAPI
?

RFC BAPI

1 1.

2.TheT-
codeSE37canbeusedt
ofi
ndRFC’
s. 2.TheT-
codeBAPI&SE37canbeusedt
ofi
ndt
he
BAPI
.

3.RFCdoesn’
tgener
ateanymet
hods. 3.BAPIgener
atest
heuni
quemet
hodi
nBORt
ousei
n
t
heext
ernal
syst
em di
rect
ly.

4.I
tdoesn’
thav
est
andar
dRFC’
stomi
grat
ethe 4.Thest
andar
dBAPIwhi
chst
art
swi
thBAPIcanbe
dat
a. usedt
omi
grat
ethedat
a.

8)Whatar
ethest
epsi
nvol
vedi
ncr
eat
ingCust
om BAPI
?
Ans:
-
1.Cr
eat
etheBAPIst
ruct
ure(
SE11)st
art
swi
thZBAPI
*.
2.Cr
eat
etheBAPIf
unct
ionmodul
e(SE37)st
art
swi
thZBAPI
*whi
chi
s
a)Remot
eEnabl
ed
b)Al
lpar
amet
ersar
epassbyv
alue
c)Mustcont
ainRet
urnpar
amet
er
3.Cr
eat
emet
hod&obj
ectf
ort
heBAPIr
emot
eenabl
edf
unct
ioni
nBORusi
ngt
heT-
code

SW01’
.
4.Gener
ate,
impl
ement&r
eleaset
hecr
eat
edBAPIt
otheout
sideusi
ngt
heT-
code-‘
SQO1’
.

9)Whatar
etheway
stof
indSt
andar
dBAPI
s?

Ans:
-Ther
ear
e2way
stof
indBAPI
.
 Usi
ngt
heT-
code:
BAPI
 Usi
ngt
heT-
code:
SE37

10)Howt
ofi
nd/
checkt
heSt
andar
dBAPI
s?

Ans:
-1.Execut
etheT-
codeBAPI
2.Expandt
her
equi
redHi
erar
chy
.Ex:
Sal
es&Di
str
ibut
ionet
c
3.Expandt
her
equi
redsub-
funct
ional
area.Ex:
Sal
es/
Bil
l
inget
c
4.Doubl
ecl
i
ckont
her
equi
redBAPI
 Cor
respondi
ngBAPIdet
ail
ssuchasmet
hodname,
busi
nessobj
ectname,
BAPIf
unct
ion
modul
e&et
car
edi
spl
ayedunderdet
ail
stab
 Thet
abDocument
ati
oni
susedt
oknowmor
edet
ail
saboutt
heBAPI

s(st
andar
d)
 Thet
abAl
phabet
iccanal
sobeusedt
ofi
ndt
heBAPI

sint
heal
phabet
ical
order
5.Cl
i
ckonback
11)Whatar
ethest
epst
owor
kwi
thst
andar
dBAPI
?
Ans:
 Upl
oadt
hef
latf
il
edat
aint
oani
nter
nal
tabl
e
 Conv
ertt
hef
latf
il
edat
aint
oBAPIcompat
ibl
eWor
kar
ea’
s/i
nter
nal
tabl
eswi
thi
nthel
oopoft
hef
lat
f
il
eint
ernal
tabl
e.
 Cal
ltheBAPIf
unct
ionmodul
e&passt
heBAPIi
nter
nal
tabl
es.

12)Howt
ohandl
eexcept
ionsi
nRFCsandBAPI
s?

Ans:
-Youcanhandl
etheexcept
ionsbyusi
ngast
ruct
ureBAPI
E1RET2whi
chr
etur
nst
he messages
capt
uredi
nBAPI
.InTabl
espar
amet
erofy
ourBAPI
,youcancr
eat
east
ruct
ureas oft
ype
BAPI
E1RET2sot
haty
oucancapt
uret
he‘
RETURN’
par
amet
ersf
rom BAPI
.

13)Howt
ohandl
eer
rormessagesi
nst
andar
dBAPI

s?
Ans:
1.Getal
lthemessagedet
ail
sint
oawr
it
tent
abl
eoft
het
ypeBAPI
RETsuchasMessageI
D,Message
t
ype,
Messagev
ari
abl
eet
c.
2.Uset
hest
andar
dfunct
ionmodul
es,
 MESSAGE_
INI
TIALI
ZE(I
nit
ial
i
zemessages)
,
 MESSAGE_
STORE(
Tost
oremessages)&
 MESSAGES_
SHOW (
Todi
spl
aymessagesi
ntheDi
alogbox/
Model
dial
og)

14)Whati
sExt
endedBAPI
?
Ans:
 St
andar
dBAPI

scanbeext
endedt
oaddt
hecust
omerspeci
fi
caddi
ti
onal
fiel
d.
 St
andar
dBAPIcont
ainst
abl
e’
spar
amet
erEXTENSI
ONI
N,EXTENSI
ONOUTi
ncaset
heyar
e
ext
endedBAPI

s.
 BAPIext
ensi
oni
nisusedt
oupdat
ecust
om f
iel
dsofat
abl
e(ex:
MARA)
.
 BAPIext
ensi
onouti
susedt
oret
ri
evecust
om f
iel
dsofat
abl
e.

15)Whatar
ethedi
ff
erencesbet
weenBAPIandnor
mal
BDC?

BAPI BDC
BAPIi
sfast
ert
hanBDC. BDCi
srel
ati
vel
ysl
owert
hanBAPI
.

BAPI

sareusedtouploadt
hedat
afr
om t
hef
latf
il
eto BDC’
sareusedtouploadthedatafrom fi
l
et o
SAPsyst
em di
rect
ly. SAPsyst
em vi
ascreenshenceitisslower.
Nosuchpr
ocessi
ngopt
ionsar
eav
ail
abl
einBAPI
. Backgr
oundandForegroundpr
ocessi
ng
opti
onsar
eavai
labl
ef orBDC.

BAPIwoul
dgener
all
yusedf
orsmal
ldat
aupl
oads. BDCswouldbepr ef
err
edforl
argevolumesof
dat
auploadsincebackgr
oundprocessi
ng
opt
ioni
sav ai
l
able.

BAPInev ercausetoterminatetheprogr
am.Whenev er Er
rorscanbepr
ocessedi
nSM35f orsessi
on
aner r
oroccur redi
ntheBAPI,itret
urnst
hoseerror
s methodandint
hebatchi
nputpr
ogram forCal
l
throughRet urnpar
ameter.Thisparamet
erretur
ns Tr
ansacti
onmethod.
exceptionmessagesorsuccessmessagest othecall
i
ng
program.
InBAPIr ecordingi
snotrequir
ed I
nBDC,
recor
dingi
srequi
red
16)Whatar
eAut
hor
izat
ionObj
ect
s?

Ans:

 Thesear
eusedt
opr
otect
/pr
eventuseraccesst
othedat
a&T-
codes/
Tabl
es.

 Theaut
hor
izat
ionobj
ect
sar
emai
ntai
nedbyBASI
Sconsul
tant
s.

 TheT-
code:
SU24i
susedt
ofi
ndaut
hor
izat
ionobj
ect
sint
hesy
stem.

 TheABAPstatement‘
AUTHORITY_
CHECK’ort
hestandar
dFunct
ionModul
es

AUTHORITY_CHECK*…’ar
eusedtocheckt
heaut
hori
zati
ons.

17)Whati
sALE&EDI
?
 ALEst
andsf
orAppl
i
cat
ionLi
nkEnabl
i
ng.I
tisusedt
odi
str
ibut
ethedat
abet
weent
wodi
ff
erentSAP
sy
stems/
Ser
ver
s.
 EDIst
andsf
orEl
ect
roni
cDat
aInt
erchange.I
tisusedt
odi
str
ibut
ethedat
abet
weenSAP&non-
SAP
sy
stems/
ser
ver
s.
18)Whati
sanI
DOC?

Ans:
-
 I
DOCst
andsf
orI
nter
medi
ateDocument
.
 I
DOCi
sthecol
l
ect
ionofsegment
s&eachsegmenti
sthecol
l
ect
ionoff
iel
ds.
 I
DOCi
sthecar
ri
ert
ocar
ryt
hedat
abet
weent
hedi
str
ibut
edsy
stemsi
nel
ect
roni
cfor
m wi
thoutuser
i
nter
act
ion.
19)Whati
sanI
DOCSt
ruct
ure?
Ans:
-EachI
DOChas3r
ecor
ds
I
. Cont
rol
Recor
d:
 I
tcont
ainsI
DOCt
ype&Messaget
ypei
nfor
mat
ion,
Par
tneri
nfor
mat
ionsuchaspar
tnersy
stem
number
,Por
tnumberoft
hesender&r
ecei
versy
stem.
 I
tisal
socont
aint
echni
cal
&addr
essi
nfor
mat
ionofsender&r
eci
pient
s.

I
I. Dat
aRecor
d:
 Thesear
ecol
l
ect
ionofsegment
s.Thedat
arecor
dofanI
DOCcont
ainssegment
.

 Segmenti
scol
l
ect
ionoff
iel
dswhi
chcanbedi
str
ibut
edt
hedat
abet
weent
hesy
stems.

I
II
. St
atusr
ecor
d:
 I
tcont
ainst
hest
atusoft
hepr
ocessedI
DOCt
oknowwher
eanI
DOChasbeensuccessf
ul/
fai
l
ed.

 Thest
andar
dtabl
eEDI
DCcont
ainsanI
DOCi
nfor
mat
ionsuchascont
rol
recor
ds,
dif
fer
entst
atuses
et
c.

Not
e:

 TheSender
/Sour
cesy
stem i
sal
socal
l
edas‘
Out
boundsy
stem’
.

 TheRecei
ver
/Tar
getsy
stem i
sal
socal
l
edas‘
I
nboundsy
stem’
.

 TheT-
code‘
WE30’
isusedt
omai
ntai
ndi
ff
erentt
ypesofI
DOC’
ssuchasBasi
cIDOC,
Ext
endedI
DOC.

 TheT-
codesWE02/
WE05ar
eusedt
oli
stoutt
hegener
atedI
DOC’
s.

 TheT-
code‘
WE19’
isusedt
otest
/checkt
heI
DOC.

Cust
om Segment
s:

 Thecustom segment
sar
est
art
swi
thZ*
/Y*&t
heyar
emai
ntai
nedbyt
echni
cal
&funct
ional
consul
tant
s

St
andar
dSegment
:

 Thesear
esy
stem pr
ovi
dedsegment
s

 TheT-
code:
WE31i
susedt
omai
ntai
nthesegment
s

MessageTy
pes:
 Thesear
eident
if
ier
soft
heappl
i
cat
iondat
atobedi
str
ibut
edbet
weent
hesy
stems

 TheT-
codeWE81i
susedt
ocr
eat
e&WE82i
stoassi
gnt
hemessaget
ypest
otheI
DOC(
Dat
acar
ri
er)

 Thest
andar
dtabl
eEDI
DCcont
ainsal
lav
ail
abl
emessaget
ype

Sy
stem pr
ovi
dedst
andar
dmessaget
ypes?

MessageTy
pe Descr
ipt
ion

MATMAS Mat
eri
alMast
er

DEBMAS Cust
omerMast
er

CREMAS VendorMast
er

Par
tnerPr
ofi
l
es:

 Theseareusedtomaint
ainthepar
tnersy
st em det
ail
swit
hwhichdat
atobedi
str
ibut
edsuchas
part
nernumber,
Part
nertype&Messaget ypeofoutboundpar
ameter
s.

 TheT-
codeWE20i
susedt
omai
ntai
npar
tnerpr
ofi
l
es

Por
ts:

 Thesear
eusedt
ospeci
fyt
hewayi
nwhi
chdat
atobedi
str
ibut
edt
hroughanI
DOC

 Thesy
stem gener
atesoneuni
quepor
tnumber

 TheT-
codeWE21i
susedt
omai
ntai
npor
tsf
orI
DOCpr
ocess

Cust
omerDi
str
ibut
ionModel
:

 I
tisusedt
odefi
nedat
adi
str
ibut
ionmodel
toexchanget
hemessagesbet
weent
wol
ogi
cal
syst
ems
(
SAP–SAP/ SAP–nonSAP)

 TheT-
codeBD64i
susedt
odef
ine/
mai
ntai
ncust
omerdi
str
ibut
ionmodel

Pr
ocesscodes;

 I
tisusedt
oident
if
yty
peoft
hedat
atobedi
str
ibut
edt
hroughanI
DOCi
nter
face.

 TheT-
codeWE41/
WE42i
susedt
owor
kwi
tht
hepr
ocesscode

20)Whatar
etheTr
ansact
ionCodes/
Repor
tst
osend/
gener
ateandr
ecei
vet
hedat
atoI
DOCs?
T-
code Descr
ipt
ion

BD10 SendMat
eri
al

BD11 GetMat
eri
al

BD12 SendCust
omer

BD13 GetCust
omer

BD14 SendVendor
BD15 GetVendor

BD16 SendCostcent
er

BD17 GetCostcent
er

BD87 Repr
ocessI
DOC

21)Howt
ocheckt
heI
DOCs?
Ans:
-WE19i
stheT-
codet
ocheckt
heI
DOC’
s.
1.Execut
eWE02/
WE05
2.Pr
ovi
det
heMessaget
ype:
CREMAS(
Logi
cal
Sys)
,Par
tnerno:
LS810&Cl
i
ckonExecut
e
3.Af
terwegett
hest
atuscode03,
ifwewantt
oknowt
heI
DOCi
sreachedt
odest
inat
ionor
nott
henweexecut
eRBDMOI
NDst
andar
dpr
ogr
am.
4.Thest
atusofanI
DOC(
3)usei
nGr
eencol
or(
tur
n10t
o12)meansi
tisdel
i
ver
ed
Successf
ull
y.Yel
l
owt
raf
fi
cli
ghti
ndi
cat
es/
thest
atuscoder
emai
nssame,
IDOCi
sin
Pr
ogr
essori
ntheTr
ansact
ionRFC&Redt
raf
fi
cli
ght
/thest
atuscodet
urns10t
o11
i
ndi
cat
est
heEr
ror
/theI
DOCi
sdamaged.
5.Expandt
heDat
aRecor
dsf
older&cl
i
ckoneachsegmentt
oseet
hedat
atobedi
str
ibut
ed.

22)Whatar
etheTr
ansact
ionCodesassoci
atedwi
thALE,
IDOCs?
Ans:
-
T-
code Descr
ipt
ion

SALE Basi
cconf
igur
ati
onofALE/
IDOC

WE30 Mai
ntai
n(cr
eat
e&di
spl
ay)I
DOC’
s

WE31 Mai
ntai
n(cr
eat
e&di
spl
ay)Segment
s

WE20 Mai
ntai
npar
tnerpr
ofi
l
es

WE21 Mai
ntai
npor
tsi
nIDCOpr
ocessi
ng

WE41 Mai
ntai
npr
ocesscodes(
Out
boundsy
stem)

WE42 Mai
ntai
npr
ocesscodes(
Inboundsy
stem)

WE81 Mai
ntai
nLogi
cal
MessageTy
pes

WE82 Assi
gnmessaget
ypet
oIDOCt
ype

Mai
ntai
nout
putt
ype
NACE
 Mostoft
heT-
codeswhi
char
erel
atedt
oALE/
IDOCst
art
swi
thWE*&BD*
.
 TheT-
codeWE30i
susedt
ocr
eat
e&di
spl
ayt
hedi
ff
erentt
ypesofI
DOC’
ssuchasBasi
c
I
DOC&Ext
endedI
DOC.
 TheT-
CodeWE05/
WE02i
susedt
oli
stoutt
heI
DOC.
 TheT-
codeWE19i
susedt
ocheckt
heI
DOC.

23)Whati
stheTr
ansact
ionCodet
ocr
eat
e/mai
ntai
nthesegment
s?
Ans:
-TheT-
codeWE31i
susedt
ocr
eat
e&di
spl
ayt
hesegment
s.
24)Whati
stheTr
ansact
ionCodet
ocr
eat
eaCust
om I
DOC?
Ans:
-Cr
eat
eSegment(WE31)
CreateIdocType(WE30)
CreateMessageType(WE81)
AssignIdocTypetoMessageType(WE82)
25)WhatarethePart
nerprof
il
esandi
tsTransact
ionCodes?
Ans:
-Par
tnerpr
ofi
l
esar
emai
ntai
ned/
creat
edt
ospeci
fyt
hepar
tnerdet
ail
s(sy
stem)t
owhi
cht
he
dat
atobet
ransmi
tt
ed.TheT-
codeWE20i
susedt
ocr
eat
ethepar
tnerpr
ofi
l
e.
26)Whatar
etheMessageTy
pesandt
heTr
ansact
ionCode?
Ans:
-
 Themessaget
ypei
sthedat
aident
if
ierofanappl
i
cat
ion.
 Thecont
rol
recor
dofanI
DOCcont
ainst
heMessageTy
pe.
 TheT-
codeWE81i
susedt
oCr
eat
e&WE82i
stoassi
gnt
heMessageTy
pet
otheI
DOCS.
27)Howt
oaddSegment
stoanExi
sti
ngI
DOC?
Ans:
-
 Youcandot hatusingWE30andWE31. WE30y oucancreateext
ensiontot
heexisti
ngIdoct
ypeand
WE31y oucanaddt hef i
eldst
ot hesubsegment.Sofi
rstdevel
opthesegmentusingWE31.you
needt ocreatetheextensionfi
rst&thenaddittot
hesegmentwhi chevery
ouwantusingWE30wi t
h
extensionoption.
 Herey ouhavet ocreateenhancedidoctype.I
nwe31createthesegmenttypeasperyour
r
equi
rementandgot
owe30andcr
eat
eenhancedI
doct
ypebycopi
ngt
hest
andar
dIdoc.Af
tert
hat
y
ouwi
l
lsel
ectt
hesegmentunderwhi
chy
ouwantt
oaddt
henewsegmntandpr
esscr
eat
ebut
ton
ont
heappl
i
cat
iont
ool
barandgi
vet
hedet
ail
sofy
ournewsegmentandsav
eit
.

28)Whatar
etheadv
ant
agesofALE,
IDOCsandEDI
?
Ans:
-
 Thedat
aisdi
str
ibut
edbet
weent
hesy
stemsi
nel
ect
roni
cfor
m wi
thoutuseri
nter
act
ion.
 I
treducest
hedat
aer
ror
s,manpower&paperwor
k.
 I
tisusedt
odi
str
ibut
ethedat
abet
weenSAP&NONSAPsy
stems.
29)Howt
orepr
ocesser
rorI
DOC'
s?

Ans:
Wecanr
epr
ocesser
rorI
DOC'
s(st
atus51)usi
ngpr
ogr
am RBDAGAI
N.

30)Howt
orepr
ocessedi
tedI
DOC’
s?

Ans:
Wecanr
epr
ocessedi
tedI
DOC'
susi
ngpr
ogr
am RBDAGAI
E(Se38pr
ogr
am)
.
31)Howdoy
ougetout
putf
rom I
DOC?

Ans:Datai
nI DOCisst
oredi
nsegment
s;t
heout
putf
rom I
DOCi
sobt
ainedbyr
eadi
ngt
hedat
a st
oredi
n
i
tsrespect
ivesegment
s.

32)Howdowegener
ateI
DOCi
nSAP?

Ans:
Thef
unct
ionmodul
eMASTER_
IDOC_
DISTRI
BUTEi
susedt
ogener
atet
heI
DOCi
nthecust
om r
epor
t.

Q)Whatar
ethest
epsneedt
oset
upbef
orecr
eat
inganI
Doc?

a:
Communi
cat
ionSet
ti
ngs:

1)Cr
eat
eandAssi
ningLogi
cal
Syst
ems-
-SALE

2)Mai
ntai
nRFCdest
inat
ion-
-SM59

3)Mai
ntai
nTRFCPor
t--WE21

(Abov
econf
igur
ati
onr
equi
redi
rr
espect
iveofsendi
ngor

r
ecei
vi
nganI
DOC)
.

Mandat
oryOut
boundConf
igur
ati
on:

Mat
ainDi
sti
but
ionModel
--BD64

Mai
ntai
nPar
tnerPr
ofi
l
e--WE20

33)Requi
rement
:Al
lthest
udent
sdat
awi
l
lbecr
eat
edi
n800cl
i
entandsamewi
l
lbesendt
o810cl
i
ent
usi
ngIDOCS.

St
epst
obedonei
n800cl
i
ent

Logi
nto800cl
i
entanddof
oll
owi
ng.

1. Cr
eat
eat
abl
e(cl
i ):
entdependent SE11
2. Cr
eat
esegments:
WE31
3. Cr
eat
eIDOCtype:
WE30
4. Createmessaget
ype:
WE81
5. Assignmessaget
ypet
oIDOCt
ype:
WE82
6. Def
inel
ogi
calsy
stem :
SALE
7. Assi
gnl
ogi
calsy
stem t
ocl
ient
.
8. Cr
eat
eRFCdest
inat
ion:
SM59
9. Cr
eat t:WE21
epor
10.Checkpar
tnerpr
ofes:
i
l WE20
11.Cr
eat
eout
boundpr
ogr
am.
St
epst
obedonei
n810(
Tar
getSy
stem)cl
ient
.

1. Cr
eat
eat
abl
e(cl
ientdependent
).
2. Createsegment s.
3. CreateIDOCt ype.
4. Createmessaget ype.
5. Assignmessaget ypetoIDOCt ype.
6. Defi
nel ogicalsy st
em.
7. Assignlogi calsystem tocl
ient
.
8. Createinboundf uncti
onmodul eSE37.
9. Registerfunct i
onmodul echaracter
ist
ics.
10.Assignf unctionmodul etomessageandI DOCt
ype.
11.Createpr ocesscodeWE42.
12.Checkpar t
nerpr ofi
lesfori
nbound.

1.Cr
eat
eatabl
e(cli
entdependent
).–SE11:ZSTUDENTandcli
ckoncreat
e
2.Cr
eat
esegments.-WE31: prov
idesegmentasZSTUDENTandcl
ickoncreat
e

Got
ot-
codeWE31,
prov
ideassegmentZSTUDENTandcl
ickoncr
eat
e.

Justcl
ickent
eri
fyouf
indanyi
nfor
mat
ionmessageandaddf
iel
dsasbel
ow.
Sav
eiti
nal
ocalobj
ect
.

3.Cr
eat
eIDOCt
ype.Got
oWE30,
prov
idenameasZSTUDENTandcl
i
ckoncr
eat
e

Pr
ovi
dedescr
ipt
ionandpr
essent
er.
Sel
ectZSTUDENTandcl
ickoncr
eat
e.

Pr
ovi
deasegmentname(
whi
chwehav
ecr
eat
edi
nst
ep2)
,maxi
mum andmi
nimum number
sandent
er.

Sav
eiti
nal
ocalobj
ect
.

4.Cr
eat
emessaget
ype.Got
ot-
codeWE81andcl
i
ckonchangei
con.
Pr
ovi
demessaget
ypeasZSTUDENTanddescr
ipt
ion.

5.Assi
gnmessaget
ypet
oIDOCt
ype.Got
ot-
codeWE82,
cli
ckonchangeandcl
i
ckonnewent
ri
es.

Pr
ovi
demessaget
ype,
IDOCt
ypeandr
eleaseasbel
ow.

Sav
eiti
nat
ranspor
trequest
.

6.Def
inel
ogi
cal
syst
em.

Thi
sist
hemostconf
usi
ngst
epi
nALEconf
igur
ati
ons,
tryt
ounder
standcar
eful
l
y.

Whati
slogi
cal
syst
em?

'
Logicalsyst
em' i
susedt oi
denti
fyanindi
vi
dual cl
ienti
nasy st
em, f
orALEcommunicati
onbetween
SAPsy stems.That'
swhyy ouseeafiel
dfor‘l
ogicalsystem’ i
nthecli
entmast
erdat
ainSCC4(table
T000).Youuselogicalsyst
emsinALEconf i
gurati
on-t hisshouldbedocument
edfur
theri
ntheIMG
gui
de, orSALEtransact
ion.

Bef
orecr
eat
ingal
ogi
cal
syst
em pl
easef
oll
owsbel
owst
eps.

 I
nabli
ndwaylogi
calsy
stem assi
gnedi
ntargetsy
stem cl
i
ent(
inourexampl
e810cl
i
ent
)Shoul
dbe
i
nlogi
cal
syst
em def
ini
ti
oninsourcecl
i
ent.

St
ep1:
Got
otar
getsy
stem (I
nourexampl
e810cl
i
ent
).
(Getl
ogical
sy st
em f
rom t
-codeSALE->BasicSett
ings-
>Logi
cal
Syst
ems-
>assi
gnl
ogi
cal
syst
em t
o
cli
ent-
>810( doubl
ecli
ckandcopylogical
sy st
em)).

Step2:
Got oSALE.
Expandbasicset
ti
ngs-
>def
inel
ogi
cal
syst
em.

Checkforl
ogi
cal
syst
em exi
stence(
whi
chwegetf
rom 810cl
i
ent
)ifi
tist
her
e,noneedt
oadd,
ifi
tisnot
ther
eaddit
.

7.Assi
gnl
ogi
cal
syst
em t
ocl
i
ent
.Fornowski
pthi
s.
8.Cr
eat
eRFCdest
inat
ion.

Got
oT-
codeSM59,
sel
ectABAPconnect
ionsandcl
ickoncr
eat
e.

Pr
ovi
deRFCdest
inat
ion,
descr
ipt
ion,
host
nameandsy
stem number
.

Cl
ickonl
ogonandsecur
it
ytab,
prov
idecl
ient
,username,
passwor
dandsav
e.
Cl
ickonconnect
iont
estt
otestconnect
ion.

Cl
ickonr
emot
elogont
ologont
oremot
ecl
ient(
youwi
llgot
o810cl
ient
).
St
ep9:
Creat
ePORTi
nWE21.

Got
ot-
codeWE21,
sel
ectt
ransact
ionalRFCandcl
ickoncr
eat
e.

Sel
ectgener
atepor
tnameandent
er.

Pr
ovi
deRFCdest
inat
ion,
whi
chwecr
eat
edi
nst
ep8.
Sav
e.
10.Checkpar
tnerpr
ofi
l
esi
nWE20.

GotoWE20,expandpar
tnert
ypelogi
calsystem andsearchforlogi
calsystem (
Getlogi
calsyst
em f
rom
t
-codeSALE-
>BasicSet
ti
ngs->Logi
calSystems- >assi
gnlogicalsy
stem tocli
ent-
>810( doubl
ecl
ick
andcopyl
ogi
calsy
stem)
).

I
flogi
calsy
stem i
sal
readyav
ail
abl
einpar
tnerpr
ofi
lesi
nWE20,
wedon`
tneedt
ocr
eat
epar
tnerpr
ofi
le
agai
ninst
eadwewi l
laddmessaget y
peatoutboundpar
amet
erslev
el.I
nmycase,
logi
calsy
stem i
s
al
readyavai
labl
einpar
tnerpr
ofi
lessoIwi
lladdZSTUDENTmessagetypet
oit
.Toaddmessagetype,
sel
ectl
ogi
calsy
stem,
cli
ckonaddi
con(
seebel
owi
mage)
.
Prov
idemessagetype,
recei
verpor
t(whi
chwehav
ecr
eat
edi
nst
ep9)
,sel
ectt
ransf
erI
DOCi
mmedi
atel
y,
basi
ctypeandsav
e.

I
flogi
calsy
stem i
snotav
ail
abl
einpar
tnerpr
ofi
lei
nWE20,
sel
ectpar
tnert
ypel
ogi
calsy
stem andcl
ick
oncr
eat
e.

Pr
ovi
depar
tnernoasT90CLNT810(
Getl
ogi
calsy
stem f
rom t
-codeSALE-
>Basi
cSet
ti
ngs-
>Logi
cal
Sy
stems-
>assi
gnl
ogi
calsy
stem t
ocl
ient-
>810(
doubl
ecl
ickandcopyl
ogi
calsy
stem)
.Sav
eandadd
messaget
ypeatoutboundpar
tnerl
evel
.
St
epst
obedonei
n810(
Tar
getSy
stem)cl
i
ent
s.
Cont
inue1t
o7st
epsassameas800cl
ient
.

1.Createatable(clientdependent)
.
2.Createsegment s.
3.CreateIDOCtype.
4.Createmessaget ype.
5.Assignmessaget y petoI
DOCt ype.
6.Defi
nelogicalsyst em.
7.Assignlogi
calsy stem tocl
ient.
8.Createi
nboundf unctionmoduleSE37.

Ev
eryi
nboundI
DOCwi
llhav
epr
ocesscode,
ever
ypr
ocesscodei
sassoci
atedwi
thai
nboundpr
ocessex:
Funct
ionModul
eorWor
kFl
owTask.

Fol
lowbel
owst
epst
ocr
eat
einboundf
unct
ionmodul
e.

1. Creat
eafuncti
ongr
oupinSE80.
2. CopyFunct
ionmodul
eIDOC_I
NPUT_
MATMAS01.
3. Addy
ourowncode.

St
ep1:Got
oSE80,
sel
ectf
unct
iongr
oup,
prov
ideanameZSTUDENT_
IDOC,
ent
er.

Sav
eandact
ivat
efunct
iongr
oup.

St
ep2:Got
oSE37,prov
idef
unct
ionmodul
enameasI
DOC_
INPUT_
MATMAS01,
cli
ckoncopy
,pr
ovi
def
unct
ion
modul
enameasfuncti
ongr
oupandenter
.
Step3:
Addyourowncodeinfuncti
onmodule.Got
oSe37,pr
ovi
denameasZSAPN_
IDOC_
INPUT_
STUDENT,
andcli
ckonchange.Removeallcodeandaddbel
owcode.

FUNCTI
ONZSAPN_
IDOC_
INPUT_
STUDENT.
*
"--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
*
"*"
LocalI
nter
face:
*
"IMPORTI
NG
*
" VALUE(
INPUT_
METHOD)LI
KEBDWFAP_
PAR-
INPUTMETHD
*
" VALUE(
MASS_
PROCESSI
NG)LI
KEBDWFAP_
PAR-
MASS_
PROC
*
" VALUE(
NO_
APPLI
CATI
ON_
LOG)LI
KESY-
DATAROPTI
ONAL
*
" VALUE(
MASSSAVEI
NFOS)LI
KEMASSSAVI
NFSTRUCTUREMASSSAVI
NF
*
" OPTI
ONAL
*
" VALUE(
KZ_
TEST)LI
KEMDAT1-
KZ_
TESTDEFAULTSPACE
*
" VALUE(
ONLY_
MAPPI
NG)LI
KEMDAT1-
KZ_
TESTDEFAULTSPACE
*
"EXPORTI
NG
*
" VALUE(
WORKFLOW_
RESULT)LI
KEBDWF_
PARAM-
RESULT
*
" VALUE(
APPLI
CATI
ON_
VARI
ABLE)LI
KEBDWF_
PARAM-
APPL_
VAR
*
" VALUE(
IN_
UPDATE_
TASK)LI
KEBDWFAP_
PAR-
UPDATETASK
*
" VALUE(
CALL_
TRANSACTI
ON_
DONE)LI
KEBDWFAP_
PAR-
CALLTRANS
*
"TABLES
*
" I
DOC_
CONTRLSTRUCTUREEDI
DC
*
" I
DOC_
DATASTRUCTUREEDI
DD
*
" I
DOC_
STATUSSTRUCTUREBDI
DOCSTAT
*
" RETURN_
VARI
ABLESSTRUCTUREBDWFRETVAR
*
" SERI
ALI
ZATI
ON_
INFOSTRUCTUREBDI
_SER
*
"EXCEPTI
ONS
*
" WRONG_
FUNCTI
ON_
CALLED
*
"--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
SORTI
DOC_
DATABYDOCNUM.
SORTI
DOC_
CONTRLBYDOCNUM.
DATA:T_
EDI
DD TYPESTANDARDTABLEOFEDI
DD, "
Dat
aRecor
d
T_
EDI
DC TYPESTANDARDTABLEOFEDI
DC, "
Cont
rolRecor
d
T_
EDI
DS TYPESTANDARDTABLEOFBDI
DOCSTAT. "
Stat
usRecor
d
*
---
--
--
--
-*Gl
obalWor
kAr
eaDecl
arat
ions*
---
--
--
--
--
--
--
--
--
--
--
-*
DATA:W_
EDI
DC LI
KEEDI
DC,
W_
EDI
DD TYPEEDI
DD,
W_
EDI
DS TYPEBDI
DOCSTAT.
DATA:W_
IDOC_
DATATYPEEDI
DD.
DATA:L_
INDXTYPESYTABI
X.
DATA:I
T_STUDENTTYPETABLEOFZSTUDENT.
DATA:WA_
STUDENTTYPEZSTUDENT.
DATA:ERROR_
MESSAGETYPESTRI
NG.
DATA:T_
STUDENTSTYPETABLEOFZSTUDENTS.
DATA:W_
STUDENTSTYPEZSTUDENTS.
DATA:ERROR_
FLGTYPECHAR1.
*Got
hroughal
lIDocs
LOOPATI
DOC_
CONTRL.
CLEARW_
EDI
DC.
W_
EDI
DC=I
DOC_
CONTRL.
READTABLEI
DOC_
DATAI
NTOW_
IDOC_
DATAWI
THKEYDOCNUM =I
DOC_
CONTRL-
DOCNUM BI
NARYSEARCH.
I
FSY-
SUBRC=0.
L_
INDX=SY-
TABI
X.
LOOPATI
DOC_
DATAFROM L_
INDX.
I
FIDOC_
DATA-
DOCNUM =I
DOC_
CONTRL-
DOCNUM.
APPENDI
DOC_
DATATOT_
EDI
DD.
CLEARI
DOC_
DATA.
ELSE.
RETURN.
ENDI
F.
ENDLOOP.
ELSE.
CONTI
NUE.
ENDI
F.
SORTT_
EDI
DD.

CLEARW_
EDI
DD.
LOOPATT_
EDI
DDI
NTOW_
EDI
DD.
I
FW_
EDI
DD-
SEGNAM ='
ZSTUDENT'
.
CLEARWA_
STUDENT.
WA_
STUDENT=W_
EDI
DD-
SDATA.
I
FWA_
STUDENTI
SNOTI
NITI
AL.
APPENDWA_
STUDENTTOI
T_STUDENT.
ENDI
F.
CONTI
NUE.
ENDI
F.
ENDLOOP.
I
FIT_
STUDENTI
SNOTI
NITI
AL."
ifdat
aist
her
einsegement
LOOPAT I
T_STUDENTI
NTOWA_
STUDENT.
MOVE-
CORRESPONDI
NGWA_
STUDENTTOW_
STUDENTS.
MODI
FYZSTUDENTSFROM W_
STUDENTS."
updat
edat
abaset
abl
e
I
FSY-
SUBRC<>0.
ERROR_
FLG='
X'.
ERROR_
MESSAGE='
Err
oroccur
edi
nupdat
ingZSTUDENTt
abl
e'
.
ENDI
F.
ENDLOOP.
ENDI
F.
I
FERROR_
FLG='
X'."
adder
rorst
atust
oIDOC
I
DOC_
STATUS-
STATUS='
51'
.
I
DOC_
STATUS-
DOCNUM =W_
EDI
DC-
DOCNUM.
I
DOC_
STATUS-
MSGTY ='
E'
.
I
DOC_
STATUS-
MSGI
D ='
00'
.
I
DOC_
STATUS-
MSGNO ='
398'
.
I
DOC_
STATUS-
MSGV1=ERROR_
MESSAGE+0(
25)
."t
_ret
urn_
ecm-
message
I
DOC_
STATUS-
MSGV2=ERROR_
MESSAGE+25(
25)
.
I
DOC_
STATUS-
MSGV3=ERROR_
MESSAGE+50(
25)
.
I
DOC_
STATUS-
MSGV4=ERROR_
MESSAGE+75(
25)
.
CLEARERROR_
MESSAGE.
APPENDI
DOC_
STATUSTO I
DOC_
STATUS.
CLEARI
DOC_
STATUS .
el
se."
addsuccessst
atust
oIDOC
I
DOC_
STATUS-
STATUS='
53'
.
I
DOC_
STATUS-
DOCNUM =W_
EDI
DC-
DOCNUM.
APPENDI
DOC_
STATUSTO I
DOC_
STATUS.
CLEARI
DOC_
STATUS .
ENDI
F.
ENDLOOP.
ENDFUNCTI
ON.

Sav
eandact
ivat
e.

9.Regi
sterf
unct
ionmodul
echar
act
eri
sti
cs.

Got
oBD51,
cli
ckonchangeandcl
i
ckonnewent
ri
es.

IMPNote: I
fyoudon`tf
indchangeiconori
fyoufi
ndamessagelikeââ‚
¬ËœYouar
enotal
lowedt
o
crosscl
ientcust
omizat
ionââ‚
¬â„¢logonto800cli
entanddot
hisstep.

Addanent
ryasbel
ow.

Sav
eiti
nat
ranspor
trequest
.

10.Assi
gnf
unct
ionmodul
etomessageandI
DOCt
ype.

Got
oWE57,
cli
ckonchangeandnewent
ri
es.

IMPNote: I
fyoudon`tf
indchangeiconori
fyoufi
ndamessagelikeââ‚
¬ËœYouar
enotal
lowedt
o
crosscl
ientcust
omizat
ionââ‚
¬â„¢logonto800cli
entanddot
hisstep.
Sav
eiti
nat
ranspor
trequest
.

11.Cr
eat
epr
ocesscodeWE42.

Got
oWE42,
cli
ckonchangeandcl
i
ckonnewent
ri
es.

Pr
ovi
deapr
ocesscode,
descr
ipt
ions.

Cl
ickSav
e,cr
eat
eat
ranspor
trequest
.Sel
ectf
unct
ionmodul
efr
om dr
opdownandsav
eiti
ntr
anspor
t
r
equest
.
12.Checkpar
tnerpr
ofi
l
esf
ori
nbound.

GotoWE20, expandlogicalsystem andselectl


ogicalsystem(Getlogi
calsystem f
rom t-
code
SALE->BasicSett
ings->LogicalSystems->assignlogicalsyst
em toclient-
>800( doubl
ecli
ckand
copyl
ogicalsyst
em) )
.&Cl i
ckonaddi conunderinboundpar ameters.

Addent
ri
esasbel
ow.
Sav
e.

Test
ingt
hedev
elopment
1. Createentri
esinZSTUDENTSt ablein800cl
ient.
2. Createoutboundprogram.
3. Executetheprogram andsendstudentsf
rom 800to810cl
i
ent
s.

Cr
eat
eent
ri
esi
n800cl
ient
.
Got
oSE11,
prov
idenameasZSTUDENTSandcl
ickondi
spl
ay.

Got
out
il
it
ies-
>tabl
eent
ri
es-
>cr
eat
eent
ri
es.
Si
mil
arl
yaddsomemor
eent
ri
es.
Got
oSE38,
creat
eapr
ogr
am t
osendst
udent
sto810cl
ient
.

Cr
eat
eapr
ogr
am wi
thnameZSAPN_
SEND_
STUDENTSandaddbel
owcode.

REPORT ZSEND_
STUDENTS.

DATA:ZSTUDENTSTYPETABLEOFZSTUDENTS.
DATA:WA_
STUDENTSTYPEZSTUDENTS.

TYPES:BEGI
NOFTY_
ZSTUDENT."
STRUCTUREFORSEGMENTDATA
I
NCLUDESTRUCTUREZSTUDENT.
TYPES:ENDOFTY_
ZSTUDENT.
DATA:ZSTUDENTTYPETY_
ZSTUDENT.
DATA:BEGI
NOFT_
EDI
DDOCCURS0.
I
NCLUDESTRUCTUREEDI
DD.
DATA:ENDOFT_
EDI
DD.

DATA:BEGI
NOFF_
EDI
DC.
I
NCLUDESTRUCTUREEDI
DC.
DATA:ENDOFF_
EDI
DC.

DATA:BEGI
NOFT_
EDI
DCOCCURS0.
I
NCLUDESTRUCTUREEDI
DC.
DATA:ENDOFT_
EDI
DC.
SELECT-
OPTI
ONS:S_
STDFORWA_
STUDENTS-
STUDENT_
ID.

START-
OF-
SELECTI
ON.
SELECT*FROM ZSTUDENTSI
NTOTABLEZSTUDENTSWHERESTUDENT_
IDI
NS_
STD.
LOOPATZSTUDENTSI
NTOWA_
STUDENTS."
sendst
udent
sonebyone
MOVE-
CORRESPONDI
NGWA_
STUDENTSTOZSTUDENT.
CLEART_
EDI
DD.
T_
EDI
DD-
SEGNAM ='
ZSTUDENT'
."segmentname
T_
EDI
DD-
SDATA =ZSTUDENT."
IDOCdat
arecor
d
APPENDT_
EDI
DD.
*Fi
llcont
rolr
ecor
d
CLEARF_
EDI
DC.
F_
EDI
DC-
MESTYP='
ZSTUDENT'
. "
Messaget
ype
F_
EDI
DC-
DOCTYP='
ZSTUDENT'
. "
IDOCt
ype
F_
EDI
DC-
RCVPRT='
LS'
. "
Par
tnert
ype
F_
EDI
DC-
RCVPRN='
T90CLNT810'
. "
Recei
verpar
tner
CALLFUNCTI
ON'
MASTER_
IDOC_
DISTRI
BUTE'
EXPORTI
NG
MASTER_
IDOC_
CONTROL =F_
EDI
DC "
>>>>>
TABLES
COMMUNI
CATI
ON_
IDOC_
CONTROL =T_
EDI
DC "
<<<<<
MASTER_
IDOC_
DATA =T_
EDI
DD "
>>>>>
EXCEPTI
ONS
ERROR_
IN_
IDOC_
CONTROL =1
ERROR_
WRI
TING_
IDOC_
STATUS =2
ERROR_
IN_
IDOC_
DATA =3
SENDI
NG_
LOGI
CAL_
SYSTEM_
UNKNOWN=4
OTHERS =5.
COMMI
TWORK.
CLEAR:WA_
STUDENTS,
ZSTUDENT.
REFRESH:T_
EDI
DD.
ENDLOOP.

Execut
etheabov
epr
ogr
am andpr
ovi
dest
udent
sidst
osend.

Nowgot
oWE09andcheckst
atusi
n800cl
ient
.

Got
o810cl
ientandcheckt
abl
eZSTUDENTSf
orent
ri
es(
ent
ri
esshoul
dbecr
eat
ed)
.
PROJECT

PROJECT
1)Whati
sSy
stem Landscape?

Ans:
Landscapei
sanar
rangementofser
ver
s.

a)Dev
elopmentsy
stem:
Iti
sanenv
ironmentwher
eal
lthedev
elopment
s,conf
igur
ati
ons&

Changesar
edone.Thi
ssy
stem cont
ainsatl
east2cl
i
ent
s&anopt
ional
sandboxcl
i
ent
.
 Dev
elopmentcli
ent:
Iti
susedtodev
elopt
heobj
ect
s,changet
heexi
sti
ngobj
ect
s&
mai
ntainconf
igur
ati
onchanges.

 Uni
ttestcl
i
ent
:Iti
susedt
oper
for
m uni
ttestf
orpr
epar
ingUni
tTestDocument
.

Sandboxsyst
em: Iti
sanenvir
onmentt odevel
optheobject
s,makethechanges&mai nt
ain
confi
gurat
ionsati
nit
ialst
agesoftheproj
ects.All
theconsul
tantsar
eauthor
izedforanyt
ransacti
oncode
i
nt hi
ssystem.Thi
ssy st
em isanopti
onalsy
st em.

b)Qual
i
tysy
stem:
Iti
sanenv
ironmentwher
eal
lthedev
elopment
s,conf
igur
ati
ons&changes

ar
etest
edwi
thoutanyer
ror
sbyt
hef
unct
ional
,techni
cal
consul
tant
s&enduser
s.

c) Pr
oduct
ionsy
stem:
Iti
sanenv
ironmentwher
eal
ltheenduseswor
k.I
tist
hel
i
vesy
stem

Wher
eal
ltheor
igi
nal
dat
aismai
ntai
ned.Thi
ssy
stem cont
ainsasi
ngl
ecl
i
ent
.

2)Whati
sPackage&Tr
anspor
tabl
eObj
ect
s?

 Package:I
tisacol
l
ectionoft
ranspor
tabl
eobj
ect
s.Thepackagei
susedt
osav
eal
l
thetr
ansport
abl
eobjects.

 Transport
ableObjects:
Theymustbesav edundertherequir
edpackage.Thesy stem gener
ates
theuniqueTransportRequestnumberwhil
esavi
ngt heobjectsunderthepackage.The
transpor
tabl
eobjectscanber el
easedf
rom onesystem t
oanot hersystem.

3)Expl
ainaboutCor
rect
ionandTr
anspor
tat
ionSy
stem (
CTS)orTr
anspor
tOr
gani
zer
?

Ans:
-Thi
stool
isusedt
orecor
dthechangesmadei
nthesy
stem.
 I
tisal
sousedt
orel
easet
heTr
anspor
tRequest(
TR)f
rom onesy
stem t
oanot
her
sy
stem (
Dev-
--
>Qual
i
ty-
--
->Pr
oduct
ion)
.
 Whent
hechanger
equesti
scr
eat
edei
thermanual
l
yoraut
omat
ical
l
ythesy
stem
assi
gnsanumbert
oitaut
omat
ical
l
yandt
hisnumberi
sknownaschanger
equest
number
.Thechanger
equestr
ecor
dsal
lmodi
fi
cat
ionsmadet
odev
elopmentobj
ect
.
Whent
hechangeshav
ebeenmadeandt
hechanget
askshav
ebeenr
eleased,
the
changer
equestcanber
eleased
 TheT-
CodesSE01/
SE09/
SE10i
susedt
owor
kwi
tht
hist
ool
(CTS)
.
Not
e:TheT-
codeSE03i
susedt
ofi
ndTRofobj
ect
s

TheT-
codeSTMSi
susedt
oImpor
tTR’
s

 Thisdocumentati
onprov
idesyouwi
thanov er
viewofhowt omanagechangeswi ththeCTSand
essenti
alinf
ormati
ononsett
ingupyoursy
stem andcl
ientlandscapeanddeci
dingonat r
anspor
t
str
ategy.Readandfol
l
owt hi
sdocumentat
ionwhenplanningyourdevel
opmentproject
.

4)Whatar
ethedi
ff
erencesbet
weenSE01,
SE09andSE10?

Ans: SE01-Cor
rect
ion&Tr
anspor
tOr
gani
zer

SE09-Wor
kbenchOr
gani
zer

SE10-Cust
omi
zi
ngOr
gani
zer
5)Howt
oimpor
ttheCl
i
entdependent
/Scr
iptchanges/
Tabl
eent
ri
esi
ntot
heUni
tTestsy
stem?
Ans:
-Usi
ngt
heSCC1i
nthet
estcl
i
ent(
220)
 Ent
ert
heTRno
 Thesour
cecl
i
entno(
200)i
sappear
edbydef
aul
t
 Checkt
hecheckboxI
ncl
udi
ngRequestSubTasks
 Cl
i
ckonSt
artI
mmedi
atel
ybut
ton&pr
essEnt
erbut
ton.
6)Whatar
ety
pesofTr
anspor
tRequest
s(TR)andExpl
ainaboutt
hem?

Ans:
Transpor
trequest
:-I
tisauni
quer
equestnumbergener
atedbyt
hesy
stem whi
l
esav
ingt
he
obj
ectundert
hepackagename.TheTR’
sar
egener
atedi
ndev
elopmentcl
i
entonl
y&r
elease t
hem f
rom
dev
elopmentcl
i
ent
.TheTRnoi
sst
art
swi
thdev
elopmentsy
stem i
dfol
l
owedby K-
ser
ies.Ex:
<R3d>k9<*
***
>
TheTr
anspor
trequest
sof4t
ypes.
 Cust
omi
zi
ngRequest
s:Thesear
eusedt
orecor
d&r
eleaset
heconf
igur
ati
onchangesi
nthe
sy
stem.
 Wor
kbenchr
equest
s:Theyar
eusedt
orecor
dthechanges/
wor
kbenchobj
ect
ssuchasDDI
C
obj
ect
s(Tabl
es,
Str
uct
ures,
Transact
ioncodes)
,Pr
ogr
ams,
Funct
ionmodul
eset
c&r
elease
t
hem f
rom onesy
stem t
oot
her
.
 Tr
anspor
tofCopi
es:
Theyar
ecr
eat
edt
otr
anspor
ttheconf
igur
ati
ons,
dev
elopment
s&changes
f
rom onesy
stem i
ntoanot
hersy
stem.
 Rel
ocat
ions:
Theyar
eusedt
ochanget
heobj
ect
sfr
om onepackaget
oanot
herpackage.
7)Howt
ogener
ateTr
anspor
tRequest(
TR)
?

Ans:

 Ent
ert
hepackagenameatt
het
imeofsav
ingwi
thobj
ect
sEx:
ZDEV/
ZSD/
ZMM…

 Cl
i
ckonsav
eicon

 Cl
i
ckoncr
eat
erequesti
con

 Ent
ershor
tdescr
ipt
ionaspert
hepr
ojectst
andar
dsEx:
<CR547895–Sal
esRepor
t>

 Cl
i
ckonsav
eicon&cl
i
ckony
esbut
ton

8)Howt
ochangeshor
tdescr
ipt
ionofTR?

Ans:
Oncet
het
ranspor
trequest
sar
edi
spl
ayedi
ntr
anspor
tor
gani
zer
,

 Doubl
ecl
i
ckont
her
equi
redTR-
>cl
i
ckonpr
oper
ti
est
ab

 Cl
i
ckondi
spl
ay/
change

 Changeshor
tdescr
ipt
ionaspert
hepr
ojectst
andar
ds-
>cl
i
ckonsav
e&back

9)Howt
orel
easeTr
anspor
tRequest
?

Ans:

 Execut
etheT-
code:
SE09/
SE10/
SE01.
 Checkal
lthecheckboxes

o Cust
omi
zi
ngr
equest
s

o Wor
kbenchr
equest
s

o Modi
fi
abl
e

o Rel
eased

 Cl
i
ckondi
spl
aybut
ton.

 Expandt
her
equi
redTRnoundermodi
fi
abl
est
atus.

 Pl
acey
ourcur
soront
het
asknumber
.

 Cl
i
ckonr
eleasedi
rect
lyorF9.

Not
e:

 Theobj
ect
sundert
heTRmustbeact
ivat
edbef
oret
het
ranspor
trequest
sar
erel
eased.

 Thet
ickmar
ksar
eappear
edbesi
det
het
asknumber
soncet
heyar
erel
eased.

 Pl
aceacur
soront
heTRnumberaf
teral
lthecor
respondi
ngt
asksar
erel
eases.

10)Howt
odel
eteTr
anspor
tRequest
/Obj
ectf
rom TR?

Ans:

 Execut
etheT-
codeSE09/
SE10/
SE01

 Cl
i
ckondi
spl
aybut
ton.

 Expandt
her
equi
redTRundermodi
fi
abl
est
atus

 Expandthecor
respondingtasknumber-
>ri
ghtcl
i
ckonobj
ectname-
>cl
i
ckondel
ete-
>cl
i
ckony
es
butt
on->cli
ckony esbutt
on.

Not
e:Fol
l
owt
hesi
mil
arst
epst
oremov
eanynumberofobj
ect
sfr
om t
het
ask/
TR.

 Pl
acet
hecur
soront
het
asknumberaf
teral
lthecor
respondi
ngobj
ect
sar
edel
eted.

 Cl
i
ckondel
ete&cl
i
ckony
esbut
ton

 Pl
acet
hecur
soronTRaf
teral
lthecor
respondi
ngt
asksar
edel
eted

 Cl
i
ckondel
etei
con-
>cl
i
ckony
esbut
ton.

11)Howt
ochangepackagenameofanobj
ect
?

 Execut
ether
equi
redT-
code:
SE38,
SE11Et
c

 Cl
i
ckon‘
Got
o’f
rom menu

 Cl
i
ckon‘
obj
ectdi
rect
oryent
ry’

 Cl
i
ckondi
spl
ay/
changei
con

 Changet
hepackagenumberEx:
$TMP-
>ZPACK

 Cr
eat
etheTRbypr
essi
ngcr
eat
erequest
 Cl
i
ckont
ick(
yes)

12)Whati
sTechni
cal
Speci
fi
cat
ion(
TS)
?

Ans:Iti
sadocumentpr eparedbyt echnicalconsult
ant(abaper
).
Thiscont
ainsal
lthetechni
caldetail
ssuch
asthetechni
calsoluti
onf ortherequirement .Thedetai
l
edTScont ai
nsall
thedetail
ssuchasst art
ingfr
om
desi
gningtheselecti
onscr een,declar
ations,allt
hefuncti
onmodulesused&t heprocessi
nglogictomeet
thecustomerrequir
ement s,unitt
estcaseset c.

14)Whati
saFunct
ional
Speci
fi
cat
ion?

Ans: Funct
ional
Specifi
cati
onistheoffi
cial
documentf oradevel
operwhichdescr i
best
hefeatur
esand
designofexpectedfuncti
onal
it
y;itcont
ainsthetechni
calexpect
ati
onsandr equir
eddataf
orthedesi
gnand
development.TheFSisalsocall
edasGAP.Thi scanbepreparedonlyaft
erdiscussi
ngwit
htheendusers&
under st
andthei
rrequi
rements&documentt heEndusers/cl
ient
srequir
ement .

15)Howdoy
ougetf
unct
ional
specswheny
ouar
eassi
gnedsomeobj
ect
?

Ans:
Gener
all
yFuncti
onal
Specif
icati
onswi
l
lbesendi
ngt
hroughemai
l
s(I
nsuppor
tpr
ocess,
theymaycome
i
naspeci
fi
ctooll
ike:
Remedy,Radix)
.

19)Howdoy
our
ecei
veFunct
ional
Speci
fi
cat
ions?

Ans:I
ngener
alafuncti
onalspeci
fi
cat
ionwi
llbesentt
oaconsul
tantt
hroughor
gani
zat
ionalemai
lli
ke:
Outl
ook,
IBM Lot
usetc.

Funsct
ionsOfFunct
ional
Speci
fi
cat
ions:

 Requi
rement
.
 Desi
gnSummar
y.
 Desi
redFunct
ional
i
ty.
 Fi
nishedpr
oduct
.
 TestCases.

Funct
ional
Specif
icat
ionf
ormat
/cont
ent
smaydi
ff
erf
rom companyt
ocompany
,ev
erycompanyf
oll
owt
hei
r
ownformatti
ngstyl
e.

16)Whopr
epar
esFunct
ional
Speci
fi
cat
ions?

Ans:Asperst
andar
dOrganizati
onalst
ructur
e,f
uncti
onal
consul
tant
swil
lpr
epar
efuncti
onalspecif
icati
ons,
i
nsomecasesTechno-Functi
onalconsul
tantswi
ll
prepar
ethem.(I
nsomecompaniesSeni
or-Technical
Consul
tant
smayprepare)
.

17)Whati
sthenextst
epaf
terFunct
ional
Speci
fi
cat
ions?

Ans:OnceFunct
ionalSpeci
fi
cati
onisprepar
ed,
thedocumentwi l
lbesentforappr
ovaltofuncti
onalheador
proj
ectmanager
,onceapproved,i
twil
lsendtotechni
cal
lead.Thetechni
call
eadwill
distr
ibutethe
Functi
onal
Speci
ficat
iontoanydevel
oper.
13)Rol
es&r
esponsi
bil
i
tiesf
orI
mpl
ement
ati
on&Suppor
tpr
oject
?

Ans:
Impl
ement
ati
onPr
ocess:

 Get
ti
ngt
hebusi
nessRequi
rementdocumentf
rom f
unct
ional
consul
tant/f
unct
ional
anal
yst
.

 Anal
yzet
hef
unct
ional
speci
fi
cat
ion.
 Gi
vepr
operest
imat
ionst
ocompl
etet
heobj
ect
s/dev
elopment
s.

 I
nter
actwi
thaf
unct
ional
consul
tant
/onsi
tecoor
dinat
orf
orcl
ari
fi
cat
ionst
ogett
her
equi
rement
f
inal
i
zed.

 Pr
epar
eTechni
cal
Speci
fi
cat
ions/
Techni
cal
Desi
gns.

 Dev
elopt
heobj
ect
saspert
hepr
ojectpr
ogr
ammi
ngst
andar
ds.

 Per
for
m sel
ftest&pr
epar
eUTD(
Uni
tTestDocument
s).

 Per
for
m coder
evi
ews/
peercheck&per
for
mancet
uni
ng.

 Rel
easi
ngt
heobj
ectt
otest
ingenv
ironment

Suppor
tPr
ocess:

• Recei
vi
ngt
het
icket
s/i
ssuesf
rom t
hebusi
ness.

• Anal
yzi
ngt
het
icket
.

• Resol
vi
ngt
hei
ssuei
nti
me.

 Submi
tt
ingt
hecodef
orr
evi
ew&t
est
ingt
heobj
ect
sinUni
ttestcl
i
ent
.

 Pr
epar
etheUTD(
Uni
tTestDocument
).

 Deli
veri
ngt
heobj
ect
swi
thi
nthet
ime&suppor
ttheobj
ect
sti
l
lget
ti
ngt
heUAT(
UserAccept
ance
Test)
.

 Dev
elopert
est
ingandt
ranspor
ti
ng.

18)Whatar
etheper
for
mancet
ipsdoy
ouf
oll
owwhi
l
edev
elopi
nganobj
ect
?(Or
)

Whatar
etheper
for
mancet
ipsdoy
ouf
oll
owt
oimpr
ovet
heper
for
mancei
nthegi
venpr
ogr
am?
Ans:
1)Don'
tuseSel
ect-Endsel
ectl
oop(
Nor
mal
sear
ch)si
ncei
thi
tst
hedat
abasef
oreachr
ecor
d &
UseI
NTOt
abl
est
atement(
Poi
ntersear
ch)t
oext
ractal
lther
equi
reddat
aint
oan i
nter
nal
tabi
n
si
ngl
est
ep.
2)Don’
tuseSel
ect*whi
l
eext
ract
ingdat
asi
ncei
text
ract
sal
lfi
eldsi
ncl
udi
ngunwant
edf
iel
ds
&UseSel
ectf
oll
owedbyt
her
equi
redf
iel
dsi
nthesi
mil
aror
deroft
hedat
abaset
abl
es.
3)Thei
nter
nal
Tabl
emustbemustsor
tedbef
oreusi
ngcont
rol
breakst
atement
s.
4)Thei
nter
nal
Tabl
emustbesor
tedbef
oreusi
ngbi
nar
ysear
chaddi
ti
onwi
thREADt
abl
e
st
atementf
orf
ast
eraccess.
5)Thei
nter
nal
Tabl
emustbeSORTEDbef
oreusi
ngDELETEADJUSCENTDUPLI
CATES
st
atement
.

5)Copyanddel
etei
nter
nal
tabl
es/dbt
abl
esout
sideofl
oopst
atement
sforbet
terper
for
mance.
6)TheBasei
nter
nal
tabl
emustbecheckedwhet
heri
thasdat
aornotbef
oreusi
ngt
he
FORALLENTRI
ESSt
atementot
her
wiseSel
ectst
atementext
ract
sal
lther
ecor
dsf
ormt
he dat
abase
wi
thoutconsi
der
ingFORALLENTRI
ES.
7)TheTABLESst
atementi
snotadv
isabl
esi
ncei
tcr
eat
esl
otofi
mpl
i
citWor
kAr
eas.
8)Pr
eferPar
all
elCur
sormet
hodi
ncaseofNest
edLoops.
9)Secondar
yIndexesar
enotadv
isabl
esi
ncet
hedat
aisf
il
ter
edatdat
abasel
evel
foral
lthe
user
s.
10)Upt
o2t
abl
escanbej
oinedt
henuseForAl
lEnt
ri
eswhi
l
eext
ract
ingt
hedat
afr
om t
henext
r
equi
redt
abl
es.
11)ForAl
lEnt
ri
eswi
thI
nnerJoi
nsar
eadv
isabl
esi
nceForAl
lEnt
ri
esar
eanot
herext
raf
il
ter
cr
it
eri
aasl
i
keSel
ect
-Opt
ions.
12)Don’
tuseSel
ectst
atement
swi
thi
ntheLoops.UseForAl
lEnt
ri
esout
sideoft
hel
oop
st
atement
sthenuseReadTabl
est
atementwi
thLoopst
atement
s.

20)Whataret
heper
formancet
ool
sdoy
ouper
for
m bef
oret
heobj
ecti
srel
eased(
or)oncet
he
devel
opmenti
scomplet
ed?

Ans:
-Theyar
eusedt
orel
easet
heobj
ect
swi
thouter
ror
s,war
ningsandwi
thbet
terper
for
mance.

1.Ext
endedpr
ogr
am check(
SLI
Norpr
ogr
am -
->Check-
->Ext
endedpr
ogr
am check)
.

Thi
stooli
susedt
oli
stoutt
heper
for
mancer
elat
eder
ror
s,war
nings&messagesi
nthe
pr
ogr
am &r
ecti
fyt
hem.

St
epst
oper
for
m Ext
endedpr
ogr
am check:

 Execut
ethet
-code–SLI
N/t
hroughMenupat
h

 Ent
ert
her
equi
redpr
ogr
am Ex:
ZALV_
REPORTS

 Checkt
hecheckof‘
Char
act
erSt
ri
ng’

 Cl
i
ckonF8i
cont
henal
lthecor
respondi
nger
ror
s,war
nings,
messagesar
eli
sted.

2.CodeI
nspect
or(
SCIorpr
ogr
am -
->Check-
->CodeI
nspect
or)
.

Thi
st ooli
susedtoper
form di
ff
erentt
ypesofcheckssuchasPer
for
mancechecks,
Secur
it
ychecks,andSynt
axchecks.

St
epst
oper
for
m CodeI
nspect
or:

 Ent
ert
her
equi
redpr
ogr
am namei
nSE38

 Cl
i
ckonpr
ogr
am menui
tem -
>Check-
>Codei
nspect
or

 Expandappr
opr
iat
echeckssuchasSy
ntaxchecks/
Per
for
mancechecks/
Secur
it
ychecks.

 Read&under
standt
hesy
stem gi
venmessages&r
ect
if
ythem

3.Runt
imeAnal
ysi
s(SE30orSy
stem-
->Ut
il
it
ies-
->Runt
imeAnal
ysi
s).

Thi
stooli
susedtoknowExecut
iont
imeorr
unt
imeoft
hepr
ogr
am/
Tcode.I
tcanal
sobe
usedt
oknowperf
ormanceti
ps&tr
icks.

St
epst
oper
for
m Runt
imeAnal
ysi
s:

 Execut
etheT-
code:
SE30

 Ent
erpr
ogr
am/
T-code/
Funct
ionModul
e
 Cl
i
ckonexecut
ebut
ton

 Fi
l
lther
equi
redf
iel
ds

 Cl
i
ckonexecut
eicon

 Cl
i
ckon‘
Back’

 Cl
i
ckon“
Eval
uat
e”but
toni
nrunt
imeAnal
ysi
sscr
een

4.SQLTr
acer(
ST05orSy
stem  Ut
il
it
ies Per
for
mancet
race)
.

Thist
ooli
susedt
oknowt
hei
ndexesei
therpr
imar
y/secondar
ywhi
char
econsi
derwhi
l
e
ext
ract
ingthedat
a.

21)Usef
ult
ool
sinpr
oject
s?
Ans: ow3rdpar
Thebel tysecur
it
ygat
ewayt
ool
sar
eusedt
oconnecti
ntocl
i
entdeskt
op/
SAPsy
stem
 VPN/
CiscoVPN–Vi
rt
ual
Pri
vat
eNet
wor
kisusedt
oconnecti
ntocl
i
entSAPsy
stems.
 Ci
tr
ix–I
tisusedt
oconnecti
ntocl
i
entsy
stem deskt
op

22)Cli
entconcept
:Ift
herearetwocli
entsi
ndevel
opmentser
ver
,Ex:cl
ient200f
ordev
elopmentandcl
ient300
forconf
igur
ati
ons,whatdoesitact
uall
ymean?

Ans:Eveni
fther
earetwocli
ents200and300,200f
ordev
elopmentand300i
sforconf
igur
ati
on,
you
cannot access200cli
entdat
ain300cli
ent
.

Act
uall
y,functi
onal
peopleneedaccuratedatatotestbusinessconfi
gurati
on(SD/MM/ FIet
c),
whenit
comestot echni
cal
people,t
heymaycr eatejunkdatatotestthei
rappl
icati
on(Creat
ingmateri
al,
junk
masterdata,j
unktr
ansacti
ondataetc),sotheymaintai
nonesepar at
eclient(
200)fordevel
opment
act
ivi
ti
esandseparatecli
entforconf
igurat
ions.

Not
e:Tr
anspor
tpat
hwi
l
lbesamef
ort
wocl
i
ent
s(200-QA)and(
300-QA)i
.e;
sameQAcl
i
ent
.
23)Expl
ainSD(
Sal
es&Di
str
ibut
ion)Fl
ow?

Fl
ow T-
Codes Tabl
es

I
nqui
ry VA11,
VA12,
VA13 VBAK,
VBAP

Quot
ati
on VA21,
VA22,
VA23 VBAK,
VBAP

Pur
chaseOr
der ME21N,ME22N, EKKO,
EKPO
ME23N

Sal
esOr
der VA01,
VA02,
VA03 VBAK,
VBAP

Del
i
ver
y VL01,
VL02,
VL03 LI
KP,
LIPS

Shi
ppi
ng VT01 VTTK,
VTTP

Bi
l
li
ng VF01,
VF02,
VF03 VBRK,
VBRP

I
nvoi
ce VF21 VBRK,
VBRP
 Cust
omerenqui
resaboutt
hePr
oduct
sser
vicest
hatwer
esol
dbyacompany
.

 CompanyGi
vesaQuot
ati
onf
ort
hepr
oduct
sandSer
vicest
oaCust
omer

 Basedonpur
chaseor
dersal
esor
derwi
l
lbecr
eat
ed.

 Oncesal
esor
deri
scr
eat
ed,
del
i
ver
ywi
l
lbedone

 Nextt
hegoodsshoul
dbedel
i
ver
edt
hroughshi
ppi
ng

 Ev
erybi
l
lhasi
nvoi
ce.
..
nextpr
ovi
dei
nvoi
ce.

 I
nvoi
ceendofsal
esf
low.

24)MM (
Mat
eri
alManagement
)Fl
ow?

Fl
ow T-
Codes Tabl
es

Pur
chaseRequi
sit
ion ME51,
ME52,
ME53 EKPO,
EINE

RequestForQuot
ati
on ME41,
ME42,
ME43 EKKO,
EKPO

Quot
ati
on ME47 EI
NE,
EINA

Pr
iceCompar
ison ME49 EKKO,
EKPO

Pur
chaseOr
der(
PO) ME21,
ME22,
ME23 EKKO,
EKPO

GoodsRecei
pts(
GR) MI
GO EKKO,
EKPO

I
nvoi
ceVer
if
icat
ion MI
RO EKKO,
EKPO

25)Usef
ulTool
sforTi
cketHandl
i
ng?
Ans:
Theset
ool
sar
eusedi
nsuppor
t&mai
ntenancepr
ojectt
omai
ntai
nChanger
equest
s/Ti
cket
s.
 Remedy
 SAPI
MS(
Inci
dentmanagementSy
stem)
 Lot
us–I
BM
 SMS-Accent
ure
Not
e:Thedat
ami
grat
iont
oll
‘Panay
a’i
susedf
ormi
grat
ion/
upgr
adat
ionpr
oject
s
 Thet
ask/
wor
kisassi
gnedt
hroughmai
l
s(M.
SOut
look)byTeam Lead/
Funct
ional
Consul
tant
.
Q)SLA-Ser
viceLev
elAgr
eement
.

I
tisanagr
eementbet
weent
heCl
i
entandSer
vicePr
ovi
der
.

Ex:
-Oneoft
hecl
i
ent
(Company)whatt
ogi
vet
hei
rPr
oduct
ion

Suppor
ttot
heSer
vicePr
ovi
derf
orwhi
chbot
hwi
l
lgof
ort
his

Agr
eement
.Her
etheResponseTi
meandResol
uti
onTi
mePl
aysaVi
tol
Rol
e.

Thesear
ewi
l
lbewr
it
ten/seti
nSLA'
s.

I
fResponseti
measwellt
heResolut
ionTi
mei
smi
ssi
ngi
scal
l
edMi
ssi
ngofSLA'
sandt
hewi
l
lbeEscal
ated.
Thi
sv ar
iesf
rom Cl
i
entt
oCli
ent.

You might also like