Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
johna69
Product and Topic Expert
Product and Topic Expert
0 Kudos
This weblog builds on the ST22 and scripting weblog created by The specified item was not found.. The PHP scripting front end with RFC connection is replaced with a Widget using web services.

The widget is a modified version of the TechEd Schedule widget (thanks to Sebastian Steinhauer and Stefan Huettenrauch).

Widget UI

image

Configuration

image

There are 5 config parameters.
Username
This is the username for authentication on the server.
Password
This is the password for authentication on the server.
Host
The ABAP host. This should not include the protocol.
Port
The port on the server for the service
Service
The path of the service, this should be "/sap/bc/soap/rfc". Ideally I should have hard coded this.

Download

The widget can be downloaded from here

ABAP Coding

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.

Development Environment

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:


Request Headers
'.htmlspecialchars($client->__getLastRequestHeaders(), ENT_QUOTES); 

This allowed me to see the headers without having to use the Mac.

Possible Enhancements

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.

8 Comments