mcp-sap-gui

v0.6.3
io.github.kts982/mcp-sap-gui Checked 5 hours ago Published 5 hours ago

SAP GUI for Windows automation for AI agents - 61 structured tools via SAP GUI Scripting API

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sap_connect Sap Connect

Connect to an SAP system by its name in SAP Logon Pad. Credentials are resolved from a .env file (SAP_USER, SAP_PASSWORD, SAP_CLIENT, SAP_LANGUAGE) so passwords never appear in MCP tool calls. Parameters provided here override the .env values (except password). If SAP is already open and logged in, use sap_connect_existing instead.

ParameterTypeDescription
system_description *string
client
language
user

sap_connect_existing Sap Connect Existing

Connect to an already open SAP session. Use this when SAP is already logged in. This is the most common starting point. connection_index=0 and session_index=0 connect to the first open session. Also attaches to SAP Business Client / embedded SAP GUI sessions. Indexes come from sap_list_connections; a connection with scripting_disabled=true cannot be attached. system: pass it only when the user named the SAP system, as 'DEV' or 'DEV/100' (system/client). One open session on it is attached; several, or none, return an error that lists what is open. The indexes are then ignored. With the 'atta…

ParameterTypeDescription
connection_indexinteger
session_indexinteger
system

sap_list_connections Sap List Connections

List all open SAP connections and sessions. Covers SAP Logon plus SAP Business Client / embedded SAP GUI sessions (`host`: saplogon | sapguiserver). A connection with no sessions and `scripting_disabled: true` means the server parameter sapgui/user_scripting is off, so no session can be read. Each session has its system, client, user, transaction, `session_number` (the "(2)" in "DEV(2)") and window `title`.

sap_get_session_info Sap Get Session Info

Get information about the current SAP session (system, client, user, transaction, screen). Also the SAP GUI release (sap_gui_version) and scripting_read_only: when true, the SAP server allows read-only scripting and write tools refuse.

sap_execute_transaction Sap Execute Transaction

Execute (start/run) an SAP transaction code (tcode), e.g. MM03, VA01, SM30. Navigates to the transaction's initial screen. Always check the screen info in the response to understand what screen you landed on. Some transactions require /n prefix for SCWM (e.g., /n/SCWM/MON). A bare /n leaves the current transaction (unsaved data is lost). Subject to transaction blocklist/allowlist. Use sap_get_session_info to see the current transaction before navigating away.

ParameterTypeDescription
tcode *string

sap_send_key Sap Send Key

Press a keyboard key / function key in the SAP window (sendVKey). Common keys: Enter (confirm), F1 (Help), F3 (Back), F4 (search help / value help), F5 (Refresh), F8 (Execute), F11 (Save), F12 (Cancel/Escape). Also supports Shift+F1..F9, Shift+F11, Shift+F12, and Ctrl+F, Ctrl+G, Ctrl+P. A key that is not active on the screen is not sent: the response has an error and available_keys, the keys this screen accepts. F11 / Save requires user confirmation via elicitation before proceeding; the response then has confirmed_by_user: true. A declined save returns status 'cancelled' with an error, as…

ParameterTypeDescription
key *string

sap_get_screen_info Sap Get Screen Info

Get current SAP screen info: transaction, program, screen number, window title, and status bar message (success/error/warning text). Reads from ``session.ActiveWindow`` so the response always reflects what the user sees. The ``active_window`` field tells you which window is in focus (e.g. ``wnd[0]`` for the main screen, ``wnd[1]`` for a popup). The ``title`` comes from the active window. Every action tool (press_button, send_key, select_menu, etc.) returns this same screen info, so you always know when a popup appears. Use sap_get_popup_window for full popup content (texts, buttons). Pres…

sap_read_field Sap Read Field

Read the value of a field on the current SAP screen. Returns value, type, changeable status, and labels (left/right). For a dropdown, value is the selected entry's text and key its key. For a radio button or checkbox, value is its label and selected says whether it is selected. Use sap_get_screen_elements to discover field IDs on unknown screens.

ParameterTypeDescription
field_id *string

sap_set_field Sap Set Field

