SAP ABAP Online Test Questions

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Cvktech
C
Cvktech
Community Contributor
Quizzes Created: 10 | Total Attempts: 42,133
Questions: 42 | Attempts: 14,411

SettingsSettingsSettings
SAP ABAP Online Test Questions - Quiz

SAP ABAP was intended to be used by SAP customers. It is designed to help customers better prepare custom reports and interface ABAP programming. The SAP ABAP Quiz below is perfect for testing out what you know so far about the topic. Give it a try and see just how prepared you are to sit for the upcoming exam. All the best!


Questions and Answers
  • 1. 

    What is the system field for the current Page Number?

    • A.

      SY-PAGENO

    • B.

      SY-PAGNUM

    • C.

      SY-PAGNO

    • D.

      SY-PAGNU

    Correct Answer
    C. SY-PAGNO
    Explanation
    The system field for the current Page Number is SY-PAGNO.

    Rate this question:

  • 2. 

    The message types are one of the following:

    • A.

      A

    • B.

      S

    • C.

      W

    • D.

      All the above

    Correct Answer
    D. All the above
    Explanation
    The correct answer is "All the above" because the question states that the message types are one of the following: A, S, W. Therefore, the correct answer includes all of these options.

    Rate this question:

  • 3. 

    Selection screen entries referring to data dictionary objects have certain checks in-built in them. Additional checks can be written using event

    • A.

      AT LINE-SELECTION

    • B.

      AT SCREEN-SELECTION

    • C.

      AT SELECTION-SCREEN

    • D.

      AT SELECTION- SCREEN ON CHECK

    Correct Answer
    C. AT SELECTION-SCREEN
    Explanation
    The "AT SELECTION-SCREEN" event is used to add additional checks to the selection screen entries referring to data dictionary objects. This event allows the programmer to write custom logic to validate the user input or perform any other necessary checks before processing the data. By using this event, the programmer can ensure that the input provided by the user meets the required criteria and avoid any potential errors or inconsistencies in the data.

    Rate this question:

  • 4. 

    Colors can be associated with the report fields using one of the following commands

    • A.

      Set color on

    • B.

      Format colors on

    • C.

      Format color on

    • D.

      Formats color on

    Correct Answer
    C. Format color on
    Explanation
    The given correct answer is "Format color on". This command is used to associate colors with the report fields. It enables the formatting of colors in the report, allowing for a visually appealing and organized presentation of data.

    Rate this question:

  • 5. 

    How can you suppress the default title of a list?

    • A.

      By defining a TOP-OF-PAGE event in the program and using it to display something else.

    • B.

      By choosing System -- List -- List header and entering your own title

    • C.

      By using the NO STANDARD PAGE HEADING addition in the REPORT statement

    • D.

      By entering a title in the text elements of the program.

    Correct Answer
    C. By using the NO STANDARD PAGE HEADING addition in the REPORT statement
    Explanation
    By using the NO STANDARD PAGE HEADING addition in the REPORT statement, you can suppress the default title of a list. This addition tells the program not to include the standard page heading in the output, allowing you to create your own title or omit it entirely.

    Rate this question:

  • 6. 

    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
    C. TOP-OF-PAGE DURING LINE-SELECTION
    Explanation
    The page headers for a secondary list should be coded in the TOP-OF-PAGE DURING LINE-SELECTION event. This event is triggered when a line is selected on the list and allows the programmer to include specific headers for that particular line. The other events mentioned, such as TOP-OF-PAGE and START-OF-SELECTION, do not provide the same level of control over the headers for a secondary list.

    Rate this question:

  • 7. 

    Which line in the following code contains a syntax error? Report abc  message-id ZP. Message Id 'ZP' type 'E' number 012. Message e013(ZP). Message e013 with '123'.  

    • A.

      First Line

    • B.

      Second Line

    • C.

      Third Line

    • D.

      Fourth Line

    Correct Answer
    B. Second Line
    Explanation
    The second line contains a syntax error because it starts with the word "Report" followed by "abc message-id ZP." This is not a valid syntax in most programming languages.

    Rate this question:

  • 8. 

    Which of the following is not a Message type?

    • A.

      A – Abbend

    • B.

      C - Continue

    • C.

      E – Error

    • D.

      I – Information

    Correct Answer
    B. C - Continue
    Explanation
    The message type "Continue" is not a valid message type. In communication protocols, "Continue" is not typically used as a message type. Instead, common message types include Abbend, Error, and Information. Therefore, "Continue" does not fit into the category of message types listed in the options.

    Rate this question:

  • 9. 

    An internal table icode contains the following entries: Field1 Field2 -------------- John 12345 Alice 23478 Sam 54321 john 50000 DATA: BEGIN OF ICODE OCCURS 0, FIELD1(5), FIELD2(5), END OF ICODE. READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.       Why does executing the above code return a sy-subrc of 4?

    • A.

      Icode-field2 must be a numeric field.

    • B.

      The internal table has an incorrect structure.

    • C.

      Both internal table fields must be used in the search.

    • D.

      The internal table must be sorted first.

    Correct Answer
    D. The internal table must be sorted first.
    Explanation
    The code is using a binary search to find a record in the internal table with the key value 'John' in the FIELD1 field. However, in order to use a binary search, the internal table must be sorted in ascending order by the key field. Since the internal table is not sorted, the binary search cannot be performed and the sy-subrc value is 4, indicating that the record was not found.

    Rate this question:

  • 10. 

    What is the default mode for passing actual parameters in a Perform?

    • A.

      By Value

    • B.

      By Reference

    • C.

      By Changing

    • D.

      By Value and Return

    Correct Answer
    B. By Reference
    Explanation
    The default mode for passing actual parameters in a Perform statement is "By Reference". This means that the actual parameters are passed to the called program or paragraph by their memory addresses. Any changes made to the formal parameters within the called program or paragraph will affect the original values of the actual parameters in the calling program or paragraph.

    Rate this question:

  • 11. 

    T-Code for Message Class Creation ?

    • A.

      SE19

    • B.

      SE91

    • C.

      SM91

    • D.

      SE10

    Correct Answer
    B. SE91
    Explanation
    SE91 is the correct answer because it is the T-Code used to create a message class in SAP. T-Codes are transaction codes that allow users to access specific functions in the SAP system. SE91 specifically refers to the transaction code for creating a message class, which is used to define and manage messages in SAP applications.

    Rate this question:

  • 12. 

    T100 Table has the following Structure?

    • A.

      Message Text

    • B.

      Language Key

    • C.

      Message number

    • D.

      All the above

    Correct Answer
    D. All the above
    Explanation
    The T100 Table has the following structure: Message Text, Language Key, and Message number. Therefore, the correct answer is "All the above" as all of these elements are present in the T100 Table structure.

    Rate this question:

  • 13. 

    Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked?

    • A.

      AT USER-COMMAND.

    • B.

      AT PFn.

    • C.

      AT SELECTION-SCREEN.

    • D.

      END-OF-SELECTION.

    Correct Answer
    A. AT USER-COMMAND.
    Explanation
    When the pushbutton with function code 'FUNC' is clicked, the event that is processed is AT USER-COMMAND. This event is triggered whenever a user interacts with the user interface, such as clicking a button or pressing a key. In this case, when the pushbutton is clicked, the AT USER-COMMAND event is triggered, allowing the program to perform the necessary actions or execute the corresponding code.

    Rate this question:

  • 14. 

    When you create Function Group By default which includes will Create?

    • A.

      INCLUDE LTOP.

    • B.

      INCLUDE TOP.

    • C.

      INCLUDE LF

    • D.

      None of these

    Correct Answer
    A. INCLUDE LTOP.
    Explanation
    When you create a Function Group by default, it includes the INCLUDE LTOP. This means that the Function Group will include the LTOP (Local Top Include) file. The LTOP file contains common data and function modules that can be used by all function modules in the Function Group. This allows for reusability and avoids duplication of code. The other options mentioned (INCLUDE TOP and INCLUDE LF) are not included by default when creating a Function Group.

    Rate this question:

  • 15. 

    Which of the Following Fields are NOT for BDCDATA Structure?

    • A.

      PROGRAM

    • B.

      FINAME

    • C.

      DYNPRO

    • D.

      FVAL

    Correct Answer
    B. FINAME
    Explanation
    The field "FINAME" is not for the BDCDATA Structure. This means that the BDCDATA Structure does not have a field named "FINAME".

    Rate this question:

  • 16. 

    Which Function Modules is Used In Hierarchical ALV Report Display?

    • A.

      REUSE_ALV_HIERESEQ_LIST_DISPLAY

    • B.

      REUSE_ALV_HIERESEQ_LIST-DISPLAY

    • C.

      REUSE_ALV_HIERSEQ_LIST_DISPLAY

    • D.

      REUSE_ALV-HIERSEQ_LIST_DISPLAY

    Correct Answer
    C. REUSE_ALV_HIERSEQ_LIST_DISPLAY
    Explanation
    The function module "REUSE_ALV_HIERSEQ_LIST_DISPLAY" is used in hierarchical ALV report display.

    Rate this question:

  • 17. 

    T-Code for uploading the ALV LOGO?

    • A.

      OEAR

    • B.

      EAOR

    • C.

      OAER

    • D.

      QAOR

    Correct Answer
    C. OAER
    Explanation
    The correct answer is OAER. This is because OAER is the correct T-Code for uploading the ALV LOGO.

    Rate this question:

  • 18. 

    How to Declare the Static Variables in OOABAP?

    • A.

      DATA-CLASS

    • B.

      CLASS_DATA

    • C.

      DATA STATIC

    • D.

      CLASS-DATA

    Correct Answer
    D. CLASS-DATA
    Explanation
    The correct answer is "CLASS-DATA". In OOABAP, static variables are declared using the keyword "CLASS-DATA".

    Rate this question:

  • 19. 

    Which of the following functional Modules are optional For SAPScript?

    • A.

      OPEN_FORM

    • B.

      START_FORM

    • C.

      CLOSE_FORM

    • D.

      WRITE_FORM

    Correct Answer
    B. START_FORM
    Explanation
    The START_FORM module is an optional functional module for SAPScript. This module is used to define the start of a form and is not required for the execution of the script. The OPEN_FORM module is used to open the form, CLOSE_FORM module is used to close the form, and WRITE_FORM module is used to write data to the form. However, the START_FORM module is not necessary for the proper functioning of the script and can be omitted if not needed.

    Rate this question:

  • 20. 

    What is the default mode for passing actual parameters in a Perform?

    • A.

      By Value

    • B.

      By Reference

    • C.

      By Changing

    • D.

      By Value and Return

    Correct Answer
    B. By Reference
    Explanation
    The default mode for passing actual parameters in a Perform is "By Reference". This means that the Perform statement will pass the memory address of the actual parameter to the called program or routine. Any changes made to the formal parameter within the called program will also affect the value of the actual parameter in the calling program.

    Rate this question:

  • 21. 

    Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked?

    • A.

      AT USER-COMMAND.

    • B.

      AT PFn.

    • C.

      AT SELECTION-SCREEN.

    • D.

      END-OF-SELECTION.

    Correct Answer
    A. AT USER-COMMAND.
    Explanation
    When the pushbutton with function code 'FUNC' is clicked, the event that is processed is AT USER-COMMAND.

    Rate this question:

  • 22. 

    Which is the mandatory to input field for Dialogue Programming / Module Pool design?

    • A.

      LABEL

    • B.

      ALPHA

    • C.

      FCTCODE

    • D.

      KEYFIELD

    Correct Answer
    B. ALPHA
    Explanation
    In Dialogue Programming / Module Pool design, the mandatory input field is ALPHA. This means that the user must enter alphanumeric characters in this field. The other options (LABEL, FCTCODE, KEYFIELD) are not mandatory input fields for this type of design.

    Rate this question:

  • 23. 

    What is the Purpose of REUSE_ALV_COMMENTARY_WRITE Function Module?

    • A.

      Display the Fields

    • B.

      Display the Headers

    • C.

      Logo and Header

    • D.

      Header and Footer

    Correct Answer
    C. Logo and Header
    Explanation
    The purpose of the REUSE_ALV_COMMENTARY_WRITE function module is to display both the logo and header in the ALV (ABAP List Viewer) output. This function module allows users to add a logo and header to the ALV output, providing a more customized and visually appealing display.

    Rate this question:

  • 24. 

    Which type pool is used for ALV Type-pools?

    • A.

      SY-SLIS

    • B.

      TYP-SLIS

    • C.

      SILS

    • D.

      SLIS

    Correct Answer
    D. SLIS
    Explanation
    The correct answer is SLIS. SLIS is the type pool used for ALV (ABAP List Viewer) Type-pools.

    Rate this question:

  • 25. 

    What table is used to store the control records for IDOC?

    • A.

      EDIDD

    • B.

      EDIDC

    • C.

      EDIDL

    • D.

      EDIDS

    Correct Answer
    B. EDIDC
    Explanation
    The table used to store the control records for IDOC is EDIDC.

    Rate this question:

  • 26. 

    What table is used to store all the Message Class Texts?

    • A.

      T001

    • B.

      T100

    • C.

      T000

    • D.

      T010

    Correct Answer
    B. T100
    Explanation
    The table used to store all the Message Class Texts is T100.

    Rate this question:

  • 27. 

    Select the correct Debugger in SAP. 

    • A.

      New ABAP Debugger

    • B.

      Adv ABAP Debugger

    • C.

      Old ABAP Debugger

    • D.

      None of these

    Correct Answer
    A. New ABAP Debugger
    Explanation
    The correct answer is "New ABAP Debugger". This suggests that there is a specific type of debugging called the "New ABAP Debugger" in SAP. This implies that there are other types of debugging available in SAP, such as the "Adv ABAP Debugger" and the "Old ABAP Debugger", but they are not the correct answer. Therefore, the correct answer is the "New ABAP Debugger".

    Rate this question:

  • 28. 

    During the conversion process of databases, the data is copied from the temporary table to the database table using the statement.

    • A.

      MOVE

    • B.

      MOVE-CORRESPONDING

    • C.

      INSERT

    • D.

      MODIFY

    Correct Answer
    B. MOVE-CORRESPONDING
    Explanation
    During the conversion process of databases, the data is copied from the temporary table to the database table using the MOVE-CORRESPONDING statement. This statement allows for the efficient transfer of data between tables by automatically matching the fields in the temporary table with those in the database table and copying the corresponding values. It ensures that the data is accurately transferred and avoids any manual mapping or manipulation of fields.

    Rate this question:

  • 29. 

    What is the right order in which the events are triggered? START-OF SELECTION, INITIALIZATION , AT SELECTION-SCREEN

    • A.

      INITIALIZATION , AT SELECTION-SCREEN , START-OF SELECTION

    • B.

      INITIALIZATION , STARTOF SELECTION ,AT SELECTION SCREEN

    • C.

      AT SELECTION-SCREEN START-OF SELECTION, INITIALIZATION

    • D.

      AT SELECTION-SCREEN, INITIALIZATION , START-OF SELECTION

    Correct Answer
    A. INITIALIZATION , AT SELECTION-SCREEN , START-OF SELECTION
    Explanation
    The correct order in which the events are triggered is INITIALIZATION, AT SELECTION-SCREEN, START-OF SELECTION. The INITIALIZATION event is triggered first to initialize variables and perform any necessary setup. Then, the AT SELECTION-SCREEN event is triggered to handle any user input on the selection screen. Finally, the START-OF SELECTION event is triggered to execute the main logic of the program.

    Rate this question:

  • 30. 

    What is the use of interactive reporting?

    • A.

      The report can be processed in background.

    • B.

      The report output can be queried for further details.

    • C.

      Different fonts and graphics can be used interactive reporting.

    • D.

      Interactive reports can only be used in transactions.

    Correct Answer
    B. The report output can be queried for further details.
    Explanation
    Interactive reporting allows users to query the report output for further details. This means that users can interact with the report, selecting specific data points or sections to get more information or drill down into specific details. This feature enhances the usability and functionality of the report, allowing users to analyze and explore the data in more depth.

    Rate this question:

  • 31. 

    What is the T-Code for releasing the Transport request Number?

    • A.

      SE09

    • B.

      SM09

    • C.

      SM10

    • D.

      SM01

    Correct Answer
    A. SE09
    Explanation
    SE09 is the correct T-Code for releasing the Transport request Number. This transaction code is used in SAP systems to release transport requests, which allows the changes made in the development system to be transported to other systems such as quality or production systems. By using SE09, users can select the specific transport request and release it, making the changes available for transport to other systems.

    Rate this question:

  • 32. 

    How many lists can exist in parallel in an interactive reporting?

    • A.

      An Interactive report can have 1 basic list and up to 20 Secondary lists.

    • B.

      . An Interactive report can have 1 basic list and up to 19 Secondary lists.

    • C.

      An Interactive report can have 1 basic list and up to 19 Secondary lists.

    • D.

      An Interactive report can have 1 basic list and up to 21 Secondary lists.

    Correct Answer
    A. An Interactive report can have 1 basic list and up to 20 Secondary lists.
    Explanation
    An interactive report can have one basic list and up to 20 secondary lists. This means that there can be a main list that displays the primary information and up to 20 additional lists that provide supplementary information or drill-down capabilities. Having multiple lists in parallel allows for a more comprehensive and interactive reporting experience.

    Rate this question:

  • 33. 

    What are the 2 boxes in your system for coding for Abap and their logins?

    • A.

      Quality/Production

    • B.

      IDES/Sandbox

    • C.

      Sandbox/Quality

    • D.

      None of the above

    Correct Answer
    B. IDES/Sandbox
    Explanation
    The correct answer is IDES/Sandbox. IDES stands for Internet Demonstration and Evaluation System, which is a sample system provided by SAP for training and testing purposes. Sandbox is a separate system used for development and testing activities without affecting the production environment. Therefore, the two boxes in the system for coding in ABAP are IDES and Sandbox, where developers can write and test their ABAP code.

    Rate this question:

  • 34. 

    What is the T-Code for unlocking the objects?

    • A.

      SE12

    • B.

      SM21

    • C.

      SE21

    • D.

      SM12

    Correct Answer
    D. SM12
    Explanation
    SM12 is the correct answer because it is the T-Code used for unlocking objects in SAP. T-Codes are transaction codes that are used to access different functions in the SAP system. SM12 specifically deals with the administration of locks and unlocks in the system. By using SM12, users can view and release locks on objects that have been locked by other users, ensuring smooth functioning and preventing conflicts in the system.

    Rate this question:

  • 35. 

    What is the system field for the current date for scripts?

    • A.

      SY-DATUM

    • B.

      &DATE&

    • C.

      DATE

    • D.

      &DATUM&

    Correct Answer
    B. &DATE&
    Explanation
    The correct answer is "&DATE&". In SAP scripting, the "&DATE&" system field is used to retrieve the current date. This field can be used in scripts to perform date-related calculations or to display the current date in reports or forms.

    Rate this question:

  • 36. 

    What is the syntax for BDCDATA Structure to declare in the Program?

    • A.

      DATA LIKE BDCDATA occurs 0.

    • B.

      DATA BDCDATA occurs 0 With HEADERLINE.

    • C.

      DATA LIKE BDCTYPE occurs 0 With HEADERLINE.

    • D.

      DATA LIKE BDCDATA occurs 0 With HEADERLINE

    Correct Answer
    D. DATA LIKE BDCDATA occurs 0 With HEADERLINE
    Explanation
    The correct answer is "DATA LIKE BDCDATA occurs 0 With HEADERLINE." This is the correct syntax for declaring a BDCDATA structure in a program. The "LIKE BDCDATA" indicates that the structure should have the same structure as the BDCDATA structure, "occurs 0" specifies that it is a single instance of the structure, and "With HEADERLINE" indicates that the first line of the internal table should be treated as a header line.

    Rate this question:

  • 37. 

    The screen flow logic must contain at least the two statements in the correct order.

    • A.

      PROCESS BEFORE OUTPUT.

    • B.

      PROCESS ON HELP-REQUEST

    • C.

      PROCESS ON VALUE-REQUEST

    • D.

      None of the above

    Correct Answer
    A. PROCESS BEFORE OUTPUT.
    Explanation
    The screen flow logic must contain the statement "PROCESS BEFORE OUTPUT" because this statement is responsible for processing any necessary calculations or data manipulation before the screen output is displayed to the user. It ensures that all required data is processed and ready to be displayed. The other statements, "PROCESS ON HELP-REQUEST" and "PROCESS ON VALUE-REQUEST", may also be included in the screen flow logic but they are not mandatory.

    Rate this question:

  • 38. 

    Which one of the following statements creates a GUI status in a dialog program?

    • A.

      Set pf-status 'ABC'.

    • B.

      Set screen 'ABC'.

    • C.

      Set Pf_gui ' ABC '.

    • D.

      Set gui-status = ZABC '.

    Correct Answer
    A. Set pf-status 'ABC'.
    Explanation
    The correct answer is "Set pf-status 'ABC'." This statement is used to create a GUI status in a dialog program. A GUI status is a set of function keys and menus that are displayed in the application toolbar. It defines the options available to the user in the current screen. By setting the pf-status to 'ABC', the program will display the GUI status named 'ABC' in the application toolbar.

    Rate this question:

  • 39. 

    To insert the data for ONE transaction (BDC_INSERT) into a session. To transfer the data, you require an internal table (BDC table). You must specify the following parameters:

    • A.

      TCODE (transaction code)

    • B.

      DYNPROTAB (BDC table)

    • C.

      DYNPRO NAME.

    • D.

      All the above

    Correct Answer
    D. All the above
    Explanation
    The correct answer is "All the above" because in order to insert data for one transaction (BDC_INSERT) into a session, all of the mentioned parameters are required. The TCODE parameter specifies the transaction code, the DYNPROTAB parameter specifies the BDC table, and the DYNPRO NAME parameter specifies the name of the dynpro (screen) where the data needs to be transferred. Therefore, all of the mentioned parameters are necessary for transferring the data.

    Rate this question:

  • 40. 

    What is the T-Code for BDC’s Session process?

    • A.

      SE35

    • B.

      SM53

    • C.

      SM35

    • D.

      SM36

    Correct Answer
    C. SM35
    Explanation
    The T-Code for BDC's Session process is SM35.

    Rate this question:

  • 41. 

    Maximum of how many key fields per table is allowed?

    • A.

      12 Key Fields

    • B.

      16 Key Fields

    • C.

      10 Key Fields

    • D.

      14 Key Fields

    Correct Answer
    B. 16 Key Fields
    Explanation
    The maximum number of key fields allowed per table is 16. Key fields are used to uniquely identify records in a database table. Having a higher number of key fields can provide more specificity and accuracy in identifying records. However, it is important to consider the trade-off between having more key fields and the performance impact it may have on the database.

    Rate this question:

  • 42. 

    Activating a lock object automatically creates function modules for setting the lock and releasing the lock?

    • A.

      ENQUEUE_

    • B.

      ENQUEUE-

    • C.

      DEQUEUE_

    • D.

      All the above

    Correct Answer
    A. ENQUEUE_
    Explanation
    Activating a lock object automatically creates function modules for setting the lock and releasing the lock. The ENQUEUE_ option is the correct answer because it refers to the function module used for setting the lock. The other options, ENQUEUE-, and DEQUEUE_, do not pertain to the creation of function modules for lock management.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 06, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 04, 2012
    Quiz Created by
    Cvktech
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.