SAP ABAP Interview Questions and Answers
Intermediate / 1 to 5 years experienced level questions & answers
Ques 1. Explain the difference between 'INCLUDE' and 'EXTEND' in ABAP?
'INCLUDE' is used to include a program into another program at the source code level, while 'EXTEND' is used to add new functionality to an existing program.
Example:
INCLUDEIs it helpful? Add Comment View CommentsQues 2. Explain the difference between 'TOP-OF-PAGE' and 'TOP-OF-PAGE DURING LINE-SELECTION' events in ABAP?
'TOP-OF-PAGE' event is triggered before the first line of the page is displayed, while 'TOP-OF-PAGE DURING LINE-SELECTION' event is triggered before each line is displayed in a list.
Example:
TOP-OF-PAGE.Is it helpful? Add Comment View CommentsQues 3. Explain the purpose of 'SELECT-OPTIONS' in ABAP.
'SELECT-OPTIONS' is used to simplify the selection criteria in database queries. It allows users to enter multiple values for a field, making it easier to filter data.
Example:
SELECT-OPTIONS: s_matnr FOR mara-matnr.Is it helpful? Add Comment View CommentsQues 4. Explain the purpose of the 'AUTHORITY-CHECK' statement in ABAP.
The 'AUTHORITY-CHECK' statement is used to check if the user has the necessary authorization to perform a specific action within the SAP system.
Example:
AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD 'SE80'.Is it helpful? Add Comment View CommentsQues 5. What is a function module in SAP ABAP?
A function module is a reusable unit of code that performs a specific task. It can be called from other programs or function modules.
Example:
CALL FUNCTION 'BAPI_MATERIAL_GETLIST'.Is it helpful? Add Comment View CommentsQues 6. Explain the purpose of the 'CALL TRANSACTION' statement in ABAP.
The 'CALL TRANSACTION' statement is used to call a transaction in SAP, allowing you to execute a series of related functions.
Example:
CALL TRANSACTION 'MM01' USING bdcdata MODE 'N'.Is it helpful? Add Comment View CommentsQues 7. Explain the concept of modularization in ABAP.
Modularization in ABAP involves dividing a program into smaller, manageable units like function modules, subroutines, or methods to improve readability and maintainability.
Example:
FORM calculate_total USING p_quantity TYPE i p_price TYPE p DECIMALS 2.Is it helpful? Add Comment View CommentsQues 8. Explain the difference between 'TOP-OF-PAGE' and 'TOP-OF-PAGE DURING LINE-SELECTION' events in ABAP?
'TOP-OF-PAGE' event is triggered before the first line of the page is displayed, while 'TOP-OF-PAGE DURING LINE-SELECTION' event is triggered before each line is displayed in a list.
Example:
TOP-OF-PAGE.Is it helpful? Add Comment View CommentsQues 9. What is the purpose of the 'EXPORT TO DATABASE' statement in ABAP?
The 'EXPORT TO DATABASE' statement is used to store data in the database. It is often used to update or insert data records in database tables.
Example:
EXPORT lt_data TO DATABASE db1(ldb) ID 'KEY' MODE 'A'.Is it helpful? Add Comment View CommentsQues 10. Explain the use of 'FIELD-SYMBOLS' in ABAP.
'FIELD-SYMBOLS' are used to create a symbolic name (reference) for a field at runtime. It allows dynamic access to data in internal tables or structures.
Example:
FIELD-SYMBOLS:TYPE any. Is it helpful? Add Comment View CommentsQues 11. What is a 'Smart Form' in SAP ABAP?
A 'Smart Form' is a tool provided by SAP for creating and maintaining print layouts. It allows the creation of sophisticated and interactive forms in SAP applications.
Example:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'.Is it helpful? Add Comment View CommentsQues 12. Explain the purpose of 'CATCH SYSTEM-EXCEPTIONS' in ABAP.
'CATCH SYSTEM-EXCEPTIONS' is used in exception handling to catch system-level exceptions like 'OBJECTS_NOT_FOUND' or 'PROGRAM_NOT_FOUND'.
Example:
CATCH SYSTEM-EXCEPTIONS = 1.Is it helpful? Add Comment View Comments
Most helpful rated by users:
Related interview subjects
Pega interview questions and answers - Total 30 questions |
ITIL interview questions and answers - Total 25 questions |
Finance interview questions and answers - Total 30 questions |
SAP MM interview questions and answers - Total 30 questions |
JIRA interview questions and answers - Total 30 questions |
SAP ABAP interview questions and answers - Total 24 questions |
SCCM interview questions and answers - Total 30 questions |
Tally interview questions and answers - Total 30 questions |