Set (type/enter) a value into an input field on the current SAP screen. Works on GuiTextField and GuiCTextField input fields, and on dropdowns (GuiComboBox, ID prefix cmb): there value picks the entry by its key or its text, and the response reports the key and text selected. For filling in multiple fields of a form at once, use sap_set_batch_fields instead. After setting a field, you may need to press Enter to trigger validation. A value longer than the field (MaxLength) or a field that is not changeable is refused before writing: status 'rejected' and an error that says which, and the fiel…

ParameterTypeDescription
field_id *string
value *string

sap_press_button Sap Press Button

Press (click) a pushbutton or toolbar button on the current SAP screen. Returns screen info after the press so you can detect navigation or popups. Use sap_get_toolbar_buttons to discover toolbar button IDs. Use sap_get_screen_elements to find on-screen button IDs. When screen info has message_has_long_text, pressing 'wnd[0]/sbar' opens that long text (Diagnosis / Procedure), usually as a list popup: read it with sap_read_list(window_id='wnd[1]'). The Save button (tbar[0]/btn[11]) asks the user first, as F11 does, and is pressed only on the screen that was approved: confirmed_by_user: true w…

ParameterTypeDescription
button_id *string

sap_select_menu Sap Select Menu

Select a menu item from the menu bar or a submenu. Example: 'wnd[0]/mbar/menu[1]/menu[0]'. Use sap_get_screen_elements on 'wnd[0]/mbar' to discover menu structure. Returns screen info after selection so you can detect navigation.

ParameterTypeDescription
menu_id *string

sap_select_checkbox Sap Select Checkbox

Select or deselect a checkbox on the current SAP screen. Set selected=false to uncheck. Use sap_get_screen_elements with type_filter='GuiCheckBox' to find checkbox IDs.

ParameterTypeDescription
checkbox_id *string
selectedboolean

sap_select_radio_button Sap Select Radio Button

Select a radio button on the current SAP screen. Use sap_get_screen_elements with type_filter='GuiRadioButton' to find radio button IDs on the current screen.

ParameterTypeDescription
radio_id *string

sap_select_combobox_entry Sap Select Combobox Entry

Select an entry in a combobox/dropdown by its key or display value text. Accepts either the technical key or the visible display text. Use sap_get_combobox_entries first to see all valid options. F4 opens nothing on a dropdown; sap_set_field selects entries the same way.

ParameterTypeDescription
combobox_id *string
key_or_value *string

sap_select_tab Sap Select Tab

Select a tab in a tab strip control. Returns screen info after selection (tab content changes). Tab IDs typically look like 'wnd[0]/usr/tabsTABSTRIP/tabpTAB01'.

ParameterTypeDescription
tab_id *string

sap_get_combobox_entries Sap Get Combobox Entries

List all entries in a combobox/dropdown. Returns key-value pairs so you know which values are valid.

ParameterTypeDescription
combobox_id *string

sap_set_batch_fields Sap Set Batch Fields

Fill in multiple input fields at once (dict of field_id to value). Use this to fill a form or selection screen in one call — more efficient than repeated sap_set_field calls. Table-control cells work too: take the cell_id template of each column from sap_read_table(columns_only=true) and replace {row}. A dropdown (cmb) takes an entry's key or text, as in sap_set_field. The result gives counts; `results` lists only the fields that did NOT succeed (all of them with verbose=true). Check failed == 0: a field that was not set does not stop the others. With --strict-errors such a batch is return…

ParameterTypeDescription
fields *objectDict mapping field_id -> value.
skip_readonlybooleanSilently skip fields whose element reports Changeable == False instead of counting them as failures.
validatebooleanPress Enter after setting fields and return status-bar feedback. Skipped when no fields were actually set, and when any field failed (`failed` > 0) unless validate_partial=true. `validation.performed`…
validate_partialbooleanWith validate=true, press Enter even when some fields failed.
verbosebooleanList every field in `results`, not only the failures.

sap_read_textedit Sap Read Textedit

Read the content of a multiline text editor (GuiTextedit) — long texts, notes, comments, document text. Returns full text and line count. Use max_lines to cap output for large text editors (0 = all lines).

ParameterTypeDescription
textedit_id *string
max_linesinteger

sap_set_textedit Sap Set Textedit

Write text into a multiline text editor (GuiTextedit) — long texts, notes, comments, document text.

ParameterTypeDescription
text *string
textedit_id *string

sap_set_focus Sap Set Focus

Set focus to any screen element by its ID. Some SAP actions require focus on a specific element before they work (e.g., F4 search help on a field). Use this to set focus before sending keys with sap_send_key.

