Example: sapgui_status_bar_get_type

The following example uses sapgui_status_bar_get_type to check on the success of a transaction.

// Send the transaction
sapgui_press_button("Save (Ctrl+S)", 
    "tbar[0]/btn[11]", LAST );
sapgui_select_active_window("wnd[1]");
sapgui_press_button("Hold", 
    "usr/btnSPOP-VAROPTION1", LAST ); 
sapgui_select_active_window("wnd[0]");
//The value of "StatusBarType" after the call is "Success".
sapgui_status_bar_get_type("StatusBarType", LAST );
// Output is "Status of last action is 'Success'."
lr_output_message("Status of last action is '%s'.",
    lr_eval_string("{StatusBarType}");