You are on page 1of 12

ABAP certification questions

updated Jul 27, 2010 12:29 am | 48,212 views


==If a table does not have !"#$ as pa%t of the p%ima%& 'e&, it is ()lient*independent (((+== invalid
1+ ! st%u,tu%e
2+ Invalid
-+ )lient*independent
4+ "ot mandato%&
==In %e.a%d to )!//, whi,h of the followin. is "0$ a valid statement1==)!// 23043!
1+ )!// 56")$I0"
2+ )!// 7)388"
-+ )!// $3!"7!)$I0"
4+ )!// 23043!
as database table
aps 1:1 to database table : $%anspa%ent
1+ 2ooled
2+ )luste%
-+ $%anspa%ent
4+ 9iew
:ithin the $02*05*2!48 event the followin. ,ode %ep%esents == ! pa.e heade%
write: /1 text-001.
Name the type of ABAP Dictionary table that has
these characteristics:
7ame numbe% of fields as the database table
7ame name
!nswe%:
A: A selection text. B: A basic list row. C: A page footer D: A page header
;uestion: 4iven the two !<!2 #i,tioa%& tables below, the )ustome% numbe% field in table one must ,ontain
a value f%om table two+ $he )ustome% numbe% field is 'nown as a ((((+ == 5o%ei.n 'e&
Table one: Custoer nuber !"riar# $e#% Copan# code !"riar# $e#% &ther data
Table two: Custoer nuber !"riar# $e#% Custoer nae &ther data
!nswe%:
A: 'econdar# index B: (atchcode ob)ect C: *alidation field D: +oreign $e#
;uestion: ! bat,h input =ob with two steps is p%o,essed+ I203$>8?203$ statements a%e used to pass
values between the steps+
7tep 1 ,ontains the statements
'TAT,'-.'.. C&/T - .C.. 01"&2T 'TAT,' C&/T T& (0(&23 4D .1111..
7tep 2 ,ontains the statements
C50A2:C&/T6 'TAT,'6 +5A7. 4("&2T C&/T +5A7 +2&( (0(&23 4D .1111..
:hat do the fields 7@*76<3), )0"$ and 5/!4 ,ontain afte% the I203$ statement have been eAe,uted1
== <
!nswe%: !+ 7@*76<3)=4+ )0"$=B)B+ 5/!4=. <+ 7@*76<3)=0+ )0"$=B)B+ 5/!4=. )+ 7@*76<3)=0+
)0"$=. FLAG=+
;uestion: $he st%u,tu%e of a table has been ,han.ed in the !<!2>4 #i,tiona%&+ :hi,h of the followin.
ad=ustments in the %elevant database table is ,o%%e,t, if &ou want to %etain the p%evious data1
!nswe%: !+ #elete and %e,%eate the database table+ <+ )han.e the database di%e,to%& C!/$83 $!</8D
whe%e the st%u,tu%e ,han.e with !/$83 $!</8 is suppo%ted b& the database+ )+ )onve%t the table+
;uestion: ust 8Aits be p%edefined b& 7!2 p%o.%amme%s1
!nswe%: !+ "o <+ @es )+ )ustome%s ,an dete%mine fo% themselves whe%e the& want to use eAits
==!n event sta%ts with an event 'e&wo%d and ends with:== !nothe% event 'e&wo%d
1+ 2%o.%am eAe,ution+
2+ 8"#*05*898"$
-+ !nothe% event 'e&wo%d
4+ 8"#*898"$
=E!nswe%:!nothe% event 'e&wo%d ==:hat is the s&stem field fo% the ,u%%ent date1== 7@*#!$6
1+ 7@*#!$6
2+ 7@*#!$8
-+ 7@*#!$I#
4+ 7@*7#!$8
[edit]
The following code indicates:
78/8)$ fld1 fld2 530 tab1 !228"#I"4 $!</8 itab :F838 fld1 I" sfld1+ == !dd %ows to the eAistin.
%ows of itab
1+ !dd %ows to the eAistin. %ows of itab
2+ !dd %ows to itab afte% fi%st deletin. an& eAistin. %ows of itab
-+ 7ele,t %ows f%om tab1 fo% mat,hin. itab ent%ies
4+ "othin., this is a s&ntaA e%%o%
==@ou ma& ,han.e the followin. data ob=e,t as shown below so that it eGuals -+14+== false
)0"7$!"$7: 2I t&pe 2 de,imals 2 value B-+1B+
2I = B-+14B+
1+ $%ue
2+ 5alse
==$he 7!2 se%vi,e that ensu%es data inte.%it& b& handlin. lo,'in. is ,alled:== 8nGueue>#eGueue
1+ 6pdate
2+ #ialo.
-+ 8nGueue>#eGueue
4+ 7pool
==:hi,h of these senten,es most a,,u%atel& des,%ibes the 48$ 9<!H /!$8 event1== $his event is
p%o,essed befo%e the se,ond time the 48$ 9<!H event is p%o,essed
1+ $his event is p%o,essed befo%e the se,ond time the 48$ 9<!H event is p%o,essed+
2+ $his event is p%o,essed afte% all o,,u%%en,es of the 48$ 9<!H event a%e ,ompleted+
-+ $his event will onl& be p%o,essed afte% the use% has sele,ted a basi, list %ow+
4+ $his event is onl& p%o,essed if no %e,o%ds a%e sele,ted f%om table 9<!H+
==:hi,h of the followin. is not a t%ue statement in %e.a%d to a hashed inte%nal table t&pe1== %esponse time++
1+ Its 'e& must alwa&s be 6"I;68
2+ a& onl& be a,,essed b& its 'e&
-+ 3esponse time fo% a,,essin. a %ow depends on the numbe% of ent%ies in the table
4+ #e,la%ed usin. inte%nal table t&pe F!7F8# $!</8
==$o in,lude database*spe,ifi, 7;/ statements within an !<!2 p%o.%am, ,ode them between:== I 8?8)
7;/(8"#8?8)
1+ "!$I98 7;/(8"#"!$I98
2+ #< 7;/(8"##<
-+ 78/8)$(8"#78/8)$
4+ 8?8) 7;/(8"#8?8)
==$o measu%e how lon. a blo,' of ,ode %uns, use the !<!2 statement:== I 48$ 36" $I8 5I8/#
1+ 48$ $I8
2+ 78$ $I8 5I8/#
-+ 48$ 36" $I8 5I8/#
4+ 78$ )63703 5I8/#
[edit]
hen a secondary list is being processed! the
data of the basic list is a"ailable by default#
1+ $%ue
2+ 5alse
[edit]
$i"en:
#!$!: <84I" 05 itab 0))637 10, Gt& t&pe I, 8"# 05 itab+ #0 2J $I87+
itab*Gt& = s&*indeA+ !228"# itab+ 8"##0+ /002 !$ itab :F838 Gt& E 10+ :3I$8:
>1 itab*Gt&+ 8"#/002+
1+ 0utput of the fi%st 1J itab %ows with a Gt& field .%eate% than 10
$his will %esult in:
1+ 0utput of onl& those itab %ows with a Gt& field less than 10
2+ 0utput of the fi%st 10 itab %ows with a Gt& field .%eate% than 10
-+ ! s&ntaA e%%o%
4+ "one of the above
==!fte% a #87)3I<8 $!</8 statement 7@*$5I// will ,ontain== I $he numbe% of %ows in the inte%nal table
1+ $he numbe% of %ows in the inte%nal table
2+ $he ,u%%ent 0))637 value
-+ Ke%o, if the table ,ontains one o% mo%e %ows
4+ $he len.th of the inte%nal table %ow st%u,tu%e
==@ou ma& de,la%e &ou% own inte%nal table t&pe usin. the $@287 'e&wo%d+== I $%ue
1+ $%ue
2+ 5alse
==!fte% addin. %ows to an inte%nal table with )0//8)$, &ou should avoid addin. mo%e %ows with
!228"#+== I $%ue
1+ $%ue
2+ 5alse
==:hi,h of the followin. is not a ,omponent of ,ont%ol b%ea' p%o,essin. when loopin. at an inte%nal table1
== I !$ 7$!3$ 05
1+ !$ 7$!3$ 05
2+ !$ 5I37$
-+ !$ /!7$
4+ !$ "8:
==! di,tiona%& table is made available fo% use within an !<!2 p%o.%am via the $!</87 statement+== I
5alse
1+ $%ue
2+ 5alse
[edit]
hich of the following would be best for hiding
further selection criteria until a function is
chosen%
1+ !$ "8: 78/8)$I0"*7)388"
2+ 78/8)$I0"*7)388" !$ /I"8*78/8)$I0"
-+ 76<I$ 78/8)$I0"*7)388"
4+ )!// 78/8)$I0"*7)388"
==:hat must &ou ,ode in the flow lo.i, to p%event a module f%om bein. ,alled unless a field ,ontains a non*
initial value Cas dete%mined b& its data t&peD1== I 0" I"26$
1+ 0" I"26$
2+ )F!I"
-+ 5I8/#
4+ 0" 38;687$
==$he !$ 6783*)0!"# event is t%i..e%ed b& fun,tions defined in the ((((+== I enu painte% status
1+ 7,%een painte%
2+ !<!2 %epo%t
-+ enu painte% status
4+ !<!2 #i,tiona%&
==In %e.a%d to a fun,tion .%oup, whi,h of the followin. is "0$ a t%ue statement1== I 8Aists within the !<!2
wo%'ben,h as an in,lude p%o.%am
1+ )ombines simila% fun,tion modules
2+ 7ha%es .lobal data with all its fun,tion modules
-+ 8Aists within the !<!2 wo%'ben,h as an in,lude p%o.%am
4+ 7ha%es sub%outines with all its fun,tion modules
==In %e.a%d to 78$ 25*7$!$67, &ou ,an dea,tivate unwanted fun,tion ,odes b& usin. ((((+== I
8?)/6#I"4
1+ 8?)/6#I"4
2+ I8#I!$8/@
-+ :I$F06$
4+ FI#8
==In %e.a%d to data t%anspo%ted in 2!I when the 5I8/# statement is used, whi,h of the followin. is "0$ a
t%ue statement1==5ields that a%e defined in 5I8/# statements a%e t%anspo%ted when thei% ,o%%espondin.
module is ,alled
1+ 5ields in 2<0 a%e t%anspo%ted di%e,tl& f%om 2!I
2+ 5ields with identi,al names a%e t%anspo%ted to the !<!2 side
-+ 5ields not defined in 5I8/# statements a%e t%anspo%ted fi%st
4+ 5ields that a%e defined in 5I8/# statements a%e t%anspo%ted when thei% ,o%%espondin. module is
,alled
==$he o%de% in whi,h an event appea%s in the !<!2 ,ode dete%mines when the event is p%o,essed+== I
5alse
1+ $%ue
2+ 5alse
==! field de,la%ed as t&pe $ has the followin. inte%nal %ep%esentation:== FF77
1+ 77FF
2+ FF77
-+ FF77
4+ FF77
==:hi,h of the followin. is "0$ a ,omponent of the default standa%d !<!2 %epo%t heade%1== I #ate and
$ime
1+ #ate and $ime
2+ /ist title
-+ 2a.e numbe%
4+ 6nde%line
==!ssumin. a pushbutton with fun,tion ,ode B56")B is available in the toolba% of a list %epo%t, what event is
p%o,essed when the button is ,li,'ed1== I !$ 6783*)0!"#
1+ !$ 6783*)0!"#
2+ !$ 25n
-+ !$ 78/8)$I0"*7)388"
4+ 8"#*05*78/8)$I0"
-0+ In %e.a%d to field sele,tion, what option of the 78/8)$ statement is %eGui%ed1
1+ !: 503 !// 8"$3I87
2+ <: :F838
-+ ): I"$0
4+ #: 098*)0338720"#I"4
-1+ $he followin. p%o.%am outputs what1 == < %epo%t L=.test1 w%ite: >1 B3ead&(B+
2!3!8$83: test+
I"I$I!/IK!$I0"+ w%ite: >1 B7et(B+
7$!3$*05*78/8)$I0"+ w%ite: >1 B40MMB+
!: 7et( 40MM Cea,h on its own lineD <: 7et( 3ead&( 40MM Call on thei% own linesD ): 3ead&( 40MM Cea,h on its
own lineD #: 3ead&( 7et( 40MM Call on thei% own linesD
-2+ $o de,la%e a sele,tion ,%ite%ion that does not appea% on the sele,tion s,%een, use: == "0*#I72/!@
!: "0*#I72/!@ <: I"9I7I</8 ): 0#I5 I# #: 0</I4!$03@
--+ !n inte%nal table that is nested within anothe% inte%nal table should not ,ontain a heade% line+ == 5alse !:
$%ue <: 5alse
-4+ :hat is output b& the followin. ,ode1 == !
#!$!: <84I" 05 itab 0))637 0,
letter t#pe c6
8"# 05 itab+
itab*lette% = B!B+ !228"# itab+ itab*lette% = B<B+ !228"# itab+ itab*lette% = B)B+ !228"# itab+ itab*lette% = B#B+
!228"# itab+ /002 !$ itab+
'3-TAB41 - 8. 924T0 itab-letter. 014T.
8"#/002+
!: ! <: ! < ) # ): < #: < ) #
-J+ $o sele,t all database ent%ies fo% a ,e%tain :F838 ,lause into an inte%nal table in one step, use ==
78/8)$(I"$0 $!</8 itab( !: 78/8)$(I"$0 $!</8 itab( <: 78/8)$(I"$0 itab( ):
78/8)$(!228"#I"4 itab #: 78/8)$(itab(
-N+ !fte% a su,,essful 78/8)$ statement, what does 7@*76<3) eGual1 == 0 !: 0 <: 4 ): 8 #: "ull
-7+ $his sele,tion s,%een s&ntaA fo%,es the use% to input a value: !: 38;6I38#*8"$3@ <: 0</I4!$03@
): #85!6/$ #: 78/8)$I0"*7)388" 8?)/6#8
-8+ If the followin. ,ode %esults in a s&ntaA e%%o%, the %emed& is: == 3emove the so%t statement #!$!: itab
$@28 703$8# $!</8 05 %e,(t&pe :I$F 6"I;68 H8@ field1 :I$F F8!#83 /I"8+ itab*field1 =
B)ompan&B+ itab*field2 = B12-4B+ I"783$ $!</8 itab+ itab*field1 = B<an'B+ itab*field2 = B!<)B+ I"783$ $!</8
itab+ 703$ itab+
/002 !$ itab+
write: /1 itab-field16 itab-field8.
8"#/002+
!: $he%e is no s&ntaA e%%o% he%e <: 3emove the 703$ statement ): )han.e I"783$ to !228"# #: !dd a
:F838 ,lause to the loop
-9+ If this ,ode %esults in an e%%o%, the %emed& is: == !dd I"$0 Ctab1*fld1, tab1*fld2D
78/8)$ fld1 fld2 530 tab1 :F838 fld- = pfld-+ :3I$8: >1 tab1*fld1, tab1*fld2+ 8"#78/8)$+
!: !dd a 7@*76<3) ,he,'+ <: )han.e the :F838 ,lause to use fld1 o% fld2+ ): 3emove the >1 f%om the
:3I$8 statement+ #: !dd I"$0 Ctab1*fld1, tab1*fld2D+
40+ :hen modif&in. an inte%nal table within /002 !$ itab+ ( 8"#/002+ &ou must in,lude an indeA numbe%+
== 5alse !: $%ue <: 5alse
41+ $o allow the use% to ente% values on the s,%een fo% a list field, use: == 503!$ I"26$ 0" !: 028"
/I"8+ <: 78$ )63703 5I8/#+ ): :3I$8 fld !7 I"26$ 5I8/#+ #: 503!$ I"26$ 0"+
42+ <efo%e a fun,tion module ma& be tested, it must fi%st be: == !,tive !: /in'ed <: !utho%iLed ): 3eleased
#: !,tive
4-+ $o in,lude a field on &ou% s,%een that is not in the !<!2 #i,tiona%&, whi,h in,lude p%o.%am should
,ontain the data de,la%ation fo% the field1 == $02 in,lude p%o.%am !: 2<0 module in,lude p%o.%am <: $02
in,lude p%o.%am ): 2!I module in,lude p%o.%am #: 7ub%outine in,lude p%o.%am
44+ If a table ,ontains man& dupli,ate values fo% a field, minimiLe the numbe% of %e,o%ds %etu%ned b& usin.
this 78/8)$ statement addition+ == #I7$I")$ !: I" <: 03#83 <@ ): #I7$I")$ #: #8/8$8
4J+ $he s&stem inte%nal table used fo% d&nami, s,%een modifi,ation is named: == 7)388" !: I$!< <:
7)388" ): 0#$!< #: 70#
4N+ :ithin the sou%,e ,ode of a fun,tion module, e%%o%s a%e handled via the 'e&wo%d: == 3!I78 !:
8?)82$I0" <: 3!I78 ): 7$02 #: !<8"#
47+ :hi,h s&stem field ,ontains the ,ontents of a sele,ted line1 == 7@*/I78/ !: 7@*)6)0/ <: 7@*/I//I ):
7@*)630: #: 7@*/I78/
48+ $he followin. statement w%ites what t&pe of data ob=e,t1 == $eAt lite%al
924T0: /1 .Total Aount:..
!: $eAt lite%al <: $eAt va%iable ): In*,ode ,omment #: $eAt inte.e%
49+ 5o% the ,ode below, se,ond(field is of what data t&pe1 == 2 #!$!: fi%st(field t&pe 2,
second:field li$e first:field.
!: 2 <: ) ): " #: #
J0+ :hi,h of the followin. des,%ibes the inte%nal %ep%esentation of a t&pe # data ob=e,t1 == @@@@## !:
##@@@@ <: @@@@## ): ##@@@@ #: @@@@##
J1+ ! <#) p%o.%am is used fo% all of the followin. eA,ept: !: #ownloadin. data to a lo,al file <: #ata
inte%fa,es between 7!2 and eAte%nal s&stems ): Initial data t%ansfe% #: 8nte%in. a la%.e amount of data
J2+ In %e.a%d to 283503, whi,h of the followin. is "0$ a t%ue statement1 !: a& be used within a
sub%outine+ <: 3eGui%es a,tual pa%amete%s+ ): 3e,u%sive ,alls a%e allowed in !<!2+ #: )an ,all a sub%outine
in anothe% p%o.%am+
J-+ :hat is the t%ansa,tion ,ode fo% the !<!2 8dito%1 !: 7811 <: 78-8 ): 78-N #: 781N
J4+ In %e.a%d to FI#8, whi,h of the followin. is "0$ a t%ue statement1 !: 7aves the ,ontents of va%iables in
%elation to a list lineBs %ow numbe%+ <: $he hidden va%iables must be output on a list line+ ): $he FI#8 a%ea is
%et%ieved when usin. the 38!# /I"8 statement+ #: $he FI#8 a%ea is %et%ieved when an inte%a,tive event is
t%i..e%ed+
JJ+ #atabase lo,'s a%e suffi,ient in a multi*use% envi%onment+ !: $%ue <: 5alse
JN+ $he ,omplete te,hni,al definition of a table field is dete%mined b& the fieldBs: !: #omain <: 5ield name ):
#ata t&pe #: #ata element
J7+ In %e.a%d to /8!98, whi,h of the followin. is "0$ a t%ue statement1 !: a& be used to %etu%n
immediatel& to a ,allin. p%o.%am+ <: a& be used to stop the ,u%%ent loop pass and .et the neAt+ ): a& be
used to sta%t a new t%ansa,tion+ #: a& be used to .o to the neAt s,%een+
J8+ $he followin. ,ode indi,ates:
78/8)$ fldN fld- fld2 fld1 530 tab1 I"$0 )0338720"#I"4 5I8/#7 05 $!</8 itab :F838 fld- =
pfld-+
!: $he o%de% of the fields in itab does not matte%+ <: 5ill the heade% line of itab, but not the bod&+ ): $able itab
,an onl& ,ontain fields also in table tab1+ #: "one of the above+
J9+ $he !<!2 statement below indi,ates that the p%o.%am should ,ontinue with the neAt line of ,ode if the
inte%nal table itab:
)F8)H "0$ itabOP I7 I"I$I!/+
!: )ontains no %ows <: )ontains at least one %ow ): Fas a heade% line #: Fas an empt& heade% line
N0+ :hat will be output b& the followin. ,ode1
#!$!: <84I" 05 itab 0))637 0, fval t&pe i, 8"# 05 itab+ itab*fval = 1+ !228"# itab+ itab*fval = 2+
!228"# itab+ 5388 itab+ :3I$8: >1 itab*fval+
!: 2 <: 0 ): blan' #: 1
N1+ $o allow the use% to ente% a %an.e of values on a sele,tion s,%een, use the !<!2 'e&wo%d: !: #!$!+ <:
3!"487+ ): 2!3!8$837+ #: 78/8)$*02$I0"7+
N2+ If an inte%nal table is de,la%ed without a heade% line, what else must &ou de,la%e to wo%' with the tableBs
%ows1 !: !nothe% inte%nal table with a heade% line+ <: ! wo%' a%ea with the same st%u,tu%e as the inte%nal
table+ ): !n inte%nal table t&pe usin. the $@287 statement+ #: ! 2!3!8$83+
N-+ !ssumin. an inte%nal table ,ontains 2000 ent%ies, how man& ent%ies will it have afte% the followin. line of
,ode is eAe,uted1
#8/8$8 itab 530 1J00 $0 1700+
!: $his is a s&ntaA e%%o%+ <: 1801 ): 1800 #: 1799
N4+ $o %emove lines f%om a database table, use ((((+ !: 62#!$8 <: 0#I5@ ): 83!78 #: #8/8$8
NJ+ !ll of the followin. ma& be pe%fo%med usin. 78$ )63703 eA,ept: !: ove the ,u%so% to a spe,ifi, field
on a list+ <: ove the ,u%so% to a spe,ifi, list line+ ): ove the ,u%so% to a spe,ifi, pushbutton, a,tivatin. that
fun,tion+ #: ove the ,u%so% to a spe,ifi, %ow and ,olumn on a list+
NN+ :hen is it optional to pass an a,tual pa%amete% to a %eGui%ed fo%mal pa%amete% of a fun,tion module1 !:
$he a,tual pa%amete% is t&pe )+ <: $he fo%mal pa%amete% ,ontains a default value+ ): $he fo%mal pa%amete%Bs
QR3efe%en,eQR att%ibute is tu%ned on+ #: It is neve% optional+
N7+ )odin. two I"I$I!/IK!$I0" events will ,ause a s&ntaA e%%o%+ !: $%ue <: 5alse
N8+ !ddin. a )0I$ :03H statement between 78/8)$(8"#78/8)$ is a .ood method fo% imp%ovin.
pe%fo%man,e+ !: $%ue <: 5alse
N9+ $o save info%mation on a list line fo% use afte% the line is sele,ted, use this 'e&wo%d+ !: !228"# <:
8?203$ ): :3I$8 #: FI#8
70+ $o b&pass automati, field input ,he,'s, in,lude this in 2!I+ !: !$ 8?I$*)0!"# <: 0" I"26$ ): 0"
38;687$ #: /8!98 $0 7)388" 0+
71+ :ithin a fun,tion moduleBs sou%,e ,ode, if the 877!48(3!I7I"4 statement is eAe,uted, all of the
followin. s&stem fields a%e filled automati,all& eA,ept: !: 7@*74$@ <: 7@*74"0 ): 7@*7491 #: 7@*
74:!
72+ $he followin. ,ode indi,ates:
38203$ K/I7$$7$+ 7$!3$*05*78/8)$I0"+ :3I$8: teAt*001+ 503!$ F0$720$ 0"+ :3I$8: teAt*
002+ 503!$ F0$720$ 055+ !$ /I"8*78/8)$I0"+ :3I$8 > teAt*00-+
!: $eAt*002 ma& not be sele,ted+ <: $he value of teAt*002 is sto%ed in a spe,ial memo%& a%ea+ ): $eAt*002
ma& be ,li,'ed on,e to t%i..e% the output of teAt*00-+ #: "one of the above+
7-+ $he (((( t&pe of !<!2 #i,tiona%& view ,onsists of one o% mo%e t%anspa%ent tables and ma& be
a,,essed b& an !<!2 p%o.%am usin. 0pen 7;/+ !: #atabase view <: 2%o=e,tion view ): Felp view #: 8ntit&
view
74+ ! ,on,%ete field is asso,iated with a field*s&mbol via !<!2 'e&wo%d !: 098 <: :3I$8 ): !77I4" #:
9!/68
7J+ $he output fo% the followin. ,ode will be:
%epo%t Labap%.+ #!$!: ,ha%(field t&pe )+ ,ha%(field = B!<!2 dataB+ :3I$8 ,ha%(field+
!: !<!2 data <: ! ): "othin., the%e is a s&ntaA e%%o% #: "one of the above
7N+ 2a.e foote%s a%e ,oded in the event: !: $02*05*2!48+ <: 8"#*05*78/8)$I0"+ ): "8:*2!48+ #:
8"#*05*2!48+
77+ $he event !$ 78/8)$I0"*7)388" 06$26$+ o,,u%s befo%e the sele,tion s,%een is displa&ed and is
the best event fo% assi.nin. default values to sele,tion ,%ite%ia+ !: $%ue <: 5alse
78+ $he $!</87 statement de,la%es a data ob=e,t+ !: $%ue <: 5alse
79+ !ssumin. tab1*fld7 is not a 'e& field, how ,an &ou p%event %eadin. all the table %ows1
78/8)$ fld1 fld2 fld- 530 tab1 I"$0 Cfld4, fldJ, fldND :F838 fld7 = pfld7+ :3I$8: >1 fld4, fldJ, fldN+
8"#78/8)$+
!: $a'e fld7 out of the :F838 ,lause+ <: )%eate an indeA in the !<!2 #i,tiona%& fo% tab1*fld7+ ): 6se I"$0
$!</8 instead of =ust I"$0+ #: $a'e the :3I$8 statement out of the 78/8)$(8"#78/8)$+
80+ :hi,h of the followin. is "0$ a %eGui%ed att%ibute when ,%eatin. an !<!2 p%o.%am1 !: !ppli,ation <:
$itle ): 7tatus #: $&pe
81+ :hen ,%eatin. a t%anspa%ent table in the !<!2 #i,tiona%&, whi,h step automati,all& ,%eates the table in
the unde%l&in. database1 !: !ddin. te,hni,al settin.s to the table <: )he,'in. the table s&ntaA ): 7avin.
the table #: !,tivatin. the table
82+ :ithin the !<!2 p%o.%am att%ibutes, $&pe = 1 %ep%esents: !: I")/6#8 p%o.%am <: 0nline p%o.%am ):
odule pool #: 5un,tion .%oup 8: 7ub%outine pool
8-+ If this ,ode %esults in an e%%o%, the %emed& is:
78/8)$ fld1 76C fld1 D 530 tab1 I"$0(
!: 3emove the spa,es f%om 76C fld1 D+ <: ove 76C fld1 D befo%e fld1+ ): !dd 43062 <@ f1+ #: )han.e
to 76C #I7$I")$ f1 D+
84+ :hi,h 'e&wo%d adds %ows to an inte%nal table while a,,umulatin. nume%i, values1 !: I"783$ <:
!228"# ): )0//8)$ #: 43062
8J+ !ssumin. itab has a heade% line, what will be output b& the followin. ,ode1
38!# $!</8 itab I"#8? - $3!"7203$I"4 field1+ :3I$8: >1 itab*field1, itab*field2+
!: $he ,ontents of the thi%d %owBs itab*field1+ <: $he ,ontents of the thi%d %owBs itab*field1 and itab*field2+ ):
$he ,ontents of the thi%d %owBs itab*field2+ #: "othin.+
8N+ $he followin. ,ode indi,ates:
78/8)$I0"*7)388" <84I" 05 </0)H <1+ 2!3!8$837: m&pa%amC10D t&pe ), &pa%am2C10D t&pe ",
78/8)$I0"*7)388" 8"# 05 </0)H+
!: #%aw a boA a%ound m&pa%am and m&pa%am2 on the sele,tion s,%een+ <: !llow m&pa%am and m&pa%am2
to be %ead& fo% input du%in. an e%%o% dialo.+ ): #o not displa& m&pa%am and m&pa%am2 on the sele,tion
s,%een+ #: #ispla& m&pa%am and m&pa%am2 onl& if both fields have default values+
87+ :hi,h statement will so%t the data of an inte%nal table with fields 536I$, ;$@, and 23I)8 so that it
appea%s as follows1
536I$ ;$@ 23I)8 !pples 12 22+J0 !pples 9 18+2J 0%an.es 1J 17+-J <ananas 20 10+20 <ananas 1J N+89
<ananas J 2+7J
!: 703$ itab #87)8"#I"4 <@ ;$@ 23I)8+ <: 703$ itab <@ 23I)8 536I$+ ): 703$ itab+ #: 703$ itab
<@ 23I)8 #87)8"#I"4+
88+ :hi,h 'e&wo%d adds a line an&whe%e within an inte%nal table1 !: !228"# <: 0#I5@ ): !## #:
I"783$
89+ $o %ead a sin.le line of an inte%nal table, use the followin.: !: /002 !$ itab+ ( 8"#/002+ <: 38!# itab+
): 78/8)$ 7I"4/8 S 530 itab+ #: 38!# $!</8 itab+
90+ :hi,h 0pen 7;/ statement should not be used with ,luste% databases1 !: 62#!$8 <: 0#I5@ ):
#8/8$8 #: I"783$
91+ $o in,lude a field on &ou% s,%een that is not in the !<!2 #i,tiona%&, whi,h in,lude p%o.%am should
,ontain the data de,la%ation fo% the field1 !: 2<0 module in,lude p%o.%am <: $02 in,lude p%o.%am ): 2!I
module in,lude p%o.%am #: 7ub%outine in,lude p%o.%am
92+ $his flow lo.i, statement is used to ma'e multiple fields open fo% input afte% an e%%o% o% wa%nin.
messa.e+ !: 43062 <: 5I8/#*43062 ): )F!I" #: /002 !$ 7)388"
9-+ 4iven:
283503 sub%outine 67I"4 va%+
$he va% field is 'nown as what t&pe of pa%amete%1
!: 5o%mal <: !,tual ): 7tati, #: 9alue

You might also like