"Program Exit" for flexible deadline monitoring - Julien
Sample, Rick
Rick.Sample at graybar.com
Fri Feb 25 15:40:53 EST 2011
Hi Julien,
I see a test class in package SWF_TST_WI_EXIT_API called CL_SWF_TST_WFUNIT_API032. I "borrowed" some code from there and put into a Program Exit. ( Took all morning to figure out how to use exceptions. Still learning! But a good exercise. )
Anyway, I got the code moved into this PE, I step through it, see no issues at all, but simply does not set the new DL from code. Also, does not set the DL I enter in the tab on the task. I set Latest End to + 1 day on create. Nothing in there. Probably locks somewhere. I'll play around with it a bit more before I have to bug out for the weekend. If you figure this out, let me know. That could be useful to me.
I KNOW other ways to resolve, but none in a PE. But know your not wanting to re-design 400+
Have a great weekend folks,
Rick
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Julien Labruyere
Sent: Friday, February 25, 2011 8:04 AM
To: SAP Workflow Users' Group
Subject: Re: "Program Exit" for flexible deadline monitoring
I'll try (system down today), but this function uses the same function module "SWL_WI_DEADLINES_UPDATE", I'm quite sure that it'll be blocked because the workitem is locked
On Fri, Feb 25, 2011 at 2:07 PM, Sample, Rick <Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com>> wrote:
Hi Julien,
Can you use SWL_ADM_DEADLINE_CHANGE?
From: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>] On Behalf Of Julien Labruyere
Sent: Friday, February 25, 2011 2:53 AM
To: SAP WF - WUG
Subject: "Program Exit" for flexible deadline monitoring
Dear All,
My customer wants to have a flexible table to determine some exception for the deadline monitoring for steps in our workflows.
I don't want to create complex things in our huge workflows.
We have, in all of our steps, a program exit defined by default.
We tried, in the program exit, to update the deadline of a new created workitem based on the event "After Creation" by using the standard function module "SWL_WI_DEADLINES_UPDATE".
But the problem is that the workitem is locked at the excecution of the method ! It's a pity to have a program exit where we cannot execute modification on workitem after his creation !
Some one of you can help me ?
--
Labruyère Julien
Consultant IT / SAP - WorkFlow
@ Delaware Consulting
Rue de la Baronne 71 Bt 5
7181 Feluy
Phone : 00 32 473 849 857
Skype : julien.labruyere
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>
http://mailman.mit.edu/mailman/listinfo/sap-wug
--
Labruyère Julien
Consultant IT / SAP - WorkFlow
@ Delaware Consulting
Rue de la Baronne 71 Bt 5
7181 Feluy
Phone : 00 32 473 849 857
Skype : julien.labruyere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110225/3d3a5f32/attachment.htm
More information about the SAP-WUG
mailing list