cancel
Showing results for 
Search instead for 
Did you mean: 

calling web dynpro from workflow - SWFVISU

jeff_karls
Participant
0 Kudos

We are creating a custom java web dynpro with an "Approval" view for use with a custom workflow. We would like to launch the web dynpro from the Universal Worklist in the portal. I see that transaction SWFVISU configures a web dynpro application to launch for a specific workflow task.

My question is... What development needs to be done in the java web dynpro to make it work with the SWFVISU configuration? In other words, how do we pass parameters between the web dynpro and the workflow.

We are using ECC 5.0 and EP 6.

Thank you.

Jeff Karls

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jeff,

I have a similar requirment wherein i need to get the workitem details into webdynpro java screen. Can you please tell me if i had to get 10 details from the workitem how it can be done.??

Regards,

Sai Sharan Kalla

Former Member
0 Kudos

hi Jeff

This is one is fairly straight forward.

Step 1: In SWFVISU there is an option to setup a parameter (e.g wi_id, work item id alone is sufficient) that can be passed to custom WD application. To receive it in WD application use the WDProtocolAdapter to get the request parameter. Now you would have got the work item id that is the key to workflow. Set the parameter as an external id and UWL will by default pass it to the custom WD application.

Step2: There are several wapi's like SAP_WAPI_READ_CONTAINER that facilitates to read and similarly some others that help you write in to the workflow. For all the key is wi_id that is the work item id. These are standard Bapi's i guess available from ECC 5.0. Please use them with normal webdynpro - RFC calls.

Please remember to re register UWL everytime you change SWFVISU.

I have done this and it works successfully. Thanks.

Use this blog it is very comprehensive and even tells you the syntax to add the external id in SWFVISU. /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist

It uses ABAP webdynpro but then getting it done using Java WebDynpro is cake walk. The difference would be the WDProtocolAdapter to read the request object. I hope this is sufficient. Thank you.

reg

vln

Message was edited by:

vln