sapnwrfc-d 0.0.4

SAP NetWeaver RFC binding for D.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

D bindings for SAP NetWeaver RFC SDK

Summary

This library provides bindings D programming language for the SAP NetWeaver RFC SDK. It allows you to call SAP RFC's using D.

Prerequisite

You need to download and install the SAP NetWeaver RFC SDK for your OS from https://support.sap.com/swdc. For further information see SAP note 1025361. The SAP NetWeaver RFC SDK is copyrighted software and is only available through the official channels mentioned above. It is strongly recommended to download the provided SDK documentation, too.

Installation

If you use dub then you only need to add sapnwrfc-d to the dependencies of your project in the dub.json file:

{
    /* Other stuf */
    "dependencies": {
        /* Other dependencies */
        "sapnwrfc-d"
    }
}

Otherwise you have to compile all D files in the source folder into a library named libsapnwrfc-d.a (Linux) or sapnwrfc-d.lib (Windows). You also need to link against the libraries provided by the SAP NetWeaver RFC SDK. (Currently, only libsapnwrfc.a/sapnwrfc.lib is required.)

Examples

Examples are provided in the examples folder.

  • sapping connects to a SAP system and retrieves some system information. Useful for connection tests.
  • readtable (WIP) calls RFCREADTABLE and exports the content of a database table.

Functionality

  • Prototypes for (most) C functions of the SAP NetWeaver RFC SDK.
  • Decorated functions which throw a SAPException in case of error.

The functions of the SDK are imported with import etc.c.sapnwrfc;. This is the C API as documented in the SDK. You get additonally functionality if you use import std.sap;. Each function from the C API is available. All functions which have an ERROR_INFO parameter have an overloaded prototype without this argument. In case of an error these functions throw a SAPException. The use of module std.sap should be preferred because of the much easier error handling.

Limitations

  • Currently there are no bindings for the decimal data types DecFloat16 and DecFloat34.
  • The prototypes are still reworked to use out and other type modifiers.
  • A high level API is missing. Ideas include:
  • The C style string handling should be replaced with D strings
  • Data containers should provide a range interface
  • ...

License

This project is distributed under the BSD 3-clause licence.

Authors:
  • Kai Nacke
Dependencies:
none
Versions:
0.0.4 2016-Mar-07
0.0.3 2015-Oct-07
0.0.2 2015-Oct-04
0.0.1 2015-Aug-01
~master 2018-Apr-04
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 91 downloads total

Score:
0.5
Short URL:
sapnwrfc-d.dub.pm