ABAP Debug Set Variable
abap_debug_set_variableOverwrite a variable in a stopped ABAP debug session to test alternate runtime values without changing database or source, and return SAP’s reported value.
Instructions
Overwrite a variable in the stopped debuggee and return the value SAP reports back. Affects only the running program's memory for this debug session, not the database or source, but whatever the program does afterwards uses the new value. Needs an active session stopped at a breakpoint; check the current value first with abap_debug_variable.
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": {
"variableName": "<variableName>",
"value": "<value>"
},
"name": "abap_debug_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | New value as text (e.g. 5, or ABC for a character field) | |
| connectionId | No | SAP system connection ID | |
| variableName | Yes | Variable name as written in the source (e.g. LV_COUNT) |