Skip to Content

How to connect to SAP from external C++ program?

May 02 at 06:56 AM


avatar image
Former Member

We are building SAP PLM system and we want to connect to SAP server from external C++ application. We have SAP gateway and ECC installed. What are required steps to follow to connect to this? How to establish connection between desktop C++ application and SAP server over internet? What are the methods we can use for establishing the connection? Do we need to use HTTP or TCP/IP connection?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Antal Perger
May 02 at 07:01 AM

Hi Rahul,

You may try the RFC library to call BAPIs on the ABAP server via RFC.

See SAP notes

The library can be downloaded from
SAP NetWeaver RFC Library

Best regards,


10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 02 at 07:09 AM

Hi Antal,

Thanks for the reply. I have downloaded the libraries. I want to know about the connectivity. I came across registering program on SAP Gateway under TCP/IP connections. Is that only way to get connected?? Can't we use http connection types?

If yes then how?

Best regards,


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Raul,

The librfc32.dll and librfc32.lib libraries contain the compiled functions of the RFC-API.

Software Development Kit (RFC SDK) is also helpful.


Former Member
ROBERTO Forti Santos

Which connection type should I use?? HTTP or TCP/IP? and how?