透過 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.