Example: sapgui_select_tab
The following example uses sapgui_select_tab to select a tabbed page, then change the selection.
// Select the "Control" tab
sapgui_select_tab("Control",
"usr/tabsTABSTRIP1/tabpTAB2", LAST );
// Output is Control tab is selected
if (sapgui_is_tab_selected("Check Control Tab",
"usr/tabsTABSTRIP1/tabpTAB2")
)
lr_output_message("Control tab is selected");
else
lr_output_message("Control tab is not selected");
sapgui_select_tab("Period closing",
"usr/tabsTABSTRIP1/tabpTAB3", LAST );
// Check Control tab again after selecting a different tab
// Output is "Control tab is not selected"
if (sapgui_is_tab_selected("Check Control Tab",
"usr/tabsTABSTRIP1/tabpTAB2")
)
lr_output_message("Control tab is selected");
else
lr_output_message("Control tab is not selected");