Start of Content Area

Background documentation BSP Directives  Locate the document in its SAP Library structure

Overview

BSP directives are enclosed in tags: <% Directive %>

The directives described in the following sections are supported by Business Server Pages (BSP). The syntax is compatible with the familiar server page technology.

The following BSP directives are available:

Note

You use the Tag Library to add BSP directives to your code using Drag & Drop.

For more information see Transferring Variables.

Special Programming Features

The following code sections for the layout of a BSP are not equivalent:

<% read table itab index lv_index. %>
<% if sy-subrc ne 0. clear workarea. endif. %>

and:

<% read table itab index lv_index.
if sy-subrc ne 0. clear workarea. endif. %>

The first code extract above contains a function module call between the two ABAP commands. The second code extract does not:

....

* BSP SCRIPT source
read table itab index lv_index.

* BSP STATIC source
* HTML begin: #### ######
CALL METHOD %_IF_PM->ADD_STATIC_REF
exporting
encoding = 0
source = %_HTML_POOL
offset = 0000018407 length = 0000000039 .

* BSP SCRIPT source
if sy-subrc ne 0. clear workarea. endif.
....

This means that the sy-subrc set when the internal table is read is overwritten by the function module call. The two pieces of code therefore behave differently.

 

 

End of Content Area