A very simple example may look like this.
<html> <head> <% data: itab type table of sflight. %> <% field-symbols: <row> like line of itab. %> <% select * from sflight into table itab. %> </head> <body> <table> <% loop at itab assign <row>. %> <tr> <td><%= <row>-carrid %></td> <td><%= <row>-connid %></td> </tr> <% endloop. %> </table> </body> </html>
If you want to call transaction codes via HTML you need to activate the ITS.
Dig Deeper on SAP Web applications
Related Q&A from Axel Angeli
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system. Continue Reading
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled. Continue Reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order. Continue Reading