UiPath Documentation
activities
latest
false
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Actividades de integraciones clásicas

Última actualización 18 de may. de 2026

Generar un Flujo de trabajo SAP BAPI para versiones anteriores a 2.0.0

After the SAP BAPI package has been installed, the SAP Connector wizard becomes available in UiPath Studio, in the Design ribbon tab, in the Wizards section.

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

El asistente contiene 4 secciones, como se indica a continuación:

Credenciales de inicio de sesión

This section requires you to enter the System Connection Parameters and Login Information.

En Parámetros de conexión del sistema, introduce los detalles del sistema SAP al que deseas conectarte para extraer la información de BAPI. Los campos obligatorios son:

  • Host del servidor de aplicaciones
  • Número del sistema

Para la Información de inicio de sesión, introduzca los detalles del usuario SAP autorizado para conectarse al sistema SAP anterior. Los campos obligatorios son:

  • Cliente
  • Usuario
  • Contraseña

You can also specify the language of the SAP system by filling in the Language field. Please note that this field should be filled in with a language code (e.g. EN, DE, etc.). The specified language should be installed on the SAP instance you are connecting to. If no language is specified in this field, the default language of the SAP system is used.

Clicking Connect indicates if the connection was successful and changes the status to Online.

Nota:

If the connection cannot be established, an error message appears. Review and fix the System Connection Parameters or Login Information and retry. If a connection cannot be established successfully, check with your SAP Administrator.

The SAP BAPI Wizard keeps the System Connection Parameters and Login Information values (with the exception of the Password field) for the ongoing Studio session.

Elegir BAPI

Enter the name of the BAPI to automate in the SAP BAPI Name field. Optionally, also enter a description.

Once the SAP BAPI Name field is filled in, click Next, If the BAPI is found in the repository, then the Wizard navigates to the Arguments screen.

Si no se encuentra el BAPI, aparece un mensaje de error. Compruebe que el nombre de SAP BAPI que introdujo es correcto y está habilitado en el sistema SAP. Su administrador de SAP debería poder ayudarle si no se puede encontrar el BAPI.

Seleccionar argumentos

The Wizard lists all the arguments for the BAPI, along with the details for each argument such as Direction (In, Out, In/Out), Data Type, and if the argument is Mandatory. Select the arguments that you want to be mapped into the workflow. Arguments marked as Mandatory are always selected for mapping.

You can also specify an Assigned Name to be used for the Workflow Argument in place of the Technical Name from the SAP BAPI.

Si una BAPI incluye argumentos complejos, como tablas y estructuras, que a su vez contienen argumentos complejos, se lanza una excepción BAPI no admitida. Esto sucede en los casos de los siguientes tipos de argumentos:

  • Una tabla dentro de otra.
  • Una tabla dentro de una estructura.
  • Una estructura dentro de una estructura.
  • Una estructura dentro de una tabla.

También se arroja un error si una BAPI incluye el argumento de retorno con un tipo de parámetro diferente a BAPIRETURN, BAPIRETURN1, BAPIRET1, BAPIRET2, BAPIRET2_FIX.

Clicking Next navigates to the Generate Workflow screen.

Generar flujo de trabajo

Esta pantalla le permite revisar los detalles de su flujo de trabajo, asegurándose de que ha seleccionado todos los argumentos que se van a asignar.

The Workflow File Path property field specifies where you want the workflow to be saved.

Clicking Generate creates an .xaml file at the specified path, with all the options selected in the Select Arguments screen.

Invocar el flujo de trabajo BAPI

The Invoke Workflow File activity can be used to invoke the SAP BAPI workflow. The Open SAP Connection activity must be placed before the invoke activity, as it generates a SAPConnectionService variable, which is subsequently used in the SAP BAPI workflow argument named SAPConnectionService. This argument should be set in the SapConnectionService property field of the Open SAP Connection activity.

Nota:

Workflows generated with the SAP BAPI pack cannot be invoked when using the Isolated property in the Invoke Workflow File activity.

Cualquier argumento de tipo Table en el BAPI se asigna a argumentos DataTable y cualquier argumento de tipo Structure en el BAPI se asigna a argumentos DataRow . Todos los demás argumentos se asignan a tipos de datos básicos.

Cada flujo de trabajo BAPI también devuelve un argumento que contiene la estructura BapiReturn del tipo apropiado.

After the Invoke Workflow File activity, a Close SAP Connection activity must be used to close the connection to SAP. The connection can be specified by using the same SAPConnectionService variable.

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado