Liquid UI - WS Reference Library

Get transaction name


Runs On

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


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


// 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[Item overview]");
    del("P[Ordering party");
// 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]");

Was this information helpful? Send Feedback