Entering content frameOverview documentation Creating a GUI Title Locate the document in its SAP Library structure

You should create a GUI title for each screen in a program. Titles help to orient the user: this is especially useful for transactions with several screens. To create a GUI title from the Repository Browser:

Procedure

  1. Choose Status from the object list.
  2. The system displays a list of possible program objects.

  3. Select GUI title.
  4. Enter a title code (up to 20 characters).
  5. Choose Create.
  6. The system displays a dialog box for the title bar information.

  7. Enter the title you want to appear at the top of your screen.
  8. Choose Save.

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.

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 titlebar 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 further information, see the F1 help in 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.

 

Leaving content frame