Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Former Member
0 Kudos
194

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>

1 REPLY 1
Read only

Former Member
0 Kudos
170

got answer from BSP forum