Deleting a custom workitem
Robin Sahasranam
Rsahasranam at worldbank.org
Fri Aug 31 08:25:47 EDT 2001
Or you could use SAP's own deletion reports RSWWWIDE (transaction SWUL)=
.
=
=20
Deepak Kumar =
=20
<deepak.kmr at wipro.co To: Sap-Wug at Mitvma.=
Mit.Edu =20
m> cc: =
=20
Sent by: SAP Subject: Re: Deleti=
ng a custom workitem =20
Workflow =
=20
<Owner-SAP-WUG at MITVM =
=20
A.MIT.EDU> =
=20
=
=20
=
=20
08/31/2001 12:02 AM =
=20
Please respond to =
=20
SAP Workflow Users' =
=20
Group =
=20
=
=20
=
=20
=
=20
=
=20
Hi Rob,
Though there might be many ways of deleting the workitem from Inbox,I h=
ave used
a
background job to delete the workitems which are say 1 week old.This ba=
ckground
job will run every day and delete all the workitems created by my workf=
low only
which are 1 week old.I am using a report program which does the actual =
job.
The code used is:
REPORT YMIB_DELETE_ORDRSP_MAIL .
data:begin of i_swwwihead occurs 0,
wi_id like swwwihead-wi_id,
end of i_swwwihead,
l_date like sy-datum.
l_date =3D sy-datum - 1.
select=A0 wi_id from swwwihead into table i_swwwihead
where WI_RH_TASK =3D 'TS00008075'
and wi_cd between l_date and sy-datum.
loop at i_swwwihead.
CALL FUNCTION 'SWW_WI_DELETE'
=A0=A0=A0=A0 EXPORTING
=A0=A0=A0=A0=A0=A0=A0=A0=A0 WI_ID=A0=A0=A0=A0=A0=A0=A0=A0 =3D i_swwwihe=
ad-wi_id
*=A0=A0=A0=A0=A0=A0=A0=A0 DO_COMMIT=A0=A0=A0=A0 =3D 'X'
*=A0=A0=A0=A0=A0=A0=A0=A0 CREATE_EVENT=A0 =3D ' '
*=A0=A0=A0=A0=A0=A0=A0=A0 DELETE_LOG=A0=A0=A0 =3D ' '
=A0=A0=A0 EXCEPTIONS
=A0=A0=A0=A0=A0=A0=A0=A0 UPDATE_FAILED =3D 1
=A0=A0=A0=A0=A0=A0=A0=A0 OTHERS=A0=A0=A0=A0=A0=A0=A0 =3D 2
=A0=A0=A0=A0=A0=A0=A0=A0=A0 .
IF SY-SUBRC <> 0.
=A0MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
=A0=A0=A0=A0=A0=A0=A0=A0 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
ROB CRAWFORD wrote: =A0I am trying to delete a couple of work items whi=
ch are the
result of a custom workflow template.=A0 I get the following error if I=
(the
WF-Admin) try to delete the work item from the action list.=A0 "Work it=
em could
not be accepted (->function canceled)"=A0 I have also tried to delete t=
he work
item using SWWL specifying the work item and I don't get any results ba=
ck.=A0 The
work item still shows up in the user's inbox and in SWI5(workload analy=
sis).=A0 Is
there something special I need to do in the development of the workflow=
to allow
deletion of a work item?=A0 How can I get rid of these work items?=A0-R=
ob=A0Rob
Crawford
Menasha Advantage
1649 Bergstrom Rd.
Neenah, WI 54957
(920)751-2513
rob.crawford at menasha.com
(See attached file: Wipro_Disclaimer.txt)
=
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Wipro_Disclaimer.txt
Type: application/octet-stream
Size: 1156 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20010831/e70e736c/attachment.obj
More information about the SAP-WUG
mailing list