Skip to Content
-1

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

May 02 at 06:56 AM

56

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
2

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

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

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

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.

Regards,

1
Former Member
ROBERTO Forti Santos

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

0