Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc Workitem association

Nik2
Explorer
0 Kudos

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

4 REPLIES 4

Nik2
Explorer
0 Kudos

pls can anoyne reply.

Former Member
0 Kudos

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

Nik2
Explorer
0 Kudos

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.

Former Member
0 Kudos

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