Show TOC

 Business Application Programming Interface in SAP EM Locate this document in the navigation structure

Definition

A Business Application Programming Interface(BAPI) is a standardized programming interface that provides external access to the SAP system’s business processes and data.

Use

You use SAP Event Management (SAP EM) to provide transparency within processes. These processes can occur in one or more SAP or external systems. BAPIs connect SAP systems or external systems to SAP EM.

The typical business use of SAP EM consists of the following processes:

  1. An activity in an application system (for example, creating a purchase order or a shipment) triggers the creation of an event handler in SAP EM. These contain the planned and unplanned events or milestones. SAP EM tracks these events.

  2. The event message reporters (for example, employees, partners, or systems) send event messages to SAP EM. These event messages update the actual information (for example, date, time, or location) about an event.

  3. In most cases, the people or systems report the actual events (for example, a goods receipt for a purchase order, or the arrival of the forwarding agent for a shipment) in this process.

  4. Those involved in the business process query information about an event or event handler.

The following BAPIs are available in SAP EM for these processes:

  • BAPI_EH_POST for creating event handlers in SAP EM

  • BAPI_ADDEVENTMSG_02 for sending event messages to SAP EM

  • BAPI_EH_GET_DATA for querying information from SAP EM

    Note Note

    For more information about Business Application Programming Interfaces, see the SAP Library under   SAP Technology Components   Cross-Application Functions   BAPI User Guide (CA-BFA)   or BAPI Programming Guide (CA-BFA).

    End of the note.

    Recommendation Recommendation

    To gain an overview of the BAPIs that can be used in SAP EM, call transaction BAPI in the system . On the Hierarchical tab page, choose   Supply Chain Management   Event Management   Event Handler.  

    End of the recommendation.

    Note Note

    For more information about implementing a BAPI that SAP EM calls, see SAP Service Marketplace at   service.sap.com/scm   Supply Chain Event Management   Detailed Information   .

    End of the note.