Displays text on a screen.
You can use the text command to perform the following actions:
Change the name of any of the following SAP elements:
The available syntaxes are as follows:
| Syntax | Description |
|---|---|
| text([row_number, col_number], "Text Label", {option:"optionvalue"}); | Adds text to a SAP screen. The row and column number specify the location on the screen where the text will appear. |
| var z_txt = "text"; text([rows, cols], +z_txt); | Adds text to a SAP screen from a variable. |
| text("C[checkboxName]", "New Name"); | Changes a checkbox's name. |
| text("F[fieldName]", "New Name"); | Changes an inputfield's name. |
| text("O[optionMenu_label]", "New option menu label"); text("O[functionKey_label]", "New function key label"); | Changes the label of a context menu or of a function key. |
| text("P[pushbuttonName]", "New Name"); | Changes a pushbutton's name. |
| text("R[radiobuttonName]", "New Name"); | Changes a radiobutton's name. |
| text("T[tabName]", "New Name"); | Changes a tab's name. |
THe text command takes the following options:
Changes both the default font and the default color, resulting in a fixed-font, blue color. The syntax is:
{"comment":true}
Changes the font to a fixed-font.
{"fixedfont":true}
Changes the text color to blue.
{"intensified":true}
Draws a line from the text to the nearest screen element to the right of the text.
{"intensified":true}