cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro applicationl, which accesses portal UWL and gets the work-items

Former Member
0 Kudos

Hi all,

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.

Accepted Solutions (1)

Accepted Solutions (1)

jigarlotia
Participant
0 Kudos

Hi Patric,

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.

https://www.sdn.sap.com/irj/sdn/adobe?rid=/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3

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

Regards,

Jigar

sushil_taneja
Participant
0 Kudos

other RFCs which can be useful are...

a. SAP_WAPI_WORKITEMS_TO_OBJECTS (returns WorkItem IDs and description)

b. SAP_WAPI_SET_WORKITEM_STATUS e.g. COMPLETED

c. SAP_WAPI_SET_WORKITEM_COMPLETED

executes the workitem only if it is assigned to the user ID passed as a parameter to it.

d. SAP_WAPI_CREATE_WORKLIST

return the workitems assigned to a user (even task ID can be given as a filter.

Regards,

Sushil

sushil_taneja
Participant
0 Kudos

other RFCs which can be useful are...

a. SAP_WAPI_WORKITEMS_TO_OBJECTS (returns WorkItem IDs and description)

b. SAP_WAPI_SET_WORKITEM_STATUS e.g. COMPLETED

c. SAP_WAPI_SET_WORKITEM_COMPLETED

executes the workitem only if it is assigned to the user ID passed as a parameter to it.

d. SAP_WAPI_CREATE_WORKLIST

return the workitems assigned to a user (even task ID can be given as a filter.

Regards,

Sushil

Answers (1)

Answers (1)

Former Member
0 Kudos

please check the following threads

that will help you.

http://www.galileo-press.de/download/dateien/1461/146_leseprobe.pdf

with regards

shanto aloor