Skip to Content
0
Former Member
Jun 08, 2007 at 02:36 PM

Very Urgent

20 Views

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>