Skip to Content
0
Sep 16, 2014 at 01:17 PM

Triggering workflow WS00500001

159 Views


Hi Experts,

Please let me know how to trigger the WF - WS00500001 with object type - CL_EHHSS_PCO_INC_LC and Event - CREATED. And given data below.

1. Title / Event :

Table: EHHSSD_INC_BINFA

Field name: TITLE

Data element: EHHSS_INC_TITLE

Data type (Format): Character format

Length: 80 characters

2. Data and Time

Table: EHHSSD_INC_BINFA

Field name: DATETIME_CR

Data Element: /BOBF/DATETIME_CR

Data type(Format): System format (Example : 31.07.2014 time 10:00 )

Length: 15

3. Incident Reporter

Table: EHHSSD_INC_BINFA

Field name: USER_ID_CR

Data Element: /BOBF/USER_ID_CR

Data Type(Format): CHARACTER

Length: 12 Characters

4. Locations

Table: EHHSSD_INC_BINFA

Field name: LOC_ROOT_KEY_REF

Data Element: EHFND_LOCATION_KEY_REF

Data Type(Format): RAW (It will accept characters and numbers )

Length: 16

5. Vehicle details

Table: EHHSSD_INC_VEHIC

Field for vehicle description: VEHICLE_DESC

Data element for vehicle description: EHFND_VEHICLE_DESC

Data type(Format): CHARACTER

Length: 40

Failed to trigger with below code 😔

CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = 'CL_EHHSS_PCO_INC_LC'
OBJKEY = LV_REPORT

EVENT = 'CREATED'
TABLES
EVENT_CONTAINER = GIT_EVT
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.

Regards,

Srivijay