cancel
Showing results for 
Search instead for 
Did you mean: 

XAMPP and SAPRFC

SriniGV
Advisor
Advisor
0 Kudos

Hi,

I've installed XAMPP (From Apache friends). The following are the versions of different packages:

+ Apache 2.2.6

+ MySQL 5.0.51

+ PHP 5.2.5

I've unzipped the file saprfc-1.4.1-4.4.1.Win32 and copied the php_saprfc.dll to the ext and extension directories of php.

When i run saprfc_test.php test script i get the error

,,SAPRFC extension not loaded'' What could be the reason ? Is it that the saprfc.dll and PHP are incompatible and I need to build PHP on windows ?

Thanks and regards,

Srini.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

For removing this kind of error 3 things should be checked:

1. The PHP_SAPRFC.dll file should be from the zip file which has the same version as PHP, Eg: If the PHP version is 5.2.5 then check the zip file for saprfc which has the same digits at the end.

2. After extracting the DLL check the extension path from PHP.ini file containing in your folder xampp\apache\bin

3. Add the php_saprfc.dll where the other dlls are added in INI file.

Also you would have to install the SAPGUI.

Enjoy Working!!!

Best Regards,

Nihar

Former Member
0 Kudos

Hi,

I have the following error

PHP Warning: PHP Startup: Unable to load dynamic library 'C:
xampp
php
ext
php_saprfc.dll'

My setup:

- Windows XP (SP3)

- Sap GUI 7.1.0 (librfc32.dll in windows\system32)

- saprfc-1.4.1-All (with

- XAMPP 1.7 (which provides apache and php 5.2.8)

Any tips?

Former Member
0 Kudos

Hi Mario,

i have the same issue / configuration than you,

how did you solve it ?

thanks,

regards,

ag

Former Member
0 Kudos

Hi,

if I remember correctly, the current saprfc binary depends on msvcr90.dll. So you will have to grab and install the [redistributable package|http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2] from Microsoft. I hope this will solve your problem.

Regards,

Joachim

Former Member
0 Kudos

Hi Joachim,

Thank you for your answer, i work on it know.

Regards,

ag

Former Member
0 Kudos

I think that did the trick! Thanks!

Former Member
0 Kudos

There is solution about this?

I have sapgui 7.10 php 5.2.8

and have same error

Former Member
0 Kudos

Hi,

had the same problem before. It is not related to XAMPP, AppServ or any other server package.

Right now I use XAMPP 1.6.8 with saprfc-1.4.1-5.2.3 and it works fine.

Double check that you add saprfc extension to the right php.ini file. For XAMPP, it is in C:\xampp\apache\bin directory.

Former Member
0 Kudos

i have error.log like this when starting the apache

PHP Warning: PHP Startup: Unable to load dynamic library 'D:/www/php5/ext/php_saprfc.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0

i try to reinstall the sapgui ot work

Former Member
0 Kudos

Try Craig's Scripting In a Box, it has an older version of PHP but when I had the same problem like you, it worked for me.

After I formatted my Windows partition, XAMPP and SAPRFC are working perfectly, however.

Nigel_James
Active Contributor
0 Kudos

There are lots of threads on this so I would search for them first but one thing you must do is make sure you have a version of SAPRFC which matches the version of PHP you are using.

Download the right file from [here|http://sourceforge.net/project/showfiles.php?group_id=29190&package_id=21073]

Since there is no version for PHP 5.2.5 try the 5.2.6 version.

saprfc-1.4.1-5.2.6.Win32.zip Note the section of the file name after the 1.4.1- refers to the php version.

Note if you are trying to do this on a NW 7 system you are stuffed. The SDK has been upgraded and the SAPRFC wont work with it. Feel free to use your C-fu to rewrite it

Hope this helps,

Nigel