AW: Start workitem immediately within the application

Zmudzin,Tomasz,FRANKFURT,Extern LG-DM Tomasz.Zmudzin at de.nestle.com
Mon Jun 23 02:50:29 EDT 2003


Werner,
 
(I may be totally out of line as I could not follow the WHOLE discussion,
but let's point out another thing worth checking...)
 
The document statuses & everything around them can be set up in the
customizing of the Document Management System. If you really want ANY piece
of code executed immediately, you'd better use the "Program Exit / Form
Routine" option, potentially with the "Immediate" flag set -- your piece of
code will be run immediately when the status is set.
 
Please check:
SPRO --> SAP Reference IMG
  --> Cross-Application Components=20
  --> Document Management=20
  --> Control Data=20
  --> Define document types.
Within this customizing transaction please select your document type, go
into status overview, double-click on status line to see the details of its
definition.
 
Kind regards,
Tomasz=20
(who has now transferred to a PDM unit -- how useful !...)
 
 
-----Urspr=FCngliche Nachricht-----
Von: Dart, Jocelyn [mailto:jocelyn.dart at sap.com]
Gesendet: Montag, 23. Juni 2003 02:24
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Start workitem immediately within the application
 
 
Hi Werner,=20
I think event Q actually means EVENT QUEUE.
If you don't know the difference between synchronous and asynchronous event
handling then I suggest its time to go back to your BC610 course notes - or
to attend the course if you can.  Otherwise it is explained in detail in th=
e
SAP Library help and in the book (as is the event queue).  It comes down to
how do you know that the work item has been completed correctly - is it
enough to have executed the method (synchronous) or do you need an event to
confirm that something was done (asynchronous).=20
Please read up on it - it makes a significant difference!
Regards,
        Jocelyn Dart=20
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"=20
SAP Australia
email: jocelyn.dart at sap.com=20
phone: +61 412 390 267
fax:   +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: Werner K=F6=DFl [mailto:werner.koessl at hirschvogel.de]=20
Sent: Friday,20 June 2003 9:10 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: AW: Start workitem immediately within the application
 
 
Thanks Kjetil & Phil for your quick response!
 
I use the standard triggering event DRAW->CHANGED with receiver type
'DOKST'.
 
In the customizing i have the possibility to enter a workflow template for
every document type and for every document status.
Now when somebody changes exactly the given status the CHANGED-event is
raised.
 
I don't know how to do that.
 
Can you explain me what synchronous and asynchronous event handling means?
And what is event Q?
I never heard this before.
 
Thank you so much!!!
Werner.
 
 
 
-----Urspr|ngliche Nachricht-----
Von: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]Im Auftrag von
Soady, Phil
Gesendet: Freitag, 20. Juni 2003 10:39
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Start workitem immediately within the application
 
 
Lieber Werner,
 
if the event is processed and the wf started by WF-BATCH ( a background )
user,
then how can the workflow connect back to your modi ?
And interesting security issue.
 
The workflow must be started by the current user. Ie no asynchronous
handling.
 
Any chance of calling swe_event_create synchronously ?
See the flag on the Function call.
 
That implies no event Q ? Well, I've never tried synchronous and event q.
 
At least now, the user should get the user decision.
 
hth / htw
 
Cheers
 
 
Phil Soady
Senior Consultant
Business Technologies
SAP Australia
* : 0412 213 079
* : phil.soady at sap.com
 
 
 
 
 
-----Original Message-----
From: Werner Kv_l [mailto:werner.koessl at hirschvogel.de]
Sent: Friday, June 20, 2003 5:35 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Start workitem immediately within the application
 
 
Hi everyone,
 
we start one workflow when someone changes the status of a document. But th=
e
first workitem should be executed immediately after the change of the
status. (Not only created, but executed!)
 
The first workitem is a user decision, and the receiver of the first
workitem is WF_INITIATOR. The "Advance with immediate dialog"-field is
marked in the workflow template and in the first step.
 
But the workitem does not execute!
 
Does anybody have an idea?
 
Regards,
Werner.
 


More information about the SAP-WUG mailing list