Olete.in
Articles
Mock Tests
🧪 SAP Security MCQ Quiz Hub
SAP ABAP Multiple Choice Question
Choose a topic to test your knowledge and improve your SAP Security skills
1. This data type has a default length of one and a blank default value.
I
N
C
D
2. 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
3. All of these allow you to step through the flow of a program line-by-line except:
Enter /h then execute
Execute in debug mode
Enter /i then execute
Set a breakpoint
4. Which of the following may NOT be modified using the ABAP Dictionary transaction? C: Lock objects D:
Type groups
Search help
Lock objects
Function groups
5. In a line of code, text-100, is an example of which type of text element?
Text symbol
Selection text
Text title
Text identifier
6. The editor function that formats and indents the lines of code automatically is called ____.
Auto align
Pretty printer
Generate version
Syntax check
7. A DO loop increments the system field ____.
SY-LOOPI
SY-TABIX
SY-LSIND
SY-INDEX
8. The field declared below is of what data type? DATA: new_fld(25).
P
N
I
C
9. 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.
10. The business (non-technical) definition of a table field is determined by the field’s ____.
domain
field name
data type
data element
11. What will be output by the code below? DATA: alph type I value 3. write: alph. WHILE alph > 2. write: alph. alph = alph – 1. ENDWHILE.
3
3 2
3 3 2
3 3
12. To allow the user to enter a single value on a selection screen, use the ABAP keyword ____.
SELECT-OPTIONS.
PARAMETERS.
RANGES.
DATA
13. What will be output by the following code? DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab. itab-fval = 1. APPEND itab. itab-fval = 2. APPEND itab. REFRESH itab. WRITE: /1 itab-fval.
1
2
blank
0
14. If itab contains 20 rows, what will SY-TABIX equal when the program reaches the WRITE statement below? SY-TABIX = 10. LOOP AT itab. count_field = count_field + 1. ENDLOOP. WRITE: /1 count_field.
0 B: 10 C: 20 D: 30
10
20
30
15. To select one record for a matching primary key, use ____.
SELECT
SELECT INTO
SELECT SINGLE
SELECT ENTRY
16. In regard to MOVE-CORRESPONDING, which of the following is NOT a true statement?
Moves the values of components with identical names.
Fields without a match are unchanged.
Corresponds to one or more MOVE statements.
Moves the values of components according to their location.
17. The ABAP keyword for adding authorizations to a program is ____.
AUTH-CHECK
AUTHORITY-CHECK
AUTHORIZATION-CHECK
AUTHORITY-OBJECT
18. To read an exact row number of an internal table, use this parameter of the READ TABLE statement.
INDEX
TABIX
ROW
WHERE
19. To remove lines from a database table, use ____.
UPDATE
MODIFY
ERASE
DELETE
20. Which table type would be most appropriate for accessing table rows using an index.
Hashed table
Standard table
Sorted table
None of these may be accessed using an index.
21. The following code indicates: SELECTION-SCREEN BEGIN OF BLOCK B1. PARAMETERS: myparam(10) type C, Myparam2(10) type N, SELECTION-SCREEN END OF BLOCK.
Draw a box around myparam and myparam2 on the selection screen.
Allow myparam and myparam2 to be ready for input during an error dialog.
Do not display myparam and myparam2 on the selection screen.
Display myparam and myparam2 only if both fields have default values.
22. The following code reorders the rows so that: DATA: itab LIKE kna1 OCCURS 0 WITH HEADER LINE. itab-name1 = ‘Smith’. itab-ort01 = ‘Miami’. APPEND itab. itab-name1 = ‘Jones’. itab-ort01 = ‘Chicago’. APPEND itab. itab-name1 = ‘Brown’. itab-ort01 = ‘New York’. APPEND itab. SORT itab BY name1 ort01.
Smith appears before Jones
Jones appears before Brown
Brown appears before Jones
Miami appears before New York
23. If a table contains many duplicate values for a field, minimize the number of records returned by using this SELECT statement addition.
MIN
ORDER BY
DISTINCT
DELETE
24. All of the following pertain to interactive reporting in ABAP except:
Call transactions and other programs from a list.
Secondary list shows detail data.
Good for processing lists in background.
AT USER-COMMAND
25. 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.
26. Errors to be handled by the calling program are defined in a function module’s ____.
source code
source code
exporting interface
main program
27. 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.
28. The SAP service that ensures data integrity by handling locking is called:
Update
Dialog
Enqueue/Dequeue
Spool
29. What standard data type is the following user-defined type? TYPES: user_type.
N
C
I
Undefined
30. Which ABAP program attribute provides access protection?
Status
Application
Development class
Authorization group
31. Which ABAP program attribute provides access protection? A:
Status
Application
Development class
Authorization group
32. Page headers for a secondary list should be coded in which event? A: TOP-OF-PAGE. B: START-OF-SELECTION. C: TOP-OF-PAGE DURING LINE-SELECTION. D: AT USER-COMMAND.
Page headers for a secondary list should be coded in which event? A: TOP-OF-PAGE.
START-OF-SELECTION.
TOP-OF-PAGE DURING LINE-SELECTION.
AT USER-COMMAND.
33. Given: PERFORM subroutine USING var. The var field is known as what type of parameter?
Formal
Actual
Static
Value
34. The following code indicates CALL SCREEN 300.
Start the PAI processing of screen 300.
Jump to screen 300 without coming back
Temporarily branch to screen 300. *
Exit screen 300.
35. Which of the following would be stored in a table as master data?
Customer name and address
Sales order items
Accounting invoice header
Vendor credit memo
36. In relation to an internal table as a formal parameter, because of the STRUCTURE syntax, it is possible to:
Use the DESCRIBE statement within a subroutine.
Loop through the internal table within a subroutine.
Access the internal table fields within a subroutine.
Add rows to the internal table within a subroutine.
37. This data type has a default length of one and a default value = ‘0’.
P
C
N
I
38. In regard to the code below, which of the following is not a true statement? TABLES: KNA1. GET KNA1. Write: /1 kna1-kunnr. END-OF-SELECTION.
The GET event is processed while a logical database is running.
All the fields from table KNA1 may be used in the GET event.
You can code the GET event elsewhere in the same program
None of the above
39. 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
40. To place a checkbox on a list, use
WRITE CHECKBOX.
FORMAT CHECKBOX ON.
WRITE old AS CHECKBOX.
MODIFY LINE WITH CHECKBOX.
Submit