Sap Select Dropdown
sap_select_dropdownSelect a specific dropdown or combobox value on the current SAP screen by field label and exact option text; on failure, returns available options to correct the selection.
Instructions
Select a value from a dropdown (combobox) field on the current SAP screen.
Use sap_get_form_fields(include_dropdown_options=True) first to see available dropdown fields and their options.
Unlike sap_set_field which auto-detects field type, this tool is specifically for dropdown selection and returns available_options on failure.
Args:
label: Dropdown field label text (e.g., 'Country', 'Language', 'Buchungskreis')
value: Exact option text to select from the dropdown
Session parameter:
session=None (default): Uses primary session ("s1")
session="s2": Targets specific session
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>",
"value": "<value>"
},
"name": "sap_select_dropdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| value | Yes | ||
| session | No | ||
| agent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if success=False | |
| label | Yes | Dropdown field label | |
| popup | No | Present when a popup dialog is active on screen | |
| value | Yes | Option value that was selected | |
| success | No | Whether the operation succeeded | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. | |
| available_options | No | Available options if selection failed (e.g., value not found) |