Web Dynpro applicationl, which accesses portal UWL and gets the work-items
does anybody know how to write a web dynpro application, which accesses the enterprise portal UWL and gets the work-items for its current user?
I have seen, that there is a uwl-api, but it is just overwhelming and I am not getting any entry point for using this whole stuff.
It would be nice, if someone could post some code examples here, for solving this issue?
Thank you for your help in advance!
Kind regards, Patrick.
This [link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/405729e9-314f-2a10-eab6-fcebe6fe8cba] gives info about UWL API. This might be helpful.
Alternatively, if you want to access tasks from a particular backend SAP system like SAP ECC you could create your application as follows:
You need to create a Webdypnro application which uses ABAP Function module using ADAPTIVE RFC MODELs. The tutorial for same can be found from here.
In this application, first you have to determine your current logged on user. The followign thread will be helpful to you.
Once you have the current logged on user, you need to execute the function module "SAP_WAPi_CREATE_WORKLIST". You need to pass teh user name obtained as an import parameter here to get all the tasks for that user. You can limit the number of tasks returned by specifying the task numbers in IMPORT parameter. The return from this function module will return all the details of all tasks for that user.
Hope this helps!!