BSP Application Structure
§BSP Application
•Business Server Pages which define the Web UI and contain serverside scripting
•Arbitrary additional files (Images, background pics, button GIFs,...), Style-Sheets, etc.
•Application class, that contains the application logic
•Accesses backend functionality
Separation of presentation and business logic
BSP- Starting with Page
§Server-side scripting determines the presentation logic as part of layout processing. In the preview, you can check the appearance of your pages, without having to call up the browser.
§Page attributes are visible in the layout processing as well as in the event handlers of a page. They can be used to store data obtained in the standard handler OnInitialization, and to make this data accessible for the layout processing and the other event handlers.
§Predefined event handlers are available for the different events.
§You can use type definitions to define local types.
§Similar to every object in the SAP System, BSPs also have different administration attributes.
BSP Page – Event handling
Event Handler
|
Description
|
OnCreate
|
OnCreate is called once when the page is first created (stateful mode), and performs a once-off data initialization or object creation.
|
OnRequest
|
OnRequest is called whenever a request is made for a particular page and is used to restore the internal data structures from the request. This is important when working in stateless mode.
|
OnInitialization
|
This event handler is mainly used for data retrieval. For example, it allows data required for displaying the BSP to be read from the database. It can also execute any program.
|
OnInputProcessing
|
This event handler checks and processes user input. It can also define navigation, that is, whether the user should be taken to the same page or another when the BSP is called.
|
OnManipulation
|
You can use this event handler to manipulate the HTTP data stream later.
|
OnDestroy
|
This event handler is available for special functions.
Control flow in Stateless session while output is processed
Control flow in Stateless session while input is processed
Control flow in Stateful session while output is processed
Control flow in Stateful session while input is processed
|
No comments:
Post a Comment