# Get Row Col By Text

This is a pre-built action available under the **Captured Grid Element** from the **SAP GUI Application**. The functionality of this action in Avo Assure is to find the row number and column number of a cell that contains specific text in a Grid in SAP application and save the result in the dynamic variable. &#x20;

### Syntax&#x20;

**Input Value:** `<InputText>`

| Argument                             | Description                                |
| ------------------------------------ | ------------------------------------------ |
| <p>\<InputText></p><p>(Required)</p> | Enter the text to be searched in the Grid. |

**Output Value**&#x20;

| Argument                                  | Description                                                      |
| ----------------------------------------- | ---------------------------------------------------------------- |
| <p>Dynamic Variable</p><p>(Required) </p> | This variable stores the row and column number                   |
| <p>Dynamic Variable</p><p>(Optional) </p> | This dynamic variable holds the result as **True** or **False**. |

&#x20;**Example**&#x20;

**Finds the row and column number of a cell containing the specified text in the SAP Grid**

The **GetRowColByText** action takes the input text from the Input Value column **(e.g., 15.11.2019)** and searches for it in the SAP Grid. If found, the row and column position of the matching cell **(e.g., \[\['2','4'], \['8','4']\['14','4']])** is stored in the **{RowColNum}** variable

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

<figure><img src="/files/YJnMGYv8kJAVqjfxm9pg" 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/grid-control-operations/get-row-col-by-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.
