Show TOC

 Using Compression LogicLocate this document in the navigation structure

Use

You use compression logic to get an overview of how your source code is structured in a program. Certain parts of a program (subroutines, modules, nested ABAP statements) form logical blocks that you can expand and collapse. You can also define your own logical blocks in the source code.

Compression logic is available only in the Back-End Editor mode of the ABAP Editor. The new Front-End Editor (Source Code Mode) has a similar feature.

Prerequisites

The option With compression logic (Start of the navigation path Utilities  Next navigation step Settings Next navigation step ABAP Editor End of the navigation path) is active.

Procedure
  1. Compressing logical blocks.

    Choose with the quick info text Collapse.

  2. Expanding logical blocks.

    Choose with the quick info text Decompress.

  3. Inserting your own blocks.
    1. Insert a comment line beginning with *{ at the start of the block you want to define.
    2. Insert a comment line beginning with *} at the end of the block.
    3. Choose Enterto confirm.

The compression will not be saved when you leave the ABAP Editor. All blocks will be expanded the next time you open the program.