Ansicht
Dokumentation

ABENCONTROL_STRUCTURES - CONTROL STRUCTURES

ABENCONTROL_STRUCTURES - CONTROL STRUCTURES

Addresses (Business Address Services)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Control Structures

The statements in a processing block are organized in control structures. These define statement blocks and control the progress of the program within a processing block. They determine the conditions for processing statement blocks and how often they are run. Control structures can be nested. Statement blocks in control structures can themselves contain control structures.

The following control structures exist:

  • Sequence
A sequence consists of a statement block that is not defined explicitly by control statements. The statements it contains are processed exactly once without conditions. The execution of a sequence can be suspended for a certain time using a WAIT statement.
  • Branch (selection)
A branch consists of one or more statement blocks that are defined by control statements such as IF or CASE, and that are executed depending on conditions.
  • Loop (iteration)
A loop consists of a statement block that is defined by control statements such as DO or WHILE, and that can be executed multiple times.

There are also special control structures for exception handling.

Note

One obsolete control structure is ON CHANGE OF.






BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 1989 Date: 20240424 Time: 214409     sap01-206 ( 32 ms )