# Get Pop Up Text

This is a pre-built Action located under the **@Sap Element**. The functionality of this action in Avo Assure is to retrieve the text displayed in a pop-up window of the SAP GUI application and save the result in a dynamic variable.&#x20;

### Syntax&#x20;

**Input Value:** `<Index>(Optional)`

| Argument                           | Description                                                                                                                                                                      |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Index> </p><p>(Optional) </p> | <p>Enter the <strong>index number of the pop-up</strong> to check when multiple pop-ups appear. <br><em><strong>Note:</strong> The value starts from 0th index (zero).</em> </p> |

**Output Value**&#x20;

| Argument                                      | Description                                                |
| --------------------------------------------- | ---------------------------------------------------------- |
| <p>\<Dynamic Variable> </p><p>(Required) </p> | This variable holds the retrieved **pop-up message text.** |
| <p>\<Dynamic Variable></p><p>(Optional) </p>  | This variable stores the status as **True** or **False**.  |

**Example:**&#x20;

**Retrieving 'Information' Text from a Pop-Up Using the Get Pop-up Text Action**

The **Get Pop Up Text** action takes the value from the Input Value column **(e.g., 0)** to specify the index of the pop-up when multiple pop-ups are present. If no index is provided, the default pop-up text is considered. The retrieved text **(e.g., Information)** is stored in the **{PopupText}** variable.

**With index value:**

<figure><img src="/files/jvc4v4tc4vhuJivQ5Ese" alt=""><figcaption></figcaption></figure>

**Without Index Value:**

<figure><img src="/files/x20px7MOoo9Vzf4tK16F" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jcnzCf2sKjZ1JL4Bl08r" alt=""><figcaption></figcaption></figure>


---

# 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/operations/get-pop-up-text.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.
