> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_sap/el_sap_combobox.md).

# Combo box

![](https://gblobscdn.gitbook.com/assets%2F-M-L9CGkriEo1_2PfJzA%2F-M5X7WJt1Y2RYKiiHmV4%2F-M5X8diKK-LsVV2Dh71i%2FSAP_%D0%BA%D0%BE%D0%BC%D0%B1%D0%BE-%D0%B1%D0%BE%D0%BA%D1%81_%D0%B8%D0%BA%D0%BE%D0%BD%D0%BA%D0%B0.png?alt=media\&token=b865d790-74fc-4386-86d3-5329850eb886)

Element which gets reference to UI component Combo box.

![](/files/9IGa6qHqpeAhuDKpk0cg)

Properties:

* Control ID: \[String] Control ID
* Control: \[LTools.SAP.Model.SAPUIItem] Control reference
* Combo box: \[LTools.SAP.Model.SAPUIComboBox] Variable that stores combo box reference
* Items: \[List\<LTools.SAP.Model.SAPUIComboBoxItem>] Combo box available items
* Variable: \[LTools.SAP.Model.SAPUIComboBox] Variable to store combo box reference
* Value: \[LTools.SAP.Model.SAPUIComboBoxItem] Current value
* Select (key): \[String] Select value by key
* Select (index): \[Int32] Select value by index
* Time-out\*: \[Int32] Maximum waiting time for process completion (ms)

LTools.SAP.Model.SAPUIComboBox:

* \[SAPFEWSELib.ISapComboBoxTarget] Element - Element reference;
* \[String] Id - Element ID;
* \[List\<LTools.SAP.Model.SAPUIComboBoxItem>] Items - Combo box items;
* \[SAPUIComboBoxItem] SelectedItem - Selected item;
* SelectItem(SAPUIComboBoxItem item - item) - Select item;
* SelectItem(int idx - item index) - Select item;
* SelectItem(string key - item key) - Select item.

LTools.SAP.Model.SAPUIComboBoxItem:

* \[SAPFEWSELib.ISapComboBoxEntryTarget] - Element reference;
* \[String] Id - Item key;
* \[String] Text - Item text;
* \[int] Index - Item index.

```
C#
LTools.SAP.SapApp app = LTools.SAP.SapApp.Init(wf);
LTools.SAP.Model.SAPUIComboBox cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
cmb.SelectItem(cmb.Items[0].Id);

Python
app = LTools.SAP.SapApp.Init(wf)
cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell")
cmb.SelectItem(cmb.Items[0].Id)

JavaScript
var app = _lib.LTools.SAP.SapApp.Init(wf);		
var cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
cmb.SelectItem(cmb.Items[0].Id);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_sap/el_sap_combobox.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
