abap.doc

Upload: siddhartha-barua

Post on 02-Jun-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 ABAP.doc

    1/15

    The ANSWERS is in BOLD.

    Please note that not all questions have answers.

    1. If a table does not have MANDT as art of the ri!ar" #e"$ it is.

    A% A stru&ture'% Invalid

    C: Client-independent

    D% Not !andator"

    (. In re)ard to *A++$ whi&h of the followin) is N,T a valid state!ent-

    A% *A++ /N*TI,N

    '% *A++ S*REEN

    *% *A++ TRANSA*TI,N

    D: CALL PROGRAM

    0. Na!e the t"e of A'AP Di&tionar" table that has these &hara&teristi&s%Sa!e nu!ber of fields as the database tableSa!e na!e as database table

    Mas 1%1 to database table

    A% Pooled

    '% *luster

    C: TransparentD% iew

    2. An event starts with an event #e"word and ends with%

    A% Pro)ra! e3e&ution.'% END4,4EENT.

    C: Another event keyword.D% END4EENT.

    5. What is the s"ste! field for the &urrent date-

    A: !-DAT"M

    '% S64DATE*% S64DATID

    D% S64SDATE

    7. The followin) &ode indi&ates% ASE+E*T fld1 fld( R,M tab1 APPENDIN8 TA'+E itab W9ERE fld1 IN sfld1.

    A: Add rows to the e#istin$ rows o% ita&.'% Add rows to itab after first deletin) an" e3istin) rows of itab.

    *% Sele&t rows fro! tab1 for !at&hin) itab entries.

    D% Nothin)$ this is a s"nta3 error.

  • 8/11/2019 ABAP.doc

    2/15

    :. 6ou !a" &han)e the followin) data ob;e&t as shown below so that it equals 0.12.

    *,NSTANTS% PI t"e P de&i!als ( value

  • 8/11/2019 ABAP.doc

    3/15

    12. 8iven%

    DATA% 'E8IN , itab ,**/RS 1$

    qt" t"e I$END , itab.

    D, (5 TIMES. itab4qt" = s"4inde3. APPEND itab.ENDD,.

    +,,P AT itab W9ERE qt" 1.WRITE% 1 itab4qt".

    END+,,P.

    This will result in%

    A% ,utut of onl" those itab rows with a qt" field less than 1

    B: O*tp*t o% the %irst 56 ita& rows with a )ty %ield $reater than 56 *% A s"nta3 error

    D% None of the above

    15. After a DES*RI'E TA'+E state!ent S64TI++ will &ontain

    A: The n*/&er o% rows in the internal ta&le.'% The &urrent ,**/RS value.

    *% Fero$ if the table &ontains one or !ore rows.

    D% The len)th of the internal table row stru&ture.

    17. 6ou !a" de&lare "our own internal table t"e usin) the T6PES #e"word.

    A: Tr*e'% alse

    1:. After addin) rows to an internal table with *,++E*T$ "ou should avoid addin) !ore rows withAPPEND.

    A: Tr*e

    '% alse

    1>. Whi&h of the followin) is not a &o!onent of &ontrol brea# ro&essin) when looin) at an internal

    table-

    A: AT TART O'

    '% AT IRST

    *% AT +ASTD% AT NEW

    1?. A di&tionar" table is !ade available for use within an A'AP ro)ra! via the TA'+ES state!ent.

    A: Tr*e

    '% alse

  • 8/11/2019 ABAP.doc

    4/15

    (. Whi&h of the followin) would be best for hidin) further sele&tion &riteria until a fun&tion is &hosen-

    A% AT NEW SE+E*TI,N4S*REEN'% SE+E*TI,N4S*REEN AT +INE4SE+E*TI,N

    *% S/'MIT SE+E*TI,N4S*REEN

    D: CALL (L(CT4O3-CR((3

    (1. What !ust "ou &ode in the flow lo)i& to revent a !odule fro! bein) &alled unless a field &ontains a

    non4initial value Gas deter!ined b" its data t"eH-

    A: O3 43P"T

    '% *9AIN

    *% IE+DD% ,N REB/EST

    ((. The AT /SER4*,MMAND event is tri))ered b" fun&tions defined in the CCCC.

    A: s,reen painter

    '% A'AP reort*% !enu ainter status

    D% A'AP Di&tionar"

    (0. In re)ard to a fun&tion )rou$ whi&h of the followin) is N,T a true state!ent-

    A% *o!bines si!ilar fun&tion !odules.

    '% Shares )lobal data with all its fun&tion !odules.

    C: (#ists within the ABAP work&en,h as an in,l*de pro$ra/.

    D% Shares subroutines with all its fun&tion !odules.

    (2. In re)ard to SET P4STAT/S$ "ou &an dea&tivate unwanted fun&tion &odes b" usin) CCCC.

    A: (0CL"D43G

    '% IMMEDIATE+6

    *% WIT9,/T

    D% 9IDE

    (5. In re)ard to data transorted in PAI when the IE+D state!ent is used$ whi&h of the followin) is

    N,T a true state!ent-

    A% ields in P', are transorted dire&tl" fro! PAI.

    '% ields with identi&al na!es are transorted to the A'AP side.

    *: 'ields not de%ined in '4(LD state/ents are transported %irst.D% ields that are defined in IE+D state!ents are transorted when their &orresondin) !odule is

    &alled.

    (7. The order in whi&h an event aears in the A'AP &ode deter!ines when the event is ro&essed.

    A% True

    B: 'alse

  • 8/11/2019 ABAP.doc

    5/15

    (:. A field de&lared as t"e T has the followin) internal reresentation%

    A% SSMM99

    B: 77MM

    *% MM99SS

    D% 99SSMM

    (>. Whi&h of the followin) is N,T a &o!onent of the default standard A'AP reort header-

    A: Date and Ti/e

    '% +ist title

    *% Pa)e nu!ber

    D% /nderline

    (?. Assu!in) a ushbutton with fun&tion &ode

  • 8/11/2019 ABAP.doc

    6/15

    33. !n internal ta8le that is nested within another internal ta8le should not 0ontain a header line.!: True B: False

    39. hat is output 8y the following 0ode?

    !T!: 2#-$% (+ ita8 (,,;R) = 4.R$T# ita8*letter.#>$T.#%&((.

    A: A2: ! 2 , ,: 2: 2 ,

    3. To sele0t all data8ase entries for a 0ertain @#R# 0lause into an internal ta8le in one step5 useA: SELECT_INTO TABLE itab_2: )#,T_$%T( ita8_,: )#,T_!#%$%- ita8: )#,T_ita8_

    3A. !fter a su00essful )#,T statement5 what does )7*);2R, eBual?

    !: < 2: 9 ,: C : %ull

    3D. This sele0tion s0reen syntaE for0es the user to input a Falue:!: R#G;$R#*#%TR7

    B: OBLIGATORY,: #+!;&T: )#,T$(%*),R##% #>,&;#

    3C. $f the following 0ode results in a syntaE error5 the remedy is:!T!: ita8 T7# )(RT# T!2 (+ re0_type $T@ ;%$G;# H#7 field1$T@ @#!#R &$%#.

    ita8*field1 = ',ompany'. ita8*field4 = '1439'. $%)#RT T!2 ita8.ita8*field1 = '2anI'. ita8*field4 = '!2,'. $%)#RT T!2 ita8.

    )(RT ita8.

    &(( !T ita8.write: /1 ita8*field15 ita8*field4.#%&((.

    !: There is no syntaE error here2: RemoFe the )(RT statement,: ,hange $%)#RT to !#%: !dd a @#R# 0lause to the loop

  • 8/11/2019 ABAP.doc

    7/15

    3J. $f this 0ode results in an error5 the remedy is:

    )#,T fld1 fld4 +R(" ta81 @#R# fld3 = pfld3.R$T#: /1 ta81*fld15 ta81*fld4.#%)#,T.

    !: !dd a )7*);2R, 0he0I.2: ,hange the @#R# 0lause to use fld1 or fld4.,: RemoFe the /1 from the R$T# statement.D: Add INTO (tab1-fld1 tab1-fld!"#

    9

  • 8/11/2019 ABAP.doc

    8/15

    :

  • 8/11/2019 ABAP.doc

    9/15

    : "ay 8e used to go to the neEt s0reen.

    C. The following 0ode indi0ates:

    )#,T fldA fld3 fld4 fld1 +R(" ta81 $%T( ,(RR#)(%$%- +$#&) (+ T!2 ita8@#R# fld3 = pfld3.

    A: T3e ,+de+ ,f t3e fields i itab d,es ,t .atte+#2: +ill the header line of ita85 8ut not the 8ody.,: Ta8le ita8 0an only 0ontain fields also in ta8le ta81.: %one of the a8oFe.

    J. The !2! statement 8elow indi0ates that the program should 0ontinue with the neEt line of 0ode if the internalta8le ita8:

    ,@#,H %(T ita8KL $) $%$T$!&.

    !: ,ontains no rows

    B: C,tais at least ,e +,0,: @as a header line: @as an empty header line

    A

  • 8/11/2019 ABAP.doc

    10/15

    A3. !ssuming an internal ta8le 0ontains 4

  • 8/11/2019 ABAP.doc

    11/15

    D

  • 8/11/2019 ABAP.doc

    12/15

    0har_field = '!2! data'.

    R$T# 0har_field.

    !: !2! dataB: A,: %othing5 there is a syntaE error: %one of the a8oFe

    DA. age footers are 0oded in the eFent:

    !: T(*(+*!-#.2: #%*(+*)#,T$(%.,: %#*!-#.D: END-OF-PAGE#

    DD. The eFent !T )#,T$(%*),R##% (;T;T. o00urs 8efore the sele0tion s0reen is displayed and is the 8esteFent for assigning default Falues to sele0tion 0riteria.

    !: TrueB: False

    DC. The T!2) statement de0lares a data o8je0t.

    !: TrueB: False

    DJ. !ssuming ta81*fldD is not a Iey field5 how 0an you preFent reading all the ta8le rows?

    )#,T fld1 fld4 fld3 +R(" ta81 $%T( fld95 fld5 fldA@#R# fldD = pfldD.R$T#: /1 fld95 fld5 fldA.#%)#,T.

    A: Ta6e fld7 ,)t ,f t3e 4ERE &la)se#2: ,reate an indeE in the !2! i0tionary for ta81*fldD.,: ;se $%T( T!2 instead of just $%T(.: TaIe the R$T# statement out of the )#,T_#%)#,T.

    C

  • 8/11/2019 ABAP.doc

    13/15

    C1. hen 0reating a transparent ta8le in the !2! i0tionary5 whi0h step automati0ally 0reates the ta8le in theunderlying data8ase?

    !: !dding te0hni0al settings to the ta8le2: ,he0Iing the ta8le syntaE,: )aFing the ta8leD: A&ti'ati t3e table

    C4. ithin the !2! program attri8utes5 Type = 1 represents:

    !: $%,&;# programB: Olie *+,+a.,: "odule pool: +un0tion group#: )u8routine pool

    C3. $f this 0ode results in an error5 the remedy is:

    )#,T fld1 );" fld1 +R(" ta81 $%T(_

    !: RemoFe the spa0es from );" fld1 .2: "oFe );" fld1 8efore fld1.,: !dd -R(; 27 f1.: ,hange to );" $)T$%,T f1 .

    C9. hi0h Ieyword adds rows to an internal ta8le while a00umulating numeri0 Falues?

    !: $%)#RT2: !#%C: COLLECT

    : -R(;

    C. !ssuming ita8 has a header line5 what will 8e output 8y the following 0ode?

    R#! T!2 ita8 $%#> 3 TR!%)(RT$%- field1.R$T#: /1 ita8*field15 ita8*field4.

    !: The 0ontents of the third row's ita8*field1.B: T3e &,tets ,f t3e t3i+d +,0

  • 8/11/2019 ABAP.doc

    14/15

    ,: o not display myparam and myparam4 on the sele0tion s0reen.: isplay myparam and myparam4 only if 8oth fields haFe default Falues.

    CD. hi0h statement will sort the data of an internal ta8le with fields +R;$T5 GT75 and R$,# so that it appears as

    follows?

    +R;$T GT7 R$,#

    !pples 14 44.

  • 8/11/2019 ABAP.doc

    15/15

    J4. This flow logi0 statement is used to maIe multiple fields open for input after an error or warning message.

    !: -R(;2: +$#&*-R(;,: ,@!$%D: LOOP AT SCREEN

    J3. -iFen:

    #R+(R" su8routine ;)$%- Far.

    The Far field is Inown as what type of parameter?

    !: +ormalB: A&t)al,: )tati0: 6alue