ParameterTypeDescription
element_id *string

sap_read_table Sap Read Table

Read rows from a table on the current screen — ALV grid (report/list output) or TableControl (SM30 maintenance view, customizing screens). Auto-detects the table type. The response includes a 'table_type' field ('GuiGridView' for ALV or 'GuiTableControl') so you know which type-specific tools to use next (e.g., sap_get_alv_toolbar for ALV, sap_scroll_table_control for TableControl). Use columns_only=true for schema discovery (returns column metadata only, no data). For a TableControl it also gives each column's cell_type and a cell_id template ({row} = zero-based visible row) for sap_set_b…

ParameterTypeDescription
table_id *string
columnsstring
columns_onlyboolean
max_rowsinteger
start_row

sap_get_alv_toolbar Sap Get Alv Toolbar

Get all toolbar buttons from an ALV grid. Returns button IDs, texts, and types. Use this to discover available actions (sort, filter, export, etc.) before pressing them with sap_press_alv_toolbar_button. Only works on GuiGridView (ALV), not GuiTableControl.

ParameterTypeDescription
grid_id *string

sap_press_alv_toolbar_button Sap Press Alv Toolbar Button

Press a toolbar button on an ALV grid (e.g., sort, filter, export). Use sap_get_alv_toolbar to find button IDs. A menu button (Menu / ButtonAndMenu) opens its menu and the response lists menu_items (text and function_code); pick one with sap_select_alv_context_menu_item.

ParameterTypeDescription
button_id *string
grid_id *string

sap_select_alv_context_menu_item Sap Select Alv Context Menu Item

Select an item from an opened ALV context menu. First use sap_press_alv_toolbar_button on a Menu button to open it, then use this to select an item. Alternatively, pass toolbar_button_id to open the menu and select in one atomic call (recommended). `menu_item_id` can be a technical function code (for example `@M00006`), visible menu text (for example `Confirm WT in Foreground`), or a position descriptor. You can pass human-readable menu text directly. The menu_items of sap_press_alv_toolbar_button list what a menu offers. `select_by` controls how selection is performed: - `auto` (default):…

ParameterTypeDescription
grid_id *string
menu_item_id *string
select_bystring
toolbar_button_id

sap_select_table_row Sap Select Table Row

Select a row in a table/grid. Works on both ALV grids and table controls. Row index is zero-based. For ALV: uses absolute row index. For TableControl: scrolls to make the row visible first if needed.

ParameterTypeDescription
row *integer
table_id *string

sap_double_click_cell Sap Double Click Cell

Double-click a cell in a table/grid (often opens details or drills down). Row is zero-based. Column is the column name (from sap_read_table or sap_get_column_info). Works on both ALV and TableControl.

ParameterTypeDescription
column *string
row *integer
table_id *string

sap_modify_cell Sap Modify Cell

Modify the value of a cell in an ALV grid or table control. Only works on editable cells. Use sap_get_cell_info to check if a cell is changeable before attempting to modify it.

ParameterTypeDescription
column *string
grid_id *string
row *integer
value *string

sap_set_current_cell Sap Set Current Cell

Set the current (focused) cell in an ALV grid or table control. Useful before pressing toolbar buttons that act on the current cell.

ParameterTypeDescription
column *string
grid_id *string
row *integer

sap_get_column_info Sap Get Column Info

Get detailed column info from an ALV grid or table control. Returns column names, titles and tooltips; for an ALV grid also each column's data_type (string, date, decimal, ...) and key flag, for a table control each column's cell_type and cell_id template. For a lighter alternative, use sap_read_table with columns_only=true.

ParameterTypeDescription
grid_id *string

sap_get_current_cell Sap Get Current Cell

Get the currently focused cell position in an ALV grid or table control.

ParameterTypeDescription
table_id *string

sap_scroll_table_control Sap Scroll Table Control

Scroll a GuiTableControl to a specific row position. Does NOT work on ALV grids (they handle scrolling internally). For reading data at a specific offset, prefer sap_read_table with start_row parameter — it handles scrolling automatically. position in the response is the row SAP actually put at the top, which can differ from the one asked for (then requested_position and a note say so). Cell IDs ([col,row]) count visible rows from that row.

ParameterTypeDescription
position *integer
table_id *string

