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

Event parameter setting

Hi All,

I have a event DISPLAY of the BOR Object ZTESTBOR.

The Event DISPLAY has a parameter 'Matnr' of type mara-matnr.

Now i want to start a work flow when the event is triggered.

So i have done the binidng in the worl flow.

How can i pass a value say '1000001' to Matnr ( i.e the event parameter ) and then trigger the event so that the work flow container element can take the value in the container element so that i can use it in the WF.

Can u suggest any FM's or documents where this could be found.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 01:22 PM

    This program might Help:

    REPORT ZTESTING1 .

    tables :
    ZOPM_OBJKEY.
    data :
    * object key
    objectkey type SYSUUID_C,
    objkey like sww_contob-objkey.
    * defining the event container..........................................
    data begin of event_container occurs 0.
    include structure swcont.
    data end of event_container.
    * workitem list
    data :
    t_wid like SWOTOBJID occurs 0 with header line.
    clear event_container.
    refresh event_container.
    CALL FUNCTION 'SYSTEM_GET_UNIQUE_ID'
    EXPORTING
    DCE_COMPATIBLE = 1
    IMPORTING
    UNIQUE_ID = objectkey.
    objkey = objectkey.
    clear objectkey.
    
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'CONTEXT'
    field = 'UAD'
    tables
    container = event_container
    exceptions others = 1.
    
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'SUBJECT'
    field = '3333'
    tables
    container = EVENT_CONTAINER
    exceptions others = 1.
    
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'ZPSKUMAR'
    objkey = objkey
    event = 'GENERIC'
    * CREATOR = ' '
    * TAKE_WORKITEM_REQUESTER = ' '
    * START_WITH_DELAY = ' '
    * START_RECFB_SYNCHRON = ' '
    * NO_COMMIT_FOR_QUEUE = ' '
    * DEBUG_FLAG = ' '
    * NO_LOGGING = ' '
    * IDENT =
    * IMPORTING
    * EVENT_ID =
    TABLES
    EVENT_CONTAINER = EVENT_CONTAINER
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF

    Hope That Helps

    Anirban M.

    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.