« February 2003 | Main | May 2003 »

March 31, 2003

Perl Integration with SAP

SAP::Rfc and Friends

Author: Piers Harding

Copyright © 2002  Piers Harding

Perl integration with SAP via RFC, Business Connector, and Web Application Server


Perl intergration with SAP

SAP::Rfc - Perl intergration with SAPs' Native RFC library

The latest version of SAP::Rfc is available on CPAN. This release uses the Inline::MakeMaker support for making installable modules, so now make, make test, and make install should work correctly ;-). This is available for download at SAP::Rfc [1] This package taps into the native RFC library supplied by SAP and binds it into Perl creating a clean object oriented interface for performing RFC calls to an SAP R/3 system ( version 3.1+ - may work for earlier versions but hasn't been tested ).

This package contains examples ( check out the examples directory ) ranging from extracting source code from an SAP system to calling sales order IDOCS via RFC.

Periodically I get queries on how to do certain things with the SAP::Rfc library, so I have started collecting the notes together:

SAP::BC::XMLRFC

The latest version of SAP::BC::XMLRFC [3] is available on CPAN. This package uses LWP to do HTTP calls ( and with a few simple modifications could do HTTPS calls ) to the SAP Business Connector to do XML based RFC calls. This is the SAP equivalent to SOAP, and XML-RPC. Similar to SAP::Rfc, this package provides a clean Object Oriented interface to building RFC queries, and includes Inteface lookup abilities to simplify interface definition.

SAP::WAS::SOAP

The latest version of SAP::WAS::SOAP [4] is available on CPAN. This package uses SOAP::Lite [5] to do SOAP calls to the SAP Web Application Server ( WAS ). Similar to SAP::Rfc, this package provides a clean Object Oriented interface to building RFC queries, and includes Inteface lookup abilities to simplify interface definition.


List of Links

URL
[1] http://search.cpan.org/search?dist=SAP-Rfc
[2] /article.xml?sapexamples
[3] http://search.cpan.org/search?dist=SAP-BC-XMLRFC
[4] http://search.cpan.org/search?dist=SAP-WAS-SOAP
[5] http://soaplite.com

Posted by PiersHarding at 7:36 PM

March 24, 2003

microhttp - Micro HTTP Client added basic SSL support

libmhttp and HTTP::MHTTP has been updated to include basic support for SSL. This effectively provides TLS level negotiation but does NOT validate certificates. the new version can be found at: microhttp. HTTP::MHTTP can be found at: HTTP::MHTTP.

Posted by PiersHarding at 10:35 AM

March 15, 2003

saprfc for Python

From the README: saprfc for Python module is intended to facilitate RFC calls to an SAP R/3 system of release 3.1x and above. It may work for earlier versions but it hasn't been tested. The fundamental purpose of the production of this package, is to provide a clean object oriented interface to RFC calls from within Python. This will hopefully have a number of effects: (1) make it really easy to do RFC calls to SAP from Python in an object oriented fashion (Doh!) (2) promote Python as the interface/scripting/glue language of choice for interaction with SAP R/3. (3) make the combination of Linux, Apache, and Python the killer app for internet connectivity with SAP. (4) Establish a small fun open source project that people are more than welcome to contribute to, if they so wish. Comprehensive support is provided for translating all SAP data types in and out of native Python data types, as well as SAP Data Dictionary structures. There is full support for automatic discovery of RFC interface definitions, to make the process of coding for RFC calls as simple as possible. saprfc can be found at: saprfc.

Posted by PiersHarding at 7:53 AM