Skip to Content
author's profile photo Former Member
Former Member

Very Urgent

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>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 08, 2007 at 02:56 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.