Ansicht
Dokumentation

/SAPTRX/BAPI_EH_POST - Create or Update One or Multiple Event Handlers

/SAPTRX/BAPI_EH_POST - Create or Update One or Multiple Event Handlers

BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module (basis for a BAPI) is used to create one or more new event handlers and/or to update one or more existing event handlers in SAP Event Management (SAP EM).

The function module requires several application objects as input parameters. Application system parameters are assigned to each application object. These are first mapped onto the corresponding SAP EM parameters. SAP EM then determines the event handler type, before either creating or updating an event handler with this event handler type.

The parameters that are mapped include control parameters (table CONTROLDATA) and info parameters (table INFODATA). Control parameters are used in event handler determination, while info parameters are simply used to retrieve event handlers based on typical properties (for example, in the case of a delivery, the number of the sales order to which the delivery belongs).

In addition, the following data is transferred to SAP EM, where it forms part of the event handler data:

  • Milestone data (table MILESTONEDATA) that defines a list of expected events for the event handler
  • Measurement data (table MEASUREMENTDATA)
  • Tracking ID data (table TRACKIDDATA). A tracking ID can be used to identify either an individual event handler or a group of event handlers to which events are to be sent. Multiple tracking IDs can also be used. The tracking ID is defined for each tracking ID code set, that is, a tracking ID is unique within its code set.
  • Info object data (table INFOOBJDATA) that describes the business object type and identification that is affected by event handler data (for example, business object type Deliveryand the delivery number).

The OBJECTSTATUS table is a return parameter that informs the calling application system on the processing status of the application objects sent with the call (for example, whether an event handler was created or updated successfully). The table is returned only for synchronous calls.

The RETURN table includes the processing log for the event handler creation or update and is sent back to the application system that invoked the call. The table is returned only for synchronous calls.





Parameters

ACKN_DATA
APPLOBJECTS
CONTROLDATA
EXTENSIONIN
EXTENSIONOUT
INFODATA
INFOOBJDATA
MEASUREMENTDATA
MILESTONEDATA
OBJECTSTATUS
RETURN
SIMULATE
TRACKIDDATA

Exceptions

Function Group

TRX/SAPLEH_BAPIS

CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3892 Date: 20240427 Time: 042232     sap01-206 ( 66 ms )