Consecutive statements that have the same initial part can be combined in one chained statement. To do this, the identical initial part is specified once and closed with a colon (:). The remaining parts behind are listed separately, divided by commas (,), and closed with a full-stop (.). During the syntax check and program execution, a chained statement is treated as the respective sequence of individual ABAP-statements.
The same initial parts are not restricted to the key word.
Typical use of a chained statement:
The complete syntax of the four statements is:
Chained statement, in which more than the key word is truncated:
The complete syntax of the three statements is: