Skip to Content
0
Former Member
Mar 31, 2014 at 07:27 PM

Remove a column in SALV

1668 Views

Hi,

I am using SALV for display.

In this I am using the factory method as below :-

Data : ref_docking_hdr TYPE REF TO cl_gui_docking_container,

ref_hdr TYPE REF TO cl_salv_table.

cl_salv_table=>factory(
EXPORTING
r_container = ref_docking_hdr
IMPORTING
r_salv_table = ref_hdr
CHANGING
t_table = t_header ).

t_header is pointing to some structure which is being used in some other programs as weel. This structure is enhanceed with the new field which is of type table.

So I am getting the dump when the display method is being called. I need to remove that column.

I tried to get the columns

Get column definition
l_ref_columns = ref_hdr->get_columns( ).

But the method REMOVE_COLUMN is protected for CL_SALV_COLUMNS. So kindly suggest how can I remove the column.

Thanks in advance.

Regards,

Saurabh