Tag: sap connector

在C#中使用目标配置时,不允许使用SAP硬编码登录参数

当我尝试动态连接到SAP服务器时,我收到的错误就像 使用目标配置时不允许使用硬编码登录参数 任何人都帮助我 我需要从代码隐藏中发送所有参数而不是从Web.config发送 从web.config它工作正常..但不是在这里 我的代码是这样的 SAPSystemConnect objSapConfig = new SAPSystemConnect(); RfcDestination objSapdestination = null; RfcDestinationManager.RegisterDestinationConfiguration(objSapConfig); RfcConfigParameters objParameter = new RfcConfigParameters(); objParameter.Add(RfcConfigParameters.AppServerHost, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.Client, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.Password, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.SystemNumber, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.User, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.Language, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.LogonGroup, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.PoolSize, Convert.ToString(“XXX”)); objParameter.Add(RfcConfigParameters.PeakConnectionsLimit, Convert.ToString(“5”)); objParameter.Add(RfcConfigParameters.IdleTimeout, Convert.ToString(“XXX”)); //objParameter.Add(RfcConfigParameters.Name, Convert.ToString(“XXX”)); objSapdestination = RfcDestinationManager.GetDestination(objParameter); RfcCustomDestination customDest = objSapdestination.CreateCustomDestination(); IRfcFunction func = customDest.Repository.CreateFunction(“XXX”); RfcRepository […]

如何使用SAP .Net Connector 3创建Idoc并将其发送到SAP

我想使用SAP创建和发送idoc到SAP。 Net Connector 3.x. 我在我的应用程序中配置了一个RFC目标: _rfcDestination = RfcDestinationManager.GetDestination(_destinationName); 但我找不到任何关于如何创建和发送idocs的例子。 有人可以提供一些关于如何创建和发送idoc的示例代码吗?

一步一步的教程使用SAP。 带VS 2008的网络连接器

我在互联网上找到了很多例子,但很多都是旧的(VS 2003,SAP .Net Connector 2.0,其中当前为3.0)。 我想知道如何使用SAP。 NET连接器。 我应该安装哪些文件? 添加到项目的参考? 如何添加提供程序以在服务器资源管理器中创建连接?