UiPath Activities

The UiPath Activities Guide

SAP Application Scope

UiPath.SAP.BAPI.Activities.SapApplicationScope

Establishes the connection to a SAP system and provides a scope for multiple subsequent operations by use of the Invoke SAP BAPI activity. The connection to the system can be established at design time, by using the window that can be opened from the Configure button in the body of the activity, and at runtime, by populating all of the required property fields with corresponding values.

Properties

Connection - Authentication

  • Client - The SAP client you want to log into. Supported values for this field are between 000 and 999. This field supports only strings and String variables.
  • Language - The log in language you want to use. This field supports only strings and String variables.
  • Password - The password you want to use to log in. This field supports only SecureString variables.
  • SncLibraryPath - The full path and name of the SNC shared library that you want to use. This field supports only strings and String variables.
  • SncMode - Determines whether connections are secured with SNC. Supported values for this field are 0 (does not use SNC) and 1 (uses SNC). This field supports only strings and String variables.
  • SncPartnerName - The Identity that you want to use for the destination server, if required by your SNC solution. This field supports only strings and String variables.
  • SncQOP - The Quality of Service that you want to use for SNC communication for the destination server. Supported values for this field are 1 (Authentication Only), 2 (Integrity Protection), 3 (Privacy Protection), 8 (Default), 9 (Maximum Security). This field supports only strings and String variables.
  • SncSSO - The credentials that you want to use when using SNC. Supported values for this field are 0 (Login with User/Password) and 1 (Login with SNC Identity). This field supports only strings and String variables.
  • User - The username that you want to use for logging in. This field supports only strings and String variables.

Connection - Server

  • AdvancedParameters - A list of name value pairs, separated by semicolons, for any additional RFC Configuration parameters. This field supports only strings and String variables.
  • AppServer - The hostname of the SAP Application Server. This field supports only strings and String variables.
  • LogonGroup - The logon group from which the message server selects an application server. This field supports only strings and String variables.
  • MessageServer - The hostname of the SAP system's central instance message server. This field supports only strings and String variables.
  • SAPRouter - The SAP Router through which you want to establish a connection. This field supports only strings and String variables.
  • StatefulConnection - Indicates whether you want to establish a stateful connection. By default, this field is set to True.
  • SystemID - The SAP system's three-letter system ID. This field supports only strings and String variables.
  • SystemNumber - The SAP system's number. Supported values for this field are between 00 and 99. This field supports only strings and String variables.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • DisplayName - The display name of the activity.

Output

  • SAPConnection - The connection to the SAP system, stored in an IConnectionService variable. This object can be passed on to subsequent SAP Application Scope activities to establish the connection to the system, without reconfiguring all of the details required for a new connection. This field supports only IConnectionService variables. Supplying a variable to this property field disables the ExistingSAPConnection field.

Note:

In order to be able to pass the IConnectionService variable to a subsequent scope, this second activity must be nested in the scope that holds the initial connection or inside workflows that are invoked from this scope.

This variable can also be passed on to activities generated by the SAP Connection Wizard from the UiPath.SAP.BAPI.Activities v1.x.x, to execute those workflows.

Use Existing Connection

  • ExistingSAPConnection - A connection to a SAP system, stored in an IConnectionService object. This variable can be retrieved from a SAP Application Scope activity and enables connecting to a system without the need of reconfiguring the connection. This field supports only IConnectionService variables. Supplying a variable to this property field disables the SAPConnection field.

Configuring a Connection

You can configure a connection to a SAP system using a Custom Application Server or a Group/Server Selection, as well as authenticate using User/Password or SSO. A set of valid parameters should be specified for both the Server and Authentication for a successful connection. An error message from SAP indicates any missing parameters.

Design Time

Clicking the Configure button in the body of the SAP Application Scope activity opens a wizard which enables you to configure your connection to the SAP system at design-time.

Simply enter all of the credentials required for connection and click the Test connection button. If the connection is established successfully, a message appears, informing you of this.

Clicking Close in this message box closes the connection wizard and sets all the values you provided as credentials to their respective property fields, rendering the activity ready to use.

Note:

The value for the Password field is not saved in the activity properties when exiting the connection window.

Run Time

At run time, all the server credentials must be supplied as variables in their respective property fields. You can also use a IConnectionService object that contains all the connection details in the ExistingSAPConnection property fields.

Updated 7 months ago


SAP Application Scope


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.