Share this page

# Example: sapgui_status_bar_get_param

The following example uses sapgui_status_bar_get_param to retrieve the parameters from a status bar notification after saving 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 text of the status bar is "Standard PO held under the number 4500010751".

    sapgui_status_bar_get_text("paramText", LAST );

    // The value of parameter 1 in the status bar is "Standard PO".

    sapgui_status_bar_get_param("1", "param1", LAST );

    //The value of parameter 2 in the status bar is "4500010751".

    sapgui_status_bar_get_param("2", "param2", LAST );

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: