Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

R3 - VBS RFC SSO SAP Logon

Luibertoni
Discoverer
0 Kudos

Hello,

I tried to find a way to connect via VBSscritp with SSO, but I couldn't find anything.

Has anyone tried and succeeded with this?

1 REPLY 1

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

When using VB, it is probably easier to use the .NET Connector (NCo) instead of the NW RFC Library directly. Have you taken a look at that already? (Download available at https://support.sap.com/nco )

Assuming that the correct SNC solution & certificate is already installed on the Windows machine (e.g. for use with standard SAP GUI connections), SSO via RFC is pretty simple: you just need to specify a few SNC parameter in the set of logon parameters, like

SNC_MODE=1
SNC_LIB
SNC_QOP=3
SNC_PARTNERNAME
and when using Kerberos: the SNC_MYNAME (when using sapcryptolib, this parameter can be omitted, because the cryptolib automatically knows its own name, if properly installed).