SWW_WI_ADMIN_CANCEL
Dart, Jocelyn
jocelyn.dart at sap.com
Thu Feb 12 17:32:49 EST 2009
Hi Rick,
Don't quite understand why you are setting the deadline end
programmatically rather than just building it into the workflow template
in the first place? I can see it's quicker but it's also unobvious to
anyone supporting the workflow... Something I usually try to avoid as
special tricks can be a serious pest to find if you have an urgent
problem.
To do the same thing I would have used a terminating event to Cancel
Workflow in the basic data of the workflow header in SWDD, and then used
a task in the workflow to wait for the deadline and raise the event.
Unless this is a TS task and not a workflow template?
Regards,
Jocelyn
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sample, Rick
Sent: Friday, 13 February 2009 8:47 AM
To: SAP Workflow Users' Group
Subject: SWW_WI_ADMIN_CANCEL
I have old WFs converted to ECC6 that now short dump!
I know the SAP_WAPI_* are to be used. But anyone know how to get the
same functionality as below using the SAP_WAPIs?
I don't want to run a prg to logically delete. I want the Task to
Logically Delete after a given time.
call function 'SWW_WI_START'
exporting
creator = creator
language = sy-langu
latest_end_action = 'SWW_WI_ADMIN_CANCEL'
latest_end_date = latest_end_date
latest_end_time = latest_end_time
priority = '5'
task = task_tab-task
do_commit = 'X'
created_by_user = sy-uname
called_in_background = 'X'
tables
agents = agents_tab
wi_container = wi_container
exceptions
id_not_created = 1
read_failed = 2
immediate_start_not_possible = 3
execution_failed = 4
invalid_status = 5
others = 6.
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
More information about the SAP-WUG
mailing list