Show TOC

Background documentationBSP Directives Locate this document in the navigation structure

 

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

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 Note

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

End of the note.

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:

Syntax Syntax

  1. .....
    * 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.
    ..... 
End of the code.

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.