Skip to Content
0
Former Member
Mar 14, 2007 at 05:32 AM

how to get text of itab header and structure field name dynamically?

230 Views

HI.

I'm just trying display itab to web.

of cause I can use <htmlb:tableView> but I need display by loop itable for my special reason.

the table is dynamic structure that means header line should be changes depends on structure description.

'<htmlb:tableView>' certainly can display header line dynamically with just itable only.

but don't know how to get these text and structure field name without 'tableView'.

help me please.

Thank you.

<TABLE border=1>
<TR style="background-color:#FFFF99" >
	<TD>header 1</TD>
	<TD>header 2</TD>
	<TD>header 3</TD>
</TR>
<%
DATA: WA_STR TYPE FOPT_BSP_UI_REPORT.
LOOP AT TT_itab INTO WA_STRUC.
%>
<TR>
	<TD nowrap><%=WA_STRUC-ORGUNIT_T%></TD>
	<TD nowrap><%=WA_STRUC-PRGROUP_T%></TD>
	<TD nowrap><%=WA_STRUC-PROCESS_T%></TD>
</TR>
<%ENDLOOP.%>
</TABLE>