setMessages
Add or update messages in an existing ABAP message class by number, preserving other entries and omitted fields. Manages locks and transport, writing directly to T100 without activation.
Instructions
Add or change messages of an existing message class. Only the messages passed are touched: the backend upserts by number, so the rest of the class is left alone - and for the same reason a message CANNOT be deleted through ADT. A field left out keeps its current value. The class description is read first and carried over, because the write replaces the class header. The text is capped at 73 characters (what T100 holds) and the answer says what was cut. Takes and releases the lock itself; no activation is needed - the message is in T100 as soon as this returns. Outside $TMP a transport request is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | The messages to add or change: [{number, text, selfExplanatory}]. text may be omitted only for a message that already exists. | |
| className | Yes | Message class, e.g. ZAPP_NOCOND. | |
| transport | No | Transport request number - the request itself, not a developer task. Required outside $TMP. | |
| description | No | New description of the class itself. Omit to keep the current one. |