View
215
Download
0
Embed Size (px)
8/12/2019 ABAP Real Qts
1/26
ALL The Best
1. The search help function know various link options in the ABAP dictionary. Which of thefollowing statements apply !elect the True
A search help function that is linked to the data element can return values only
for the search field "field where the f# help was triggered$
%f the search help function is linked to the data element as well as to the field.
The search help for the field is displayed
A search help function that is linked to the ta&le field can return values only for
the search field "field where the f# help was triggered$
%f the search help function is linked to a ta&le A. this search help displayed
whenever there are input fields on that screen that have A as the check ta&le
'. %s it possi&le to increase the num&er of key fields in transparent ta&les that are already
active
(es) irrespective of whether the ta&le already contains data or not
*o) +ey changes are not allowed
(es) ,owever) the ta&le must not contain any data yet.
-. hanges to active transparent ta&les/ The type for the non0key field is to &e changed
from *2 to ,A3. What follow0up actions are to &e e4pected !elect True "yes$.
%f the ta&le does not contain any data yet) the ta&le only needs to &e activated. %n
this case) you delete the old ta&le from the data&ase and afterwards you recreate
the changed structure
8/12/2019 ABAP Real Qts
2/26
%f the ta&le already contains data) this change needs to &e e4ecuted first in the
data&ase &y the data&ase administrator. Afterwards) you can reactivate the ta&le
in the 5ictionary
%f the ta&le already contains data) you have two options/ 6ither the data&ase can
show this change with the statement ALT63 TABL6) or you trigger a conversionprocess from within the !AP !ystem
Type changes in the 5ictionary are supported for key fields only. %n the case of
non0key fields) such changes can &e e4ecuted only &y the data&ase
administrator using special data&ase techni7ues
#. (ou want change the technical properties that are defined in a domain. ,ow do you
proceed8which statements are correct !elect True
%f a dependent o&9ect is a transparent ta&le that already contains data) the ta&le
in the data&ase may have to &e converted
:nce changes have &een made and the domain activated) you have to reactivate
each dependent o&9ect individually
Before you make any changes) use a where0used list to search for dependent
o&9ects) since the changes can continue to the fields in structures and data&ase
ta&les
(ou make the changes immediately) since) initially) an inactive version is created
for all dependent o&9ects that contain these changes
;. Which of the following statements a&out the !AP ta&le &uffer are correct !elect True
1. 6ach application server involved in an !AP !ystem has its own ta&le &uffer
'. Large ta&les must &e &uffered as completely as possi&le
-. When ta&les are &uffered in the !AP ta&le &uffer) inconsistencies can occur &etween
the status in the !AP ta&le &uffer and the status in the data&ase.
#. 5ata&ase views can &e &uffered
8/12/2019 ABAP Real Qts
3/26
. ?or what purpose are foreign key "?+$ defined in the ABAP 5ictionary !elect True
?or the propose data consistency/ when you maintain data records using dialog
transaction "screens$.
The input values are automatically check in accordance with the ?+s.
?+s are used solely for documenting ta&le relationships
?or the purpose of data consistency/ when you active the ta&le the ?+s is
created in the data&ase. (ou thus prevent invalid data from getting into the ta&le.
8/12/2019 ABAP Real Qts
4/26
@. 3efcl is a reference to the class cldocument. refif is a reference to the interface
ifdisplay. The interface ifdisplay is implemented &y the class cldocument. What
option do you have to create an o&9ect of the class cldocment !elect True "yes$
1.5ATA classname T(P6 string.
classname CL5:26*TC.
36AT6 :BD6T refif T(P6 "classname$.
'. 36AT6 :BD6T refif T(P6 cldocument.
-. 36AT6 :BD6T refif.
#. 36AT6 :BD6T refcl.
1E. %n the case of classes) we distinguish &etween two types of components "attri&utes and
methods$/ %nstance components and static components. Which of the following
statements apply in this conte4t yes.
!tatic methods can &e called through the class/
FclassnameGGFmethodnameG
%nstance methods can use &oth static as well as instance components in their
implementation part.
!tatic attri&utes e4ist only once for each class
%n a static method) instance attri&utes can also &e used) provided they are
declared as 36A5 :*L(
Both static as well as instance attri&utes are declared using the 5ATA statement.
11. sing the statement 36AT6 :BD6T you can instantiate o&9ects of a class. Whatsituations can arise here
(ou can preset different o&9ects of a class with different values immediately when
they are &eing created
8/12/2019 ABAP Real Qts
5/26
(ou define the type and num&er of attri&utes of an o&9ect through the
corresponding class.
All o&9ects of the same class contain the same num&er of attri&utes and methods
after &eing created.
The contents of the attri&utes of different o&9ects in a class always contain the
same content or value immediately after &eing created.
1'. What is allowed within class definitions !elect True "yes.$
The definition of internal ta&les with header lines
Typing with T(P6 to ABAP 5ictionary types.
Typing with L%+6 to ABAP 5ictionary types.
The definition of internal ta&les without header lines.
The TABL6! statement.
1-. Which of the following statements a&out functional methods are correct "(es$
?unctional methods have e4actly one 36T3*%*H parameter.
(ou can functional methods directly in a W3%T6 statement.
(ou can use functional methods directly in an arithmetic e4pression.
?unctional methods cannot have any 6IP:3T%*H or ,A*H%*H parameters.
1#. What is true a&out "instance$ constructor
An instance method for controlling how much main memory is to &e reserved for
an o&9ect.
An instance attri&ute that is automatically given a uni7ue identification &y the
system when an o&9ect is created.
8/12/2019 ABAP Real Qts
6/26
An instance method for initialiJing the attri&utes of an o&9ectK it is automatically
called &y the system during 36AT6 :BD6T.
1;. Which of the following statements a&out interfaces are correct !elect True "yes.$
1.%nterfaces are used to call static components of a class
'.sing interfaces you can simulate multiple inheritance
-.%nterfaces actually stand for an interface "protocol$ &etween a client "interface user$
and a server "implementing class$.
#.A client "caller$ can use interface reference to access all methods of the interfaces and
thus archive polymorphism &ehavior.
;.sing interface references you can reference all the pu&lic components of an o&9ect
that have &een defined in the corresponding interface0implementing class.
1
8/12/2019 ABAP Real Qts
7/26
1=. Which techni7ues are &asic re7uirements for polymorphism "(es.$
%mplementation of methods of an interface in the respective classes "for
polymorphism through interfaces$.
3edefinition of methods "for polymorphsim through inheritance$.
*arrowing ase
Widening ast
1>. Typing is not always necessary in ABAP) for e4ample) for interface parameters of a
su&routine. Which of the following statements applies to ABAP o&9ects
Typing is imperative for interface parameters of a method &elonging to an ABAP
o&9ects class
%f you have numeric interface parameter in an ABAP :&9ects class. (ou can do
without typing.
To simplify writing the software and design it clearly) you can do without typing
altogether within the ABAP o&9ect classes.
[email protected] What is the advantage of shared o&9ects over import8e4port to shared memory8&uffer
2ore than one answer is correct. 5ecide whether each answer is true
%n shared o&9ects areas) networks of o&9ect references can &e stored.
5ata in shared o&9ects areas is compressed.
5ata in shared o&9ects areas can &e accessed directly) without the data having to
&e copied
2ore data can always &e saved in shared o&9ects areas than in the shared
memory8&uffer
'E. Which of the following statements a&out internal ta&les is correct (es.
+ey access to an internal ta&le of the type !TA*5A35 generally has even less
runtime consumption than inde4 access.
%nde4 access to an internal ta&le of the type ,A!,65 has less runtime
consumption.
8/12/2019 ABAP Real Qts
8/26
Access to nested internal ta&les using field sym&ols usually increase
performance
(ou can perform a &inary search on interna