Set Text Elements
set_text_elementsWrite and activate ABAP text elements for programs, function groups, or classes, including selections, symbols, and headings; merge updates or replace/remove entries as needed.
Instructions
Write text elements for an ABAP program, function group or class, in the format SAP requires. • selections — selection-screen texts for PARAMETERS / SELECT-OPTIONS. Set dictionaryReference: true to take the text from the data element (the SE38 'Dictionary ref.' box); text may then be empty and SAP fills it. Own texts max 30 characters. • symbols — TEXT-xxx, ids of 3 characters. Every symbol is written with a maximum length (maxLength, default the text's length); SAP rejects symbols without one. • headings — LISTHEADER (max 71) and COLUMNHEADER_1..COLUMNHEADER_4 (max 255). Writes MERGE by default: listed ids are added or updated, everything else is kept (the underlying ADT write replaces the whole category, so the tool reads first). Use remove to delete ids, or replace: true to write exactly the list. Returns what SAP stored, then activates the text elements (activating the program alone does not; pass activate: false to leave them inactive).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"objectType": "<objectType>",
"objectName": "<objectName>",
"category": "<category>",
"elements": "<elements>"
},
"name": "set_text_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | Ids to delete from the category | |
| replace | No | Write exactly `elements` and drop everything else in the category. Default false = merge. | |
| activate | No | Activate the text elements after writing (default true). Activating the program does not activate them. | |
| category | Yes | selections, symbols or headings | |
| elements | Yes | Texts to add or update | |
| workItem | No | Name of the piece of work (e.g. HPM, a ticket). Keeps using the same transport for it across calls and sessions until you pass another. | |
| objectUrl | No | Deprecated and ignored — the text-element resource is derived from objectType+objectName | |
| transport | No | Workbench request to record into. Checked before use; becomes the transport for this piece of work. | |
| objectName | Yes | Object name, e.g. ZCAR_MM_ORDERS | |
| objectType | Yes | ADT object type, e.g. PROG/P, FUGR/F, CLAS/OC | |
| connectionId | No | SAP system connection ID | |
| createTransport | No | Create a NEW Workbench request (only when you mean it; existing requests are preferred). |