on 06-08-2007 3:36 PM
Hi Gurus,
I created a BSP when I run first page it has to show data on the second page.
On second page at OnInitialization event I had written following code:
event handler for data retrieval
DATA: gt_zpdrivinit type STANDARD TABLE OF ZSTRUC_PDRIVINIT,
zfy(4) type c,
zpl(4) type c.
ZPLANT = request->get_form_field( 'ZPLANT' ).
ZFOY = request->get_form_field( 'ZFOY' ).
move zplant to zpl.
move zfoy to zfy.
CALL FUNCTION 'ZREAD_VALDRIVERS'
EXPORTING
i_zplant = ZPL
i_zfoy = zfy
TABLES
i_zpdrivinit = gt_zpdrivinit.
*SORT gt_zpdrivinit BY driverid ASCENDING.
Following is the code of Layout of second page.
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = " ">
<htmlb:form>
<htmlb:tableView id="myFlights" visibleRowCount="10" table="<%=gt_zpdrivinit%>" width="900">
<htmlb:tableViewColumns>
<htmlb:tableViewColumn columnName="ZPLANT"/>
<htmlb:tableViewColumn columnName="ZUNIT"/>
<htmlb:tableViewColumn columnName="ZFOY"/>
<htmlb:tableViewColumn columnName="DRIVERID"/>
</htmlb:tableViewColumns>
</htmlb:tableView>
</htmlb:form>
</htmlb:page>
</htmlb:content>
i am getting this error:
<b><htmlb:tableView>: (table) Attribute value is not a table</b>
Hi,
you have defined the table in the event. This variable lives only in the event, not in the layout. If you want to transfer data from the OnInit-Event to the Layout-Event, define the variable in the Page attributes. Type: Tabletype of your structure. Do not mark "auto", because this variable will not filled by site attributes.
Hope that helps.
Best regards
Renald
PS: Please don't write "Very Urgent", we will help you as fast as possible. See also "Rules of Engagement" by Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.