|
| 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)] |
0 commit comments