UiPath Documentation
activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Klassische Integrationsaktivitäten

Über das SAP BAPI-Aktivitätspaket

Das Aktivitätspaket SAP BAPI ermöglicht dem RPA-Entwickler das Aufrufen einer SAP Business Application Programming Interface (BAPI). Das Paket enthält eine Scope-Aktivität, SAP Application Scope, die es dem Benutzer ermöglicht, sich mit einem SAP-System zu verbinden und eine Invoke SAP BAPI- Aktivität zum Aufrufen einer angegebenen BAPI zu verwenden.

Voraussetzungen für die Installation

Hinweis:

Die Installationsvoraussetzungen gelten für SAP BAPI-Paketversionen 2.2.6 und älter. Ab Version 3.0.0 Die Vorbedingungen sind für Studio Windows-Projekte nicht erforderlich, bleiben aber notwendig, wenn Sie einen Windows-Legacy-Workflow erstellen.

Die 32bit (x86).NET 4.0-Variante des SAP Connectors für Microsoft.NET 3.0 (NCo 3.0) (vorzugsweise 3.0.0.42) ist eine Voraussetzung für dieses Aktivitätspaket. Dieser Connector erfordert auch die Microsoft C++ Runtime DLL Version 10.0 (diese ist im Microsoft Visual C++ 2010 Redistributable Package enthalten). Ihr SAP-Administrator sollte in der Lage sein, das Installationsprogramm bereitzustellen.

Hinweis:

Bitte beachten Sie, dass das SAP Verbindungsprogramm für Microsoft zum ordnungsgemäßen Funktionieren im Windows Global Assembly Cache (GAC) installiert sein muss. Dazu muss beim Installieren des SAP-Verbindungsprogramms die richtige Option ausgewählt werden. Dazu wählen Sie beim Installieren des SAP-Verbindungsprogramms die entsprechende Option aus.

Diese Abhängigkeiten müssen auf jeder Maschine installiert sein, auf der Sie dieses Aktivitätspaket verwenden möchten. Dies gilt sowohl für Entwicklungscomputer, wo Workflows in Studio erstellt werden, als auch für Produktionscomputer, auf denen der Roboter diese Workflows ausführt.

Die offizielle Dokumentation des SAP .NET Verbindungsprogramms finden Sie hier.

Generieren eines SAP BAPI-Workflows für Versionen v2.0.0 und höher

First, you must configure a connection to the SAP system. After this step is performed, you can invoke multiple BAPI workflows before closing the connection.

Konfigurieren einer Verbindung

Sie können eine Verbindung zu einem SAP-System mithilfe eines benutzerdefinierten Anwendungsservers oder einer Gruppen-/Serverauswahl konfigurieren sowie sich mithilfe von Benutzer/Kennwort oder SSO authentifizieren. Für eine erfolgreiche Verbindung sollte ein Satz gültiger Parameter sowohl für den Server als auch für die Authentifizierung angegeben werden. Eine Fehlermeldung von SAP weist auf fehlende Parameter hin.

Design Connection

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.

Hinweis:

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

Robot Connection

You can also configure the Robot connection details by switching to the Robot Connection tab.

The details for the Robot connection can also be automatically copied over from the Design Connection tab by using the Copy to Robot Connection button.

Laufzeit

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.

Konfigurieren der Aktivität „SAP BAPI aufrufen“

Clicking the Configure button in the body of the Invoke SAP BAPI activity opens a wizard that enables you to choose and configure the BAPI you want to invoke.

The BAPI Name search bar can be used to find the BAPI you want to invoke. Once selected, the BAPI's mandatory parameters are added in the table below, where they can be edited.

Hinweis:

Parameters marked with * are mandatory and cannot be deleted.

Die Tabelle ist wie folgt in sieben Spalten unterteilt:

  • Name - The name of the parameter specific to the selected BAPI.
  • Description - A short description detailing the parameter.
  • Length - Maximum number of characters, if any.
  • Data Type - The variable or object type of the parameter.
  • Direction - Specifies whether a parameter is In, Out, or In/Out.
  • Value - The value of the parameter.
  • Dokumentationsbild - Löscht den Parameter aus der BAPI.

After configuring the parameters you want your BAPI to have, clicking Done closes the wizard and saves the configuration in the Invoke SAP BAPI activity. You can now run the process you have created.

Parameter hinzufügen

You can add parameters one by one by using the Add Parameter text field in the bottom left part of the window to search the list of parameters and hitting Enter.

The Add Parameters button in the upper right area enables you to add any parameters you want into the BAPI invoke you are performing. Clicking the button switches to a list of all available parameters, where you can specify what parameters you wish to add by selecting their respective check boxes.

Exportieren von Parametern

The Export Parameters button exports all of the currently defined parameters and their metadata into an .xlsx file. Clicking the button opens a browsing window which lets you select where you want to save the file containing the exported data. This file can then be used as a template for creating input data files.

Generieren eines SAP BAPI-Workflows für Version v1.xx

Wenn Sie eine Version verwenden, die älter als v2.0.0 ist, können Sie hier auf Anweisungen zum Generieren eines SAP BAPI-Workflows zugreifen.

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben