Share this page

# sapgui_toolbar_select_menu_item_by_text

Toolbar Functions

Selects toolbar menu item.

    int sapgui_toolbar_select_menu_item_by_text( const char *description, const char *toolbarID, const char *menuItem, [args,] LAST );

description | User entered text to aid in understanding script
toolbarID | Object ID Strings
menuItem | Text of menu item.
args | Optional Arguments
LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used.

sapgui_toolbar_select_menu_item_by_text emulates user selecting toolbar menu item.

## Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

## Parameterization

You can parameterize all string (char type) arguments.

## Example

The following example uses sapgui_toolbar_select_menu_item_by_text.

Copy code

    sapgui_toolbar_select_menu_item_by_text("Description",
        "shellcont[0]/shell/shellcont[1]/shell[0]", //Toolbar ID
        "Purchase orders",
        END_OPTIONAL);

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