Liquid UI - WS Reference Library

System Variable: _database


Prerequisites


Runs On

  SAP GUI Android iOS WM Web
Direct Connect          
Liquid UI Server Connect        

Purpose

This is a very simple example of using the system variable "_database". This system variable holds a string value of what the name of the database or system ID is. This is useful for when you want to conditionalize scripts based on what system they are in. A script might need to run a certain way for the QAS system versus the PRD system.

User Interface

Navigate to the Easy Access Screen.


 

Liquid UI Script

//SAPLSMTR_NAVIGATION.E0100.sjs

// Depending on what databse is being used
// the title should display differently

if(_database == "TR1"){
    title("Welcome to ZEUS");
}
else if(_database == "TRX"){
    title("Welcome to JUNEAU");
}
else if(_database == "ID7"){
    title("Welcome to ORION");
}