Hi Bunty,
The error is because lr_column is INITIAL i.e. the reference of the column is not bound. So, you have to check if its is bound before using/accessing it.
if lr_column is bound.
lr_header = lr_column->get_header( ).
endif.
Please note that, it is always required to check if any object is bound/ initial before accessing any of its attributes / methods.
Hope this helps you.
Regards,
Rama