Tag: sap

使用Sap WebService – 请求发送两次并且每次都失败

我正在努力消耗一个sap webservice。 我已经通过很多教程和msdn上的许multithreading,但我无法找到解决我的问题的方法: 运行我的程序最终会出现此错误: CommunicationException not handled. -> unknown Messageversion System.ServiceModel.CommunicationException wurde nicht behandelt. HResult=-2146233087 Message=Unbekannte Nachrichtenversion. Source=mscorlib StackTrace: Server stack trace: bei System.ServiceModel.Channels.ReceivedMessage.ReadStartEnvelope(XmlDictionaryReader reader) bei System.ServiceModel.Channels.BufferedMessage..ctor(IBufferedMessageData messageData, RecycledMessageState recycledMessageState, Boolean[] understoodHeaders, Boolean understoodHeadersModified) bei System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.ReadMessage(ArraySegment`1 buffer, BufferManager bufferManager, String contentType) bei System.ServiceModel.Channels.HttpInput.DecodeBufferedMessage(ArraySegment`1 buffer, Stream inputStream) bei System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream) bei System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMessage httpRequestMessage, Exception& requestException) bei […]

在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系统上搜索可用的函数和表

我必须承认我不是SAP R / 3编程方面的专家,所以这更像是一个基本问题。 有没有办法在SAP系统上获取可访问的RFC模块和/或表的列表? 在互联网上的许多例子中,我发现了一个似乎在每个SAP系统上都可用的RFC模块(“SD_RFC_CUSTOMER_GET”),我想知道是否还有更多这些标准RFC模块可以使用。 我可以轻松地在SAP系统中查询所有可用的SAP查询,但我找不到使用RFC模块或表格执行此操作的方法。 在Google上搜索了几个小时之后,我甚至找不到这些RFC模块的列表…所以我错过了什么或者这是不可能的? 在此先感谢您的帮助。

如何使用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连接器。 我应该安装哪些文件? 添加到项目的参考? 如何添加提供程序以在服务器资源管理器中创建连接?

如何使用c#自动化SAP GUI

我想使用C#语言自动化SAP GUI窗口。 我能够在VBScript中完成它,但代码重用是可怕的。 除了Id喜欢使用线程而不是运行80个或更多进程。 我在哪里可以找到有关如何执行此操作的任何文档和示例? 这是我正在使用的代码。 基本上,我面临的问题是 – 如何建立与SAP GUI的连接,然后动态创建SAP GUI,然后开始在某些字段中进行交易和输入文本。 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using White.Core.Factory; using White.Core.UIItems.Finders; using White.Core.InputDevices; using System.Threading; using System.Diagnostics; using SAP.Connector; using SAP; namespace SAP_Automation { class Program { public static void Main(string[] args) { string ExeSourceFile = @”C:\Program Files\SAP\SapSetup\setup\SAL\SapLogon.s8l”; White.Core.Application _application; White.Core.UIItems.WindowItems.Window _mainWindow; var […]