cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the workitem id from UWL

former_member393841
Participant
0 Kudos

HI All,

I have developed a workflow and starting this workflow from webdynpro abap.I integrated that task in SWFVISU

transaction to trigger the webdynpro from UWL up to now its working fine.

but now the problem is i need to get the WI_ID of the particular workitem (which i clicked on UWL to trigger my webdynpro application).

Thank you,

Harsha P

.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Best way to deliver the work item ID as an application parameter to your web dynpro application. Just add WI_ID to the default method of your WD component's window. You can then define the work item into SWFVISU or either do it directly into the UWL XML configuration file. => UWL deliver the WI_ID to your web dynpro application. You should find examples about how to configure WI_ID in SWFVISU or directly in XML configuration here in SDN.

Regards,

Karri

former_member393841
Participant
0 Kudos

Thank you very much for your quick response

Please guide me to complete this

1. I have created parameter type DYNPRO in SWFVISU transaction and i have created a application parameter in my webdnypro

application also even though i cannot get the workitem id in to my default method of my WD component window

So could you please send us any document links regarding this issue

Thank you,

Harsha p

Former Member
0 Kudos

>i have created a application parameter in my webdnypro application also even though i cannot get the workitem id in to my default method of my WD component window

What do you mean by this? If you want to "catch" the work item ID from UWL, the only place where you can do it is in HANDLEDEFAULT method in the component's window. Add the import parameter there.

Regards,

Karri

Former Member
0 Kudos

Here is a great instruction about the SWFVISU and/or XML that you need (after you have the WI_ID parameter in the WD component:

Regards,

Karri

sanjay_deshpande4
Participant
0 Kudos

Hi Harsha,

would you kindly share complete procedure for getting Workitem id in DYnpro application?

I mean, where and what you have coded?

I am facing some problem with this.

I will be thankful for kind guidance.

Former Member
0 Kudos

Hi Harsha,

Follow the below steps..

Go to T-code : SWFVISU

Click on new entries

Give Task Name and Visualization Type:

Task name:

Task Name : TS90000136

Visualization Type: ABAP Web Dynpro

Click on the Visualization Parameters:

Dynparam : Work Item related to the Work flow Task for the provided Webdynpro application:

In the above screen shot the Work item is for the FPM Application we need to provide the Configuration name as well.

In case of normal Webdynpro application no need to Provide the Configuration:

Above screen shot for the Normal Webdynpro application.

Give the Parameter in the Handle Default Method of the Component's Window.

After the running the above application work item will get into the handle default method.

Hope these is useful....!!!!!!

Regards

Surendra Garapati

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please don't resurrect old threads. This question was asked and answered 4 years ago. Closing this thread now. Also the answer from Karri is still correct.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try using FM SAP_WAPItoOBJECT... this will give you workflows related to your Business objects involved ...

Regards

Gautam