Example: sapgui_set_property

The following example uses sapgui_set_property to set the text within the command window to "dwdm". The script then verifies the text by retrieving it using sapgui_get_property and writing to a parameter ParamName1.

Action() {
sapgui_select_active_window("wnd[0]");
sapgui_set_property(
    "tbar[0]/okcd", "text", "dwdm", 
    LAST );
// Verification - not recorded function
sapgui_get_property("tbar[0]/okcd", "text", 
    "ParamName1", LAST );
   //Output is "dwdm"
lr_output_message(lr_eval_string("{ParamName1}"));
return 0;
}