activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2025年11月12日

关于 SAP GUI for Java 自动化

关于 SAP GUI for Java

Enabling SAP GUI API scripting allows you to create reliable automations for SAP GUI for Java. Studio and Robots require SAP GUI scripting to be enabled on the local machine as well as on the server side. Before you can create your first automation projects for SAP, you need to go over the configuration steps.

UI elements in SAP are known as controls, and you might need a particular approach or activity to detect and use them. Find out more about supported SAP GUI for Java elements.

支持的 SAP GUI for Java 版本

Windows(x64 架构)和 Mac OS(ARM64 架构)支持以下版本的 SAP GUI for Java:

  • SAP GUI for Java 7.80 Rev7

所有可用主题(例如 Quartz、Belize、Blue Crystal 或 Corbu)都可以用于建立 SAP 自动化。

Identifying SAP GUI for Java Elements

The table below lists the selector types that can be used for SAP GUI for Java elements.
选取器类型描述
<sap />Selectors available on screens where the server connection allows scripting
<java />Selectors available on other screens and for controls that do not have a direct counterpart in <sap />
<ax />Selectors available for controls that cannot utilize <java />, such as the Maximize and Minimize buttons

How to check if the server allows scripting

1. Open scripting window: SAPGUI --> Scripts (menu bar) --> Scripting

2. Run this command: connection.isDisabledByServer(). false result means that scripting is enabled.
Scripting is required for <sap /> selectors to work.

How to enable SAP GUI scripting

See the Enabling SAP GUI Scripting section in Configuration Steps.

Advantages of <sap /> selectors

  • Interaction with the application is performed through the official API provided by SAP.
  • Actions wait for confirmation from the server before proceeding to the next UI Automation activity.
  • Includes support for key SAP operations such as SAP Login, Call Transaction, and others.
  • Capable of managing complex UI controls that may not be supported by other selector types.

Aditional information

You can use Wildcards and Regular expressions inside selectors generated for SAP GUI for Java elements.

对于识别目的,SAP GUI for Java 选取器不仅支持 technical ID,还支持 TextTooltipType of SAP control 属性。由于识别方式不同,复杂的 SAP 控件(如 SAP 表、SAP 网格和 SAP 树)不具备这些属性。

如果您的组织未激活或不允许使用 SAP GUI for Java API 脚本,您可以使用“计算机视觉”活动,或使用“用户界面自动化”活动和 Java 选择框架,与 SAP GUI for Java 界面进行交互。

Permission elevation level

提升级别用于确定应用程序是在用户权限还是管理员权限下运行。管理员权限用于执行更强大的任务。

UiPath Studio 和 SAP 的提升级别必须匹配。如果这些应用程序之间的提升级别不匹配,则无法执行自动化。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。