Use no-code RPA with SAP GUI in Power Automate Desktop

You can use the Power Automate Desktop recorder to record SAP GUI interactions. The desktop recorder translates each mouse click and keystroke into Power Automate Desktop actions, and then adds these actions to your desktop flow.

If you want to see the new desktop recording experience in action, follow these steps to reconfigure the action-based automation you built in the Low-code RPA with SAP GUI in Power Automate Desktop section of this playbook.

You can also follow along in the no-code approach in episode 6 of the video series:

  1. Select the ProcessHRMasterForm subflow tab, and then select Desktop recorder.

    Screenshot of Power Automate Desktop showing the Desktop recorder button.

  2. Open SAP, bring the SAP Easy Access window to the foreground, and then in the Desktop recorder window, select Start recording.

    Screenshot of SAP GUI with Desktop recorder tracking window and instruction to start recording.

  3. Enter PA30 into the Transaction field, and then select Enter.

Screenshot of SAP GUI with Desktop recorder tracking window and SAP transaction code being marked for recording.

  1. Enter a Personnel number, and then select Enter.

    Screenshot of SAP GUI with Desktop recorder tracking window and SAP Personnel number field being marked for recording.

  2. Select Addresses as the Infotype Text, and then enter a value in STy (such as 2 or any other value suitable for your use case).

    Screenshot of SAP GUI with Desktop recorder tracking window and SAP Infotype text field being selected and STy field marked for recording.

  3. Enter a date in the From field, and then select the New icon.

    Screenshot of SAP GUI with Desktop recorder tracking window and SAP period from field being specified and marked for recording.

  4. Enter a street name along with a house number in Address line 1.

    Screenshot of SAP GUI with Desktop recorder tracking window and SAP address line 1 field being specified and marked for recording.

  5. Enter values for City, State/zip code and Country key, and then select Save.

    Screenshot of SAP GUI with desktop recorder tracking window and SAP address relevant fields being listed on the screen and the save button is also marked as recording step.

  6. Select the Back (F3) icon.

    Screenshot of SAP GUI with Desktop recorder tracking window and SAP back button.

  7. This completes the address creation process, so select Finish in the desktop recorder window.

    Screenshot of SAP GUI with Desktop recorder tracking window.

  8. Your desktop flow script should look similar to the following image.

    Screenshot of Power Automate Desktop that shows the recorded actions on its canvas.

  9. During recording, you might have accidentally selected windows or other UI elements that aren't relevant to your flow. If this happens, you can remove duplicate or unnecessary action steps from the script.

    Screenshot of Power Automate Desktop that shows duplicate or accidentally captured actions.

    Screenshot of more Power Automate Desktop showing duplicate or accidentally captured actions to be removed - continued.

  10. Highlight all actions that were manually defined in Low-code RPA with SAP GUI in Power Automate Desktop, right-click, and then select Delete selection to remove them from the subflow.

    Screenshot of Power Automate Desktop that shows added actions which should be deleted.

  11. Edit the Populate text field in window action for Employee Id, and replace the Text to fill-in value with the previously defined EmployeeId variable.

    Screenshot of Power Automate Desktop that shows a Populate text field action dialog where a hard-coded employee ID can be replaced with a previously defined variable.

    Screenshot of Power Automate Desktop showing a Populate text field action dialog listing the previously defined EmployeeId variable.

  12. Edit the Populate text field in window action for Info subtype, and replace the Text to fill-in value with the previously defined AddressType variable.

    Screenshot of Power Automate Desktop showing a Populate text field action dialog where the hard-coded info subtype can be replaced with a previously defined variable.

    Screenshot of Power Automate Desktop that shows a Populate text field action dialog with a previously defined AddressType variable.

  13. Edit and replace the hard-coded text with variables in the Populate text field in window actions for Effective Date, Street, City, State, ZipCode, and Country.

    Screenshot of Power Automate Desktop that shows the action results after renaming Effective Date  Street  City  State  ZipCode  and Country.

  14. Highlight the actions that you'll need for the employee address creation subflow, right-click the actions you selected, and then select Cut.

    Screenshot of Power Automate Desktop that shows address creation actions have been highlighted and removed.

  15. Open the ProcessEmployeeAddressForm subflow, select all actions, right-click, and then select Delete.

    Screenshot of Power Automate Desktop that highlights all actions that are to be deleted within the ProcessEmployeeAddressMaster subflow.

  16. In ProcessEmployeeAddressForm subflow, right-click, and then select Paste.

    Screenshot of Power Automate Desktop that shows a context menu within the ProcessEmployeeAddressForm sub flow with the paste command highlighted.

  17. Under the Variables pane, edit all variables and then provide Default values. These default values will be used to test the updated desktop flow.

    Screenshot of Power Automate Desktop that shows the Variables pane and a context menu to edit variables and their default values.

    Screenshot that shows the Edit Variable dialog box with default values.

  18. Select Save, and then close the confirmation message.

  19. Select Run.

    Screenshot of Power Automate Desktop that shows the final desktop flow that’s ready to be tested. Select the run command to start the test.

Awesome! With this new desktop recording option, some minor action tweaks, and a bit of refactoring, you've reduced development time and simplified the overall desktop flow action definition process.

Important

Delete all previously defined default values before you leave the desktop flow authoring experience.