I'm a little lost. I followed the documentation of ERPConnect (Theobald) to setup an rfc server:
static void Main(string[] args)
{
// define server object and start
RFCServer s = new RFCServer();
s.Logging = true;
s.GatewayHost = "hamlet";
s.GatewayService = "sapgw11";
s.ProgramID = "ERPTEST";
s.CanReceiveIdocs = true;
s.IncomingIdoc+= new ERPConnect.RFCServer.OnIncomingIdoc(s_IncomingIdoc);
s.InternalException+= new ERPConnect.RFCServer.OnInternalException (s_InternalException);
s.Start();
Console.WriteLine("Server is running. Press any key to exit.");
Console.ReadLine();
s.Stop();
}
The only problem is, that I can't figure out, how to send my password credentials to the SAP server. As a result I get internal exceptions, that I am not authorized to receive idocs.