Skip to Content
avatar image
-1
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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

    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

    Add comment
    10|10000 characters needed 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,

    Rahul

    Add comment
    10|10000 characters needed characters exceeded