setTextElements
Replace all text elements for an ABAP object—symbols, selections, or headings—in one write. Read the current set first, then submit the full replacement and activate if needed.
Instructions
Write the text elements of a program, class or function group. The write replaces the whole set for that category, so pass every element you want to keep - read them first with getTextElements. The lock is taken on the text elements resource - not on the object - and released again, unless you pass a handle or this server already holds one; outside $TMP a transport request is needed. Pass activate to finish the job, or run activateSafe afterwards: a text write leaves both the object and its text pool inactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Escape hatch: the text elements base URL. | |
| activate | No | Activate the object after the write (default false). Only possible when this tool took the lock itself - activation is refused while a session holds one. | |
| category | No | Which set to write: "symbols" (default), "selections" or "headings". | |
| elements | Yes | The complete set for this category: [{id, text, maxLength, ddicReference}]. For selection texts the id is the field name, e.g. P_WERKS; for text symbols the three-character number, e.g. 001. | |
| objectUrl | No | Object URL, used for the activation; derived from objectName and objectType when omitted. The lock is not taken on this - it goes on the text elements resource. | |
| transport | No | Transport request number - the request itself, not a developer task. | |
| lockHandle | No | Lock handle. Omit it: the one this server holds for the object is used, and with none held the lock is taken and released here. | |
| objectName | No | Object name, e.g. ZR_APP_FOO. | |
| objectType | No | ADT type of the object: PROG/P, CLAS/OC, FUGR/F. Defaults to PROG/P. |