Data not displayed in tablecontrol in abap modulepool after change_col_attr

Viewed 27

I am fetching and displaying data in table control. If I don't change the column attribute then it is displayed fine with the data. All columns are input enabled by default.

However, if I try to change it; no data is displayed. In debug, data is present in the table.

The below code is written in the change_col_attr module. What am I missing?

 IF p_screen-screen-name IN lr_invisible. "range containing fields
    p_screen-screen-active = 0.
    p_screen-screen-invisible = 1.
    p_screen-invisible = 1.
  ELSEIF p_screen-screen-name IN lr_inactive.
    p_screen-screen-active = 0.
    p_screen-screen-invisible = 0.
  ELSE.
    p_screen-screen-active = 1.
    p_screen-screen-invisible = 0.

  ENDIF.
'''
0 Answers
Related