Using Your Liquid UI Products > WS aka Web Scripts (Attended RPA for SAP)
Creating Invisible Liquid UI Fields to Display Description of the value Entered
(1/1)
Ashfaq Ahmed:
Purpose: To display the Text/Name value associated to a particular Entry/Record of SAP.
* Generally, the Description of the value entered is not displayed in Liquid UI.
* Below Article would help in displaying the description of the value entered using Liquid UI WS.
Pre-requisites:
Liquid UI WS
Liquid UI Designer
Example:
Step-1: Open the Script file "SAPLSTMTR_NAVIGATION.E0100.sjs" or Create it if it is not present in the WS Directory as configured in the "guixt.sjs" file.
Step-2: Add the below Code and save it.
//Liquid UI Code:
//////////////////////////////"SAPLSMTR_NAVIGATION.E0100.sjs"//////////////////////////////
// User Interface / Design Screen
clearscreen();
box([3,0], [8,98], "Organizational Data");
inputfield( [1,2], "Order Type", [1,20],{ "name":"z_ordertype", "size":5});
text([1,27], "&V[z_ordertype]",{ "size":20});
inputfield( [4,2], "Sold-To Party", [4,20],{ "name":"z_soldtoparty", "size":8});
text([4,30], "&V[z_soldtopartyvalue]",{ "size":22});
inputfield( [5,2], "Sales Organization", [5,20],{ "name":"z_salesorganization", "size":8});
text([5,30], "&V[z_salesorg]",{ "size":20});
inputfield( [6,2], "Distribution Channel", [6,20],{ "name":"z_distrchnl", "size":8});
text([6,30], "&V[z_distributionchan]",{ "size":22});
inputfield( [7,2], "Division", [7,20],{ "name":"z_div", "size":8});
text([7,30], "&V[z_division]",{ "size":20});
//Function to Read the Text/Name Value of the Fields
function getvalue(){
onscreen 'SAPLSMTR_NAVIGATION.0100'
enter("/nva01");
onscreen 'SAPMV45A.0101'
set("F[Order Type]","&V[z_ordertype]");
set("F[Sales Organization]","&V[z_salesorganization]");
set("F[Distribution Channel]","&V[z_distrchnl]");
set("F[Division]","&V[z_div]");
enter();
onerror // Error Handling
enter("/n");
message(_message);
goto End;
onscreen 'SAPMV45A.4001'
set("F[Sold-To Party]","&V[z_soldtoparty]");
enter();
onscreen 'SAPMV45A.4001'
enter("/2");
set("V[z_soldtopartyvalue]","&F[KUAGV-TXTPA]");
enter("/3");
onscreen 'SAPMV45A.4001'
enter("/3");
onscreen 'SAPLSPO1.0100'
enter("=NO");
onscreen 'SAPMV45A.0101'
set("V[z_salesorg]","&F[TVKOT-VTEXT]");
set("V[z_distributionchan]","&F[TVTWT-VTEXT]");
set("V[z_division]","&F[TSPAT-VTEXT]");
enter("/3");
End:;
}
onUIEvents["Enter"]={"process":getvalue};
Note: The Above "getvalue" Function is recorded using Liquid UI Designer.
Step-3: Login to SAPGUI and Navigate to "SAP EASY ACCESS SCREEN", Enter the Order Type, Sales Organization, Distribution Channel, Division and Hit Enter or Click on the Enter Button.
Step-4: It will display the description of the value entered in Liquid UI Invisible Text Elements.
Refer to the Attachment for clarity....
Navigation
[0] Message Index
Go to full version