sap_diagnose_message
Diagnose any SAP error, warning, or info message end-to-end. Provide message text, ID, or screenshot to get root cause analysis and fix suggestions.
Instructions
Diagnose a SAP error/warning/info message end-to-end. USE THIS when a user shares a SAP message — whether as a screenshot, text, or message ID. This tool performs a full diagnostic chain: 1. Resolves message class + number (from T100 text search if only text is provided) 2. Locates the exact source code line where the message is raised 3. Reads surrounding code to understand the triggering condition 4. Checks for active enhancements that may interfere 5. Returns a structured diagnosis with root cause analysis and fix suggestions. INPUT: Provide EITHER message_id + message_number (if known) OR message_text (from screenshot). Optionally provide transaction or program_name to scope the search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | SAP language key for T100 search (e.g., S=Spanish, E=English, D=German). Default: S. | S |
| message_id | No | Message class (e.g., V1, F5, ME). Omit if only message text is available. | |
| transaction | No | SAP transaction code where the message appeared (e.g., VA01, FB01, ME21N) | |
| message_text | No | Message text from screenshot or user description. Used to reverse-lookup message class/number from T100 when message_id is not known. | |
| program_name | No | ABAP program name (e.g., SAPMV45A). Optional if transaction is provided. | |
| message_number | No | Message number (e.g., 001, 312). Omit if only message text is available. |