workflow item not being created

Dart, Jocelyn jocelyn.dart at sap.com
Mon Jul 17 19:38:58 EDT 2000


Hi Hui, The COMMIT WORK is a must!  Normally if you were putting the
swe_event_create
in a user-exit the commit work would be part of the standard SAP program
which calls the user exit.
But if you write your own program you must make sure you COMMIT WORK after
the swe_event_create to raise the event.
Regards,
        Jocelyn Dart
Consultant (BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
-----Original Message-----
From: Barcellos, Marcos
Sent: Tuesday, 18 July 2000 8:43 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: workflow item not being created
 
 
Hi Hui,
 
Did you use this abap program:
 
Eg:
 
include <cntn01>.
 
data: objeto like swu_evcrea-objecttype,
      chave  like swu_evcrea-objectkey,
      evento like swu_evcrea-eventname.
 
 
objeto = 'BSEG'.
evento = 'created'.
 
concatenate bseg-belnr bseg-gjahr into chave.
 
call function 'SWE_EVENT_CREATE'
     exporting
         objtype              = objeto
         objkey               = chave
         event                = evento
         start_recfb_synchron = 'X'
     tables
         event_container      = event_container
     exceptions
         objtype_not_found    = 1
         others               = 2.
 
sometimes you will need to put the follow instruction:
 
commit work.
 
and did you see if the event is activated in the Workflow ?
 
Regards,
 
Marcos Barcellos
Workflow (WF)
Business Information Warehouse (BW)
Internet Application Components (IACs)
 
 
-----Original Message-----
From: Hui Xie-H [mailto:xie.h at pg.com]
Sent: Segunda-feira, 17 de Julho de 2000 16:22
To: SAP-WUG at MITVMA.MIT.EDU
Subject: workflow item not being created
 
 
Hi,
 
I have a workflow which is triggered through ABAP. I used function
SWE_CREATE_EVENT in  ABAP and passed the form ID as parameter. At the same
time,
the form was also being saved into a customer-defined table. So the table
entries and the number of workflow items should always match.
 
It works fine most of the time. Sometimes you will see a table entry for the
form, but there is no workflow item for it. When I used "swi1" to check,
there
is no trace that workflow was even initiated for that form. So I have to
re-start the workflow manually just for that form. I don't know what's going
on.
Any clue?
 
I appreciate any help and insights.
 
Thanks.
 
--Hui (513-983-1213)
 
xie.h at pg.com
 
Procter & Gamble Co.
Information Technology
Cincinnati, Ohio
 


More information about the SAP-WUG mailing list