Entering content frame

Procedure documentation Scripting Locate the document in its SAP Library structure

Use

Server-side scripting is used to create pages dynamically.

Procedure

Note: in the Web Application Builder editor, blue font indicates directives and script code, and black font indicates static HTML. Directives are not case-sensitive.

This is the code from our current example:

<% <% do 5 times. %>

  <font SIZE = <% = sy-index %>>

    <p><center>

      Hello World!

    </font>

<% enddo. %>

This code outputs Hello World five times, in increasing font sizes. It has the same effect as the following static code:

<<font SIZE = 1><p><center>
    Hello World!
</font>

<font SIZE = 2><p><center>
    Hello World!
</font>

<font SIZE = 3><p><center>
    Hello World!
</font>

<font SIZE = 4><p><center>
    Hello World!
</font>

<font SIZE = 5><p><center>
    Hello World!
</font>

This static code is the code that is evaluated and sent to the browser.

This graphic is explained in the accompanying text The next step is Inserting a Picture.

 

 

 

Leaving content frame