This commit is contained in:
danrega
2025-01-10 16:46:58 +01:00
parent 4f3be4ac3e
commit 6926ca4f3b
7 changed files with 1025 additions and 98 deletions

View File

@@ -23,7 +23,7 @@
- [Special Function Modules in Standard ABAP](#special-function-modules-in-standard-abap)
- [Subroutines in Standard ABAP](#subroutines-in-standard-abap)
- [Excursion: RETURN](#excursion-return)
- [Interrupting the Program Execution](#interrupting-the-program-execution)
- [Interrupting the Program Execution with WAIT UP TO Statements](#interrupting-the-program-execution-with-wait-up-to-statements)
- [Exceptions and Runtime Errors](#exceptions-and-runtime-errors)
- [Executable Example](#executable-example)
@@ -558,7 +558,7 @@ Further keywords for defining loops are as follows. They are not dealt with here
### Methods of Classes
In modern ABAP programs, only methods should be implemented (instead of [function modules](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenfunction_module_glosry.htm) and [subroutines](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abensubroutine_glosry.htm) in most cases).
In modern ABAP programs, classes and methods are the way to go for modularization purposes (instead of [function modules](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenfunction_module_glosry.htm) and [subroutines](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abensubroutine_glosry.htm) in most cases; the latter is only available in Standard ABAP).
Note that methods and calling methods are described in the context of the [ABAP Object Orientation cheat sheet](04_ABAP_Object_Orientation.md). Find more information and examples there.
<p align="right"><a href="#top">⬆️ back to top</a></p>
@@ -898,7 +898,7 @@ ENDCLASS.
<p align="right"><a href="#top">⬆️ back to top</a></p>
## Interrupting the Program Execution
## Interrupting the Program Execution with WAIT UP TO Statements
Using [`WAIT UP TO`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abapwait_up_to.htm) statements, you can interrupt the program execution by a specified number of seconds.