BSP programming model is like a server page technology. It can help for guaranteeing an optimal structure in business logic. The user interface of BSP applications are the following:
- Static websites
- Different MIME objects including icons, pictures, style sheets, sound files, and others that are a part of a web application.
- The dynamically generated websites that are templates or BSPs, which have server-side scripting, which is performed dynamically runtime for generating static websites. BSPs can be pages with views or flow logic. There might be controllers when there is an MVC design pattern.
Components of an SAP BSP
The components are discussed in our help for assignment on SAP BSP:
Controllers: They have application data and business logic. They assess the data of incoming requests depending on models and then choose a suitable view to render responses from users.
Business Server Pages: These pages are displayed if an application is used in a browser. It contains dynamic scripting code and static HTML code. The scripting code is evaluated on a server. The real structure of a BSP is stated in BSP Building.
Pages have the following parts:
- Page with a flow logic: It is a simple page along with event handlers, however, without visualization elements or application logic. You can build BSP applications with pages with event handlers and flow logic.
- Views: Views can visualize data
- Page fragment: It is created similar to normal BSPs, however, shown as page fragments.
Navigation structure: In this structure, you can define pages that should be navigated to and from a navigation request.
Application class: The class is used by a global ABAP that allows access to business data. Each page of BSP applications can refer to the components directly using a predefined Object application.
MIME Objects: In an SAP, all MIMEs including style sheets, graphics, video files, audio files, and others are managed in a centralized MIME repository. In each new BSP application, directories of the same name are created in a MIME repository.