Skip to Content
0
Former Member
Oct 17, 2005 at 06:23 AM

TableView with a Cell as TableView ? Possible ?

39 Views

Hello out there,

i want to dipslay complex data on a bsp-page. The date is stored in a table. One collumn contains agian a small table. Is it possible to use a tableview to render the output ?

I used an iterator on my "outer"-tableview and in the method RENDER_CELL_START i tried the following coding, but there is nothing rendered on the bsp. Can anybody help ?

<i>CASE p_column_key.

WHEN 'RELATED_PARTNER'.

CALL METHOD ME->GET_CELL_VALUE

EXPORTING

IV_COLUMN_NAME = 'RELATED_PARTNER'

IV_ROW_REF = p_row_data_ref

IMPORTING

EV_CELL_VALUE = lt_table_data.

  • TEST BEGIN IF lt_table_data is INITIAL

IF lt_table_data IS INITIAL.

lwa_table_data-partner = '0060000505'.

APPEND lwa_table_data TO lt_table_data.

lwa_table_data-partner = '0060000509'.

APPEND lwa_table_data TO lt_table_data.

ENDIF.

  • TEST END

GET REFERENCE OF lt_table_data INTO lcr_table.

CREATE OBJECT lcr_table_view.

lcr_table_view->table = lcr_table.

lcr_table_view->fillupemptyrows = 'TRUE'.

lcr_table_view->headervisible = 'FALSE'.

lcr_table_view->footervisible = 'FALSE'.

lcr_table_view->visiblerowcount = 2.

p_replacement_bee = lcr_table_view.</i>