sap_get_table_control_row_info Sap Get Table Control Row Info

Get row metadata (selectable, selected) from a GuiTableControl. If rows is omitted, queries all visible rows. Does NOT work on ALV grids.

ParameterTypeDescription
table_id *string
rows

sap_select_all_table_control_columns Sap Select All Table Control Columns

Select or deselect all columns in a GuiTableControl. Does NOT work on ALV grids.

ParameterTypeDescription
table_id *string
selectboolean

sap_get_cell_info Sap Get Cell Info

Get detailed cell metadata from an ALV grid. Returns value, changeable, cell_type (Normal, CheckBox, ValueList, Button, ...), state (Normal, Error, Warning, Info: why a cell was rejected), f4_help, hotspot, color, tooltip, max_length; plus checked for a checkbox and list_box_count (entries) for a dropdown cell. Does NOT work on GuiTableControl.

ParameterTypeDescription
column *string
grid_id *string
row *integer

sap_alv_cell_action Sap Alv Cell Action

Act on a cell of an ALV grid. Does NOT work on GuiTableControl. Actions (row and column name the cell): - click: click a hotspot, as a single mouse click on it does - press_button: press the button shown in the cell - set_checkbox: set a checkbox cell to `checked` (true/false) - f4: open the cell's value help - enter: send the grid's changes to the application for checking. The cell is optional; when given, the response has its value and state afterwards (state 'Error': the entry was not accepted) - context_menu: open the cell's context menu. The response lists menu_items; pick one with…

ParameterTypeDescription
action *string
grid_id *string
checked
columnstring
row

sap_select_alv_columns Sap Select Alv Columns

Select columns of an ALV grid, as a click on their headers does. Does NOT work on GuiTableControl. columns: comma-separated column names ("" clears the selection). The grid's functions act on the selected columns: Total and Subtotals need one, Sort and Filter take it as their column (sap_press_alv_toolbar_button). The selection is replaced, selected rows included, unless add=true. A name the grid does not have selects nothing: status 'rejected' with unknown_columns.

ParameterTypeDescription
columns *string
grid_id *string
addboolean

sap_press_column_header Sap Press Column Header

Send a click on a column header of an ALV grid to the application. Does NOT work on GuiTableControl. This does not select the column and does not sort by it: select it with sap_select_alv_columns, then press the grid's sort, total or filter function with sap_press_alv_toolbar_button. Only a grid whose application reacts to header clicks does something here.

ParameterTypeDescription
column *string
grid_id *string

sap_select_all_rows Sap Select All Rows

Select all rows in an ALV grid. Does NOT work on GuiTableControl.

ParameterTypeDescription
grid_id *string

sap_select_multiple_rows Sap Select Multiple Rows

Select multiple rows at once in an ALV grid or table control. Pass a list of row indices (e.g., [0, 2, 5]).

ParameterTypeDescription
rows *array
table_id *string

sap_get_popup_window Sap Get Popup Window

Check if a popup/modal dialog is open (wnd[1], wnd[2], etc.). Returns the popup's title, text content, and available buttons so you know how to respond. Also classifies the popup and suggests a safe next action. Returns {popup_exists: false} if no popup. The popup's text is in `texts`: labels and display-only fields (a message popup's lines). A popup whose body is a classic list (an F4 hit list, a note, a message's long text) has `list` (`cells`, `rows`, `hint`) instead: its lines are never in `texts` or `interactive_elements`; read them with sap_read_list. Radio buttons and checkboxes in in…

sap_handle_popup Sap Handle Popup

