fetch workflow assigned to a material number
i have a material number, now my requirement is to extract all the workflow assigned/triggering to this material number. can any one please help me how to do this.
anil raina replied
1> if you want all active instances of workflow that are still In progress state..in that case use the FM
SAP_WAPI_WORKITEMS_TO_OBJECT.Pass the material number in key filed and it will return all
the In progress stuff.
2> Other way is go to tcode SWI6 ...
Enter the business object and enter material number in key field and also choose the status from
the selection screen field. Execute report it will give all relevant data as per entries you have put on
3> Third method is manual way of searching data in tables..............
First hit table SWW_WI2OBJ with material number and get the workitem id's
Then hit SWWWIHEAD with the workitem to find relevant data...but it is tedious way.