透過 SAP.net 聯結器呼叫 XBP 函式模組時出錯


請注意,你需要在單一會話中執行函式呼叫,因此你必須將邏輯包裝進 JCoContext 中。嘗試使用以下方法

try {
   JCoContext.begin(destination);
   try {
      // your function calls here
      // probably bapiTransactionCommit.execute(destination);
   } catch(AbapException ex) {
      // probably bapiTransactionRollback.execute(destination);
   }
} catch(JCoException ex) {
   [...]
} finally {
   JCoContext.end(destination);
}

更新於: 2019-12-10

80 次瀏覽

開啟你的職業

完成課程後獲取認證

開始
廣告
© . All rights reserved.