sapgui_select_combobox_entry
| General Object Functions |
Selects an entry from a list.
int sapgui_select_combobox_entry( const char *description, const char *objectID, const char *entryKey, [args,] LAST );| description | User entered text to aid in understanding script |
| objectID | Object ID Strings |
| entryKey | Key to list entry in combo box |
| args | Optional Arguments |
| LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used. |
sapgui_select_combobox_entry selects item entryKey from a combo box.
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_select_combobox_entry to choose a country and language.
// Load the sample
sapgui_set_ok_code("bibs", LAST );sapgui_send_vkey(ENTER, LAST );
sapgui_select_menu("Dropdown list box",
"mbar/menu[1]/menu[11]", LAST );/* Select Country and Language from the combo boxes */
sapgui_select_combobox_entry("UnitedStates",
"usr/cmbT005X-LAND",
"US",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1015",
END_OPTIONAL);sapgui_select_combobox_entry("English",
"usr/cmbT002-SPRAS",
"EN",
LAST );

