Skip to Content
0
Former Member
Dec 29, 2005 at 06:52 AM

BSP Page Error while connecting to ITAB.

16 Views

Hi friends,

I am getting the following error while Press submit button on my Ist PAGE.

<u>Error</u>

<b>Business Server Page (BSP) Error

What happened?

Call of BSP page terminated due to error

Business Server Page (BSP) Error

Note

Following error text processed in system:

<htmlb:tableView>: (table) Attribute value is not a table

Error Type:

Your SAP Business Server Pages Team</b>

The code I wrote for the event handling;

<u>OnInputProcessing</u>

[code]DATA: pager TYPE REF TO cl_xhtmlb_pager.

pager ?= cl_htmlb_manager=>get_data( request = request

name = 'xhtmlb:pager'

id = 'pager' ).

vindex = pager->vindex.

DATA: event TYPE REF TO if_htmlb_data.

event = cl_htmlb_manager=>get_event_ex( request ).

IF event IS NOT INITIAL

AND event->event_name = xhtmlb_events=>buttongroup

AND event->event_type = xhtmlb_events=>buttongroup_click.

CASE event->event_defined.

WHEN 'prev_page'.

vindex = vindex - vsize.

IF vindex < 1.

vindex = 1.

ENDIF.

WHEN 'next_page'.

vindex = vindex + vsize.

  • vMax = "<%=lines( itab )%>"

  • vindex = LINES( itab ) - vsize + 1.

  • ENDIF.

ENDCASE.

ENDIF.

DATA: barrier TYPE I.

  • barrier = LINES( itab ) - vSize.

IF vindex > barrier. vindex_next_disabled = 'TRUE'.

ELSE. vindex_next_disabled = 'FALSE'.

ENDIF.

IF vindex <= vsize. vindex_prev_disabled = 'TRUE'.

ELSE. vindex_prev_disabled = 'FALSE'.

ENDIF.[/code]

OnCreate

-


[code]Data: itab type standard table of zbh_queue_update initial size 0.

SELECT * FROM ZBH_QUEUE_UPDATE

INTO CORRESPONDING FIELDS OF TABLE itab

UP TO 25 ROWS.

vSize = '7'.

vIndex_prev_disabled = 'TRUE'.

vIndex_next_disabled = 'FALSE'.[/code]

<u>Layout</u>

[code]<htmlb:content design="design2003">

<htmlb:page>

<htmlb:form>

<xhtmlb:tabStrip id = "ts" renderSingleTabAsHeading ="TRUE">

<xhtmlb:tabStripItem title ="Status"

name ="tsi1" >

<xhtmlb:toolbar id="tb1" >

<xhtmlb:toolbarItem placement="LEFT" >

<xhtmlb:buttonGroup id = "btngrp"

onClick = "TablePager">

<xhtmlb:buttonGroupItem key = "prev_page"

text = "Previous Page"

design = "PREVIOUS"

disabled = "<%=vIndex_prev_disabled%>" />

<xhtmlb:buttonGroupItem key = "next_page"

text = "Next Page"

design = "NEXT"

disabled = "<%=vIndex_next_disabled%>" />

</xhtmlb:buttonGroup>

</xhtmlb:toolbarItem>

<xhtmlb:toolbarItem placement="RIGHT" >

<xhtmlb:pager id = "pager"

text = "Line [$vIndex$] of $vMax$"

vIndex = "<%=vIndex%>"

design = "VERTICAL_SIMPLE+INDICATOR" />

</xhtmlb:toolbarItem>

</xhtmlb:toolbar>

<htmlb:tableView id = "itab"

footerVisible = "false"

filter = "NONE"

table = "<%=itab%>"

visibleFirstRow = "<%=vIndex%>"

visibleRowCount = "<%=vSize%>"

width = "100%" />

</xhtmlb:tabStripItem>

</xhtmlb:tabStrip>

[/code]

When I tried with sample code & Sflight table, all is working fine. but I am getting error while trying with my ITAB.

I appreciate your suggestions in this regard.

Regards

CSM Reddy