CA Function module RFC Used the same way in S/4HANA

SAP_WAPI_CREATE_EVENT Workflow: Create Event

Raises a Business Workflow event for a business object or class instance, which starts every workflow linked to that event in the event type linkage (SWE2). Custom programs, user exits and BAdIs use it to trigger approval or notification workflows when data changes. Pass OBJECT_TYPE, OBJECT_KEY and EVENT, fill INPUT_CONTAINER with event parameters if needed, and set COMMIT_WORK or commit yourself; RETURN_CODE 0 means success.

Function group
SWRR
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
OBJECT_TYPESWR_STRUCT-OBJECT_TYPObject typeYes
OBJECT_KEYSWR_STRUCT-OBJECT_KEYObject keyYes
EVENTSWR_STRUCT-EVENTEventYes
COMMIT_WORKSWR_STRUCT-COMMITFLAGExecute COMMIT WORK—
EVENT_LANGUAGESY-LANGUEvent language—
LANGUAGESYLANGULanguage—
USERSYUNAMEUser who raises the event—
IFS_XML_CONTAINERXSTRINGEvent container as XML—

Exporting parameters

ParameterTypeDescription
RETURN_CODESY-SUBRCReturn code
EVENT_IDSWR_STRUCT-EVENT_IDEvent ID

Tables parameters

ParameterTypeDescriptionRequired
INPUT_CONTAINERSWR_CONTEvent parameters—
MESSAGE_LINESSWR_MESSAGMessage lines—
MESSAGE_STRUCTSWR_MSTRUCMessage structure—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
  EXPORTING
    object_type = lv_object_type
    object_key = lv_object_key
    event = lv_event
  IMPORTING
    return_code = lv_return_code
    event_id = lv_event_id
  TABLES
    input_container = lt_input_container
    message_lines = lt_message_lines
    message_struct = lt_message_struct.

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report