通过NCO执行SAP里面的 BAPI_TRANSACTION_COMMIT 并不能直接生效,类似SQL 里面的事物一样,需要有开始与结束,正确的方式如下:

 

RfcSessionManager.BeginContext(dest);  //重要
........

RfcFunctionMetadata myrfc = dest.Repository.GetFunctionMetadata(”BAPI_TRANSACTION_COMMIT”);

RfcSessionManager.EndContext(dest);  //重要


相关文章:

猜你喜欢
  • 2021-09-01
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案