cancel
Showing results for 
Search instead for 
Did you mean: 

Workitem in Method

Former Member
0 Kudos

Hi Experts,

How i can get the current Workitem Id and Workitem Text in my method.

I am able to get the Main Workflow id in my Method.

Through this Main Workflow id i can get the current Workitem Id using FM or through tables.

Is there any other way to get the Workitem Id ?

Using SWC_GET_ELEMENT statements in my method.

I am using swc_get_element container '_Workitem.WorkitemId' l_wi_id.

swc_get_element container '_Workitem.WorkitemShortText' l_wi_text.

But this is not working Please suggest.

Thanks in Advance....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

U should do the binding from the workflow container to task container

then use the swc_get_element statement to get the value of the workitem id in ur method.

Former Member
0 Kudos

Hi,

Use the interface "IF_WAPI_WORKITEM_CONTEXT" to get details of the workitem instead.

Hope this helps.

Best Regards,

Saujanya

Former Member
0 Kudos

You can try to search with FM by giving SAP_WAPI* in SE37and pressing F4. You can also search this forums for answer as I remember this has been discussed.

Thanks

Arghadip

Former Member
0 Kudos

Thanks Arghadip,

Is it possible to get the Workitem id using some SWC_GET_ELEMENT statement ?

if yes can you please let me know that statement.

imthiaz_ahmed
Active Contributor
0 Kudos

What is purpose and what you are trying to do?