Getting System Information from the Calling System 

After receiving a call from the R/3 system, a server application that implements the function CRfcServerFunc::Process() can access system information using the CRfcConnection object attached to the parent CRfcServerApp or CRfcTransApp.

Within each CRfcServerFunc object, a pointer ( m_pServerApp ) is stored. This pointer can be used to access the parent CRfcServerApp or CRfcTransApp object that contain a CRfcConnection object used for accepting the RFC call from R/3.

Accessing that CRfcConnection object (using CRfcServerApp::GetConnection() ), the server application can then obtain information about the calling R/3 by calling CRfcConnection::GetR3Release() , C RfcConnection::GetReleaseString() , CRfcConnection::GetR3SystemInfo() , CRfcConnection::R3SystemInfoCount() , and two overloaded CRfcConnection::R3SystemInfo() functions.