FUNCTION 'SWE_EVENT_CREATE' in background

Thierry Logiest logiest_thierry at hotmail.com
Fri Oct 18 04:28:14 EDT 2002


Tanguy,
 
I have tried your code and it works both in dialogue and background. Many
thanks.
 
Regards, Thierry
 
 
 
>From: Tanguy LE BITOUX <tanguy.lebitoux at contactoffice.net>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: FUNCTION 'SWE_EVENT_CREATE' in background
>Date: Thu, 17 Oct 2002 09:53:55 +0200
>
>Hi Thierry
>
>you can try this
>
>   CALL FUNCTION 'SWE_EVENT_CREATE'
>        IN BACKGROUND TASK
>        EXPORTING
>             objtype = 'OBJECT'
>             objkey  = objkey
>             event   = 'EVENT'.
>
>CALL FUNCTION 'START_OF_BACKGROUNDTASK'
>        EXPORTING
>             startdate = sy-datum
>             starttime = sy-uzeit
>             nosend    = ' '.
>
>good luck
>
>Tanguy
>
> > ----------------------------------------
> > From: Thierry Logiest <logiest_thierry at hotmail.com>
> > Sent: Thu Oct 17 09:31:11 GMT+02:00 2002
> > To: <SAP-WUG at MITVMA.MIT.EDU>
> > Subject: FUNCTION 'SWE_EVENT_CREATE' in background
> >
> >
> > Dear all,
> >
> > I have been surprised yesterday with the following phenomenon :
> >
> > We generate events with standard FUNCTION 'SWE_EVENT_CREATE'.
> > This function is called indirectly from table T779X for infotype 8.
> > This works in foreground but when the function is called through
> > a BDC session (i.e. the change to infotype 8 is made through a
>batch-input)
> > although the function is called correctly (and commited)  the event is
>not
> > generated (SWEL is empty).
> > We proved that the code was called correctly by running the batch-input
>in
> > foreground.
> >
> > Any ideas would be very welcome.
> >
> > Thank you.
> >
> > Regards, Thierry
> > ABAP-Workflow-HR SAP Certified Senior Consultant
> >
> >
> >
> >
> > _________________________________________________________________
> > Protect your PC - get McAfee.com VirusScan Online
> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
>
>-----------------------------------------------------
>ContactOffice, my professional Virtual Office
>http://www.ContactOffice.com
 
 
_________________________________________________________________
Unlimited Internet access for only $21.95/month.  Try MSN!
http://resourcecenter.msn.com/access/plans/2monthsfree.asp
 


More information about the SAP-WUG mailing list