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
The system displays a list of possible program objects.
The system displays a dialog box for the title bar information.
Result
You have now created a GUI title that you can set in an ABAP program using the following statement:
SET TITLEBAR <TITLECODE>.
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.
GUI titles remain set until you explicitly change them. At runtime, the system stores the current title in the SY-TITLE system field.