1. SAP Glossary
  2. Business Server Pages
  3. event handler


What is event handler in SAP BC-BSP - Business Server Pages?


SAP Term: event handler

  • Component: BC-BSP

  • Component Name: Business Server Pages

  • Description: A function used to process an event in a defined manner. A Business Server Page BSP consists of a layout and the following pre-defined event handlers: OnCreate: Executed when the page object is created. OnRequest: Always executed when the client requests the page in question. OnInitialization: Code that is executed before the page is sent to the browser. OnInputProcessing: Code that is executed for user input. OnManipulation: Used to make changes to the HTTP datastream after datastream is sent. Developers can also define their own event handlers.


Smart SAP Assistant

  • Key Concepts: 
    An event handler is a component of the Business Server Pages (BC-BSP) in SAP. It is a program that is triggered when an event occurs, such as a user action or a system event. The event handler is responsible for processing the event and performing the necessary actions. 
    
    How to use it: 
    Event handlers are used to respond to events that occur in the system. They can be used to perform tasks such as updating data, sending notifications, or performing calculations. Event handlers can be written in ABAP or JavaScript and can be triggered by user actions or system events. 
    
    Tips & Tricks: 
    When writing an event handler, it is important to consider the performance of the code. Event handlers should be written in a way that minimizes the amount of processing time required to complete the task. Additionally, it is important to ensure that the code is secure and does not expose any sensitive data. 
    
    Related Information: 
    For more information on event handlers, please refer to the SAP Help Portal (https://help.sap.com/viewer/product/SAP_BSP/7.50/en-US). Additionally, there are many online tutorials and resources available for learning how to write event handlers in ABAP and JavaScript.
    • Do you have any question about this SAP term?


      Upgrade now to chat with this SAP term.

Related SAP Glossary Terms

Click the links below to see the following related SAP glossary terms:
Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker