Skip to Content
0
Former Member
Nov 04, 2008 at 08:31 PM

RENDER_CELL_START issue with dynamic internal tables

20 Views

Hello all,

I'm having an issue with a tableview iterator. I've created the iterator so that it dumps data from different internal tables dynamically. This portion works great. Now, I need to put some conditional formatting into RENDER_CELL_START. Unfortunately, I can't seem to see the row data. Now that my m_row_ref is type ref to data, not a explicitly stated structure, I can't use the normal m_row_ref->check syntax. I get an error that "You cannot dereference a generic reference in the current statement.". When I look at the contents of m_row_ref in debug mode, it's showing the dynamically-generated structure name, and not the data. How can I fix this?

My CONSTRUCTOR looks like:

 me->appl = appl_cons.

  data: descr_ref type ref to cl_abap_structdescr,
  tab_type type ref to cl_abap_tabledescr .

  descr_ref ?= cl_abap_typedescr=>describe_by_name( struc_name ).
  clear tab_type .
  call method cl_abap_tabledescr=>create
    EXPORTING
      p_line_type        = descr_ref
      p_table_kind       = cl_abap_tabledescr=>tablekind_std
    RECEIVING
      p_result           = tab_type.

  create data m_row_ref type handle tab_type. 

Any help is greatly appreciated!

Lisa