Copyright 2024 - BV TallVision IT

Just for you to understand what these articles are about: the BSP application...

The BSP application is one of the forms / shapes that is displayed the end user as Internet page via the "browser" (e.g. Internet Explorer). To enable communication/control over the HTML page, the page can support "Flow logic" which is covered in ABAP coding.

So where can you get started ? Have a look at one of SAP's demo BSP applications, then walk through a steplist to create your own...

By tutorial example

Of course SAP has set up some nice examples for you. In transaction SE80 look for the "BSP application" with the name TUTORIAL*. BSP service TUTORIAL_2 is about a bookstore where you can look up an author or title. To try out what it looks like, start the BSP application via your browser:

BSP control from ABAP programming is done by 6 event handlers. How they should (could) be used is outlined in this article.

An example BSP program run

Let's say your end user starts your BSP application. Event handlers are called in the following sequence and a brief example of what can be done in the event is explained:

A request handler is an ABAP Objects class which "handles Requests", web requests that is. SAP uses it to show ABAP statement documentation via a web browser...

When using the event handlers, there's a suite of interesting objects you have access to.

Which objects ?

You may realize that object orientation in BSP applications is a key factor. There's a nice suite of classes available at runtime, which are listed here:

Once you get started, there really is no way back... This article highlights a few commonly used topics getting data to and from the html.

Let's assume you want to display a field on some html which should hold a value from your ABAP. This can be done in 2 ways, as information or as actual input field. To do this, first create your ABAP variabele on the "Page Attributes" tab. Call it MYABAPVAR of type CHAR80, make sure the "Auto" checkbox is ticked on. Then fill in the Layout as follows:

This is the layout of a full blown layout with JavaScript functionality incorporated.

BSP application processing uses a concept of "session protection" which can be controlled via stateful and stateless...

It's a pretty straight forward concept: the backend of the system will keep the BSP application alive over several pages. Even when the whole browser is closed and reopened in the same page - the BSP session will simply contniue where it left off. Very handy when building multi-page (or even single page) applications. How can it be controlled ?

The BSP application is an odd-ball when debugging is concerned... We're not dealing with SAP screens...First of all: debugging for internet services (external debugging) or BSP applications can be done as usual: set your break-point in the ABAP coding you expect to be called. However: do make sure you visit Utilities -> Settings from transaction SE80. Tab “ABAP Editor” then “Debugging”. External debugging should be switched on.