extension module for PHP

Current version is 1.4.1

Short Description:

SAPRFC is a extension module for PHP 4 and PHP 5. With SAPRFC is possible call ABAP function modules in SAP R/3 from PHP scripts. You can use the powerful PHP language to create a web applications or interface programs with a connectivity to the SAP R/3. You can also write RFC server program in PHP and call PHP functions from SAP R/3. Client example. Server example.


  • SAP R/3 release above 4.0B supported (it may be work for earlier versions but it hasn't been tested)
  • use RFC (Remote Function Call) API to make call
  • discover interface of a function module
  • map RFC types to PHP strings
  • server API for calling PHP functions from ABAP
  • support for transactional RFC (client and server)
  • portability: except ZEND API and RFC API use only a few standard C functions
  • delivered with the test script saprfc_test.php that has the similar function as "Single Test" option in SE37 transaction (Function Builder).


The PHP sources (for UNIX version) or the PHP binaries (for Win32 version) are needed (of course). You need also Non-Unicode SAP RFCSDK 6.40 for compilation under UNIX (if you are SAP customer you can find it on http://service.sap.com/swdc under Patches for My Company's Application Components - SAP RFC SDK - SAP RFC SDK 6.40) or librfc32.dll for Win32 (it is part of SAPGUI for Windows). See install instructions.


Get latest source tarball. The binary version for Windows and previous versions of SAPRFC you can find on the download page. Get documentation of SAPRFC functions in HTML format.


SAPRFC extension is released under PHP license . SAPRFC isn't created by SAP AG and doesn't include any code under the rightful property of SAP AG.


SAPRFC should be able compiled on the platforms supported by RFC library and PHP.
But it has been tested only on:
* Suse Enterprise Linux 8 (development platform)
* Windows NT 4.0/2000/XP/2003


If you find bugs or if you patch them or if you want contribute new features, please visit project pages on sourceforge.net There are a bug list, mail lists and CVS tree.

SourceForge Logo