Skip to Content
0
Former Member
Sep 13, 2007 at 01:38 PM

hiding field in tableview iterator

37 Views

I have a table view iterator in which I am using 4 columns. But I want to hide one column in it. I want it to be generated since it's used in my calculations on the oninputprocessing but I don't want it to be displayed. Is this possible? Thanks.

Code for iterator (I want to hide calmonth):

method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .


clear p_column_definitions.
  clear p_overwrites.

   data :  gs_tab                type tableviewcontrol.

        gs_tab-columnname          = '/BIC/FACID'.
        gs_tab-title               = 'FACID'.
        gs_tab-WRAPPING            = 'X'.
        gs_tab-horizontalalignment = 'LEFT'.
        gs_tab-width               = '25%'.
        append gs_tab to p_column_definitions.

        gs_tab-columnname          = 'CALMONTH'.
        gs_tab-title               = 'CALENDAR MONTH YEAR'.
        gs_tab-WRAPPING            = 'X'.
        gs_tab-horizontalalignment = 'LEFT'.
        gs_tab-width               = '15%'.
        append gs_tab to p_column_definitions.


        gs_tab-columnname          = '/BIC/ZADMTGT'.
        gs_tab-title               = 'CALC ADMIT TARGET'.
        gs_tab-WRAPPING            = 'X'.
        gs_tab-horizontalalignment = 'LEFT'.
        gs_tab-width               = '25%'.
        append gs_tab to p_column_definitions.

        gs_tab-columnname          = '/BIC/ZADMTTGT'.
        gs_tab-title               = 'TRUE ADMIT TARGET'.
        gs_tab-WRAPPING            = 'X'.
        gs_tab-edit            = 'X'.
        gs_tab-horizontalalignment = 'LEFT'.
        gs_tab-width               = '25%'.
        append gs_tab to p_column_definitions.

endmethod.