Read and optionally act on the current popup/modal dialog. Use when active_window shows wnd[1] or higher. Combines popup inspection and response in a single call. Actions: - read: return popup content without acting (default) - confirm: press OK/Yes/Continue/Enter on the popup - cancel: press Cancel (or F12) on the popup; never No, which on a save prompt drops the changes - press: press a specific button by its text or tooltip - auto: take only a clearly safe action; otherwise return the popup read-only A press that may save (a Save button, or Yes/OK on a popup about saving, e.g. "Save th…

ParameterTypeDescription
actionstring
button_textstring

sap_get_toolbar_buttons Sap Get Toolbar Buttons

List all buttons on the system toolbar (tbar[0]) and app toolbar (tbar[1]). Returns button IDs, text, tooltip, and enabled state. This is for standard SAP toolbars, NOT ALV (use sap_get_alv_toolbar for ALV).

ParameterTypeDescription
window_idstring

sap_read_shell_content Sap Read Shell Content

Read content from a GuiShell subtype (e.g., HTMLViewer). An HTML viewer's page text and URL are readable only with the Internet Explorer browser control; with the Edge control (SAP GUI 7.70+ default, e.g. the F1 Performance Assistant) the response says so in `note`. Use sap_get_screen_elements first to find shell element IDs.

ParameterTypeDescription
shell_id *string

sap_read_list Sap Read List

Read a classic ABAP list (WRITE output of a report) as lines of text. Use it when a report shows a plain list rather than an ALV grid (program SAPMSSY0, screen 120), and for F4 hit lists in a popup (window_id= 'wnd[1]'). Such a list has no table object: every word is its own label, so sap_get_screen_elements leaves the cells out and reports it under 'lists'. This returns the page as the lines the user sees, with no screenshot needed. - colors: rows whose text has a semantic list colour, e.g. 'negative' (red, errors), 'positive' (green), 'total', 'heading' - scroll: present when the list is…

ParameterTypeDescription
max_linesinteger
scroll_tointeger
window_idstring
with_idsboolean

sap_read_tree Sap Read Tree

Read data from a tree control (TableTreeControl, ColumnTreeControl, etc.). Returns node hierarchy with texts and column values. For large trees (e.g., SPRO with 1000+ nodes), use sap_get_tree_node_children for step-by-step navigation instead. Use sap_search_tree_nodes to find specific nodes by text. total_nodes is the number of nodes read; truncated=true means the tree has more loaded nodes (available_nodes) than max_nodes allowed. events lists what the application reacts to on this tree (e.g. link_click, item_double_click, node_double_click): other clicks do nothing there.

ParameterTypeDescription
tree_id *string
max_nodesinteger

sap_expand_tree_node Sap Expand Tree Node

Expand a folder node in a tree control to reveal its children. After expanding, use sap_get_tree_node_children or sap_read_tree to see the newly visible child nodes.

ParameterTypeDescription
node_key *string
tree_id *string

sap_collapse_tree_node Sap Collapse Tree Node

Collapse a folder node in a tree control (e.g. SPRO/customizing tree).

ParameterTypeDescription
node_key *string
tree_id *string

sap_select_tree_node Sap Select Tree Node

Select a node in a tree control. Highlights the node without opening it. For SPRO-style trees, use sap_click_tree_link on the execute icon column instead.

ParameterTypeDescription
node_key *string
tree_id *string

sap_double_click_tree_node Sap Double Click Tree Node

Double-click a node in a tree control (often opens details or drills down). Selects the node first, as a mouse double-click does. A tree that reacts only to item double-clicks (SM34 view clusters) gets one on the node's text (sent_as: item_double_click); a warning says when the tree reacts to no double-click at all. node_keys_changed=true means the tree numbered its nodes anew: read it again before the next tree call. It does not run an SPRO activity: use sap_click_tree_link on the execute column (typically column '2').

ParameterTypeDescription
node_key *string
tree_id *string

sap_double_click_tree_item Sap Double Click Tree Item

Double-click a specific item (column cell) in a tree node row. item_name is the column name (e.g., 'Column1', 'Column2'). Use sap_read_tree to discover column names for the tree. Selects the item first, as a mouse double-click does. A tree that reacts only to node double-clicks gets one (sent_as: node_double_click). node_keys_changed=true means the tree numbered its nodes anew: read it again before the next tree call.

ParameterTypeDescription
item_name *string
node_key *string
tree_id *string

sap_find_tree_node_by_path Sap Find Tree Node By Path

Find a tree node key by its path. E.g., '2\1\2' = 2nd child of root, then 1st child, then 2nd.

ParameterTypeDescription
path *string
tree_id *string

sap_search_tree_nodes Sap Search Tree Nodes

Search for tree nodes by text. Returns matches with full ancestor paths. Useful for finding nodes in deep trees where the same label appears in multiple branches. Case-insensitive substring match. Optionally pass column to search in a specific column instead of node text. **Important limitation**: Only searches nodes that are already loaded (expanded) in the tree. Collapsed subtrees are not searched. If you don't find what you expect, expand parent nodes first using sap_get_tree_node_children with expand=true, then search again. total_matches counts the matches returned. stopped_early=true…

ParameterTypeDescription
search_text *string
tree_id *string
columnstring
max_resultsinteger

sap_get_tree_node_children Sap Get Tree Node Children

Get direct children of a tree node. Much faster than read_tree for step-by-step navigation of deep trees (e.g., SPRO). Omit node_key or pass empty string for root-level nodes; that answer also lists the tree's events (what the application reacts to). Set expand=true to expand the node first (requires write permission).

ParameterTypeDescription
tree_id *string
expandboolean
node_keystring

sap_get_screen_elements Sap Get Screen Elements

Discover all elements on the current SAP screen. Useful for finding field IDs when working with a new screen. Use type_filter and changeable_only to reduce response size on complex screens (e.g. type_filter="GuiTextField,GuiCTextField" to find only input fields). Trees, ALV grids, text editors and HTML viewers report type GuiShell and a subtype (Tree, GridView, TextEdit, HTMLViewer, Toolbar, ...). type_filter finds them by their class (GuiTree, GuiGridView, ...), by the bare subtype, or all of them by GuiShell. They can sit deep (16 levels were seen): scan from container_id='wnd[0]' with a…

ParameterTypeDescription
changeable_onlyboolean
container_idstring
expand_tablesboolean
max_depthinteger
type_filterstring

sap_screenshot Sap Screenshot

Take a screenshot of the current SAP window: a fallback when the structured tools return nothing useful (e.g. Web Dynpro screens). save_path (.png, a new file in an existing directory) also writes the full-resolution file; inline=False skips the image. A minimized window or a hidden Business Client tab is refused. Evidence options, with save_path: highlight=[targets] frames, mask=[targets] blacks out (nothing is saved if one is not found), isolate=True keeps only the highlighted areas, caption="..." adds a strip, include_context=True adds system, client, user and time to it (needs a caption;…

ParameterTypeDescription
captionstring
highlight
include_contextboolean
inlineboolean
isolateboolean
mask
save_pathstring

sap_preview Sap Preview

Render a preview card of the current SAP screen for the user: screenshot, session/transaction info, status bar, and the values the agent is about to write (pending_fields). Call before significant writes (batch fills, F11 save) or whenever the user asks to see what's about to happen. Read-only: nothing is written or saved.

ParameterTypeDescription
include_screenshotboolean
notestring
pending_fields

sap_set_confirmation_points Sap Set Confirmation Points

Choose which SAP operations need the user's explicit approval first. Replaces this session's set of confirmation points. When a point is active, every matching tool call pauses and asks the user to approve it (MCP elicitation) before anything reaches SAP; declining returns an error and nothing is executed. Points: - transactions: sap_execute_transaction - batch_fields: sap_set_batch_fields - field_writes: sap_set_field, sap_modify_cell, sap_set_textedit, sap_select_checkbox, sap_select_radio_button, sap_select_combobox_entry - all_writes: every write-tagged tool. Strict and noisy — many…

ParameterTypeDescription
points *array

sap_get_workflow_guide Sap Get Workflow Guide

Return step-by-step guidance for a common SAP workflow. Available workflows: - **search_help**: F4 search help on a field. `target` = field ID. - **table_export**: Paginated table export. `target` = table element ID. - **spro_navigate**: SPRO customizing navigation. `target` = activity name.

ParameterTypeDescription
target *string
workflow *string

sap_get_transaction_guide Sap Get Transaction Guide

Return a generic, read-first guide for a supported SAP transaction. Available transactions: - **/SCWM/MON**: EWM Warehouse Monitor with tree navigation and ALV results. - **SM30**: table/view maintenance and view clusters (SM34) - also what most IMG activities open: reading the table, the docked dialog-structure tree, new entries, saving and the customizing request prompt. Aliases accepted: `SCWM/MON`, `warehouse monitor`, `ewm warehouse monitor`, `SM34`, `table maintenance`, `view maintenance`, `view cluster`.

ParameterTypeDescription
transaction *string
taskstring

sap_disconnect Sap Disconnect

Disconnect from the current SAP session and release the binding. Closes only the sessions this MCP session opened: the one sap_connect logged on in and any /o window opened from it. Sessions that were attached (via sap_connect_existing), and /o windows opened from them, are detached but left open so the user can continue working manually.