🧪 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.




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.




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




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




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




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




7. A DO loop increments the system field ____.




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




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




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




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.




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




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.




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.




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




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




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




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




19. To remove lines from a database table, use ____.




20. Which table type would be most appropriate for accessing table rows 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.




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.




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




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




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




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




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




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




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




30. Which ABAP program attribute provides access protection?




31. Which ABAP program attribute provides access protection? A:




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.




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




34. The following code indicates CALL SCREEN 300.




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




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




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




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.




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




40. To place a checkbox on a list, use