Wait for event conundrum

Dart, Jocelyn jocelyn.dart at sap.com
Wed Dec 19 17:27:07 EST 2001


Hi Dave,=20
You appear to be missing the IN UPDATE TASK extension
in your call function statement. That is, your statement should
read:
>
>     call function 'SWE_EVENT_CREATE_IN_UPD_TASK'
          IN UPDATE TASK
>
>         EXPORTING
>
>             objtype =3D 'PDOTYPE_O'
>
>             objkey =3D my_objkey
>
>             event =3D 'RESPONSIBILITY'
>
>             creator =3D l_event_creator
>
>             start_with_delay =3D 'X'
>
>         TABLES
>
>             EVENT_CONTAINER =3D event_container.
>
>
 
You do need a COMMIT WORK after the call to start the update task.=20
Once the update task is started you should be able to see if the=20
function module has run yet in transaction SM13.=20
 
Having COMMIT WORK after any event creation is important due to the
way events are started (all to do with logical units of work,=20
etc. etc. - but just remember you need a commit work somewhere
after the call - either you code it yourself or you use the one already =
 
provided in SAP programs - be careful as if you are raising your=20
event in user-exits or similar you must use the SAP provided commit
in the main program).=20
 
It's difficult to tell what your real problem is, but at least this=20
way you should be able to see if anything is going wrong and if the
function module is being run at all by using transaction SM13.=20
 
Hope that helps.=20
Regards,
        Jocelyn Dart=20
Consultant (EBP, BBP, Ecommerce, Internet Transaction Server, Workflow) =
 
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>=20
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
 
-----Original Message-----
From: Daniel Fern=E1ndez [mailto:wfdfl1975 at yahoo.es]
Sent: Thursday, 20 December 2001 6:22 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Wait for event conundrum
 
 
I don4t know if you have tried with another function
module but I think that There is any function more
that it trgger a event. You could to search in
function library by *EVENT*CREATE* or *CREATE*EVENT*
 
Regards,
 
Daniel.
 
 --- David Weston <weston at clockwork.ca> escribis: >
Yep its active, just tried putting a breakpoint at
> the function module SWE_EVENT_CREATE_IN_UPD_TASK,
> hit Continue and it found the waited event 10
> minutes later and all is well in SWEL.
>
> Removed the breakpoint so no "COMMIT WORK"
> interruption and it doesn't work. Strange.
>
> Set the breakpoint again, stops at the breakpoint,
> does a forced "COMMIT WORK" and it works again !!
> I tried coding an explicit COMMIT WORK before the
> function module call and after it and that doesn't
> work either.
>
> Set the breakpoint again, wait 10 minutes and lo and
> behold it works.
>
> Now I am intrigued !! Any ideas ?
>
> Dave
>
>   ----- Original Message -----
>   From: Becker Stephan (extern)
>   To: SAP-WUG at MITVMA.MIT.EDU
>   Sent: Wednesday, December 19, 2001 10:30 AM
>   Subject: Re: Wait for event conundrum
>
>
>
>   Dave,
>   is the event linkage active for the instance
> linkage in SWEINST?
>   Stephan
>     -----Original Message-----
>     From: David Weston [mailto:weston at clockwork.ca]
>     Sent: Wednesday, December 19, 2001 3:54 PM
>     To: SAP-WUG at MITVMA.MIT.EDU
>     Subject: Wait for event conundrum
>
>
>     Hi folks,
>
>     I have a workflow with a wait for event step in
> it. The "waited" event gets triggered after 10
> minutes using the "start with delay option" but in
> the SWEL log I get 'No receiver entered" found. This
> used to work last week. The wait step has a latest
> end deadline that gets triggered after 12 minutes as
> I am using the "start with delay" feature of the
> SWE_EVENT_CREATE_IN_UPD_TASK function module.
>
>     The event gets triggered by :-
>
>     call function 'SWE_EVENT_CREATE_IN_UPD_TASK'
>
>         EXPORTING
>
>             objtype =3D 'PDOTYPE_O'
>
>             objkey =3D my_objkey
>
>             event =3D 'RESPONSIBILITY'
>
>             creator =3D l_event_creator
>
>             start_with_delay =3D 'X'
>
>         TABLES
>
>             EVENT_CONTAINER =3D event_container.
>
>
>
>     When I look at the instance type linkages in
> SWEINST I see my object, the correct key and the
> correct receiver id (work item id).
>
>     No errors in SM21, SM58 either.
>
>     Any ideas out there as to what might be the
> cause ?.
>
>     Cheers
>
>     Dave
>
>
>
>
>
>
 
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicacisn instantanea gratis con tu gente.
http://messenger.yahoo.es
 


More information about the SAP-WUG mailing list