🧪 SAP Security MCQ Quiz Hub

SAP ABAP Multiple Choice Question

Choose a topic to test your knowledge and improve your SAP Security skills

This data type has a default length of one and a blank default value.





✅ Correct Answer: 3

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.





✅ Correct Answer: 3

All of these allow you to step through the flow of a program line-by-line except:





✅ Correct Answer: 3

Which of the following may NOT be modified using the ABAP Dictionary transaction? C: Lock objects D:





✅ Correct Answer: 4

In a line of code, text-100, is an example of which type of text element?





✅ Correct Answer: 1

The editor function that formats and indents the lines of code automatically is called ____.





✅ Correct Answer: 2

A DO loop increments the system field ____.





✅ Correct Answer: 4

The field declared below is of what data type? DATA: new_fld(25).





✅ Correct Answer: 4

In regard to the INITIALIZATION event, which of the following is NOT a true statement?





✅ Correct Answer: 2

The business (non-technical) definition of a table field is determined by the field’s ____.





✅ Correct Answer: 3

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.





✅ Correct Answer: 4

To allow the user to enter a single value on a selection screen, use the ABAP keyword ____.





✅ Correct Answer: 4

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.





✅ Correct Answer: 2

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.





✅ Correct Answer: 3

To select one record for a matching primary key, use ____.





✅ Correct Answer: 3

In regard to MOVE-CORRESPONDING, which of the following is NOT a true statement?





✅ Correct Answer: 4

The ABAP keyword for adding authorizations to a program is ____.





✅ Correct Answer: 2

To read an exact row number of an internal table, use this parameter of the READ TABLE statement.





✅ Correct Answer: 2

To remove lines from a database table, use ____.





✅ Correct Answer: 4

Which table type would be most appropriate for accessing table rows using an index.





✅ Correct Answer: 3

The following code indicates: SELECTION-SCREEN BEGIN OF BLOCK B1. PARAMETERS: myparam(10) type C, Myparam2(10) type N, SELECTION-SCREEN END OF BLOCK.





✅ Correct Answer: 1

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.





✅ Correct Answer: 3

If a table contains many duplicate values for a field, minimize the number of records returned by using this SELECT statement addition.





✅ Correct Answer: 3

All of the following pertain to interactive reporting in ABAP except:





✅ Correct Answer: 3

In regard to a function group, which of the following is NOT a true statement?





✅ Correct Answer: 4

Errors to be handled by the calling program are defined in a function module’s ____.





✅ Correct Answer: 1

In regard to the START-OF-SELECTION event, which of the following is a true statement?





✅ Correct Answer: 4

The SAP service that ensures data integrity by handling locking is called:





✅ Correct Answer: 3

What standard data type is the following user-defined type? TYPES: user_type.





✅ Correct Answer: 2

Which ABAP program attribute provides access protection?





✅ Correct Answer: 4

Which ABAP program attribute provides access protection? A:





✅ Correct Answer: 4

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.





✅ Correct Answer: 3

Given: PERFORM subroutine USING var. The var field is known as what type of parameter?





✅ Correct Answer: 2

The following code indicates CALL SCREEN 300.





✅ Correct Answer: 3

Which of the following would be stored in a table as master data?





✅ Correct Answer: 1

In relation to an internal table as a formal parameter, because of the STRUCTURE syntax, it is possible to:





✅ Correct Answer: 3

This data type has a default length of one and a default value = ‘0’.





✅ Correct Answer: 3

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.





✅ Correct Answer: 4

The following code indicates: SELECT fld1 FROM tab1 INTO TABLE itab UP TO 100 ROWS WHERE fld7 = pfld7.





✅ Correct Answer: 4

To place a checkbox on a list, use





✅ Correct Answer: 3