Is the library (with the C programming language interface) accessible from ABAP?

I have no experience with ABAP programming, and I would like to know if it is possible to call a third-party library with the C programming language interface from an SAP application.

To be more precise, the goal is to use the IBM CPLEX Optimizer (running on the local machine) inside the SAP application. The optimizer is a library and has an API adapted to C ++, Java and .NET (C #, VB.NET). I suppose this is a dll file.

So can you tell me if DLL functions can be called from an ABAP application?

+4
source share
2 answers

External DLL files can be used as follows:

 DATA: cmp_dll TYPE ole2_object.
 CREATE OBJECT cmp_dll 'COMPANY.STOCK_DLL'.
 CALL METHOD OF cmp_dll 'check_order' = order
 EXPORTING p_num = 'number'
           p_date = 'date'
           p_vendor = 'vendor'.

DLL SOLE, , (, , ).

RFC, Trixx.
C- AS SXPG_COMMAND_EXECUTE, .

+7

, , . , ABAP SAP RFC. SDK SAP Connector . , , , .

SAP SDK RFC- :

  • Java: SAP Java Connector (JCo)
  • .NET: SAP.NET(NCo)
  • C/++: SAP NetWeaver RFC SDK (NW RFC SDK)

. http://service.sap.com/connectors.

+4

Source: https://habr.com/ru/post/1670503/


All Articles