If a field, NAME1, is declared as a global data object, what will be output by the
following code?
report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.
name1 = 'Customer name'.
CLEAR name1.
perform write_name.
FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
Customer name
ABAP programmer
Material number
None of the above
. Which of the following will allow you to step through the flow of a program line-by-line?
(Consists of more than one answer)
Enter /h then execute
Execute in debug mode
Enter /i then execute
Set a breakpoint
. In a line of code, text-100, is an example of which type of text element?
Text symbol
Selection text
Text title
Text identifier
. The editor function that formats and indents the lines of code automatically is called
Auto align
Pretty printer
Generate version
Screen Painter
. The event that is processed after all data has been read but before the list is displayed is
END-OF-PAGE.
START-OF-SELECTION.
END-OF-SELECTION.
AT LINE-SELECTION.
. The field declared below is of what data type?
DATA: new_fld(25).
P N I C. In regard to the INITIALIZATION event, which of the following is NOT a true statement?
Executed before the selection screen is displayed.
You should use SET PF-STATUS here.
You can assign different values to PARAMETERS and SELECT-OPTIONS here.
Executed one time when you start the report.
. What will be output by the code below?
DATA: alph type I value 3.
write: alph.
WHILE alph > 2.
alph = alph - 1.
write: alph.
ENDWHILE.
3
3 2
3 3 2
3 3
. In regard to a function group, which of the following is NOT a true statement?
Combines similar function modules.
Shares global data with all its function modules.
Exists within the ABAP workbench as an include program.
Shares subroutines with all its function modules.
. In regard to the START-OF-SELECTION event, which of the following is a true statement?
Executed before the selection screen is displayed.
This is the only event in which a SELECT statement may be coded.
Executed when the user double-clicks a list row.
Automatically started by the REPORT statement.
. What will be the output of below code?
DATA: a type i value 12,
b type i value 2,
c type i vlaue 1,
opt type c value 'R'.
write: a.
if opt eq 'D'.
c = a / b.
write c.
elseif opt eq 'R'.
c = a mod b.
write c.
endif.
12 2
12 1
12 6
12
. The order in which an event appears in the ABAP code determines when the event is processed
True False. Given:
PERFORM subroutine USING var.
The var field is known as what type of parameter?
Formal
Actual
Static
Value
. The following statement will result in a syntax error.
DATA: price(3) type p decimals 2 value '100.23'.
True False. This data type has a default length of one and a default value = '0'.
P C N I. To prevent duplicate accesses to a master data field:
(Contains more than one answer)
Create an index on the master data field.
Remove nested SELECT statements.
Use SELECT SINGLE.
Buffer the data in an internal table.
. The following code indicates:
SELECT fld1 FROM tab1 INTO TABLE itab
UP TO 100 ROWS
WHERE fld7 = pfld7.
Itab will contain 100 rows.
Only the first 100 records of tab1 are read.
If itab has less than 100 rows before the SELECT, SY-SUBRC will be set to 4.
None of the above
. Function module source code may not call a subroutine.
True False. Which of these is NOT a valid type of function module?
Normal
Update
RFC Dailog. The following code indicates
write: /5 'I Love ABAP'.
Output 'I Lov' on the current line
Output 'I Love ABAP' starting at column 5 on the current line
Output 'I Lov' on a new line
Output 'I Love ABAP' starting at column 5 on a new line
. Which of the following is NOT a component of the default standard ABAP report header?
Date and Time
List title Page number Under Line. The output for the following code will be
report zabaprg.
DATA: my_field type I value 99.
my_field = my_field + 1.
clear my_field.
WRITE: 'The value is', my_field left-justified.
The value is 99
The value is 100 The value is 0 None of the above. If this code results in an error, the remedy is
SELECT * FROM tab1 WHERE fld3 = pfld3.
WRITE: /1 tab1-fld1, tab1-fld2.
ENDSELECT.
(Contains more than one answer)
Add a SY-SUBRC check.
Change the * to fld1 fld2. Add INTO (tab1-fld1, tab1-fld2). There is no error. Which of the following is NOT a numeric data type?
I N P F. Which attribute is invalid for a domain?
Type
Fixed Values Length Header. In an ABAP program, which of the following Processing blocks are not allowed?
Subroutine and Function Modules
Methods Event Block Program Symbols. What is the transaction used to create tcode for a report ?
SE91
SE93 SE80 SE38. What are the output formats of ALV?
List and Grid
List and Forms Forms and Scripts Grids and Layout. In regard to the field selection, which option of the SELECT statement is required?
FOR ALL ENTRIES IN
WHERE INTO MOVE-CORRESPONDING. Which of the following can be used for customization of the screens?
Report Dailog Dailog Programming Changing Parameters
.
|