Skip to Content
0
Former Member
May 05, 2009 at 03:58 PM

JCA Problems with strutures

557 Views

objInteraction = objConnection.createInteractionEx();

objInteractionSpec = objInteraction.getInteractionSpec();

objInteractionSpec.setPropertyValue("Name",RFC_NAME);

objFunctionsMetaData = objConnection.getFunctionsMetaData();

objFunction = objFunctionsMetaData.getFunction(RFC_NAME);

objStructureFactory = objInteraction.retrieveStructureFactory();

objRecordFactory = objInteraction.getRecordFactory();

I am trying to access structure with the following with the following code.

IRecord structure = (IRecord) objStructureFactory.getStructure(objFunction.getParameter("XXX").getStructure());

But the structure object is throwing Null pointer exception

Same is the case for Tables also.

IRecordSet table= (IRecordSet) structureFactory.getStructure(

objFunction.getParameter("BAPIADTEL").getStructure());

table.insertRow();

table.setString("TE", "8567890");

table.setString("TE", "12121");

objInputParam.put("YYY", table);

In the above code the table is throwing Null pointers exception.

Kindly advice the correct process.