Show TOC

 Setting a GUI Status and a GUI TitleLocate this document in the navigation structure

The GUI status and GUI title defines how the user interface looks and behaves in an ABAP program. Users cannot choose functions until you have set the status in the program. You set a status and title for a screen in the PBO (Process Before Output) module using the ABAP keywords

  • SET PF-STATUS
  • SET TITLEBAR

For more information, see the ABAP Keyword Documentation.

Using the Same User Interface in Several Programs

If you want to use a GUI status or GUI title from another ABAP program, you can use the SET statement with the addition OF PROGRAM.

For more information, see the F1 help for the SET statement.

Example

You have a program with an assigned screen 100. If you want this screen to appear with the menus, standard toolbar, and application toolbar from GUI CREATE status, you must insert the following code into a Process Before Output (PBO) module of screen 100:

SET PF-STATUS 'CREATE'.

To call screen 100 with the title bar '100', insert the following code into the same PBO module:

SET TITLEBAR '100'.

Note

When you set a GUI status or a GUI title, it remains set until you explicitly set a new GUI status or title. In the above example, if you call screen 200 without setting a new status, screen 200 appears with the GUI CREATE status and title bar 100.