---
title: "Sap Enter Text In Field Step"
url: "https://docs.robotiq.ai/en/article/sap-enter-text-in-field-step"
language: "en"
last_updated: "2026-02-16T10:27:23.153Z"
---

# Sap Enter Text In Field Step

This step puts text into a specific field in an open SAP session. You use it to fill in fields like document numbers, dates, or material codes when you're automating tasks in SAP GUI.

## How to Use SAP Enter Text In Field Step

This step helps you automate typing data into SAP fields.

### Step 1: Add the Step to Your Workflow

1.  Drag the **SAP Enter Text In Field Step** into your process.

### Step 2: Set Up the Step Parameters

1.  **Reference to SAP instance:** Pick the SAP session reference. This needs to be the same as the reference you set up in the [Open Sap Session Step](https://docs.robotiq.ai/en/article/open-sap-session-step).
2.  **Control Type:** Choose the type of control element from the list.
3.  **Selector:** The unique name for the field in the SAP interface.
4.  **Text to Input:** Give the text or variable value you want to put into the field.

**Important:** Make sure the **Selector** points to the right field. If the selector is wrong, the automation won't find the field.

## Parameters Explained

**Step name** (Optional)

-   A custom name for this step. It labels the step box in the editor.

**Reference to SAP instance** (Required)

-   Shows which active SAP session will get the text.
-   **Example:** `mySapSession`
-   Use this to connect to a session opened by the [Open Sap Session Step](https://docs.robotiq.ai/en/article/open-sap-session-step).

**Control Type** (Required)

-   The Control Type field defines the SAP UI control used for text input, such as a `Text Field`, `Password Field`, `Combo Box`, or `Gui OK Code Field`, ensuring correct interaction with the SAP screen element.
-   **Example:** `Edit Box`, `Text Field`
-   Choose the type that matches the SAP field you're working with.

**Selector** (Required)

-   The unique name for the field in the SAP interface.
-   **Example:** `wnd[0]/usr/ctxtVBAK-VBELN`
-   This tells the automation exactly where to put the text.

**Text to Input** (Required)

-   The text or variable value to put into the chosen field.
-   **Example:** `"1234567890"` or `myDocumentNumberVariable`
-   You can use a variable set up with the [Define Variable Step](https://docs.robotiq.ai/en/article/define-variable-step) or [Set Variable Value Step](https://docs.robotiq.ai/en/article/set-variable-value-step).

## Common Issues

**Problem:** The automation doesn't put text into the field. **Solution:**

1.  Check the **Selector** value. Make sure it correctly finds the field.
2.  Confirm that the **Reference to SAP instance** matches an active SAP session.
3.  Make sure the **Control Type** is right for the field.

## Related Articles

-   [Open Sap Session Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/open-sap-session-step)
-   [Sap Read Text From Field Step](https://docs.robotiq.ai/en/article/sap-read-text-from-field-step)
-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/e2b11518-773d-4e56-abb9-9ada2c92127e)
