FB08 - Workflow Question

Dart, Jocelyn jocelyn.dart at sap.com
Mon Aug 5 03:45:57 EDT 2002


Hi Wayne,
You should probably check out the Business Transaction Events
first and see if there are any there that meet your need.
 
Otherwise yes look for a user exit, but to get over the LUW issue
you don't use function module SWE_EVENT_CREATE.
 
Instead you use SWE_EVENT_CREATE_IN_UPD_TASK.
This raises the event in the update task so that if anything
goes wrong it will automatically be rolled back with the
rest of the  changes. Plus the event won't be raised until the changes
are there (provided your update sequence is correct of course).
 
That way you don't need commit work and wait - the commit work
in the standard FB08 transaction will pick up the event creation also.
 
Regards,
        Jocelyn Dart
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"
SAP Australia
 jocelyn.dart at sap.com
 +61 412 390 267
 +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: Carson, Wayne [mailto:Wayne.Carson at solvay.com]
Sent: Saturday, 3 August 2002 4:27 AM
To: SAP-WUG at mitvma.mit.edu
Subject: FB08 - Workflow Question
 
 
This is a follow up to my previous question on terminating events.
 
 
 
I am looking at transaction SWEL.  When the accounting document is created,
it triggers the RECEIVER TYPE WORKITEM, Object Type BKPF, Event Assigned.
 
 
 
What happens if you need a TERMINATING EVENT for transaction FB08 and it
appears that SAP didn't provide one?  I am looking at Object Type: BKPF.  Do
you look for a USER exit in the application and add code to raise the event
there?  This user exit would have to be part of the FB08 update program,
otherwise, you would have a problem if the update failed (dump for example).
Any ideas on this approach or an alternative.
 
 
 
I have seen coding in some examples where the workflow performed a "COMMIT
work and wait" in the METHOD.  I thought that this approach (to make sure
the database updates were completed) was frowned upon by SAP.  I thought
that we should avoid using COMMIT works within a METHOD.
 
 
 
Another approach would be to put coding into a LOOP where you check the DB
to see if the update has occurred.  Basically, keep looping until you get
the value or you EXIT the process after a certain time period.  I don't
think this logic is the cleanest.
 
 
 
Thank you,
 
 
 
Wayne R. Carson
 
SAP Technical Applications Lead
 
 
 
 
 
---------------------------------------------------------------------------
This e-mail is confidential.
If you are not the addressee or an authorized recipient of this message,
any distribution, copying, publication or use of this information for any
purpose is prohibited.
Please notify the sender immediately by e-mail and then delete this message.
 
Ce message est confidentiel.
Si vous n'etes pas le destinataire designe de ce message ou une personne
autorisee a l'utiliser, toute distribution, copie, publication ou usage a
quelques fins que ce soit des informations contenues dans ce message sont
interdits.
Merci d'informer immediatement l'expediteur par messagerie electronique et
d'ensuite detruire ce message.
---------------------------------------------------------------------------
 


More information about the SAP-WUG mailing list