Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 11, 2015 at 09:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.