SAP Automation

Estimated reading: 4 minutes

SAP Automation in Robility enables users to automate interactions with SAP applications through configured workflows. It supports establishing SAP sessions, interacting with user interface elements, entering text, selecting values, and retrieving tabular data. These capabilities help automate repetitive SAP operations and streamline business processes.

Prerequisites

Before using SAP Automation, ensure that:

1. SAP Installation: SAP Logon is installed on the machine running the workflow.
2. SAP System Configuration: The required SAP system connection is configured in SAP Logon and is accessible.
3. Authentication: Valid authentication is configured for the SAP system.
4. User Permissions: The SAP user has the required permissions to access the relevant transactions and business data.
5. SAP GUI Scripting: SAP GUI scripting is enabled on the client and server when required by the automation configuration.
6. Network Connectivity: The machine running the workflow can connect to the SAP system.

Supported SAP Versions

The SAP Logon activity supports SAP GUI for Windows versions 8.00 and 8.10, with scripting enabled. Both 32-bit and 64-bit installations are supported. It works with SAP ECC, NetWeaver AS ABAP 6.20 or later, and S/4HANA systems accessed through SAP GUI.

Not supported: SAP GUI for HTML (WebGUI), SAP GUI for Java, and SAP Fiori accessed through a web browser.

SAP GUI 7.70 and earlier are no longer maintained and are not recommended. Confirm compatibility with your SAP environment before deployment.

Enabling SAP GUI Scripting

SAP GUI scripting must be enabled on both the SAP server and client machine.

a. Server: Contact your SAP Basis team to enable the sapgui/user_scripting parameter.
b. Client: Install SAP GUI for Windows with the SAP GUI Scripting component. Open SAP GUI Options → Accessibility & Scripting → Scripting and enable Enable scripting.

For unattended automation, scripting notifications may need to be disabled, subject to your organization’s security policies.

Authentication and Credentials

SAP Automation uses the configured SAP system connection and follows the authentication requirements of the SAP environment. Authentication may use SAP credentials or another supported method, such as single sign-on (SSO).

Ensure that the authenticated SAP user has permission to access the transactions, screens, and data required by the workflow.

Security Note: Handle credentials securely. Avoid hardcoding passwords in workflows or exposing sensitive information in logs and outputs.

Limitations

1. SAP automation requires an accessible SAP system and a valid connection configuration.
2. Authentication failures or insufficient permissions may prevent workflow execution.
3. SAP GUI scripting must be enabled when required by the selected automation approach.
4. Changes to SAP screens or UI elements may require updates to the workflow.
5. Session timeouts, network interruptions, or unexpected authentication prompts may interrupt execution.
6. Table data extraction depends on the supported SAP control type and the data accessible to the authenticated user.

Benefits of SAP Automation

1. Reduced Manual Effort: Automates repetitive SAP operations and data entry.
2. Improved Accuracy: Reduces errors associated with repetitive manual tasks.
3. Consistent Execution: Executes configured business processes consistently.
4. Efficient Data Retrieval: Extracts SAP data for validation, reporting, and further processing.
5. Increased Productivity: Helps reduce the time required to complete routine operations.

Use Cases

1. Transaction Navigation: Opens and navigates to the required SAP transaction screens.
2. Business Data Entry: Enters information into SAP fields, forms, and transaction screens.
3. Value Selection: Selects options from supported SAP selection controls.
4. Table Data Extraction: Retrieves tabular data from supported SAP controls for further processing.
5. Record Processing: Automates repetitive operations involving the retrieval and entry of business records.
6. Reporting and Validation: Retrieves SAP data for reporting, comparison, and validation.

Getting Started

1. Add the SAP Logon activity to the workflow and configure the SAP executable path and connection name.
2. Attach to an existing SAP session through the Designer when required.
3. Add the required SAP activities within the Body of the SAP Logon activity.
4. Use Spy to identify and capture the target SAP UI elements where required.
5. Configure the activity properties and execute the workflow.

Official References

1. SAP Help Portal — SAP GUI Scripting Security Guide and API documentation.
2. SAP Note 480149 — Scripting-related server parameters. An SAP account may be required.

Share this Doc

SAP Automation

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online