Skip to content

Equivalent for RfcSessionManager BeginContext and EndContext #274

Answered by fw2568
garuda64 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Thanks for your kind words.

YaNco relies on the SAP Netweaver RFC library, which is stateful by default, so there is no need to enter a session.

Quoted from the NW RFC 7.50 Programming Guide:

We end this chapter by noting one fundamental difference the NW RFC library has compared
with the other two connectors, SAP Java Connector (JCo 3.1) and SAP .NET Connector (NCo
3.0): every RFC client connection you open with the NW RFC library is stateful by default. In
the other two connectors they are stateless by default and you have to put some effort into it,
if you need a stateful connection.

So, if you execute your functions in the same RFCContext, they will be in the same session.

Be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garuda64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants