Skip to content

Commit ab36791

Browse files
authored
Merge pull request #10216 from iomimtso/handle-launch-sap-authentication-dialog
AB#8377: Handle launch sap authentication dialog
2 parents 18019fa + e99c03b commit ab36791

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Handle Authentication Popup When Starting SAP
3+
description: Learn how to handle SAP authentication popups in Power Automate for desktop for smooth SAP automation.
4+
ms.reviewer: iomimtso, ststavri, nimoutzo, v-shaywood
5+
ms.custom: sap:Desktop flows\SAP automation
6+
ms.date: 11/19/2025
7+
---
8+
# Authentication popup appears when starting SAP
9+
10+
This article helps you resolve an issue in which an authentication popup appears when you use the **Launch SAP** action in Microsoft Power Automate for desktop.
11+
12+
## Symptoms
13+
14+
When you run the [Launch SAP](/power-automate/desktop-flows/actions-reference/sap#saplogin) action by using your logon credentials, an authentication popup window appears unexpectedly. This issue causes the action to fail and prevents other SAP actions from running.
15+
16+
## Workaround
17+
18+
To handle the authentication popup, use [UI automation actions](/power-automate/desktop-flows/actions-reference/uiautomation) instead of the **Launch SAP** action. Follow these steps:
19+
20+
1. Use the **Run application** action to start the SAP GUI application.
21+
1. Use UI automation actions to interact with the authentication popup:
22+
1. Use the **Populate text field in window** action to enter credentials.
23+
1. Use the **Click UI element in window** action to submit the credentials.
24+
1. After you handle the popup, use the **Attach** action to attach the SAP GUI application to the active SAP instance.
25+
1. After the SAP instance is attached, you can run any other SAP actions.
26+
27+
:::image type="content" source="media/handle-authentication-popup-launch-sap/authentication-popup-appears-when-launching-sap.png" alt-text="Power Automate for desktop workflow with Run application, UI automation actions to handle authentication popup, and Attach to running SAP actions.":::
28+
29+
## More information
30+
31+
- [UI automation actions](/power-automate/desktop-flows/actions-reference/uiautomation)
32+
- [SAP automation actions](/power-automate/desktop-flows/actions-reference/sap)
33+
- [Introduction to SAP GUI–based RPA in Power Automate Desktop](/power-automate/guidance/rpa-sap-playbook/introduction)
34+
35+
[!INCLUDE [Third-party disclaimer](../../../../includes/third-party-disclaimer.md)]
Loading

support/power-platform/power-automate/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ items:
8181
href: desktop-flows/office-automation/outlook/retrieve-emails-filtering.md
8282
- name: SAP automation
8383
items:
84+
- name: Authentication popup appears when launching SAP
85+
href: desktop-flows/sap-automation/handle-authentication-popup-launch-sap.md
8486
- name: Can't open SAP
8587
href: desktop-flows/sap-automation/scripting-permissions-launch-sap.md
8688
- name: SAP UI element click issue

0 commit comments

Comments
 (0)