Q
Problem solve Get help with specific problems with your technologies, process and projects.

Use the HTMLB library to display SAP data in HTML

Please send me the sample code to display SAP data from an internal table to HTML format, from an HTML screen to view/execute the trans code or query on SAP data.

Please send me the sample code to display SAP data from an internal table to HTML format, from an HTML screen to view/execute the trans code or query on SAP data.
First, you should have a look at the BSP examples with WebAS. See BSP applications in SE80 and inspect apps IT00 and HTMLB_SAMPLES.

For easy design, you can use the very powerful HTMLB library, a number of macros that render into plain HTML and...

Javascript. To see what is possible to create a BSP application and a page, browse the possible HTMLB tags in Tag Browser->BSP Extensions->Transportable->HMLB

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.
This was last published in August 2005

Dig Deeper on SAP Web applications

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close