Skip to Content
author's profile photo Former Member
Former Member

How to use the fun module SWE_EVENT_CREATE and trriger te work flow

Hi friends,

I am using the function module SWE_EVENT_CREATE

to trigger the work flow event

data : objkey TYPE sweinstcou-objkey,

  • Contract

objkey = gw_ever-vertrag.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'ISUCONTRCT'

objkey = objkey

event = 'ASSESSED'

Bu tth ework flow is not triggering

Kindly guide me on the Issue

Thanks in Advance

Ganesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 01:44 PM

    hi

    you goto SWO1 tranaction and given object type ex: FORMABSENC

    click on DISPLAY

    inthat

    select the EVENTS in that select the CREATE EVENT

    and click on PROGRAM PUSH BUTTON

    inthat progaram you can see the event SWE_EVENT_CREATE

    swc_set_objectkey object-key.

    Raise an event to indicate that a form has been created.

    swc_get_object_type self objtype.

    objkey = object-key.

    event = 'CREATED'.

    event_creator = sy-uname.

    CALL FUNCTION 'SWE_EVENT_CREATE'

    EXPORTING

    objtype = objtype

    objkey = objkey

    event = event

    creator = creator

    start_with_delay = ' '

    IMPORTING

    event_id = eventid

    TABLES

    event_container = event_container

    EXCEPTIONS

    objtype_not_found = 01.

    thanks

    sitaram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.