Hi, my name is Pascal and I am a SAP & Supply Chain specialist. I work for PLAUT and I do things others can't.
This blog only contains my personal views, thoughts and opinions. It is not endorsed by my employer nor does it constitute any official communication of PLAUT. You can contact me via email at pascal[at]renet-web.net or use the contact form that you will find by following the 'Contact' link and you can follow me on twitter here.
Posted on May 22, 2006 | Category: SAP
If things always went to plan, I guess I would now be writing part 2 and not 1.5! The truth is, I’ve had so many ideas lately that I just had to test them out and so this is how 1.5 came to be. In this post I’m going to show you how I used PHP/SAP/PEAR/AJAX together to come up with I’m sure you’ll agree, a pretty cool result.
To set the scene this is what will be shown:
If you can’t wait to read this post to the end, I’ve recorded a small flash animation that demonstrates exactly what I have outlined above. The animation can be viewed here (Give the file time to load as it makes approx 4.8Mb).
So we start out with a list of orders:

Clicking on the detail icon will reveal detailed data about the production order:

Finally we’ve added an image which shows an overlay of:

What? No code? do I hear you say. Well as there are very rarely comments made on the code, I’m not going to bother including any in this post – it’s up to you to change that….
As usual these tests have been made using an HP (Compaq nc6220) laptop running on MS Windows XP Pro, the Apache server version 1.3.33 and the PHP scripting engine in version 4.3.10 and of course the SAPRfc library (the Apache/PHP install was that installed via the EasyPhp package). SAP side I was using SAP ERP ECC (ERP Central Component) 5.0. I also used the script.aculo.us javascript libraries. You can download them here.
» Filed Under SAP
May 23rd, 2006 at 12:15 pm
Great as always Pascal! It’s cool to read your blogs and get some of your ideas -:P
Greetings,
Alvaro Tejada Galindo
SDN Scripting Community Member.
August 17th, 2006 at 12:45 am
Hi, tried to rebuild your solution… but unfortunately following error appears:
“SAPRFC extension not loaded”
which saprfc version do you use ? my php and apache version are exact the same. you you might mail my the *.dll located in die php-extension dir and your php.ini where it is embedded?
email: spamme@gmx.eu
thanx a lot
lars
August 18th, 2006 at 6:16 pm
Hello Lars,
It could be that your problem is due to the fact that your PHP version is not compatible with your SAPRFC version.
Go to the SAPRFC download page and make sure you download the correct version.
For example the SAPRFC file titled saprfc-1.3.3-4.3.10.Win32.zip is the SAPRFC version 1.3.3 for PHP version 4.3.10.
Once you have downloaded the package, put the file php_saprfc.dll inside the /php/extension folder.
Then, all you have to is add extension=php_saprfc.dll in the Windows extension section of your php.ini file.
Hope this helps.
October 5th, 2006 at 4:05 pm
nice jobs :)..but try to implement SAP-PHP but I get an error.
January 22nd, 2009 at 10:14 am
Can i get a copy of your code. I would like to look at learning php with SAP. thanks in advance
January 22nd, 2009 at 7:50 pm
Thanks for your interest, but I do not make the code available anymore.
Cheers.
July 20th, 2009 at 11:00 pm
[...] a continuation to my experiments in marrying technologies such as Php, Pear & Ajax to query a SAP database and expose the data [...]
October 2nd, 2009 at 4:02 pm
Hi,
Nice application. May how to connect sap with php. Can i get the code how to connect with php. Thank you