patch_message_class
Create or update one numbered message in an existing SAP Message Class, optionally activate it, and write directly through ADT with production write protection.
Instructions
Add or update ONE numbered message (T100 text) in an existing Message Class, then optionally activate. Writes directly to that message's own sub-resource - confirmed against the ADT discovery document (/sap/bc/adt/messageclass/{name}/messages/{msgno}), the same endpoint the atom:link on a GET of the class points to for each message. PUT is an upsert: works whether the number already exists or not. Use &1 &2 &3 &4 in text as placeholders for MESSAGE ... WITH values. Refuses to run on production profiles.
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": {
"messageClassName": "<messageClassName>",
"msgno": "<msgno>",
"text": "<text>"
},
"name": "patch_message_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text, max 73 chars. Use &1 &2 &3 &4 for placeholders. | |
| msgno | Yes | Message number, e.g. '001' (zero-padded to 3 digits automatically) | |
| activate | No | Activate after writing | |
| transport | No | Transport request. Omit only for $TMP. | |
| selfExplanatory | No | Whether the message is self-explanatory (no long text needed) | |
| messageClassName | Yes | Message class name, e.g. ZCL_MY_MESSAGES |