felixmondelo
felixmondelo

Reputation: 1474

Testing BizTalk SAP Installation

I am installing a new BizTalk Server 2016 to an existent BizTalk cluster.

I have installed all the software, but prior to configure the BizTalk Server I want to test if the SAP Software is installed correctly, because we have several problems in the past.

How I can develop a single piece of .NET code, to test that the SAP connector is installed correctly?

Obviously we can test after configure the BizTalk Server and add this server to the BizTalk cluster, but we want to check before.

We are using RFC SDK 7.20 and ClassicRfc connection.

Upvotes: 0

Views: 151

Answers (2)

Ed Bangga
Ed Bangga

Reputation: 13016

SAP will know if its port is connected to biztalk. So just create the Receive Port to SAP in biztalk to test the connection.Make sure IDOCs are not released.

enter image description here

Upvotes: 1

AecorSoft
AecorSoft

Reputation: 494

Obvisously, replace the parameters in "<...>" below with your actual server information.

using Microsoft.Data.SAPClient;
using (SAPConnection conn = new SAPConnection("TYPE = A; ASHOST=<server>; SYSNR=<sysnum>; LANG=EN; CLIENT=<client>; USER=<user>; PASSWD=<password>"))
{
    conn.Open();
    SAPCommand cmd = conn.CreateCommand();
    cmd.CommandText = "exec RFC_PING";
    cmd.ExecuteNonQuery();
}

Upvotes: 1

Related Questions