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

SAPSAP .NET

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 {
}