SAP BAPI Connection Fails in UiPath SAP Application Scope When Using SNC

Hello Community,

I am facing an issue while trying to connect to SAP BAPI using UiPath’s SAP Application Scope and would appreciate guidance from anyone who has worked with SNC-based connections.

Scenario:
• I am using SAP Application Scope in UiPath (Windows project, SAP BAPI activities version 3.x and above)
• The connection is configured to use BAPI.
• The SAP system is accessed via SNC (Secure Network Communication).
• The client has shared all SNC-related details, including:
○ SNC Partner Name
○ SAP Crypto Library path
○ SNC QOP value
• Login is configured using SAP username and password along with SNC.
Issue:
• All connection details are entered correctly in the Configure Connection panel.
• However, when I click Test Connection, the connection fails with the following error:

Request for Help:
Could you please advise on:
• Any additional configuration required for SNC-based BAPI connections in UiPath?
• Whether specific SAP authorizations, libraries, or environment variables are required?
• Any known limitations or prerequisites when using SAP Application Scope + BAPI + SNC?

Any inputs, documentation references, or similar experiences would be very helpful.

Hi @Sujitha_Dhanapal

When using SAP Application Scope with SNC, connection can fail even if credentials and SNC details are correct.

  • SAP Crypto Library path must match SAP GUI version (32 vs 64 bit).
  • SNC environment variables (like SECUDIR) may need to be set.
  • SNC Partner Name must match exactly what’s in SAP.
  • User must have RFC/BAPI access and any SNC permissions.
  • UiPath supports SNC only with SAP GUI 7.50+ and .NET connector installed.
  • Sometimes testing works only from SAP GUI; you may need to use the Advanced tab or SAP Logon connections in UiPath.

Make sure the connection works from SAP GUI first, then replicate the exact parameters in UiPath.