Skip to Content
0
Former Member
Feb 19, 2009 at 03:51 PM

Issue with FM 'SWE_EVENT_CREATE'

86 Views

Hello Gurus,

I am facing issue with function module 'SWE_EVENT_CREATE'.

We have a workflow already started and we have a custom event associated with custom business object waiting to listen the event. But it seems that even if the sy-subrc is returned a 0 and event_id as 1, still the workflow log says, waiting for event and event is not listened.

v_event = 'Blck'.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = v_object
          objkey            = v_objid
          event             = v_event
        IMPORTING
          event_id          = v_idevent
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.

Note: We are not using this FM for an event to start a workflow, but we want a started workflow to hear the eventu2026

Regards,

Rajesh.