sap_press_button
Presses a pushbutton or toolbar button on the current SAP GUI screen and returns screen info so you can detect navigation or popups.
Instructions
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]').
A popup button is checked like sap_handle_popup's press: a press that may save, or any answer but Cancel to a popup question the tool cannot read, asks the user first (confirmed_by_user: true when accepted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||