Liquid UI - Documentation - 10.04 Change SAP screen title using title() and _transaction

10.04 Change SAP screen title using title() and _transaction


Prerequisites

Purpose

This article illustrates two approaches to modify an SAP screen title using the title(), contingent on the active transaction. The SAP Easy Access screen will serve as a practical example.

The two methods are:

  1. Modifying the screen title using a variable and a string
  2. Modifying the screen title using only a variable

User Interface

//Create the file SAPLSMTR_NAVIGATION.E0100.sjs inside your scripts folder for customizing the SAP Easy Access screen
//Now, add the Liquid UI script to the above file, and save it.

Modifying the screen title using a variable and a string

This scenario illustrates how a variable can be used to store a transaction code. This code is then combined with the "SAP" string to set the screen's title.

Customization

  1. Modify the screen title with the title().
     
    // Modifies the SAP screen title
    var z_screentitle = [_transaction];
    // title command using variable and string
    title("SAP " +z_screentitle);
    

SAP Process

  1. Refreshing the SAP screen displays the title as SAP SESSION_MANAGER, as shown in the image below.
     
    Refreshing the SAP screen displays title as SAP SESSION_MANAGER
     

Modifying the screen title using only a variable

This scenario demonstrates using a variable to directly change the screen title.

Customization:

  1. Screen title can be changed to SESSION_MANAGER using a variable, not a string.
     
    // Modifies the SAP screen title
    var z_screentitle = [_transaction];
    // title command using variable
    title(z_screentitle);
    
     
    Refreshing the SAP screen displays title as SESSION_MANAGER
     

Can't find the answers you're looking for?