/PACG/ECM_DEL_OLD_AC - Delete old activities & smartforms
The program will create deletion requests sent to SAP FSM for activities and/or checklist instances if an object is closed since x days (to be specified in field ‘Older than days’). Deletion requests are sent in packages of 50 and only for objects which have not already been deleted.
Primarily the ‘changed on’ date (AEDAT) is used to calculate which objects are relevant for deletion (based on the number of days entered in field ‘Older than in days’). If no ‘changed on’ date is found for an object, ‘created on’ date (ERDAT) is used instead.
'Activity' checkbox set
Send deletion requests for all activities (found in table /PACG/ECM_ACTI) whose status is ‘5’ (closed), which fit in the selection criteria of personnel number and company ID (if specified) and whose ‘changed on’ date is less than (system date – the number of days entered in field ‘Older than in days’).
‘Smartform (Checklist)’ checkbox set
Send deletion requests for all checklist instances (found in table /PACG/ECM_CLTDH) which are closed (field ‘Closed’), which fit in the selection criteria of company ID and whose ‘changed on’ date is less than (system date – the number of days entered in field ‘Older than in days’).
Additional information
Deletion requests are sent as idocs of type /PACG/ECM_ITYPE_OPERATION, with object key of the deleted object.
All deleted objects are added to table /PACG/ECM_OBJDEL after deletion request had been sent and they will be omitted in future executions of this transaction.
If you'd like to help us improve the documentation, please provide your feedback using the communication channels listed /wiki/spaces/PFCC/pages/1561427969. Learn about support possibilities here.