Show TOC

 Creating a GUI TitleLocate this document in the navigation structure

Use

As well as a dialog status, every user interface also contains a GUI title. You create GUI titles using the Menu Painter. You should create a GUI title for each screen in a program. Titles help to orient the user, which is especially useful for transactions with several screens.

Procedure
  1. Open the Repository Browser (Transaction Code SE80) and navigate to the program for which you want to create the GUI Title.
  2. In the context menu of the relevant program, choose Create → GUI Titles.

    A dialog box appears.

  3. Enter a title code.
    Note

    A title code can be up to 20 characters long.

  4. In the Title field, enter the title that you want to appear at the top of your screen.
  5. Choose  with the quick info text Transfer.

    The new GUI title appears in the Repository Browser.

  6. To activate the new GUI title, in the context menu, chose Activate Interface.
    Note

    A title cannot be activated separately.

Result

You have now created a GUI title that you can set in an ABAP program using the following statement:

SET TITLEBAR <TITLECODE>.

Note

If you do not set a title, the system uses a standard title.

The GUI title must be a component of the current ABAP program unless you use the OF PROGRAM addition to set a GUI status of another program.

Using Variables in Titles

To determine a title at runtime, you can use an & (ampersand) with your title text.

At runtime, these variables are replaced with the values that you specify. To set a title bar containing variables, use the following ABAP statement:

SET TITLEBAR <titlecode> WITH <var1> <var2>... <varN>.

You can use up to nine variables in a title.

The variables are replaced with values according to their numbering (or simply from left to right if the variables are not numbered).

For more information, see the F1 help of the ABAP Editor.

Note

GUI titles remain set until you explicitly change them. At runtime, the system stores the current title in the SY-TITLE system field.