我现在在做一个外协收货的功能,SAP工程师说,基本接口里没有这个功能(需要修改组件数量),所有采用了录频的方式。但是需要我设置一下GUI的参数。我这里该怎么做,我这里找到了UseSAPGui方法。但是不知道设什么值。

解决方案 »

  1.   

    在baidu上搜答案,竟然搜索到自己发的帖子。郁闷。
     PS:百分百结贴率,品质保证。
      

  2.   


    设置的具体参数你应该问SAP工程师吧。
      

  3.   

    {SAP.Middleware.Connector.RfcAbapRuntimeException: Function module "SYSTEM_PREPARE_ATTACH_GUI" not found.
       在 SAP.Middleware.Connector.RfcConnection.ThrowRfcErrorMsg()
       在 SAP.Middleware.Connector.RfcConnection.ReadBytes(Byte* buffer, Int32 count)
       在 SAP.Middleware.Connector.RfcConnection.ReadRfcIDBegin(Int32& length)
       在 SAP.Middleware.Connector.RfcConnection.ReadUpTo(RFCGET readState, RfcFunction function, RFCID toRid)
       在 SAP.Middleware.Connector.RfcConnection.RfcReceive(RfcFunction function)
       在 SAP.Middleware.Connector.RfcFunction.RfcDeserialize(RfcConnection conn, IRfcIOStream stream)
       在 SAP.Middleware.Connector.RfcFunction.RfcCallReceive(RfcConnection conn, IRfcIOStream stream, RFCID rid)
       在 SAP.Middleware.Connector.RfcFunction.RfcCallReceive(RfcConnection conn)
       在 SAP.Middleware.Connector.RfcConnection.AttachSAPGui(RfcConfigParameters options)
       在 SAP.Middleware.Connector.RfcConnection.ConnectAsClient(RfcConfigParameters options)
       在 SAP.Middleware.Connector.RfcConnectionPool..ctor(RfcDestination d, Boolean forRepositoryCalls, String uniqueKey)
       在 SAP.Middleware.Connector.RfcConnectionManager.GetClient(RfcDestination destination, Boolean forRepository)
       在 SAP.Middleware.Connector.RfcDestination.GetClient(Boolean forRepository)
       在 SAP.Middleware.Connector.RfcDestination.SetAttributeValues(RfcSystemAttributes attribs)
       在 SAP.Middleware.Connector.RfcDestination.get_SystemAttributes()
       在 SAP.Middleware.Connector.RfcDestination.get_Repository()
       在 Invengo.App.RFWM.SapProxyManger.SapProxy.ForeignOrder(MaterialDocumentInfo documentInfo, IList`1 itemList) 位置 D:\工作任务\RFID仓储\SVN\src\SAPProxyManger\SapProxy.cs:行号 1115
       在 SapDataManager.MainForm.button10_Click(Object sender, EventArgs e) 位置 D:\工作任务\RFID仓储\SVN\src\SapDataManager\MainForm.cs:行号 394}我这里需要启用SAPGUI,在参数设置里多加了一行:
     parms.Add(RfcConfigParameters.UseSAPGui, "1"); ,然后在运行时出现了上述错误。