Prerequisites
You have created an empty BSP application for this tutorial.
Procedure
To do this, choose Create ® Controller.
The class does not have to exist yet.
If the class does not already exist, the system asks you if you want to create it. Choose Yes so that you create a class with the specified name that is derived from
CL_BSP_CONTROLLER2.Each controller class must be derived directly or indirectly from
CL_BSP_CONTROLLER2.
In this example, it is simple HTML:
method DO_REQUEST . write( '<html><body><H1>' ). write( 'This is my very first controller' ). write( '</H1></body></html>' ). endmethod. |
In Transaction
SICF, select the entry for your BSP application and choose Service/Virt.Host ® Activate.Confirm the following confirmation prompts.
Result
Continue by
creating a view.