Skip to Content
0
Former Member
Oct 26, 2009 at 09:52 AM

JCO execution problem

208 Views

Hello,

I extended the ShowBasketAction and I try to execute a JCO function with the recommended approach:

Inside the business object:

function = getDefaultJCoConnection().getJCoFunction("Z_MYRFC");
function.getImportParameterList().setValue(accountId, "PARAMETER");
getDefaultJCoConnection().execute(function);
t_output = function.getTableParameterList().getTable("TABLENAME");
			

the table is empty and I want to find out why. I tried

// this is a method that returns the result of getDefaultJCoConnection() inside the BO
Client client = bo.getConnectionInfo().getJCoClient();
log.debug("Z_ShowBasketAction: " + client.getClient());
log.debug("Z_ShowBasketAction: " + client.getSystemID());
log.debug("Z_ShowBasketAction: " + client.getUser());

yet all the client attributes are empty ("Z_ShowBasketAction: null")?!? I guess it's because the backend executes releaseClient(JCO.Client client). How can I view further debug information on the executed RFC?

The RFC gets executed according to the debug logs

###ENTER [objid]='com.sap.isa.core.eai.sp.jco.JCoConnectionStateless@2f0c7aa7' + getInternalJCoClient():#
Serving existing JCO.Client 'com.sap.mw.jco.JCO$Client@23f8e805' from JCo pool '<omitted pool information>' for 'ISA_COMPLETE' connection definition#
###getInternalJCoClient(): JCO.Client 'com.sap.mw.jco.JCO$Client@23f8e805' needs 0 to connect.#

0#Debug##Plain###end executing JCo Function "Z_MYRFC" in "31" milliseconds#
0#Debug##Plain###EXIT execute(JCO.Function func)#

func.getExceptionList() is empty as well so I guess its an issue with a wrong user / client.

any ideas?

Edited by: Stefan A. Ernst on Oct 26, 2009 10:56 AM

Sorry table is empty, not parameter list