Creating before.htm Pages
On this page, you implement the output using HTMBL.
You have created a BSP application (see Creating BSP Applications). In our example, this is called BSP_TUT_COMPLEX.
In your BSP
application, create the before.htm
page as a page with flow
logic
(see Creating
Pages).
...
1. Define three page attributes for the three input fields:
Attribute |
Auto |
Typing Type |
Reference Type |
name |
x |
TYPE |
STRING |
password |
x |
TYPE |
STRING |
x |
TYPE |
STRING |
2. Create the page layout with HTMBL elements:
<%@page language="abap"%> <%@extension name = "HTMLB" prefix = "htmlb" %> <htmlb:content>
|
3. Save and activate your page and the BSP application.
The generated output is as follows:

You need more than 40 lines coding just to code these basic input fields. Also, because of the <htmlb:gridLayout> element, you cannot always recognize the coding structure immediately. This element is not absolutely necessary for our example, although it makes sense to use it with more complex layouts.
For these flow-type layouts, most attributes can now be calculated automatically, especially row and column counters. It is exactly the same when you connect <htmlb:label> to <htmlb:inputField>. Many of the attributes can also be hard-coded in a set of wrapper elements.
You are therefore advised to design a BSP extension library that also contains inherent information (that is, hard-coded elements) for the layout of a specific BSP application or group of BSP applications. Ideally, the individual BSP extensions in this library will be “slim-line” and easy to create. These can be used to create “toolboxes” that encapsulate the appearance and the whole layout centrally. As a result, you can also make changes to the whole application very quickly.
You can do all this using the Design Solution.