Liquid UI - WS Reference Library

Dynamic execution of functions using pushbutton()


Prerequisites


Runs On

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


Purpose

In this scenario, we will use a pushbutton to run the process with dynamic function names. You can dynamically navigate to the function based on the value entered in the Module field. Here the user is navigated to either VA01 or MM01 transaction based on the Module entered.


User Interface

On the Easy Access screen, enter the Module as SD in the inputfield and click on RFC Test Toolbar pushbutton then you are navigated to VA01 transaction.


Enter the Module as MM in the inputfield and click on RFC Test Toolbar pushbutton then you are navigated to MM01 transaction.



Liquid UI Script

//SAPLSMTR_NAVIGATION.E0100.sjs

//
del('X[IMAGE_CONTAINER]');
// Create an inputfield to retrieve the Module value
inputfield([1,1],"Module:",[1,10],{"size":2,"name":"z_name"});
// a button to run the function to navigate to transaction
pushbutton([TOOLBAR],"RFC Test",{"process":['RFCTestFunc&V[z_name]']}});
// function navigates to VA01 screen
function RFCTestFuncSD(){
enter('/nva01');
}
// function navigates to MM01 screen
function RFCTestFuncMM(){ enter('/nmm01');
}