The widget is a modified version of the TechEd Schedule widget (thanks to Sebastian Steinhauer and Stefan Huettenrauch).
There are 5 config parameters.
This is the username for authentication on the server.
This is the password for authentication on the server.
The ABAP host. This should not include the protocol.
The port on the server for the service
The path of the service, this should be “/sap/bc/soap/rfc”. Ideally I should have hard coded this.
The widget can be downloaded from here
The code is almost the same as that provided by Alvaro. The only changes are a sort call, a change on the select params and a try catch to catch errors I occasionally got on the backend. The function module must be remote enabled.
Usually when developing a widget that accesses a Web Service I use another widget that lets me test Soap Requests and monitor the response with TCPDUMP. Unfortunately that widget runs on my Mac that has no SAP access right now. I had to find a way to view the SOAP headers. Some of the other tools I use are Scripting in a box and the SAP Scripting tool (Eclipse add in). Using the PHP generated from the scripting tool I added the following line:
This allowed me to see the headers without having to use the Mac.
Being able to lauch directly into ST22 would be nice, as would wrapping the text on the display.
Another problem is that I am being challenged for credentials on a PC, but not a Mac. Hopefully I can figure this one out.