我有点失落。我按照 ERPConnect (Theobald) 的文档设置了一个 rfc 服务器:
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();
}
唯一的问题是,我不知道如何将我的密码凭据发送到 SAP 服务器。结果,我得到了内部异常,即我无权接收 idocs。