Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Hi All,

In Table view i am getting the following error.

The following error text was processed in the system:

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

My code in View is

CREATE OBJECT MODEL TYPE ZCL_HREPAN_MODEL_MAIN.

CREATE OBJECT tv_itr1 TYPE ZCL_HREPAN_MODEL_ITR_STATUS exporting model = model.

%>

<htmlb:tableView id = "reportsTable1"

headerVisible = "true"

headerText = "All PANs:"

footerVisible = "true"

design = "alternating"

visibleRowCount = "20"

width = "100%"

fillUpEmptyRows = "false"

columnWrapping = "false"

columnWidth = "200"

sort = "server"

selectionMode = "lineEdit"

iterator = "<%=tv_itr1%>"

table = "//MODEL/DATE_RANGE_PAN" >

</htmlb:tableView>

in above DATE_RANGE_PAN is table from model 'ZCL_HREPAN_MODEL_MAIN'

Controller as below: DO_REQUEST.

if lr_event is bound and lr_event->server_event = 'allpans'.

lo_model ?= get_model( 'model_id_status' ).

lo_display_view->set_attribute( name = 'model' value = lo_model ).

lo_display_view = create_view( view_name = 'allpans.htm').

call_view( lo_display_view ).

ENDIF.

DO_INIT as below

lo_model ?= create_model( class_name = 'ZCL_HREPAN_MODEL_MAIN'

model_id = 'model_id_status').

please help me how to solve this??

REgards,

Kishan

Former Member
Not what you were looking for? View more on this topic or Ask a question