Liquid UI - WS Reference Library

Dropdownlist


Prerequisites


Runs On

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


Purpose

Dropdownlist command (also called combobox) creates or modifies dropdown lists on SAP screens. Below example explains on how to restrict dropdownlist values and execute a function automatically when a value is selected from the dropdownlist.


User Interface


 

Industry sector dropdownlist can be restricted to only 3 values

set("V[mylist]","=--- Select Industry Type ---;B=Beverage;C=Chemical Industry;M=Mechanical Engineering;"); 
dropdownlist([10, 0],"mylist",{"refer":"F[Industry sector]", "width":30,"process":test_dropdown});

Actions can be triggered using dropdownlist. Once an action is triggered, set command can be used to populate the values chosen to other controls or screens. Selecting Mechanical Engineering from the new dropdown list will trigger the process.


Liquid UI Script

//SAPLMGMM.E0060.sjs

// Sample User Interface in MM01 transaction
set("V[mylist]","=--- Select Industry Type ---;B=Beverage;C=Chemical Industry;M=Mechanical Engineering;");
dropdownlist([10, 0],"mylist",{"refer":"F[Industry sector]","width":30,"process":test_dropdown});
// Sample Function
function test_dropdown(){
set("F[Industry sector]",z_ordertypeselected);
set("F[Material Type]","FERT");
enter();
}