Syntax error Getting Error while calling XBP Function Module via SAP.net connector

Getting Error while calling XBP Function Module via SAP.net connector



Note that you need to execute function call in a single session so you have to wrap your logic into JCoContext. Try using below method:

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);
}
Updated on: 2019-12-10T09:03:22+05:30

122 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements