Вы находитесь на странице: 1из 16

List Of Important System Variables

In ABAP many times one needs to check certain system variables. Based on the result the
program may branch to the desired location. For example while running the ABAP program one
may need to check the name of the user, based on the user name the program may branch to a
certain location. Also the system date and time is stored in certain system variables. he
following chart gives the names of the variables.
I!"#$ %&I!"#$ I!' () ) *oops,
number of
current pass
PA+!, %&PA+!, I!' () ) *ist
creation,
current
page
ABI$ %&ABI$ I!' () ) Internal
table,
current line
index
FI** %&FI** I!' () ) Internal
tables,
current
number of
lines
"B-! %&"B-! I!' () ) "B
operations,
number of
table lines
processed
F"P,% %&F"P,% I!' () ) -haracter
strings,
offset in
character
string
(
-,*!, %&-,*!, I!' () ) *ist
creation,
current
column of
list
*I!- %&*I!- I!' () ) *ist
processing,
page length
of list
*I!!, %&*I!!, I!' () ) *ist
creation,
current line
*I!%. %&*I!%. I!' () ) *ist
creation,
width of list
%/B0- %&%/B0- I!' () ) 0eturn
value,
return value
after ABAP
statements
*I**I %&*I**I I!' () ) *ist
processing,
current list
line
*%I!" %&*%I!" I!' () ) *ist
processing,
details list
index
%#P* %&%#P* I!' () ) %creens,
current
table line
index
1
*,,P- %&*,,P- I!' () ) %creens,
number of
lines visible
in table
*A!+/ %&*A!+/ *A!+ ( ) 023 %ystem,
current
language
4A!" %&4A!" -*! 3 ) 023 %ystem,
client
number
from logon
"B%&% %&"B%&% -5A0 () ) 023 %ystem,
name of
central
database
system
%&%I" %&%&%I" -5A0 6 ) 023 %ystem,
name of
023 %ystem
%AP0* %&%AP0* -5A0 ' ) 023 %ystem,
system
release
-,"# %&-,"# -5A0 1) ) ABAP
program,
current
transaction
code
"A/4 %&"A/4 "A% 6 ) "ate and
time,
current
7application
server8 date
3
/-,44 %&/-,44 -5A0 9) ) %creens,
function
code
triggered by
PAI
/.#I %&/.#I I4% : ) "at and
time,
current
application
server time
/!A4# %&/!A4# -5A0 (1 ) 023 %ystem,
user logon
name
4%+*I %&4%+*I -5A0 :) ) 4essages,
message
line
I*# %&I*# -5A0 9) ) %creens,
title text
*I%#* %&*I%#* -5A0 1;; ) *ist
processing,
contents of
selected
line
/*I!# %&/*I!# -5A0 1;; ) -onstants,
hori<ontal
line with
length 1;;
4%+I" %&4%+I" -5A0 1) ) 4essages,
message
class
4%+I" %&4%+I" -5A0 1) ) 4essages,
'
message
class
4%+& %&4%+& -5A0 ( ) 4essages,
message
type
4%+!, %&4%+!, !/4- 3 ) 4essages,
message
number
4%+=( %&4%+= -5A0 ;) ) 4essages,
message
variables
4%+=1 %&4%+= -5A0 ;) ) 4essages,
message
variables
4%+=3 %&4%+= -5A0 ;) ) 4essages,
message
variables
4%+=' %&4%+= -5A0 ;) ) 4essages,
message
variables
=*I!# %&=*I!# -5A0 ( ) -onstants,
vertical bar
5,% %&5,% -5A0 31 ) 023 %ystem,
!ame of
application
server
;
(. >hich statements are allowed if you are working with an internal table of the
type %,0#"? 72F8
@ -,**#-
@ 0#A"
1. >hich of the following ABAP statements create a list for executable programs?
72F8
@ %AIP
@ >0I#
@ /*I!#
3. >hich of the following statements are correct? 72F8
@ &ou can select from several database tables using a database view or a Boin.
@ A secondary index for non@key fields generally works like a primary index for
key fields.
@ A key field in a database table uniCuely identifies a data record.
@ he ,P#! %D* statements are converted into database@specific statements by
the database interface.
'. >hat do you get when you refer to a client@specific transparent table in the
"ictionary if you have a data definition with AB*#%? 7%ingle selection8
@ A structured work area 7line8.
;. In program P, the %/B4I statement is used to call report 0. 5ow can you pass
data from P to 0? 72F8
@ /sing the %#2+# parameters.
@ By passing parameters using additions in the %/B4I statement.
@ /sing the ABAP memory.
:. >hich of the following statements about the %#*#- statement are correct?
72F8
@ >ith %#*#- %I!+*# access, the result is one data record maximum.
@ he %#*#- statement supports the return code 7%&@%/B0-8.
9. >hich of the following statements about data types, data obBects, and field
symbols are correct? 72F8
@ If you change the value of a field symbol, the value of the data obBect to which
the field
symbol is assigned also changed.
@ A field symbols only references a data obBect after the latter has been assigned
to the field symbols using the A%%I+! statement.
:
@ &ou can change the type of the assigned data obBect using the -A%I!+@&P#
addition for the A%%I+! statement.
6. >hich of the following statements about internal tables is correct? 72F8
@ Access to nested internal tables using field symbols usually increase
performance.
E. &ou want a subroutine / to have a formal parameter P that is used to return a
value. >hich of the following definitions of / would you use to ensure that the
value is passed back to the calling program only if the processing of / ends
normally and is not terminated with a 4#%%A+# statement? 7%ingle selection8
@ F,04 / -5A!+I!+ =A*/#7P8.
(). >hich statement at the time of A %#*#-I,!@%-0##! causes the selection
screen to be displayed again with fields ready for input and a message in the
status line? 7%ingle selection8
@ A 4#%%A+# #...statement
((. >hat do you get when you refer to a client@specific transparent table in the
"ictionary if you have a data definition with AB*#%? 7%ingle selection8
@ A structured work area 7line8.
(1.>hich of the following events generate lists? 72F8
@ A *I!#@%#*#-I,!.
(3. >hich component of an application sever controls the data traffic between a
work process and a presentation server? 7%ingle selection8
@ "ispatcher.
('. For which tasks is the database interface responsible? 72F8
@ -onversion of ,pen %D* statement from ABAP statements into the corresponding database
statements.
@ "atabase independence of application programs.
@ /sage of the %AP buffers.
(;.
>hich %AP +/I types are there? 72F8
@ %AP +/I for >indows
@ %AP +/I for 54*.
@ %AP +/I for Fava.
(:. >here can you have automatic input checks against the check table? 7%ingle
selection8
@ For input fields on screens if the input fields have been copied from the
9
"ication into the %creen Painter.
(9. Is it possible to increase the number of key fields in transparent tables that
are already active? 7%ingle selection8
@ !o, Aey changes are not allowed.
(6. >hich of the following statements about APP#!" structures are true? 72F8
@ An APP#!" structure allow you to append field to an %AP table without having
to modify the table itself.
1). >hich of the following statements apply to a database view? 72F8
@ /sing a database view, you can read data from several tables.
@ A database view can have one or several base tables.
1(.he search help function know various link options in the ABAP dictionary.
>hich of the following statements apply? 72F8
@ If the search help function is linked to the data element as well as to the field.
he search help for the field is displayed.
@ If the search help function is linked to a table A. this search help displayed
whenever there are input fields on that screen that have A as the check table.
11. >hich statements about parameters for an elementary search help apply? 72F8
@ Parameters can be displayed on the result list.
@ Import parameters control which data can be included in the data selection.
@ #xport parameters control which data can be returned to the input template.
13.>hich of the following statements about indexes are correct? 72F8
@ he primary index consists of the key fields of the database table.
@ A database table can have more than one index.
@ /sing an index speeds up data selection from a table.
1'.For what purpose are foreign key 7FA8 defined in the ABAP "ictionary? 7%ingle selection8
@ For the propose data consistencyG when you maintain data records using dialog
transaction 7screens8.
@ he input values are automatically check in accordance with the FAs.
1;.In which of the following table types is there a one@to@one relationship between
the table defined in the ABAP "ictionary and relevant physical table in the
database?
@ ransparent database table.
6
1:. >hat is allowed within class definitions? 72F8
@ he definition of internal tables without header lines.
@ yping with &P# to ABAP "ictionary types.
19.>hich techniCues are basic reCuirements for polymorphism? 72F8
@ !arrowing -ase.
@ 0edefinition of methods 7for polymorphsim through inheritance8.
@ Implementation of methods of an interface in the respective classes
7for polymorphism through interfaces8.
16.>hich of the following statements about interfaces are correct? 72F8
@ Interfaces actually stand for an interface 7protocol8 between a client 7interface
user8 and a server 7implementing class8.
@ A client 7caller8 can use interface reference to access all methods of the interfaces and thus
archive polymorphism behavior.
@ /sing interfaces you can simulate multiple inheritance.
1E./sing the statement -0#A# ,BF#- you can instantiate obBects of a class.
>hat situations can arise here? 72F8
@ All obBects of the same class contain the same number of attributes and
methods after being created.
@ &ou can preset different obBects of a class with different values immediately
when they are being created.
@ &ou define the type and number of attributes of an obBect through the
corresponding class.
3). 0efHcl is a reference to the class clHdocument. refHif is a reference to the
interface ifHdisplay.
he interface ifHdisplay is implemented by the class clHdocument. >hat option
do you have to create an obBect of the class clHdocment? 72F8
@ -0#A# ,BF#- refHcl.
@ -0#A# ,BF#- refHif &P# clHdocument.
@ "AA classHname &P# string.
classHname I J-*H",-/4#!J.
-0#A# ,BF#- refHif &P# 7classHname8.
3(.In the case of classes, we distinguish between two types of components
7attributes and methods8G
Instance components and static components. >hich of the following statements
E
apply in this context? 72F8
@ Instance methods can use both static as well as instance components in their
implementation part.
@ %tatic methods can be called through the classG
KclassHnameLILKmethodHnameL.
@ %tatic attributes exist only once for each class.
31.>hich of the following statements about functional methods are correct?
72F8
@ Functional methods cannot have any #$P,0I!+ or -5A!+I!+ parameters.
@ Functional methods have exactly one 0#/0!I!+ parameter.
@ &ou can use functional methods directly in an arithmetic expression.
33. >hich of the following statements apply to the %AP grid control? 72F8
@ -an only display single@line lists.
@ Provides standard functions such as sorting.
3'.>hich access authori<ations apply to friend relationships? 72F8
@ A friend of a class access to the public attributes of the class allowing the
friendship.
@ A friend of a class has access to the private attributes of the class allowing the
friendship.
@ he allowing of a friendship is not inherited.
3;.>hich statements in connection with methods are correct? 72F8
@ *ike form routines or function modules, methods are a means to modulari<e
software.
@ %imilar to the case with function modules, you have the option with methods of
marking parameters as JoptionalJ.
3:.%#1'
If you have a J%ingleton PatternJ, you must ensure that only one obBect can be
created from a clHsingleton class. >hat mechanisms must you avail of here?
@ he singleton class must have a class method implemented in which the
-0#A# ,BF#- call is programmed for this one obBect.
@ he singleton class must have the addition -0#A# P0I=A# in the definition
part.
()
@ In the singleton class, there must be an even defined that is triggered when the first and only
obBect is created and also prevents further obBects of this class from being created.
@ he singleton class must have an instance method implemented in which the
-0#A# ,BF#- call is programmed for this one obBect.
@ he -0#A# ,BF#- call for this one obBect can take place in the class
constructor of the singleton class.
39.he reference 4# is defined by the system and has the following function.7%ingle selection8
@ &ou use the reference 4# within a class to call attributes and methods of the
class itself.
36.In a ,, transaction, a transaction code is assigned to a method of a global class
-*HA. Afterwards,
this method can be called directly using the transaction code. >hat limitation
exists with regard to the 7instance8 constructor of this class -*HA?
@ he constructor must not have any importing parameters.
3E.>hich of the following statements about inheritance are correct? 72F8
@ hrough inheritance, the public attributes of the super class are inherited to the
subclass.
@ hrough inheritance, the protected attributes of the super class are inherited to
the subclass.
').yping is not always necessary in ABAP, for example,
for interface parameters of a subroutine. >hich of the following statements
applies to ABAP obBects? 7%ingle selection8
@ yping is imperative for interface parameters of a method belonging to an ABAP
obBects class.
'(.>hat is a 7instance8 constructor? 7%ingle selection8
@ An instance method for initiali<ing the attributes of an obBectM it is automatically
called by the system during -0#A# ,BF#-.
'1.>hich statements apply to dialog program? 7%ingle selection8
@ If you are using asynchronous update, the statement -,44I >,0A is not
reCuired because it is executed implicitly after each screen change.
'3.>hat can you do to undo database changes executed beforehand in a dialog?
72F8
@ ,utput a termination message.7AB,0, $8
((
@ Perform a 0,**BA-A >,0A.
''. >hich of the following steps should be carried out in a transaction that implements an
updating techniCue? 72F8
@ -all the ABAP command -,44I >,0A.
';. &ou call an update function using -A** F/!-I,! ... I! /P"A# A%A. At
what time are the values of the function parameters determined? 7%ingle
selection8
@ At -,44I >,0A.
':. &ou are writing a transaction to update a database table. >hich of the
following elements must the program contain? 72F8
@ A call for #!D/#/#2"#D/#/# fuction modules.
@ An A/5,0I&@-5#-A statement.
@ A call for an update function module in the case of time@consuming changes.
'9. >hat are the main reasons for using update techniCues? 72F8
@ o create reusable modules for database changes.
@ o relieve the load on the dialog work processes.
'6. >hat happens if you have a -A** 0A!%A-I,! statement? 72F8
@ he update process triggered by the called transaction can be executed
asynchronously or synchronously, as reCuired.
@ he called transaction is processed in a separated database */>.
@ Processing of the calling program will be continued at the end of the
transaction.
@ Another internal session is opened for the transaction.
'E.>hich sub obBects can an %AP enhancement contain? 72F8
@ 4enu exits.
@ %creen exits.
@ Append %tructures.
@ Function module exits.
;).&ou want to supply your users with a transaction variant. /sing transaction
variants you can N 72F8
(1
@ ... reduce the complexity of transactions.
@ ... suppress individual fields.
@ ... suppress entire7a8 screens.
;(.>hich of the following statements apply to table appends? 72F8
@ here can be several append structures for one table.
@ If you copy a table to which an append structure has been added, the fields in
the append structure become standard fields in the table.
@ >hen you active the table, all the active append structure of the table are
established and appended to the table in the database.
;1. &ou wish to use a Business ransaction #vent 7B#8 to enhance an %AP
application. >hich statement applies? 72F8
@ B#s allow you to link up addtional components to the %AP standard system.
@ B#s interface can be used repeatedly.
;3. &ou wish to modify an %AP program. >hat do you need to watch out for?
72F8
@ If a user has modified an %AP obBect and %AP delivers a new version of the
obBect in a release upgrade of %upport Package, the modified obBect must be adBusted during the
upgrade.
@ &ou can perform the modification immediately if you set the global setting for system
modifiability to J4odifiableJ. 0.((7-,!FI+/0AI,!8
@ Before you can change the program, you must reCuest a key for the obBect in
the %AP !ew >eb front@end.
;'. &ou wish to adapt the %AP standard software to the needs of the customer.
>hich of the following methods should you preferably use? 72F8
@ -ustomi<ing.
@ #nhancement concept.
;;.Assuming a customer has modified %AP obBects in the customer system, which
activities are reCuired at release upgrade or when applying a %upport Package?
72F8
@ ABAP "ictionary obBects are not handled separately.
@ he modified obBects must be adBusted to match the standard version whenever %AP delivers
new versions of the obBects.
@ After each upgrade, the new %AP obBects is available as an active version.
(3
;:.&ou wish to use a Business Add@In 7BAdI8 in order to enhance an %AP application.>hich of
the following statements are correct?
@ A BAdi always has exactly one interface in which the methods of the
enhancement are defined.
@ BAdis can contaion menu enhancements.
;9.5ow do you output icons on an ABAP list? 7%ingle selection8
@ &ou must enter the include KiconL in the program and also specify the addition A% I-,! in
the >0I# statement.
;6.5ow do you ensure there will be the correct number of decimal places for
currency amounts on an ABAP list output? 7%ingle selection8
@ By maintaining the corresponding customi<ing table and by using the addition -/00#!-&
in the >0I# statement.
;E.&ou want to output the string J!ameGJ in line 1), column () on the first page of a
list,
and the string JAddressJ immediately below it, the page should otherwise remain
blank 7no header8. >hich of the following reports can you use to achieve this?
72F8
@ 0#P,0 #% !, %A!"A0" PA+# 5#A"I!+.
skip to line 1).
position ().
writeG2 J!ameGJ, 2() JAddressGJ.
@ 0#P,0 #%.
skip to line 1).
position ().
writeG2 O!ameGO, OAddressO under O!ameO.
:).A logical database has four nodes altogether. First you have the root node
nodeH)).
/nderneath the root node you have nodeH)( and then nodeH)1 arranged in such
a way so that they belong to the same hierarchy level.
In addition, nodeH)1 has a hierarchically dependent node, nodeH1(. &ou have the
following statements in programsG !,"#%. 7%ingle selection8
@ !,"#H)), !odeH)1, !odeH1(.
@ !,"#H)), !odeH)1.
:(.A logical database has four nodes altogether. First you have the root node
('
nodeH)).
/nderneath the root node you have nodeH)( and then nodeH)1 arranged in such
a way so that they belong to the same hierarchy level.
In addition, nodeH)1 has a hierarchically dependent node, nodeH1(. &ou have
the following statements in programsG !,"#%. 7%ingle selection8
@ he event is not executed.
:1."ose a PAI occur when you switch between tab pages whose titles have function type P in a
tabstrip? 7%ingle selection8
@ !o.
:3.>hich of the following statements about context menus on screens is correct?7%ingle
selection8
@ &ou set context menus within a subprogram ,!H-4#!/HKF,04L.
:'.>hich conditions must be fulfilled in a programmed check so that a screen input field is
made ready for input again? 72F8
@ An I@type message must be output.
:;. &ou want to have the system branch to list processing from within a screen.
>hich of the following statements apply here? 7%ingle selection8
@ &ou have to program the command *#A=# , *I%@P0,-#%%I!+.
::.>hich of the following statements about pushbuttons are correct? Pushbuttons...
@ In an application toolbar always have a corresponding function key.
@ In an application toolbar always have a function code.
:9. >hat effect does the statement %/PP0#%% "IA*,+ have in a PB, module of
a screen? 7%ingle selection8
@ %creen display is suppressed.
:6.>hich of the following statements about radio buttons is correct? 7%ingle
selection8
@ For each radio button group, the user can choose only one radio button.
:E. >hich of the following statements about sub@screens are correct? 72F8
(;
@ &ou call sub@screens using the screen command -A** %/B%-0##!.
9).&ou have defined a screen with reCuired entries. &ou want the J-A!-#*J
function to work event if all the reCuired entry fields are not filled. 5ow can you do this?
7%ingle selection8
@ he P-ancelQ function must be type P#Q and be handled in a module with the
addition A #$I@-,44A!".
9(.>hich of the following statements about screens is correct? 7%ingle selection8
@ &ou assign each screen to exactly one program.
91.>here can you set the status and the title for a modal dialog box 7popup8?
7%ingle selection8
@ In a PB, module of the corresponding screen.
93.>hich of the following statements about field transport between ABAP and
screen are correct? 72F8
@ !ame eCuivalence is imperative for field transport between ABAP and screen.
@ Field transport from the screen to ABAP is delayed if you have a FI#*"
statement.
@ "ictionary structure on the screen reCuires a AB*#% statement in ABAP.
9'.&ou have created a screen with ; radio buttons. 5ow do you ensure that only one radio
button is selected at a time? 7%ingle selection8
@ -ombine all the radio buttons into a group.
9;./nder which circumstances is module with the addition ,! -5AI!@I!P/
executed? 7%ingle selection8
@ >hen the value of at least one field within -5AI! is other than its initial value.
(:

Вам также может понравиться