'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:
Zum Wiederholen speichern
Frage 10
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.
Zum Wiederholen speichern
Frage 11
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.
Zum Wiederholen speichern
Frage 12
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'.
Zum Wiederholen speichern
Frage 13
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'.
Zum Wiederholen speichern
Frage 14
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'.
Zum Wiederholen speichern
Frage 15
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.
Zum Wiederholen speichern
Frage 16
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.
Zum Wiederholen speichern
Frage 17
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'.
Zum Wiederholen speichern
Frage 18
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.
Zum Wiederholen speichern
Frage 19
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'.
Zum Wiederholen speichern
Frage 20
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.
Zum Wiederholen speichern