cancel
Showing results for 
Search instead for 
Did you mean: 

JCO problem when calling multiple RFCs.

Former Member
0 Kudos

Hi

I have a requirement of having 5 RFCs executing in a single view when performing 5 different button actions. When i press a button the RFC results must be visible in a table with in a Popup window.

i can execute only one RFC at a time and on completion of one when i press the next btn, its not showing any result in popup table.

What could be the problem?

Any thing i have to do with Closing JCo connection each time?

Thanks

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vijay

I assume that you have mapped the relevant output context from your rfc to your popup view? I also assume that you have specified a datasource on your table.

Could you please show me the code where you are trying to execute the rfc.

Regards

Göran

Edited by: Göran Westin on Mar 31, 2008 1:45 PM

Former Member
0 Kudos

Hello Goran,

I have mapped the output node directly to the popwindow Context and the execute statement is written in Controller Context and that is called in the main view were my buttons are implemented.

On click of each button, it should invoke the RFC and report the result to the popwindow.

In core java after getting a resultSet, need to close the RSObject. Please let me know any method i should follow as above?

Thanks

- Vijay.

Former Member
0 Kudos

Your code should look something like this:

try

{

wdContext.node().currentElement().modelObject().execute();

wdContext.node().nodeOutput().invalidate();

}

catch (WDDynamicRFCExecuteException e)

{

e.printStackTrace(); // here you should do some logging

}

finally

{

wdContext.node().currentElement().modelObject().modelInstance().disconnectIfAlive();

}

You close the connection with the backend in the finally block above.

Regards

Göran

Edited by: Göran Westin on Apr 1, 2008 11:41 AM

Edited by: Göran Westin on Apr 1, 2008 11:41 AM

Edited by: Göran Westin on Apr 1, 2008 11:42 AM