cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member507885
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member507885
Participant
0 Kudos

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.

Former Member
0 Kudos

Hi ,

You mean your workflows are not getting completed because users are not viewing there workitems... lets take for eg. display PO/PR...

And you have to manually complete each one of them for each users...

In that case you can replace that display step with a mail to that particular agent...

For the current stuck Work items you can create a program to manually complete them... as i suggested in my earlier reply...

Regards

Gautam

Edited by: gautam maini on Aug 3, 2011 3:13 PM

former_member186746
Active Contributor
0 Kudos

I still think that you have to model these kind of things so that it becomes part of the process.

In the mean time check if SWIA has the option to complete a selection manually (not available in older versions)

Kind regards, Rob Dielemans

Former Member
0 Kudos

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

former_member186746
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

That's exactly what I need.

Thanks so much