原本计划在PDA中直接调用RFC,结果试了半天发现不行。网上寻找发现:
you cannot use .NET Connector from Compact framework as it uses unmananged code that cannot run on a PDA. But you have two alternatives:
If your SAP server is 6.20 or higher, you can use native Soap support with MS "Add web reference" feature. Details about native Soap support can be found in service.sap.com/connectors.
Else you need a "Middleware". The middleware can use the .NET Connector. For communication between the middleware and PDA you can use any protocol of your choice like WebServices or .NET Remoting.
As long as JCo is not fully "pure Java" and uses native methods from a DLL or EXE, it will not work.
总部服务器不让开SAP CONSOLE,只能借助与中间件了..
无线PDA+Web Services+RFC
由于SAP.Net Connector 2.0
最后效果也还不错,只是速度比较慢。太频繁的操作会严重影响性能。
可能只有通过PDA暂存数据、批量传到外挂表、批量执行。但这样如果中间有笔交易出错,如何处理?