Skip to Content
0
Former Member
Feb 10, 2006 at 04:15 PM

Problem with getFunctionTemplate

90 Views

Hello,

I am trying to use the function template to call my bapi.

So here is my code:

JCO.Repository mRepository;

try

{

mRepository= new JCO.Repository("ARAsoft",connection);

if(mRepository!=null)

{

//Create the function template

IFunctionTemplate ft = mRepository.getFunctionTemplate("GET_VENDOR_DETAILS");

//Create the function from the template

function= ft.getFunction();

}

}

catch (Exception ex) {

throw new Exception("Problem retrieving JCO.Function object.");

}

I have checked that my repository and my connection are not null. So I don't understand why <b>mRepository.getFunctionTemplate(bapi)</b> does not work. I always have an exception at this line.

I would really appreciate any help on this issue.

Thank you and have a nice day.

Maria Duong