Skip to Content
Former Member
May 24, 2006 at 12:29 PM




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.

You" target="_blank">">You can view an example output of production orders here using the datagrid package.

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).

Here">Here> 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.

Here">Here> 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?