UiPath Documentation
activities
latest
false
Atividades de integrações clássicas
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Geração de um fluxo de trabalho SAP BAPI para versões mais antigas que a v2.0.0

Gere um fluxo de trabalho SAP BAPI usando o assistente do SAP Connector no UiPath Studio para versões do pacote SAP BAPI anteriores à v2.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.

O assistente contém 4 seções, como segue:

Credenciais de login​

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

Para Parâmetros de conexão do sistema, insira os detalhes do sistema SAP ao qual você deseja se conectar para extrair as informações BAPI. Os campos obrigatórios são:

  • Host do servidor de aplicativos
  • Número do Sistema

Para as informações de login, insira os detalhes do usuário SAP que está autorizado a se conectar ao sistema SAP acima. Os campos obrigatórios são:

  • Cliente
  • Usuário
  • Senha

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.

Observação:

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.

Escolha 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.

Se o BAPI não for encontrado, aparecerá uma mensagem de erro. Verifique se o nome SAP BAPI inserido está correto e habilitado no sistema SAP. Seu administrador SAP deve ser capaz de ajudar se o BAPI não puder ser encontrado.

Selecionar 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.

Se um BAPI incluir argumentos complexos, como tabelas e estruturas, que por sua vez contêm argumentos complexos, uma exceção BAPI não suportada será lançada. Isso acontece nos casos dos seguintes tipos de argumento:

  • Uma mesa dentro de uma mesa.
  • Uma tabela dentro de uma estrutura.
  • Uma estrutura dentro de uma estrutura.
  • Uma estrutura dentro de uma tabela.

Um erro também será lançado se um BAPI incluir o argumento de retorno com um tipo de parâmetro diferente de BAPIRETURN, BAPIRETURN1, BAPIRET1, BAPIRET2, BAPIRET2_FIX.

Clicking Next navigates to the Generate Workflow screen.

Gerar fluxo de trabalho​

Essa tela permite revisar os detalhes do seu fluxo de trabalho, garantindo que você selecionou todos os argumentos a serem mapeados.

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.

Chamando o fluxo de trabalho 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.

Observação:

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

Quaisquer argumentos de tipo Table no BAPI são mapeados para argumentos DataTable e quaisquer argumentos de tipo Structure no BAPI são mapeados para argumentos DataRow . Todos os outros argumentos são mapeados para tipos de dados básicos.

Cada fluxo de trabalho BAPI também retorna um argumento contendo a estrutura BapiReturn do tipo apropriado.

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.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades