|
Blogs
Let's get started and create the BSP application. 1. Go to transaction SE80 and create a BSP application (Y_WIDGET_DATA). 2. Create one simple page (users.xml a page with flow logic) and clear all the contents from the layout section of the page. 3. Enter the following code in the type definition tab of the page types: userstype type standard table of uinfo . 4. Enter the following page attributes users TYPE USERSTYPE xml_out TYPE STRING 5. Enter the following code in the OnInitialization event of the BSP page. refresh users . call transformation (`ID`) call method response->if_http_entity~set_cdata 6. Save and activate the page and application. 7. Test the page by right click and choose test on the page (users.xml). You should see the xml output in the browser. 8. Download the widget from this link . To run this you need to download & install yahoo widget engine. Check this weblog by Tarun Telang on how to install yahoo widget engine. How to run this widget. Once yahoo widget engine is installed, unzip the downloaded SAP_Logged_on_Users.zip and double click on the extracted SAP Logged on Users Widget (SAP Logged on Users.widget) to see the widget. First time when you run this you will be prompted to enter some values. Fill the same as per details below. WAS Host : <sapapplicationserverhost.domain.com> WAS Port : <port no> BSP Application Name: <Name of the BSP application we created in step 1> BSP Page : <Name of the BSP page we created in step 2> SAP Client: <client number - 001 on which this will run> Note: You can get the WAS host, port details from the url of the BSP application. After entering all of the above click save. Now you will be prompted for user id and password for the SAP system/Client. Enter the same and click OK. Now you should see list of logged on users along with the transaction code and client like in the picture below. Per view this will show 10 users, click next to view next 10 users. If you want to develop widgets check out Yahoo! Widgets Workshop, they got some good resources. Hope you liked this. Looking forward to your comments. Durairaj Athavan Raja
| |||||||||||||||||||||||