cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to keep a rfc session opened in sap with JCO?

Former Member
0 Kudos

Hi guys,

I was wondering if it was posible to keep an rfc called via JCO opened in SAP memory so i can cache stuff, this is the scenario i have in mind:

Suppose a simple function that increments a number. The function starts with 0, so the first time i call it with import parameter 1 it should return 1.

The second time i call it it should return 2 and so on.

Is this posible with JCO?

If i have the function object and make two succesive calls it always return 1.

Can i do what i'm picturing?

Accepted Solutions (1)

Accepted Solutions (1)

HAL9000
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Fernando,

you are talking of stateful call sequences. Yes, this is possible.

Please have a look into the JCo JavaDoc for class com.sap.conn.jco.JCoContext.

Best regards,

Stefan

Answers (0)