SWW_WI_ADMIN_CANCEL

Dart, Jocelyn jocelyn.dart at sap.com
Mon Feb 16 19:47:11 EST 2009


Hi Rick, From SAP's viewpoint this functionality was never made
available as you are using an internal not-released-for-customer
routine. 
So unfortunately all that's happened is that they have closed a
loophole, rather than removed functionality. 

Regards,
Jocelyn 

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sample, Rick
Sent: Saturday, 14 February 2009 1:30 AM
To: SAP Workflow Users' Group
Subject: RE: SWW_WI_ADMIN_CANCEL

No WF. Just single step task. 

No special tricks. Set deadline, set action for deadline, and start
task. 
Seemed logical and simple at the time. (2003 in 4.6c)

I won't even ask why SAP would take this functionality away, but it
appears I can no longer do this in ECC6.

Thanks
Rick



-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Dart, Jocelyn
Sent: Thursday, February 12, 2009 4:33 PM
To: SAP Workflow Users' Group
Subject: RE: SWW_WI_ADMIN_CANCEL

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

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

_______________________________________________
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