‎2007 Jul 27 1:07 PM
<b>"itab" is neither specified under 'tables" nor defined as an internal table</b>
What to do
<b>Here is the layout:</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<html>
<head>
<link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
<title> page 2 of bsp </title>
</head>
<body>
<h2> list of airlines </h2>
<table border="1">
<tr>
<th> No. </th>
<th> Airline </th>
<th> ID </th>
<th> URL </th>
</tr>
<%
data: wa type catsdb.
%>
<tr>
<%
LOOP AT itab INTO wa.
%>
<td> <%= write: SY-TABIX %> </td>
<td> <%= wa-counter %> </td>
<td> <%= wa-pernr %> </td>
<td> <%= wa-workdate %> </td>
</tr>
<%
ENDLOOP.
%>
</table>
</body>
</html>
Page attribute's are
1. itab type catsdb
2. cat1 type catsdb
and in event handler i gave
SELECT counter pernr workdate
UP TO 10 ROWS
FROM catsdb
INTO itab.
Thank you,
Regards,
Jagrut BharatKumar Shukla
‎2007 Jul 27 1:15 PM
‎2007 Jul 27 1:16 PM
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<html>
<head>
<link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
<title> page 2 of bsp </title>
</head>
<body>
<h2> list of airlines </h2>
<table border="1">
<tr>
<th> No. </th>
<th> Airline </th>
<th> ID </th>
<th> URL </th>
</tr>
<%
data: wa type catsdb.
%>
<tr>
<%
LOOP AT itab INTO wa.
%>
<td> <%= write: SY-TABIX %> </td>
<td> <%= wa-counter %> </td>
<td> <%= wa-pernr %> </td>
<td> <%= wa-workdate %> </td>
</tr>
<%
ENDLOOP.
%>
</table>
</body>
</html>
‎2007 Jul 27 1:19 PM
<b>error :</b> "ITAB" is neither specified under "TABLES"nor defined as an internal
table.