Skip to Content

how to findout workitems related to PO(purshase order).

Hi,

I have a requirement where i need to find out the workitem of a task w.r.t purchase order number and have to delete the

relevant workitem related to the PO when ever a PO is released after some modification on delivery date. and the process

of deleting the workitem should be automated one.

Can any one suggest me on this.

Thanks & Regards,

satish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2011 at 08:31 AM

    Hi,

    Why is is that you want to delete workitems?

    You acn find a list of workitems using tabel SWW_WI2OBJ...

    Use purchase order no in field INSTID as input....

    for logically deleting those workitems use function module SAP_WAPI_WORKITEM_DELETE...

    Regards

    Gautam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 03, 2011 at 09:37 AM

    Hi,

    why not just model this in the workflow.

    Create a new event, add it in change documents for change on that field. And use it in the workflow template, start the process in a 1:2 fork in one branch the normal process and in the other a subflow with wait for event steps which could terminate the entire process. Like your new requirement.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2011 at 12:48 PM

    HI Satish,

    I just understood your requirement...

    What Rob is saying is correct... if you do not have instances generated for your workflow... follow Rob's approach...

    Regards

    Gautam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 03, 2011 at 01:05 PM

    actually task was already there which is triggering for the overdue PO.So that PO workitem is need to be deleated when ever

    the PO Is released after some modifications.but that workitem is not deleated or compleated as we need to do it manually every

    time by going to users inbox.

    So we need to automate the delete process of deleting the workitem when ever the PO is released.

    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.