Liquid UI - WS Reference Library

System Variable: _transaction


Prerequisites


Runs On

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


Purpose

This is an example of using the system variable "_transaction". This system variable holds a string value of what transaction is being used. Many times, the same screen name is used for different transactions. This variable is very useful when you want a script to run only in a certain transaction.


User Interface

Navigate to VA02 to see its script portion executed.


 

Navigate to VA03 to see its script portion executed.


 


Liquid UI Script

//SAPMV45A.E0102

// If the transaction is VA02, execute the following
if(_transaction == "VA02")
{
     // edit the title
    title("ON VA02");
    // delete the pushbuttons we don't want to for VA02
    del("P[Sales]");
    del("P[Item overview]");
    del("P[Ordering party");
    del("P[Orders]");
}
// If the transaction is VA02, execture the following
else if(_transaction == "VA03")
{   
    // edit the title
    title("ON VA03");
    // delete the groupbox we dont want
    del("G[Search Criteria]");
  }