Within the source code of a function module errors are handled via the keyword.

  1. Exception

  2. Raise

  3. Stop

  4. Abend


Correct Option: A

AI Explanation

To answer this question, you need to understand error handling in function modules.

Option A) Exception - This option is correct. In the source code of a function module, errors are handled using the keyword "EXCEPTION". This keyword is used to define specific exceptions that can occur during the execution of the function module. When an exception occurs, the program flow jumps to the corresponding exception block to handle the error.

Option B) Raise - This option is incorrect. The keyword "RAISE" is used to raise an exception in ABAP programming. It is not specifically used for error handling in function modules.

Option C) Stop - This option is incorrect. The keyword "STOP" is used to terminate the execution of a program or function module. It is not used for error handling.

Option D) Abend - This option is incorrect. The term "ABEND" stands for "Abnormal End". It is used to describe a situation where a program or system terminates abnormally. It is not a keyword used for error handling in function modules.

The correct answer is Option A) Exception. This option is correct because the keyword "EXCEPTION" is used to handle errors in the source code of a function module.

Find more quizzes: