on 05-24-2006 1:29 PM
Hello,
Just wanted to share on my recent experiments:
Using PHP/SAP/AJAX/PEAR (and of course SAPrfc) together.
Basically I have a script that calls BAPI_PRODORD_GET_LIST to retrieve a list of production orders (SAP/PHP). Because there are so many production orders I'm using PEAR and the Structures_datagrid package to set up a paged navigation and output the datagrid in html form.
<a href="http://www.renet-web.net/wp-content/iimages/SAPRFCPART15/listoforders.jpg">You can view an example output of production orders here using the datagrid package.</a>
For each production order, you the have the possibility of requesting to view more data. Clicking on the detail icon of one production order will make an AJAX call to another script that calls BAPI_PRODORD_GET_DETAIL to retrieve the operations and components of the selected production order. By doing the AJAX call I'm able to display additional in my current page without having to refresh it completely (i.e list all the order and select the detail of one order again).
<a href="http://www.renet-web.net/wp-content/iimages/SAPRFCPART15/orderdetail.jpg">Here</a> you can view an example of such an AJAX call. We have the list of orders at the top and in the lower section you can see the detail for one order.
<a href="http://www.renet-web.net/wp-content/iimages/SAPRFCPART15/orderdetail.htm">Here</a> can also view an example flash animation of the whole process.
Mixing all these technologies can really deliver impressive results. If a newbie like me can do that, what can an expert do?
Hi Palcal,
have you solved the encoding problems?
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Geh$%&use, where $%& is an example of the problem.
Hello Anton,
Thanks for pointing out 'that' coding problem (when Gregor talked about 'en'coding I thought he meant some sort of security issue).
Well yes, I suppose that it is to be expected when you work in an English speaking country using German IDES data!
Thanks again.
Pascal.
Hi Pascal,
I'm planing to develop a graphical interface to PM/MM/LDM. You've convinced me to go AJAX/PHP/SAP, and I've changed my mind to AJAX.
Thanks a lot.
-tc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thats a very good example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pascal:
Actually...PHP and SAP integration is a new world to discover...We have too many possibilities...And many tools....AJAX, PEAR, JavaScript...
You're example as I told you, is really great and that exactly what we need to boost the Scripting Community...People must see that kind of examples to know that we can do anything we want -;)
Can I told you a secret??? Okay...Not actually a secret coz I'm posting it here...hehehe....But my long time project It's to actually develop a SAP R/3 PHP Emulator...That's the whole R/3 inside a PHP web environment...That's why I'm using PHP5 Classes to do small applications...SE10, SE11, SE16, SE30, SBWP so far -:) Still got a long way to go -:P
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.