10-19-2007 7:44 AM
Hi,
I am calling transaction SWPR in my program to reprocess workitem. But, in some cases based on idoc status the reprocessing should not be performed. How to get the relation between Idoc and Workitem???
Is there any FM????
Regards
Nikhil
10-19-2007 7:53 AM
10-19-2007 9:19 AM
Hi,
I can give some pointers
You can check this table for the WorkFlow task and then get all WF's
SWW_WI2OBJ and also SWWWIHEAD.
Generally if the IDoc is being triggered by WF then I guess there should be some direct informaton like task in the Idoc data segments or maybe a common object say PO number in both the data segment and WF which could be used to link 'em
The other case maybe that Idoc is triggering WF in which case the instance ID in the above tables should typically contain Idoc number.
Let me know the process
I can try.
Regards
Nishant
10-19-2007 9:54 AM
Hi Nishanth,
Thanks for the reply. I am unable to find the idoc number from the tables you have specified. If the workitem number same as idoc number?
Using transaction SWPR i am reprocessing workitems. If the idoc is having status 68, it should be reporcessed.
10-19-2007 10:02 AM
Hi Nikhil,
If you just want to reprocess Idoc's with status 68 then you can create a background job which will run a program which can pick all idoc's in status 68 and reprocess by submitting the list og Idoc's to program RBDMANI2.
Hope this helps
I am not able to understand why do you want to reprocess WF? Is WF creating an Idoc or Idoc creating a WF? Also, is this WF only for IDoc's? At what stage is this being triggered?
Regards
Nishant