Skip to Content
author's profile photo Former Member
Former Member

FM or tables to get the latest workitem

Hello,

Is there any FM or tables to get the latest work item which got executed by giving the workflow number as input.

Thanks,

Saravana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    Posted on Sep 11, 2013 at 07:07 AM

    HI Saravan,

    Use table SWWWIHEAD you can get the work item numbers of a workflow by giving parent work item id which is parent workflow work item number.You can sort on creation time to get the latest work item if you want so.

    Regards,

    Jayaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2013 at 10:10 AM

    Actually My requirement is....

    giving workflow no as input and to get last executed work item with the material list which got executed during the last work item.

    is there any tables to relate these?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 11, 2013 at 08:50 AM

    In addition to Jayaraj's advise,

    You can also filter using WI_TYPE and WI_AAGENT to find out execution of dialog workitems.

    alternatively just use transaction SWI5 to get all info on execution of workflows and tasks etc.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 11, 2013 at 09:43 AM

    Hi,

    Also check SAP_WAPI_WORKITEMS_BY_TASK fm.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2013 at 02:46 PM

    I have few more queries.....

    1. which table stores the workflow event status details (Active/not active)?

    2. is it possible to get the event wise last executed work item for a workflow? how to do it?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2013 at 06:19 AM

    Hi,

    You can go to swi1 t-code and view the details of the work item which are executed and their status too. you can also view the details of the work item and their status ...

    Hope it helps....

    Regards,

    Reshma S

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2013 at 06:40 AM

    In my report, I have got the event wise workitem using tables SWWWIHEAD and SWWLOGHIST. Now, the problem is I'm not able to find the table or FM which gives the event status (active/not active) for that specific work item. I checked the table SWFDEVENA, but this is not giving the work item wise event status.

    How will I get the work item wise event status?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      All Events generated are logged in the event log (SWEL). To view it first you need to switch on the Event trace (SWELS).You can do this by selecting Utilities-> Event log -> On/off from the area menu SAP Business Workflow.

      Regards,

      Reshma S

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 04:05 PM

    Hi Saravana,

    you can try using f.m. SWW_WI_FIND_DEPENDANT_WIS, using the top level workflow ID and uncheking the parameter DIRECT_DEPENDANTS_ONLY.

    You can then easily work on the returned table DEPENDENT_WIS to find the latest step in your workflow.

    Regards,

    Antonio

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.