cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice connection to SAP

Former Member
0 Kudos

Hi,

How do I connect to SAP through the SAP .NET Connector 1.0 without using a web form?

I would like to open a connection without using a form when I supply the username and password.

Thanks

Rolf

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Somewhere in your program:

Destination dest = new Destination();

dest.AppServerHost= "sapservr1";

dest.SystemNumber = 0;

dest.User= "hello"

dest.Password = "world";

dest.Client= 0;

SAPConnection conn = new SAPConnection(dest.ConnectionString);

conn.Open();

Hope it helps,

Guangwei

Former Member
0 Kudos

Hi Guangwei,

It worked when I used

SAPConnection conn = new SAPConnection(dest.ConnectionString);

instead of trying to get the connection form the connection pool.

Thanks for your help.

/Rolf