cancel
Showing results for 
Search instead for 
Did you mean: 

Hashed table in Table view

shiva_suvarna
Participant
0 Kudos

Hi friends

Can i use a hashed table in table view of htmlb.

I tried it and i get the error

<b>500 SAP Internal Server Error

Error message: Type conflict in the ASSIGN statement in the program CL_HTMLB_TABLEVIEW============CP . ( type of termination: RABAX_STATE )</b>

i have 6.20 System with the service pack 62053.

Give me your suggestions.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi, can u explain little bit more. or can sand some syntax you have used.

regards,

hemendra

shiva_suvarna
Participant
0 Kudos

hi

<htmlb:tableView id = "<%= lv_table_id %>"

table = "<%= model->studenttab %>"

design = "alternating"

visibleRowCount = "5"

selectionMode = "LINEEDIT"

onRowSelection = "onMyRowSelection"

width = "100%"

iterator = "<%= model->iterator %>" />

Here the internal table 'studentab' is a hased table of type 'zstudenttab' not standard table.

so if i set the table type as hashed for 'zstudenttab' then i am gettting the error .

Former Member
0 Kudos

hi

Have you defined the key For this Hashed Table.

have a nice time

Mithlesh

shiva_suvarna
Participant
0 Kudos

yes i have defined one of field as the key field for this table type

<b>

<htmlb:tableView id = "<%= lv_table_id %>"

table = "<%= pa_model->studenttab %>"

design = "alternating"

visibleRowCount = "5"

selectionMode = "LINEEDIT"

keyColumn = "STUNO"

onRowSelection = "onMyRowSelection"

width = "100%"

iterator = "<%= pa_model->iterator %>" />

Error message: Type conflict in the ASSIGN statement in the program CL_HTMLB_TABLEVIEW============CP . ( type of termination: RABAX_STATE ) </b>

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Looking at the inner coding of the <htmlb:tableView>, it looks as thought it does NOT support hash tables. There is an assign where they cast the type ref to data into a field-symbol of type index table:


  field-symbols: <tab>         type index table,
...
  assign table->* to <tab>.

Although type index table is generic, this means that they only support standard and sorted tables. I am sure that SAP had a good reason to limit support to these two categories.