You can add more functionality in the ABAP program by adding more ABAP code in the program flow. An ABAP code block is additional ABAP code you can add to the ABAP program. In the ABAP code block, use source fields and ABAP program variables defined for the Application Source Qualifier to customize the ABAP program.
The ABAP code block should follow ABAP syntax. Comments in the ABAP code block must start with an asterisk (*). The ABAP program flow represents the order that the ABAP program selects tables and objects. Use source fields or values that are placed above the code block.
You cannot use an ABAP code block if the ABAP program flow contains a hierarchy and no other sources.
To create an ABAP code block:
In the ABAP Program Flow dialog box, click New ABAP Block.
Enter the name for the new ABAP code block and click OK.
The name of the ABAP code block cannot exceed 28 characters.
Expand the source table name and the Variables folder to view the source fields and variable names.
Double-click the source field or the variable name to enter it in the ABAP code block.