Geeks With Blogs
Simon Emmanuel RIVAS
OK this topic may seem obvious for some people, but for some others (including me), enabling SNC was not exactly a piece of cake.
Actually there are plenty of resources about how to install the SAP adapter (where to find the DLLs needed, where to place them, etc…), like this one:
(or you can simply follow the instructions from the installation guide of the BizTalk Adapter Pack, which can be found in this folder on your BizTalk box: C:\Program Files\Microsoft BizTalk Adapter Pack\Documents\ ), but I found very little accurate information on how to configure a receive or send port in order to use SNC. So, here is my recipe.
SAP configuration
·         Check that SNC is enabled. Use transaction RZ10 and check the value of parameter snc/enable. It should be set to 1.
·         Use transaction SU01 to edit the properties of the user under which your BizTalk Host Instance runs (for instance: UsrBTS). Edit the SNC configuration of this user and edit its SNC Name. Set it to UsrBTS@mydomain.com.
Also, note down the values of the snc/gssapi_lib and snc/identity/as parameters, you will need them when configuring the Send Port or Receive location.
Note : if you intend to receive data from SAP (ie: through an RFC Destination), there is no need to enable SNC on this RFC Destination.
BizTalk configuration
Again, I assume you have already and properly installed the SAP Adapter. If not, refer to the BizTalk Adapter Pack installation guide.
Edit the properties of the send port or receive location you wish to configure :
·         First, add UseSnc=True in the connection string. Therefore, it should look like :
sap://CLIENT=120;LANG=en;UseSnc=True;@a/devecc1.mydomain.com/00?ListenerProgramID=BTSRFCTEST&ListenerGwHost=devecc1.mydomain.com&ListenerGwServ=sapgw00
(as you may have guessed, this is the connection string of a receive location)
·         In the binding properties, set the sncLibrary property according to the value of the snc/gssapi_lib SAP parameter :

 

snc/gssapi_lib
sncLibrary
C:\Windows\System32\gx64krb5.dll
gsskrb5.dll (for a 32bit host instance)
gx64krb5.dll (for a 64bit host instance)
C:\Windows\System32\gx64ntlm.dll
gssntlm.dll (for a 32bit host instance)
gx64ntlm.dll (for a 64bit host instance)
·         In the binding properties, set the sncPartnerName property to the value of the snc/identity/as SAP parameter.
·         Restart the host instance hosting the port, and start the port.
TIP : Testing an RFC Destination
In the case where you want to send data to BizTalk through an RFC Destination (using SNC or not), it is possible to check whether the configuration is OK by using transaction SM59, selecting the desired TCP/IP destination and then using the Test Connection button.
Just remember to start the Receive Location before testing the connection...
Posted on Wednesday, November 18, 2009 1:01 PM | Back to top


Comments on this post: Enabling SNC between BizTalk and SAP

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Hi,

I have a quick question. Is your SAP environment on a windows environment or Unix environment when you tested the above configuration?

Thanks
Left by slh on Jun 22, 2010 12:33 AM

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Hello, sorry for the late reply!
The SAP environment was hosted on Windows based servers (W2K8 if my memory is correct)...

Regards
Left by Simon Emmanuel on Sep 15, 2010 11:29 AM

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Hi

Very helpful article!
I have little trouble configuring SAP adapter for SNC

My SAP basis team provided the values of
snc/identity/as = p:CN-SAP,OU=IT,O=CSW,C=US
snc/gssapi_lib = F:\usr\sap\DE1\SYS\exe\uc\NTAMD64\sapcrypto.dll

Should it use these values in the adapter for sncPartnerName and sncLibrary as is?

Any help is greatly appreciated.
Thanks
Left by Vasanth on Aug 12, 2014 7:43 PM

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Hello,

I can't tell for sure, but I would configure the bondong properties like this :
sncLibrary : <some path>/sapcrypto.dll (warning : this DLL should be accessible from your BizTalk server, so maybe you will have to copy it to system32 folder, or something like that)
sncPartnerName : CN-SAP

Simon
Left by Simon on Aug 12, 2014 10:52 PM

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Sorry, I meant :
sncPartnerName = p:CN-SAP (or maybe : p:CN-SAP,OU=IT,O=CSW,C=US ? You'll have to do try both, I guess)

Have you tried with the values your SAP team has provided? If so, did you get an error, and what was the error message?

Simon
Left by Simon on Aug 13, 2014 8:49 AM

# re: Enabling SNC between BizTalk and SAP
Requesting Gravatar...
Thanks for your response Simon. I am getting the following error in BizTalk adapter

---------------------
Microsoft.ServiceModel.Channels.Common.ConnectionException: Details: ErrorCode=RFC_OK. ErrorGroup=RFC_ERROR_COMMUNICATION. SapErrorMessage=SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=HQSDE1DCA1.idb.iadb.org, GWSERV=sapgw00, SYSNR=00

LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR SncPDLInit()==SNCERR_INIT
Unable to load GSS-API DLL
named "C:\Windows\System32\sapcrypto.dll"
TIME Mon Aug 18 10:15:14 201
RELEASE 700
COMPONENT SNC (Secure Network Communication)
VERSION 5
RC -1
MODULE sncxxdl.c
LINE 378
DETAIL LoadLibrary("C:\Windows\Sys. AdapterErrorMessage=. ---> Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_OK. ErrorGroup=RFC_ERROR_COMMUNICATION. SapErrorMessage=SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=HQSDE1DCA1.idb.iadb.org, GWSERV=sapgw00, SYSNR=00

LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR SncPDLInit()==SNCERR_INIT
Una
Left by Vasanth on Aug 18, 2014 5:21 PM

Your comment:
 (will show your gravatar)


Copyright © S.E.R. | Powered by: GeeksWithBlogs.net