cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of Event

Former Member
0 Kudos

Hi Experts,

Plz Explain in details about the creation of Event in SWO1 for any Object.

For BUS2012, there are eventsbut the programs corresponding to that is not written. then how it works ?

Plz Explain....for Custom Events Creation also..

Reply

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can trigger an even via a function module:

  CALL FUNCTION 'SWE_EVENT_CREATE'
       EXPORTING
            OBJTYPE           = '<BusinessObject>'
            OBJKEY            = <TheKey>
            EVENT             = '<TheEvent>'
       TABLES
            EVENT_CONTAINER   = Z_CONTAINER
       EXCEPTIONS
            OBJTYPE_NOT_FOUND = 1
            OTHERS            = 2.

  IF SY-SUBRC = 0.

  ELSE.

  ENDIF.

You can also trigger the event with change documents. See transaction SWEC. You can also add field restrictions

EXAMPLE:


EINKBELEG	BUS2012	RELEASESTEPCREATED

Also have a look at Transaction SWETYPV.