# Select Single Parent of Selected Tree Node

It is a pre-built action in Avo Assure which is available for the tree type of elements captured from the SAP application. It instructs the Avo Assure Client to select the single parent of the tree node that is presently selected in the SAP application. It is used in SAP GUI automation to select or interact with the parent node of a currently selected tree node within a tree structure. If you need to perform an action or validation at the parent level, such as expanding or collapsing a parent node, this action helps navigate the hierarchy efficiently.&#x20;

### **Syntax**

**Input:** `N/A`

**Output:** `<Dynamic Variable>(optional);< Dynamic Variable> (Optional)`

<figure><img src="/files/1r6o9qb3jn2hmgHxnnl5" alt=""><figcaption></figcaption></figure>

### **Usecase/Example**

### **Scenario**

Consider a scenario where user is testing SAP Application and needs to select the immediate parent node of a selected tree node in the SAP GUI application. For this scenario Select Single Parent of Selected Tree Node action by Avo Assure. It is used to navigate to the parent such as selecting "Order" when "User 1" is selected. The UI should update correctly to reflect the selected parent node without errors.

### **Expected Result**

The Select single parent of selected tree node action needs to select the single parent of the tree node that is presently selected in the SAP application and stores the status in {Result} output variable.

### **Output**

The action performed on tree structure and stores status in {Result} output variable.


---

# Agent Instructions: 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:

```
GET https://docs.avoautomation.com/avo-assure/actions/sap/tree-control-operations/select-single-parent-of-selected-tree-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
