cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

AntalP
Product and Topic Expert
Product and Topic Expert

Hi Rahul,

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

See SAP notes

https://launchpad.support.sap.com/#/notes/2573790
https://launchpad.support.sap.com/#/notes/2573881

The library can be downloaded from

http://service.sap.com/connectors
SAP NetWeaver RFC Library

Best regards,

Antal

Former Member

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,

Rahul

roberto_forti
Contributor

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.

Regards,

Former Member
0 Kudos

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