SAP package

The SAP package contains actions to automate tasks and processes on a SAP application.

The SAP package enables you to perform the following tasks:
  • Reduce the time required to combine data from disparate systems.
  • Eliminate human error and increase efficiency.
  • Increase the number of transactions processed.
  • Deliver real-time information to various stakeholders.
  • Enhance decision-making through comprehensive reports.
    Note: In SAP Connect action, the Session name field cannot be shared with Task Bots or any other bots.

Prerequisites

  • Log in to the SAP GUI before capturing objects because the SAP Logon screen is not supported for object capture.
  • Enable GUI scripting and accessibility.

    See Enabling Scripting on the Client Side, Enabling Scripting on the Server Side, and Enabling Accessibility settings.

  • Ensure that one of the following SAP GUI for Windows is installed on the devices that you use to automate SAP-related tasks and to run these tasks:
    • SAP GUI 800 with patch 4
    • SAP GUI 770 with patch 6
    • SAP GUI 760 with patch 5
    • SAP GUI 760 with patch 1
    • SAP GUI 760 with patch 0
    • SAP GUI 750 with patch 9
    Note: The SAP package supports SAP GUI versions with different patches, including the certified version.
    Note: If SAP GUI 760 with patch 0 is installed on your device, you cannot use the SAP Grid view control Set Table cell text and Get Table Cell Text actions because of an issue with SAP GUI 760 with patch 0.
  • Install a Scripting Tracker or a similar tool to retrieve the field path of the SAP object.

Before you start

  • Multiple sessions are supported in the SAP. However, ensure that while creating a bot that uses multiple sessions, you enter the exact or complete name of the session that you intend to use in the Control field path.

    For example, /app/con[0]/ses[0]/userid.

  • Perform the following actions within the SAP package as part of using the set of available actions:
    1. Establish a connection with the SAP application using the Connect action.

      Log in to the SAP application using the SAP GUI application. Then use the Connect action from the SAP package to use this connection and assign a session name. Use this same session name for the other actions.

    2. Use the actions to automate a task.
    3. After you have automated all the SAP-related tasks, terminate the connection to the SAP application using the Disconnect action.

Actions in the SAP package

The SAP package includes the following actions:
Note: The SAP and the Recorder package can detect SAP elements in the application. However, from a usability standpoint, the Recorder package is preferred over the SAP package as it is more intuitive when compared to the SAP package, such as detecting SAP Object paths automatically. See Benefits of using Recorder package instead of SAP package
Action Description
Check/uncheck checkbox

Check/uncheck check box action

Click

Click action

Click menu

Click menu action

Connect Using Connect action for SAP.
Disconnect

Disconnect action

Double click

Double click action

Expand

Expand action

Export table Using Export table action.
Get cell count

Get cell count action

Get children name

Get children names action

Get children text

Get children text action

Get column count

Get column count action

Get row count

Get row count action

Get selected item

Get selected item action

Get status

Get status action

Get table cell index

Get table cell index action

Get table cell text

Get table cell text action

Get text

Get text action

Get item count

Get item count action

Left click

Left click action

Right click

Right click action

Select item

Select item action

Select radio option

Select radio option action

Send virtual key

Virtual keys in SAP GUI

Send virtual key action

Set table cell text Set table cell text.
Set text

Set text action