cancel
Showing results for 
Search instead for 
Did you mean: 

Bundling PHP/SAP/AJAX/PEAR

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (4)

Answers (4)

gregorw
Active Contributor
0 Kudos

Hi Palcal,

have you solved the encoding problems?

Regards

Gregor

Former Member
0 Kudos

> have you solved the encoding problems?

Hello Gregor.

What encoding problems?

I did not say I had any.

Rgds.

gregorw
Active Contributor
0 Kudos

Hi Pascal,

the Screenshots look like you have some.

Regards

Gregor

former_member583013
Active Contributor
0 Kudos

Hi Gregor:

Can you please explain yourself a little bit? I just can't find the problems your talking about -:(

Greetings,

Blag.

Former Member
0 Kudos

just look at the details screen and see for instance

Geh$%&use, where $%& is an example of the problem.

former_member583013
Active Contributor
0 Kudos

Hehehe....I haven't notice that -:) That should not be good on a productive environment...

Greetings,

Blag.

Former Member
0 Kudos

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

gregorw
Active Contributor
0 Kudos

Hi Pascal,

sorry to be so imprecise.

Regards

Gregor

Former Member
0 Kudos

No worries Gregor!

It's probably just my accent

Rgds.

Former Member
0 Kudos

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

Former Member
0 Kudos

> You've convinced me to go AJAX/PHP/SAP,

> and I've changed my mind to AJAX.

Hello.

Glad to hear it. Sounds very interesting and I hope you'll share your findings.

Pascal.

former_member192750
Active Contributor
0 Kudos

Thats a very good example

Former Member
0 Kudos

Really cool example Pascal!

Keep experimenting and show us more.

anton

former_member583013
Active Contributor
0 Kudos

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.